Commit b8e1a13a authored by 梁光意's avatar 梁光意

添加判断业务表是否存在

parent a59c1762
......@@ -66,6 +66,9 @@ public class BusinessConfigServiceImpl extends ServiceImpl<BusinessConfigMapper,
@Transactional(readOnly = true)
public BusinessConfigVo selectOneConfig(String id) {
BusinessConfig co = baseMapper.selectById(id);
if (org.apache.commons.lang3.ObjectUtils.isEmpty(co)){
throw new SysException("业务数据表不存在");
}
try {
if(StringUtils.isNotBlank(co.getField())) {
co.setField(URLDecoder.decode(co.getField(), StandardCharsets.UTF_8.name()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment