提交 f9d3f845 authored 作者: tykj's avatar tykj

feat:检查模块功能变更流程

上级 300c3e79
......@@ -136,12 +136,15 @@ public class ExamController {
List<Units> units = unitsRepo.findAllById(checkUnitService.findUnExistDevice(unitIds.getIds()));
if (!isExam) {
List<Integer> collect = units.stream().filter(o -> o.getLevel() == 2).map(Units::getUnitId).collect(toList());
List<Integer> collect = unitsRepo.findAllById(unitIds.getIds()).stream().filter(o -> o.getLevel() == 2).map(Units::getUnitId).collect(toList());
log.info("[check] 获取核查单位,{}", collect);
if (!collect.isEmpty()) {
for (Integer integer : collect) {
List<Units> bySubordinateAll = unitsService.findBySubordinateAll(integer);
log.info("[check] 查询市级核查单位:{}", bySubordinateAll);
List<Integer> unExistDevice = checkUnitService.findUnExistDevice(bySubordinateAll.stream().map(Units::getUnitId).collect(toList()));
log.info("[check] 市级无装备的单位:{}", unExistDevice);
units.addAll(unitsRepo.findAllById(unExistDevice));
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论