From ebfc58cb638f4d5babf70ed73dd4120cb42bafb5 Mon Sep 17 00:00:00 2001 From: guoshengxiong <1923636941@qq.com> Date: Thu, 16 May 2024 15:11:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E7=A7=8D=E4=BD=9C=E4=B8=9A=E4=BA=BA?= =?UTF-8?q?=E5=91=98bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../special/entity/XzBlindPlatePlugSafe.java | 16 ++++++++++++++ .../xz/special/entity/XzHoistSafetyWork.java | 12 ++++++---- .../entity/XzTemporaryElectricitySafe.java | 4 +++- .../mapper/xml/XzBlindPlatePlugSafeMapper.xml | 16 ++++++++++++-- .../mapper/xml/XzGroundSafetMapper.xml | 16 ++++++++++++-- .../mapper/xml/XzHighJobSafeMapper.xml | 17 +++++++++++--- .../mapper/xml/XzHoistSafetyWorkMapper.xml | 22 +++++++++++++++++-- .../mapper/xml/XzLimitSpaceSafeMapper.xml | 16 ++++++++++++-- .../mapper/xml/XzOpenCircuitSafeMapper.xml | 16 ++++++++++++-- .../XzSpecialOperationFireSafetyMapper.xml | 14 +++++++++++- .../xml/XzTemporaryElectricitySafeMapper.xml | 18 +++++++++++++-- 11 files changed, 146 insertions(+), 21 deletions(-) diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzBlindPlatePlugSafe.java b/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzBlindPlatePlugSafe.java index 74f2ad852..a14748f8c 100644 --- a/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzBlindPlatePlugSafe.java +++ b/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzBlindPlatePlugSafe.java @@ -156,6 +156,22 @@ public class XzBlindPlatePlugSafe implements Serializable { private String pipelineParameter; @ApiModelProperty(value = "盲板参数") private String blindPlateParameter; + /** + * 作业实施时间开始 + */ + @Excel(name = "作业实施时间开始", width = 20, format = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "作业实施时间开始") + private java.util.Date workExecutionBeginTime; + /** + * 作业实施时间结束 + */ + @Excel(name = "作业实施时间结束", width = 20, format = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "作业实施时间结束") + private java.util.Date workExecutionEndTime; /** * 作业申请单位名称 */ diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzHoistSafetyWork.java b/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzHoistSafetyWork.java index 134ea0b5d..1576d11cc 100644 --- a/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzHoistSafetyWork.java +++ b/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzHoistSafetyWork.java @@ -169,6 +169,8 @@ public class XzHoistSafetyWork implements Serializable { @Excel(name = "作业负责人", width = 15) @ApiModelProperty(value = "作业负责人") private java.lang.Long assignmentPersonInCharge; + @ApiModelProperty(value = "吊装作业人") + private Long hoistJobPerson; /** * 作业负责人名称 */ @@ -192,12 +194,12 @@ public class XzHoistSafetyWork implements Serializable { private String operatingUnitName; /** - * 作业人名称 + * 吊装作业人名称 */ @TableField(exist = false) - @Excel(name = "作业人名称", width = 15) - @ApiModelProperty(value = "作业人名称") - private String jobPersonName; + @Excel(name = "吊装作业人名称", width = 15) + @ApiModelProperty(value = "吊装作业人名称") + private String hoistJobPersonName; /** * 监护人名称 @@ -240,4 +242,6 @@ public class XzHoistSafetyWork implements Serializable { @ApiModelProperty(value = "1未开始,2进行中(在施),3超期,4已完工") private Integer engineeringState; + @ApiModelProperty(value = "指挥人员名称") + private String commanderName; } diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzTemporaryElectricitySafe.java b/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzTemporaryElectricitySafe.java index 6fb93b60e..e5959ad6d 100644 --- a/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzTemporaryElectricitySafe.java +++ b/src/main/java/com/zhgd/xmgl/modules/xz/special/entity/XzTemporaryElectricitySafe.java @@ -143,7 +143,7 @@ public class XzTemporaryElectricitySafe implements Serializable { */ @Excel(name = "用电人", width = 15) @ApiModelProperty(value = "用电人") - private String electricityCustomer; + private Long electricityCustomer; /** * 电工证号1 @@ -270,6 +270,8 @@ public class XzTemporaryElectricitySafe implements Serializable { @ApiModelProperty(value = "接受交底人名称") private String acceptTheInformantName; + @ApiModelProperty(value = "用电人名称") + private String electricityCustomerName; @TableField(exist = false) @ApiModelProperty(value = "安全隐患总数") diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzBlindPlatePlugSafeMapper.xml b/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzBlindPlatePlugSafeMapper.xml index 41af5e4e9..3ec5d9858 100644 --- a/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzBlindPlatePlugSafeMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzBlindPlatePlugSafeMapper.xml @@ -10,7 +10,19 @@ wi2.worker_name as safetyInformantName, wi3.worker_name as acceptTheInformantName, wi4.worker_name as guardianName, - IFNULL(tp.hidden_danger_num, 0) hidden_danger_num + IFNULL(tp.hidden_danger_num, 0) hidden_danger_num, + (case + when t.final_acceptance_status = 2 then 4 + when t.work_execution_begin_time is not null and t.work_execution_begin_time != '' and + t.work_execution_begin_time > DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') + then 1 + when t.work_execution_begin_time is not null and t.work_execution_begin_time != '' and + t.work_execution_end_time is not null and + t.work_execution_end_time != '' + and t.work_execution_end_time >= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') and + t.work_execution_begin_time <= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') + then 2 + else 3 END) as engineering_state select @@ -33,7 +45,7 @@ and enterprise_id = #{param.engineeringId} AND `status` in (2, 3, 4) - AND type = 1 + AND type = 4 GROUP BY engineering_id) tp ON t.id = tp.engineering_id diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzHighJobSafeMapper.xml b/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzHighJobSafeMapper.xml index f3835912c..2f8ee9e25 100644 --- a/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzHighJobSafeMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzHighJobSafeMapper.xml @@ -10,7 +10,19 @@ wi2.worker_name as safetyInformantName, wi3.worker_name as acceptTheInformantName, wi4.worker_name as guardianName, - IFNULL(tp.hidden_danger_num, 0) hidden_danger_num + IFNULL(tp.hidden_danger_num, 0) hidden_danger_num, + (case + when t.final_acceptance_status = 2 then 4 + when t.work_execution_begin_time is not null and t.work_execution_begin_time != '' and + t.work_execution_begin_time > DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') + then 1 + when t.work_execution_begin_time is not null and t.work_execution_begin_time != '' and + t.work_execution_end_time is not null and + t.work_execution_end_time != '' + and t.work_execution_end_time >= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') and + t.work_execution_begin_time <= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') + then 2 + else 3 END) as engineering_state select @@ -33,8 +45,7 @@ and enterprise_id = #{param.engineeringId} AND `status` in (2, 3, 4) - AND type = 1 - GROUP BY engineering_id) tp ON t.id = tp.engineering_id + AND type = 5 BY engineering_id) tp ON t.id = tp.engineering_id diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzLimitSpaceSafeMapper.xml b/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzLimitSpaceSafeMapper.xml index 2d10ac1e7..812883c60 100644 --- a/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzLimitSpaceSafeMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzLimitSpaceSafeMapper.xml @@ -10,7 +10,19 @@ wi2.worker_name as safetyInformantName, wi3.worker_name as acceptTheInformantName, wi4.worker_name as guardianName, - IFNULL(tp.hidden_danger_num, 0) hidden_danger_num + IFNULL(tp.hidden_danger_num, 0) hidden_danger_num, + (case + when t.final_acceptance_status = 2 then 4 + when t.work_execution_begin_time is not null and t.work_execution_begin_time != '' and + t.work_execution_begin_time > DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') + then 1 + when t.work_execution_begin_time is not null and t.work_execution_begin_time != '' and + t.work_execution_end_time is not null and + t.work_execution_end_time != '' + and t.work_execution_end_time >= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') and + t.work_execution_begin_time <= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') + then 2 + else 3 END) as engineering_state select @@ -33,7 +45,7 @@ and enterprise_id = #{param.engineeringId} AND `status` in (2, 3, 4) - AND type = 1 + AND type = 6 GROUP BY engineering_id) tp ON t.id = tp.engineering_id diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzSpecialOperationFireSafetyMapper.xml b/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzSpecialOperationFireSafetyMapper.xml index 0f295d60a..cc7a7732c 100644 --- a/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzSpecialOperationFireSafetyMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzSpecialOperationFireSafetyMapper.xml @@ -10,7 +10,19 @@ wi2.worker_name as safetyInformantName, wi3.worker_name as acceptTheInformantName, wi4.worker_name as guardianName, - IFNULL(tp.hidden_danger_num, 0) hidden_danger_num + IFNULL(tp.hidden_danger_num, 0) hidden_danger_num, + (case + when t.final_acceptance_status = 2 then 4 + when t.hot_work_execution_begin_time is not null and t.hot_work_execution_begin_time != '' and + t.hot_work_execution_begin_time > DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') + then 1 + when t.hot_work_execution_begin_time is not null and t.hot_work_execution_begin_time != '' and + t.hot_work_execution_end_time is not null and + t.hot_work_execution_end_time != '' + and t.hot_work_execution_end_time >= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') and + t.hot_work_execution_begin_time <= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') + then 2 + else 3 END) as engineering_state select diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzTemporaryElectricitySafeMapper.xml b/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzTemporaryElectricitySafeMapper.xml index b400dac20..27111b676 100644 --- a/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzTemporaryElectricitySafeMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/xz/special/mapper/xml/XzTemporaryElectricitySafeMapper.xml @@ -9,7 +9,20 @@ wi2.worker_name as safetyInformantName, wi3.worker_name as acceptTheInformantName, wi4.worker_name as guardianName, - IFNULL(tp.hidden_danger_num, 0) hidden_danger_num + wi5.worker_name as electricityCustomerName, + IFNULL(tp.hidden_danger_num, 0) hidden_danger_num, + (case + when t.final_acceptance_status = 2 then 4 + when t.work_execution_begin_time is not null and t.work_execution_begin_time != '' and + t.work_execution_begin_time > DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') + then 1 + when t.work_execution_begin_time is not null and t.work_execution_begin_time != '' and + t.work_execution_end_time is not null and + t.work_execution_end_time != '' + and t.work_execution_end_time >= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') and + t.work_execution_begin_time <= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') + then 2 + else 3 END) as engineering_state select @@ -21,6 +34,7 @@ left join worker_info wi2 on t.safety_informant = wi2.id left join worker_info wi3 on t.accept_the_informant = wi3.id left join worker_info wi4 on t.guardian = wi4.id + left join worker_info wi5 on t.electricity_customer = wi5.id LEFT JOIN (SELECT engineering_id, COUNT(1) hidden_danger_num from xz_security_quality_inspection_record where 1=1 @@ -31,7 +45,7 @@ and enterprise_id = #{param.engineeringId} AND `status` in (2, 3, 4) - AND type = 1 + AND type = 7 GROUP BY engineering_id) tp ON t.id = tp.engineering_id