|
@@ -171,7 +171,7 @@ public class RuleTemplateServiceImpl extends ServiceImpl<RuleTemplateMapper, Rul
|
|
public JSONObject queryDetailById(String id) throws Exception {
|
|
public JSONObject queryDetailById(String id) throws Exception {
|
|
JSONObject returnJson = new JSONObject();
|
|
JSONObject returnJson = new JSONObject();
|
|
RuleTemplate template = ruleTemplateMapper.selectById(id);
|
|
RuleTemplate template = ruleTemplateMapper.selectById(id);
|
|
- if (Check.isNull(ruleTemplateMapper)) {
|
|
|
|
|
|
+ if (Check.isNull(template)) {
|
|
throw new Exception("获取模板基本信息为空");
|
|
throw new Exception("获取模板基本信息为空");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -180,7 +180,7 @@ public class RuleTemplateServiceImpl extends ServiceImpl<RuleTemplateMapper, Rul
|
|
returnJson.put("mediaType", template.getMediaType());
|
|
returnJson.put("mediaType", template.getMediaType());
|
|
JSONArray groupIds = JSONArray.parseArray(template.getGroupIds());
|
|
JSONArray groupIds = JSONArray.parseArray(template.getGroupIds());
|
|
if (Check.isNull(groupIds)) {
|
|
if (Check.isNull(groupIds)) {
|
|
- throw new Exception("未获取规则集");
|
|
|
|
|
|
+ throw new Exception("规则集信息为空");
|
|
}
|
|
}
|
|
JSONArray ruleList = new JSONArray();
|
|
JSONArray ruleList = new JSONArray();
|
|
for (int i = 0; i < groupIds.size(); i++) {
|
|
for (int i = 0; i < groupIds.size(); i++) {
|