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 21f21106..032e1c20 100644 --- a/src/main/java/com/zcloud/service/highriskwork/impl/HotworkCfdServiceImpl.java +++ b/src/main/java/com/zcloud/service/highriskwork/impl/HotworkCfdServiceImpl.java @@ -69,6 +69,7 @@ public class HotworkCfdServiceImpl implements HotworkCfdService { entity.put("TYPE", "0"); entity.put("TYPE_NAME", "动火交底人"); entity.put("APPROVAL_OPINIONS",info.getString("CONFESS_DEPARTMENT_OPINIONS")); + entity.put("APPROVAL_STATUS", "0"); entity.put("STATUS", "0"); entity.put("CREATE_TIME", time); entity.put("VALID_FLAG", "1"); @@ -350,7 +351,6 @@ public class HotworkCfdServiceImpl implements HotworkCfdService { condition.put("TYPE", "0"); condition.put("USER_ID", pd.get("USER_ID")); condition.put("APPROVAL_STATUS", "0"); - busHotworkCfdExamineMapper.findByCondition(condition); //动火交底人需处理数 info.put("confessNum", busHotworkCfdExamineMapper.findByCondition(condition).size()); condition.put("TYPE", "1"); @@ -359,6 +359,7 @@ public class HotworkCfdServiceImpl implements HotworkCfdService { condition.put("TYPE", "2"); // 安全项检查人需处理数 info.put("safetyNum", busHotworkCfdExamineMapper.findByCondition(condition).size()); + // 气体分析人需处理数 return info; } diff --git a/src/main/resources/mybatis/datasource/highriskwork/BusHotworkCfdExamineMapper.xml b/src/main/resources/mybatis/datasource/highriskwork/BusHotworkCfdExamineMapper.xml index 6bd33592..acc00233 100644 --- a/src/main/resources/mybatis/datasource/highriskwork/BusHotworkCfdExamineMapper.xml +++ b/src/main/resources/mybatis/datasource/highriskwork/BusHotworkCfdExamineMapper.xml @@ -143,6 +143,9 @@ and f.TYPE = #{TYPE} + + and f.APPROVAL_STATUS = #{APPROVAL_STATUS} +