|
|
|
@@ -46,8 +46,13 @@ public class CodeConfigServiceImpl implements CodeConfigService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public CodeConfig queryById(Long id) { |
|
|
|
return this.codeConfigDao.queryById(id); |
|
|
|
public CodeConfig queryById(Long id) throws Exception { |
|
|
|
CodeConfig codeConfig = this.codeConfigDao.queryById(id); |
|
|
|
if (codeConfig == null) { |
|
|
|
throw new Exception("未查询到代码配置"); |
|
|
|
} else { |
|
|
|
return this.codeConfigDao.queryById(id); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|