提交 242c41aa 作者: yanxin

已入库数据查询bug修改

上级 037223d2
...@@ -151,7 +151,6 @@ public class InformationServiceImpl implements InformationService { ...@@ -151,7 +151,6 @@ public class InformationServiceImpl implements InformationService {
if (total > 0) { if (total > 0) {
List<DisplayInfo> dataList = new ArrayList<>(); List<DisplayInfo> dataList = new ArrayList<>();
List<LabelModelVo> labelModelVos = commonService.subjectModelBindLabels(subjectIdList); List<LabelModelVo> labelModelVos = commonService.subjectModelBindLabels(subjectIdList);
Map<String, List<LabelModelVo>> modelMap = labelModelVos.stream().collect(Collectors.groupingBy(LabelModelVo::getSubjectId));
List<SpecialInformation> records = specialInformationIPage.getRecords(); List<SpecialInformation> records = specialInformationIPage.getRecords();
for (SpecialInformation specialInformation : records) { for (SpecialInformation specialInformation : records) {
DisplayInfo info = new DisplayInfo(); DisplayInfo info = new DisplayInfo();
...@@ -165,8 +164,7 @@ public class InformationServiceImpl implements InformationService { ...@@ -165,8 +164,7 @@ public class InformationServiceImpl implements InformationService {
} }
} }
//标签处理 //标签处理
List<LabelModelVo> modelVoList = modelMap.get(info.getSubjectId()); formatLabel(labelModelVos, info);
formatLabel(modelVoList, info);
dataList.add(info); dataList.add(info);
} }
page.setRecords(dataList); page.setRecords(dataList);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论