一公司动火审批过程中审批信息统一

liujun-2024-05-23-接口漏洞修复
liujun 2024-02-05 11:41:03 +08:00
parent 1dd8bfad94
commit a9dbc94387
1 changed files with 14 additions and 1 deletions

View File

@ -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<PageData> _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());