From 7be0d5b901b999d2347774df3cc1a64927838bb3 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期二, 15 四月 2025 10:10:35 +0800
Subject: [PATCH] 优化每年专项数据获取

---
 src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml b/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml
index 8b5c518..3d6550b 100644
--- a/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml
+++ b/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml
@@ -384,6 +384,7 @@
         left join tr_hidden_danger_check  c  on  c.check_id = a.check_id
         left join tr_troubleshoot_type  b  on  c.troubleshoot_type_id = b.type_id
     </sql>
+
     <!-- todo 查隐患台账-->
     <select id="selectHiddenDangerCheckPointListNewCount" parameterType="HiddenDangerCheckPoint"
             resultMap="HiddenDangerCheckPointResult">
@@ -418,6 +419,8 @@
             </if>
             <if test="acceptStatus != null  and acceptStatus != ''">and a.accept_status  = #{acceptStatus}</if>
             <if test="dangerSources != null  and dangerSources != ''">and a.danger_sources = #{dangerSources}</if>
+            <if test="dangerName != null  and dangerName != ''">and a.danger_name like concat('%', #{dangerName}, '%')
+            </if>
 
 <!--            <if test="rectifyUserIdIsNotNull != null  and rectifyUserIdIsNotNull != ''">and a.rectify_user_id is not null</if>-->
 

--
Gitblit v1.9.2