Commit cd22e8b7 authored by 秦嘉's avatar 秦嘉

抗原异常上报导入

parent 96922d91
...@@ -77,6 +77,30 @@ public class YcsbController extends BaseController ...@@ -77,6 +77,30 @@ public class YcsbController extends BaseController
} else { } else {
ycsbExport.setCommunity(""); ycsbExport.setCommunity("");
} }
if (StringUtils.isNotEmpty(ycsbExport.getCommittee())) {
List<SysDictData> committees = DictUtils.getDictCache("committee");
List<String> labels = committees.stream().filter(i -> ycsbExport.getCommittee().equals(i.getDictValue()))
.map(SysDictData::getDictLabel).collect(Collectors.toList());
if (!labels.isEmpty()) {
ycsbExport.setCommittee(labels.get(0));
} else {
ycsbExport.setCommittee("");
}
} else {
ycsbExport.setCommittee("");
}
if (StringUtils.isNotEmpty(ycsbExport.getStreet())) {
List<SysDictData> streetTown = DictUtils.getDictCache("street_town");
List<String> labels = streetTown.stream().filter(i -> ycsbExport.getStreet().equals(i.getDictValue()))
.map(SysDictData::getDictLabel).collect(Collectors.toList());
if (!labels.isEmpty()) {
ycsbExport.setStreet(labels.get(0));
} else {
ycsbExport.setStreet("");
}
} else {
ycsbExport.setStreet("");
}
} }
util.exportExcel(response, list, "抗原异常上报数据"); util.exportExcel(response, list, "抗原异常上报数据");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment