diff --git a/src/main/java/com/zcloud/service/highriskwork/impl/HotworkCfdServiceImpl.java b/src/main/java/com/zcloud/service/highriskwork/impl/HotworkCfdServiceImpl.java index 998d425a..6b6595dd 100644 --- a/src/main/java/com/zcloud/service/highriskwork/impl/HotworkCfdServiceImpl.java +++ b/src/main/java/com/zcloud/service/highriskwork/impl/HotworkCfdServiceImpl.java @@ -17,6 +17,7 @@ import org.springframework.transaction.annotation.Transactional; import org.springframework.web.multipart.MultipartFile; import javax.annotation.Resource; +import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; @@ -377,7 +378,19 @@ public class HotworkCfdServiceImpl implements HotworkCfdService { info.put("confessNum", busHotworkCfdExamineMapper.findByCondition(condition).size()); condition.put("TYPE", "1"); // 项目主管部门需处理数 - info.put("belongingNum", busHotworkCfdExamineMapper.findByCondition(condition).size()); + List _belongingList = busHotworkCfdExamineMapper.findByCondition(condition); + List belongList = new ArrayList(); + for (PageData x : _belongingList) { + PageData condition1 = new PageData(); + condition1.put("HOTWORK_ID", x.get("HOTWORK_ID")); + condition1.put("IS_DELETE", "0"); + PageData hotWorkInfo = hotworkCfdMapper.findById(condition1); + if ("1.5".equals(hotWorkInfo.getString("APPLY_STATUS"))) { + belongList.add(x); + } + } + + info.put("belongingNum", belongList.size()); condition.put("TYPE", "2"); // 安全项检查人需处理数 info.put("safetyNum", busHotworkCfdExamineMapper.findByCondition(condition).size());