提交 3d25fb30 作者: 925993793@qq.com

定制专题摘要bug修改

上级 2c6740af
...@@ -322,10 +322,10 @@ public class ExternalController { ...@@ -322,10 +322,10 @@ public class ExternalController {
} }
} }
} }
return Result.OK(data); return Result.OK((Map<String, Object>) data);
} else { } else {
List<DisplayInfo> dataList = getDataList(subjectId); List<DisplayInfo> dataList = getDataList(subjectId);
return Result.OK(generateSummary(subjectId,dataList, language)); return Result.OK(generateSummary(subjectId, dataList, language));
} }
} }
...@@ -369,7 +369,7 @@ public class ExternalController { ...@@ -369,7 +369,7 @@ public class ExternalController {
} }
private List<DisplayInfo> getDataList(String subjectId){ private List<DisplayInfo> getDataList(String subjectId) {
InfoDataSearchCondition searchCondition = new InfoDataSearchCondition(); InfoDataSearchCondition searchCondition = new InfoDataSearchCondition();
searchCondition.setSubjectId(subjectId); searchCondition.setSubjectId(subjectId);
searchCondition.setCategory(2); searchCondition.setCategory(2);
...@@ -379,7 +379,7 @@ public class ExternalController { ...@@ -379,7 +379,7 @@ public class ExternalController {
return pageList.getRecords(); return pageList.getRecords();
} }
private Map<String, Object> generateSummary(String subjectId,List<DisplayInfo> records, String language) { private Map<String, Object> generateSummary(String subjectId, List<DisplayInfo> records, String language) {
Map<String, Object> resultMap = null; Map<String, Object> resultMap = null;
if (CollectionUtils.isNotEmpty(records)) { if (CollectionUtils.isNotEmpty(records)) {
JSONObject params = new JSONObject(); JSONObject params = new JSONObject();
...@@ -422,7 +422,7 @@ public class ExternalController { ...@@ -422,7 +422,7 @@ public class ExternalController {
resultMap.put("idList", idList); resultMap.put("idList", idList);
resultMap.put("language", language); resultMap.put("language", language);
resultMap.put("model", model); resultMap.put("model", model);
redisUtil.set("GATHER_SUMMARY::" + subjectId, JSONObject.toJSONString(resultMap)); redisUtil.set("GATHER_SUMMARY::" + subjectId, resultMap);
} }
return resultMap; return resultMap;
} }
......
...@@ -397,7 +397,6 @@ public class AnalysisServiceImpl implements AnalysisService { ...@@ -397,7 +397,6 @@ public class AnalysisServiceImpl implements AnalysisService {
break; break;
} }
} while (attempts < 3); } while (attempts < 3);
log.info("{}-事件分析重新生成逻辑完成。", eventName);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论