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

定制专题摘要bug修改

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