From 02707d6a6baf03bea8e233aeb26fa736b1795408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E4=B8=89=E7=82=AE?= <15856818120@163.com> Date: Thu, 17 Jul 2025 11:02:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=85=E9=81=93bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bonus/flowable/entity/ConfigurationVo.java | 4 +++- .../com/bonus/flowable/mapper/BusinessMapper.java | 2 ++ .../flowable/service/impl/BusinessServiceImpl.java | 11 ++++++++++- .../src/main/resources/mapper/BusinessMapper.xml | 11 +++++++++-- .../mapper/safetycheck/SecurityCheckMapper.xml | 4 ++-- .../mapper/safetycheck/ViolationManagementMapper.xml | 2 +- .../mapper/system/AdmissionRequestMapper.xml | 4 +++- 7 files changed, 30 insertions(+), 8 deletions(-) diff --git a/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/entity/ConfigurationVo.java b/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/entity/ConfigurationVo.java index 49468ea..316c13f 100644 --- a/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/entity/ConfigurationVo.java +++ b/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/entity/ConfigurationVo.java @@ -16,6 +16,9 @@ public class ConfigurationVo { private String nodeName; private String checkPerson; private String examineType; + /** + * 0不支持 1支持 + */ private String finalJudgment; private String createTime; private String updateTime; @@ -40,5 +43,4 @@ public class ConfigurationVo { private String isAudit; - } diff --git a/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/mapper/BusinessMapper.java b/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/mapper/BusinessMapper.java index b8d5bfb..ab62e5d 100644 --- a/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/mapper/BusinessMapper.java +++ b/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/mapper/BusinessMapper.java @@ -586,4 +586,6 @@ public interface BusinessMapper { * @return */ int updateSupPersonOutStatusByUuid(@Param("uuid")String uuid, @Param("statusType")String statusType); + + ConfigurationVo getAuditStatus(ConfigurationVo bean); } diff --git a/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/service/impl/BusinessServiceImpl.java b/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/service/impl/BusinessServiceImpl.java index 3cd60c0..ed179f6 100644 --- a/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/service/impl/BusinessServiceImpl.java +++ b/bonus-modules/bonus-flowable/src/main/java/com/bonus/flowable/service/impl/BusinessServiceImpl.java @@ -856,6 +856,7 @@ public class BusinessServiceImpl implements BusinessService { @Override public List approvalHistoryUser(String taskId) { + //获取审核列表 List list = mapper.approvalHistoryUser(taskId); List finalList = new ArrayList<>(); ConfigurationVo bbb = new ConfigurationVo(); @@ -866,9 +867,17 @@ public class BusinessServiceImpl implements BusinessService { String[] stringArray = userName.toArray(new String[0]); if ("0".equals(examineType)) { for (int i = 0; i < stringArray.length; i++) { + //获取已审核信息 + ConfigurationVo req = new ConfigurationVo(); + req.setUserId(ss.get(i)); + req.setTaskId(bean.getTaskId()); + req.setVersion(bean.getVersion()); + req = mapper.getAuditStatus(req); ConfigurationVo newBean = new ConfigurationVo(); newBean.setId(bean.getId()); - newBean.setAuditStatus(bean.getAuditStatus()); + if (StringUtils.isNotNull(req)){ + newBean.setAuditStatus(req.getAuditStatus()); + } newBean.setExamineId(bean.getExamineId()); newBean.setTaskId(bean.getTaskId()); newBean.setNodeName(bean.getNodeName()); diff --git a/bonus-modules/bonus-flowable/src/main/resources/mapper/BusinessMapper.xml b/bonus-modules/bonus-flowable/src/main/resources/mapper/BusinessMapper.xml index 27d26fe..0bb4186 100644 --- a/bonus-modules/bonus-flowable/src/main/resources/mapper/BusinessMapper.xml +++ b/bonus-modules/bonus-flowable/src/main/resources/mapper/BusinessMapper.xml @@ -740,10 +740,12 @@ @@ -956,5 +958,10 @@ limit 1 + diff --git a/bonus-modules/bonus-project/src/main/resources/mapper/safetycheck/SecurityCheckMapper.xml b/bonus-modules/bonus-project/src/main/resources/mapper/safetycheck/SecurityCheckMapper.xml index 95b4a99..cdfd2b6 100644 --- a/bonus-modules/bonus-project/src/main/resources/mapper/safetycheck/SecurityCheckMapper.xml +++ b/bonus-modules/bonus-project/src/main/resources/mapper/safetycheck/SecurityCheckMapper.xml @@ -546,7 +546,7 @@ ypi.rejection_delay AS rejectionDelay, ypd.delay_reason AS delayReason, ypd.user_id As userId - FROM yh_pitfall_info ypi + FROM yh_pitfall_info ypi LEFT JOIN yh_pitfall_detaills ypd ON ypi.pitfall_id = ypd.pitfall_id LEFT JOIN sys_dict_data sdd ON ypi.check_status = sdd.dict_value AND sdd.dict_type = 'yn_check_status' AND sdd.status = 0 @@ -573,7 +573,7 @@ AND ypd.pitfall_type_id = #{pitfallLevelId} - + AND ypi.delay_check_state = #{status} diff --git a/bonus-modules/bonus-project/src/main/resources/mapper/safetycheck/ViolationManagementMapper.xml b/bonus-modules/bonus-project/src/main/resources/mapper/safetycheck/ViolationManagementMapper.xml index 1d32815..72f3395 100644 --- a/bonus-modules/bonus-project/src/main/resources/mapper/safetycheck/ViolationManagementMapper.xml +++ b/bonus-modules/bonus-project/src/main/resources/mapper/safetycheck/ViolationManagementMapper.xml @@ -374,7 +374,7 @@ and wvd.issuer_name like concat('%',#{signerName},'%') - + and wvi.check_status = #{status} order by wvi.violation_id desc diff --git a/bonus-modules/bonus-project/src/main/resources/mapper/system/AdmissionRequestMapper.xml b/bonus-modules/bonus-project/src/main/resources/mapper/system/AdmissionRequestMapper.xml index c03bf4d..bb3653e 100644 --- a/bonus-modules/bonus-project/src/main/resources/mapper/system/AdmissionRequestMapper.xml +++ b/bonus-modules/bonus-project/src/main/resources/mapper/system/AdmissionRequestMapper.xml @@ -257,7 +257,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" lkc.departure_date AS departureDate, lkc.into_status as intoStatus, #{dataType} as status, - lkc.task_id AS taskId, + lpc.task_id AS taskId, lkc.proc_inst_id AS procInsId, pcp.cons_user_id AS consUserId, pcp.cons_name AS consName, @@ -279,6 +279,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" lk_cont_person lkc LEFT JOIN pt_cons_person pcp ON lkc.cons_persion_id = pcp.cons_user_id + LEFT JOIN + lk_pro_cont lpc ON lkc.pro_id = lpc.pro_id LEFT JOIN sys_dict_data sdd ON pcp.post = sdd.dict_value AND sdd.dict_type = 'sys_cons_post' pcp.is_active = '1'