From 11585c5133cd56c0cfb210d90bc979517e145151 Mon Sep 17 00:00:00 2001 From: liujun Date: Sun, 4 Feb 2024 17:42:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../highriskwork/AppHotworkCfdController.java | 42 ------------------- .../highriskwork/HotworkCfdMapper.xml | 3 -- 2 files changed, 45 deletions(-) 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 7db43429..558677ac 100644 --- a/src/main/java/com/zcloud/controller/app/highriskwork/AppHotworkCfdController.java +++ b/src/main/java/com/zcloud/controller/app/highriskwork/AppHotworkCfdController.java @@ -623,48 +623,6 @@ public class AppHotworkCfdController extends BaseController { } switch (status) { - // created by liu jun 2024-01-30 description: 安全项检查人签字 - case "0.9": { - if (files != null && files.length > 0) { - MultipartFile file = files[0]; - String ffile = DateUtil.getDays(); - String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")); - Smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile); - // 如果审批通过则进入下一阶段 - if (pd.get("APPROVAL_STATUS").equals("1")) { - pd2.put("APPLY_STATUS", "1"); - } else { - pd2.put("APPLY_STATUS", "-0.9"); - } - hotworkCfdService.edit(pd2); - PageData condition = new PageData(); - condition.put("HOTWORK_ID", pd2.get("HOTWORK_ID")); - condition.put("TYPE","2"); - condition.put("APPROVAL_SIGNATURE",Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName); - condition.put("APPROVAL_OPINIONS",pd.get("CONTENT")); - condition.put("APPROVAL_SIGNATURE_TIME",pd.get("SIGNER_TIME")); - condition.put("APPROVAL_STATUS",pd.getString("APPROVAL_STATUS")); - hotworkCfdService.approval(condition); - // 保存安全项信息 - hotworkToMeasuresCfdService.delete(pd2); - List list = (List) JSON.parse(pd.get("measuresList").toString()); - for (JSONObject json : list) { - PageData measures = new PageData(); - measures.put("HOTWORKTOMEASURES_ID", this.get32UUID()); // 主键 - measures.put("HOTWORK_ID", pd2.get("HOTWORK_ID")); - measures.put("BUS_HOTWORK_MEASURES_ID", json.get("BUS_HOTWORK_MEASURES_ID")); - measures.put("ANSWER1", json.get("ANSWER1")); - measures.put("ANSWER2", json.get("ANSWER2")); - measures.put("ANSWER3", json.get("ANSWER3")); - measures.put("ANSWER4", json.get("ANSWER4")); - measures.put("STATUS", json.get("STATUS")); - measures.put("CONFIRM_ID", pd.get("OPERATOR")); - measures.put("CONFIRM_NAME", pd.get("ACTION_USER")); - hotworkToMeasuresCfdService.save(measures); - } - } - break; - } // 作业负责人审批 case "2": {//确认 if (files != null && files.length > 0) { diff --git a/src/main/resources/mybatis/datasource/highriskwork/HotworkCfdMapper.xml b/src/main/resources/mybatis/datasource/highriskwork/HotworkCfdMapper.xml index 0098d7e9..34b7d9de 100644 --- a/src/main/resources/mybatis/datasource/highriskwork/HotworkCfdMapper.xml +++ b/src/main/resources/mybatis/datasource/highriskwork/HotworkCfdMapper.xml @@ -829,9 +829,6 @@ and f.ANALYZE_USER_ID = #{pd.ANALYZE_USER_ID} - - and f.BELONGING_USER_ID = #{pd.BELONGING_USER_ID} -