From f5579e98566f2f3162ac4089774df92251f34147 Mon Sep 17 00:00:00 2001 From: zhangqihang Date: Fri, 23 Feb 2024 09:06:12 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E7=8E=AF=E4=BF=9D=E6=A3=80=E6=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/inspection/AppSafetyEnvironmentalController.java | 2 +- .../datasource/specialoperation/PersonnelManagementMapper.xml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zcloud/controller/app/inspection/AppSafetyEnvironmentalController.java b/src/main/java/com/zcloud/controller/app/inspection/AppSafetyEnvironmentalController.java index b0c8389..39bf673 100644 --- a/src/main/java/com/zcloud/controller/app/inspection/AppSafetyEnvironmentalController.java +++ b/src/main/java/com/zcloud/controller/app/inspection/AppSafetyEnvironmentalController.java @@ -487,7 +487,7 @@ public class AppSafetyEnvironmentalController extends BaseController { } // 2、整理特殊数据 // 2、1检查人将检查状态 - if ("2,3,4".contains(safety.getString("order"))) { + if ("1,2,3,4".contains(safety.getString("order"))) { List inspectors = inspectorService.listAll(condition); nodes.stream() .filter(n -> "1".equals(n.getOrder())) diff --git a/src/main/resources/mybatis/datasource/specialoperation/PersonnelManagementMapper.xml b/src/main/resources/mybatis/datasource/specialoperation/PersonnelManagementMapper.xml index 7747fb3..12a7b04 100644 --- a/src/main/resources/mybatis/datasource/specialoperation/PersonnelManagementMapper.xml +++ b/src/main/resources/mybatis/datasource/specialoperation/PersonnelManagementMapper.xml @@ -266,10 +266,12 @@ select count(1) count,d.NAME - from bus_checkrecord f - left join BUS_LISTMANAGER l on f.LISTMANAGER_ID = l.LISTMANAGER_ID + from vi_list_checkrecord_all f + left join vi_list_all l on f.LISTMANAGER_ID = l.LISTMANAGER_ID and f.LIST_TYPE = l.LIST_TYPE left join sys_dictionaries d on d.BIANMA = l.SCREENTYPE where f.ISDELETE = '0' AND f.FINISHED = '1' diff --git a/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml b/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml index f3e36dd..ad73e84 100644 --- a/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml +++ b/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml @@ -1436,16 +1436,18 @@ WHERE h.ISDELETE = '0' AND h.CORPINFO_ID = #{CORPINFO_ID} - AND h.state != '0' + + + AND h.STATE NOT IN ('0','100','101','102','-2') AND h.HIDDENLEVEL = 'hiddenLevel0001' AND DATE_FORMAT( h.CREATTIME, '%Y-%m' ) >= #{TIME} AND DATE_FORMAT( h.CREATTIME, '%Y-%m' ) <= DATE_FORMAT( NOW(), '%Y-%m' ) GROUP BY DATE_FORMAT( h.CREATTIME, '%Y-%m' ) ORDER BY - DATE_FORMAT( h.CREATTIME, '%Y-%m' ) - - + DATE_FORMAT( h.CREATTIME, '%Y-%m' ) + + SELECT count( 1 ) NUMBER, DATE_FORMAT( h.CREATTIME, '%Y-%m' ) TIME From acb1c9a5a2794f05fda3fdeb1ff3730a39187500 Mon Sep 17 00:00:00 2001 From: zhangqihang Date: Fri, 23 Feb 2024 18:04:02 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zcloud/controller/hidden/HiddenController.java | 3 +++ .../app/AppKeyprojectCheckController.java | 1 + .../controller/system/AppImgFilesController.java | 2 +- .../com/zcloud/entity/hotWorkApplication/Node.java | 6 +++++- .../mybatis/datasource/hidden/HiddenMapper.xml | 3 +++ .../keyProjects/KeyprojectHiddenMapper.xml | 13 ++++++------- .../keyProjects/KeyprojectPunishMapper.xml | 6 ++++-- .../mybatis/datasource/relatedparty/UnitsMapper.xml | 2 +- .../safetyMeeting/SafetyMeetingMapper.xml | 6 +++--- .../specialoperation/PersonnelManagementMapper.xml | 4 ++-- 10 files changed, 29 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/zcloud/controller/hidden/HiddenController.java b/src/main/java/com/zcloud/controller/hidden/HiddenController.java index 826e2e7..80fc098 100644 --- a/src/main/java/com/zcloud/controller/hidden/HiddenController.java +++ b/src/main/java/com/zcloud/controller/hidden/HiddenController.java @@ -1969,6 +1969,9 @@ public class HiddenController extends BaseController { if ("-2".equals(pd.getString("HIDDEN_STATUS"))) { pd.put("ISCONFIRM", "0"); // pd.put("CONFIRM_TIME", DateUtil.date2Str(new Date())); + pd.put("CONFIRM_USER", Jurisdiction.getUSER_ID()); + pd.put("STATE","1"); + pd.put("RECTIFICATIONTYPE","2"); if (list.size() == 0) { inspection.put("INSPECTION_STATUS", "5"); // 指派完成 } else { diff --git a/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyprojectCheckController.java b/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyprojectCheckController.java index 454fc5a..b909250 100644 --- a/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyprojectCheckController.java +++ b/src/main/java/com/zcloud/controller/keyProjects/app/AppKeyprojectCheckController.java @@ -132,6 +132,7 @@ public class AppKeyprojectCheckController extends BaseController { hidden.put("RECTIFYDESCR", json.getString("RECTIFYDESCR")); //整改描述 hidden.put("RECTIFICATIONDEPT", json.getString("RECTIFICATIONDEPT")); //整改部门 hidden.put("RECTIFICATIONOR", json.getString("RECTIFICATIONOR")); //整改人 + hidden.put("HIDDENTYPE_NAME", json.getString("HIDDENTYPE_NAME")); //整改人 hidden.put("CREATOR", pd.getString("CREATOR")); //发现人(隐患责任人) hidden.put("SOURCE", json.getString("SOURCE")); //隐患来源 hidden.put("STATE", "1"); //隐患状态 100-安全环保检查暂存的隐患(流程完转0) diff --git a/src/main/java/com/zcloud/controller/system/AppImgFilesController.java b/src/main/java/com/zcloud/controller/system/AppImgFilesController.java index a01384c..b1ff3f6 100644 --- a/src/main/java/com/zcloud/controller/system/AppImgFilesController.java +++ b/src/main/java/com/zcloud/controller/system/AppImgFilesController.java @@ -88,7 +88,7 @@ public class AppImgFilesController extends BaseController { String ffile = DateUtil.getDays(); // String filePath = PathUtil.getProjectpath() + Const.FILEPATHFILE + ffile; //文件上传路径 // String fileName = FileUpload.fileUp(file, filePath, this.get32UUID()); //执行上传 - String fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")); + String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")); smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile); pd.put("IMGFILES_ID", this.get32UUID()); diff --git a/src/main/java/com/zcloud/entity/hotWorkApplication/Node.java b/src/main/java/com/zcloud/entity/hotWorkApplication/Node.java index 24abed2..56226f3 100644 --- a/src/main/java/com/zcloud/entity/hotWorkApplication/Node.java +++ b/src/main/java/com/zcloud/entity/hotWorkApplication/Node.java @@ -51,7 +51,11 @@ public class Node { case "2": break; case "3": - this.text = this.text + "
被检查人:" + information.getString("INSPECTED_SITEUSER_NAME") + "
(" + information.getString("INSPECTED_SITEUSER_SIGN_TIME") + ")"; + if (StringUtils.isNotBlank(information.getString("INSPECTED_SITEUSER_SIGN_TIME"))) { + this.text = this.text + "
被检查人:" + information.getString("INSPECTED_SITEUSER_NAME") + "
(" + information.getString("INSPECTED_SITEUSER_SIGN_TIME") + ")"; + } else { + this.text = this.text + "
被检查人:" + information.getString("INSPECTED_SITEUSER_NAME"); + } break; case "4": break; diff --git a/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml b/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml index ad73e84..1c8eb8e 100644 --- a/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml +++ b/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml @@ -2557,6 +2557,9 @@ CHECKDEPT = #{CHECKDEPT}, CHECKOR = #{CHECKOR}, HIDDEN_ID = HIDDEN_ID + + ,RECTIFICATIONTYPE = #{RECTIFICATIONTYPE} + where HIDDEN_ID = #{HIDDEN_ID} diff --git a/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml b/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml index 6ac38f8..e55fdc4 100644 --- a/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml +++ b/src/main/resources/mybatis/datasource/keyProjects/KeyprojectHiddenMapper.xml @@ -65,7 +65,8 @@ f.FINAL_CHECKDESCR, f.ISRELEVANT, f.ISPUNISH, - f.POSITIONDESC + f.POSITIONDESC, + f.HIDDENTYPE_NAME @@ -121,7 +122,8 @@ FINAL_CHECKOR, FINAL_CHECKTIME, FINAL_CHECKDESCR, - POSITIONDESC + POSITIONDESC, + HIDDENTYPE_NAME @@ -177,7 +179,8 @@ #{FINAL_CHECKOR}, #{FINAL_CHECKTIME}, #{FINAL_CHECKDESCR}, - #{POSITIONDESC} + #{POSITIONDESC}, + #{HIDDENTYPE_NAME} @@ -287,7 +290,6 @@ f.*, hr.HIDDENREGION HIDDENPART_NAME, lv.NAME HIDDENLEVEL_NAME, - ht.NAME HIDDENTYPE_NAME, ht2.NAME HIDDENTYPE2_NAME, crd.NAME HIDDENFINDDEPT_NAME, cr.NAME CREATOR_NAME, @@ -313,7 +315,6 @@ f.*, hr.HIDDENREGION HIDDENPART_NAME, lv.NAME HIDDENLEVEL_NAME, - ht.NAME HIDDENTYPE_NAME, ht2.NAME HIDDENTYPE2_NAME, crd.NAME HIDDENFINDDEPT_NAME, cr.NAME CREATOR_NAME, @@ -1123,7 +1124,6 @@ f.*, hr.HIDDENREGION HIDDENPART_NAME, lv.NAME HIDDENLEVEL_NAME, - ht.NAME HIDDENTYPE_NAME, ht2.NAME HIDDENTYPE2_NAME, crd.NAME HIDDENFINDDEPT_NAME, cr.NAME CREATOR_NAME, @@ -1637,7 +1637,6 @@ f.*, hr.HIDDENREGION HIDDENPART_NAME, lv.NAME HIDDENLEVEL_NAME, - ht.NAME HIDDENTYPE_NAME, ht2.NAME HIDDENTYPE2_NAME, crd.NAME HIDDENFINDDEPT_NAME, cr.NAME CREATOR_NAME, diff --git a/src/main/resources/mybatis/datasource/keyProjects/KeyprojectPunishMapper.xml b/src/main/resources/mybatis/datasource/keyProjects/KeyprojectPunishMapper.xml index 6b1d2fa..b600351 100644 --- a/src/main/resources/mybatis/datasource/keyProjects/KeyprojectPunishMapper.xml +++ b/src/main/resources/mybatis/datasource/keyProjects/KeyprojectPunishMapper.xml @@ -137,7 +137,7 @@ , cr.NAME CREATOR_NAME, cre.NAME CREATOR_NAMES, - o.OUTSOURCED_NAME, + bo.OUTSOURCED_NAME, u.UNITS_NAME, p.NAME AS PERSON_NAME from @@ -145,7 +145,9 @@ left join vi_user_all cr on cr.USER_ID = f.CREATOR left join sys_user cre on cre.USER_ID = f.CREATOR left join BUS_UNITS u on u.UNITS_ID = f.UNITS_ID - left join BUS_OUTSOURCED o on o.UNITS_ID = u.UNITS_ID + left join bus_keyproject_hidden h on f.HIDDEN_ID = h.HIDDEN_ID + LEFT JOIN BUS_KEYPROJECTCHECK ch ON ch.OUTSOURCED_ID = h.FOREIGN_ID or h.FOREIGN_ID = ch.KEYPROJECTCHECK_ID + LEFT JOIN BUS_OUTSOURCED bo ON bo.OUTSOURCED_ID = ch.OUTSOURCED_ID left join BUS_PERSONNELMANAGEMENT p on p.PERSONNELMANAGEMENT_ID = f.PERSONNELMANAGEMENT_ID where diff --git a/src/main/resources/mybatis/datasource/relatedparty/UnitsMapper.xml b/src/main/resources/mybatis/datasource/relatedparty/UnitsMapper.xml index 30d1958..d03b723 100644 --- a/src/main/resources/mybatis/datasource/relatedparty/UnitsMapper.xml +++ b/src/main/resources/mybatis/datasource/relatedparty/UnitsMapper.xml @@ -218,7 +218,7 @@ f LEFT JOIN sys_user u on f.CREATOR = u.USERNAME LEFT JOIN bus_corp_info c on u.CORPINFO_ID = c.CORPINFO_ID - where f.ISDELETE = '0' + where f.ISDELETE = '0' and u.ISDELETE = '0' and ( diff --git a/src/main/resources/mybatis/datasource/safetyMeeting/SafetyMeetingMapper.xml b/src/main/resources/mybatis/datasource/safetyMeeting/SafetyMeetingMapper.xml index 974f354..dba26be 100644 --- a/src/main/resources/mybatis/datasource/safetyMeeting/SafetyMeetingMapper.xml +++ b/src/main/resources/mybatis/datasource/safetyMeeting/SafetyMeetingMapper.xml @@ -88,7 +88,7 @@