提交 ae258e96 作者: 925993793@qq.com

【自定义专题】统计接口特殊处理,后续优化

上级 777cfcf9
......@@ -264,14 +264,15 @@ public class SubjectManageController {
*/
@GetMapping(value = "/statisticInfo")
private Result<?> statisticInfo(@RequestParam List<String> subjectIds) {
List<SubjectStatisticInfo> statisticInfoList = subjectService.statisticInfo(subjectIds);
//异步更新专题统计信息表的数据
CompletableFuture.runAsync(() -> {
if (CollectionUtils.isNotEmpty(statisticInfoList)) {
subjectStatisticInfoService.batchModify(statisticInfoList);
}
});
return Result.OK(statisticInfoList);
//List<SubjectStatisticInfo> statisticInfoList = subjectService.statisticInfo(subjectIds);
////异步更新专题统计信息表的数据
//CompletableFuture.runAsync(() -> {
// if (CollectionUtils.isNotEmpty(statisticInfoList)) {
// subjectStatisticInfoService.batchModify(statisticInfoList);
// }
//});
//return Result.OK(statisticInfoList);
return Result.OK(new ArrayList<>());
}
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论