From 83377286133fbf56ca2bbfe106f3dccf30c33f85 Mon Sep 17 00:00:00 2001
From: GUO <1923636941@qq.com>
Date: Mon, 3 Jun 2024 23:04:49 +0800
Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...zSecurityQualityInspectionRecordMapper.xml | 2 +-
.../mapper/xml/XzEmergencyRecordMapper.xml | 7 ++++
.../mapper/xml/XzBlindPlatePlugSafeMapper.xml | 36 ++++++++++++++-----
3 files changed, 35 insertions(+), 10 deletions(-)
diff --git a/src/main/java/com/zhgd/xmgl/modules/xz.security/mapper/xml/XzSecurityQualityInspectionRecordMapper.xml b/src/main/java/com/zhgd/xmgl/modules/xz.security/mapper/xml/XzSecurityQualityInspectionRecordMapper.xml
index f48373fc6..018727b25 100644
--- a/src/main/java/com/zhgd/xmgl/modules/xz.security/mapper/xml/XzSecurityQualityInspectionRecordMapper.xml
+++ b/src/main/java/com/zhgd/xmgl/modules/xz.security/mapper/xml/XzSecurityQualityInspectionRecordMapper.xml
@@ -606,7 +606,7 @@
su.real_name as workerName
from xz_security_quality_inspection_record t
- left join system_user su on su.user_id = t.change_id
+ join system_user su on su.user_id = t.change_id
WHERE record_type = 1
and t.status != 6
and project_sn = #{param.projectSn}
diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/emergency/mapper/xml/XzEmergencyRecordMapper.xml b/src/main/java/com/zhgd/xmgl/modules/xz/emergency/mapper/xml/XzEmergencyRecordMapper.xml
index 384ffea9c..f9251bfbd 100644
--- a/src/main/java/com/zhgd/xmgl/modules/xz/emergency/mapper/xml/XzEmergencyRecordMapper.xml
+++ b/src/main/java/com/zhgd/xmgl/modules/xz/emergency/mapper/xml/XzEmergencyRecordMapper.xml
@@ -60,6 +60,13 @@
join xz_emergency_type xet on xet.id = t.emergency_type_id
where t.project_sn = #{param.projectSn} and t.alarm_time >= current_date
group by t.emergency_type_id
+ union all
+ select count(*) as count,
+ '一键报警' as name,
+ t.emergency_type_id as enumType
+ from xz_emergency_record t
+ where t.project_sn = #{param.projectSn} and t.alarm_time >= current_date
+ and t.emergency_type_id = -1
-
+
+ SELECT
+ DATE_FORMAT( DATE_ADD( CONCAT( date_sub(current_date,interval 7 day) ), INTERVAL ( help_topic_id ) DAY ), '%Y-%m-%d' ) DT
+ FROM
+ mysql.help_topic
+ WHERE
+ help_topic_id <= TIMESTAMPDIFF(
+ DAY,
+ CONCAT( date_sub(current_date,interval 7 day) ),
+ CONCAT( current_date ))
+