From d64d7dbfdf18ad49063bb3e6fdc4a02022e0704a Mon Sep 17 00:00:00 2001 From: chenpeng <864697444@qq.com> Date: Tue, 10 Dec 2024 17:28:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=89=E5=85=A8=E4=B8=80=E5=BC=A0?= =?UTF-8?q?=E5=9B=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/SafetyRiskEventInfoMapper.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/city-sjdz-services-biz/city-sjdz-base/city-sjdz-base-biz/src/main/resources/mapper/SafetyRiskEventInfoMapper.xml b/city-sjdz-services-biz/city-sjdz-base/city-sjdz-base-biz/src/main/resources/mapper/SafetyRiskEventInfoMapper.xml index b6142b1..1edc739 100644 --- a/city-sjdz-services-biz/city-sjdz-base/city-sjdz-base-biz/src/main/resources/mapper/SafetyRiskEventInfoMapper.xml +++ b/city-sjdz-services-biz/city-sjdz-base/city-sjdz-base-biz/src/main/resources/mapper/SafetyRiskEventInfoMapper.xml @@ -124,6 +124,8 @@ and eve.area_code = #{areaCode} and TRUNC(warning_time) >= TRUNC(SYSDATE - INTERVAL '30' DAY) + AND risklevel is NOT NULL AND report_object IS NOT NULL + and current_status != '作废' AND risklevel = #{levelName} GROUP BY @@ -140,6 +142,8 @@ FROM safety_risk_event_info where area_name IS NOT NULL and TRUNC(warning_time) >= TRUNC(SYSDATE - INTERVAL '30' DAY) + AND risklevel is NOT NULL AND report_object IS NOT NULL + and current_status != '作废' GROUP BY area_name @@ -151,6 +155,8 @@ FROM safety_risk_event_info where event_type IS NOT NULL and TRUNC(warning_time) >= TRUNC(SYSDATE - INTERVAL '30' DAY) + AND risklevel is NOT NULL AND report_object IS NOT NULL + and current_status != '作废' GROUP BY event_type ORDER BY total desc -- GitLab