diff --git a/src/main/java/com/zcloud/controller/app/highriskwork/AppHotworkCfdController.java b/src/main/java/com/zcloud/controller/app/highriskwork/AppHotworkCfdController.java index 5e4741de..7db43429 100644 --- a/src/main/java/com/zcloud/controller/app/highriskwork/AppHotworkCfdController.java +++ b/src/main/java/com/zcloud/controller/app/highriskwork/AppHotworkCfdController.java @@ -1414,6 +1414,7 @@ public class AppHotworkCfdController extends BaseController { hotworkCfdService.addInfo(pd); map.put("gasList", hotworkGasCfdService.listAll(pd)); + // imgList是接受交底人签字 map.put("imgList", hotworkAcceptUserCfdService.findByIds(pd)); map.put("imgList1", hotworkAcceptUserCfdService.findById(pd)); condition.clear(); 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 eee5acc9..77e53fdc 100644 --- a/src/main/java/com/zcloud/service/highriskwork/impl/HotworkCfdServiceImpl.java +++ b/src/main/java/com/zcloud/service/highriskwork/impl/HotworkCfdServiceImpl.java @@ -3,6 +3,7 @@ package com.zcloud.service.highriskwork.impl; import com.zcloud.entity.Page; import com.zcloud.entity.PageData; import com.zcloud.mapper.datasource.highriskwork.BusHotworkCfdExamineMapper; +import com.zcloud.mapper.datasource.highriskwork.HotworkAcceptUserCfdMapper; import com.zcloud.mapper.datasource.highriskwork.HotworkCfdMapper; import com.zcloud.mapper.datasource.system.DepartmentMapper; import com.zcloud.service.bus.CorpInfoService; @@ -41,6 +42,9 @@ public class HotworkCfdServiceImpl implements HotworkCfdService { @Resource private DepartmentMapper departmentMapper; + @Resource + private HotworkAcceptUserCfdMapper hotworkAcceptUserCfdMapper; + /**新增 * @param pd * @throws Exception @@ -156,11 +160,20 @@ public class HotworkCfdServiceImpl implements HotworkCfdService { } String passFlag = "1"; String message = ""; - if (entity.get("ACCEPT_CONFESS_USER_SIGNER_PATH") == null || StringUtils.isEmpty(entity.getString("ACCEPT_CONFESS_USER_SIGNER_PATH"))) { - message = "交底人未签字,"; - passFlag = "0"; + + condition.clear(); + condition.put("HOTWORK_ID", entity.get("HOTWORK_ID")); + condition.put("CORPINFO_ID", entity.getString("CORPINFO_ID")); + condition.put("ACCEPT_CONFESS_USER_ID", entity.get("ACCEPT_CONFESS_USER_ID")); + List acceptUsers = hotworkAcceptUserCfdMapper.findByIds(condition); + for(PageData acceptUser:acceptUsers){ + if (acceptUser.get("ACCEPT_CONFESS_USER_SIGNER_PATH") == null || StringUtils.isEmpty(acceptUser.getString("ACCEPT_CONFESS_USER_SIGNER_PATH"))) { + message = "接受交底人未签字,"; + passFlag = "0"; + break; + } } - if (entity.get("GUARDIAN_USER_SIGNER_PATH") == null || StringUtils.isEmpty(entity.getString(entity.get("GUARDIAN_USER_SIGNER_PATH")))) { + if (entity.get("GUARDIAN_USER_SIGNER_PATH") == null || StringUtils.isEmpty(entity.getString("GUARDIAN_USER_SIGNER_PATH"))) { message = message + "监护人未签字,"; passFlag = "0"; }