From 027353245753ae6e4d027f62ca96f8a82b34c6d1 Mon Sep 17 00:00:00 2001
From: 15036302109 <zhp5211314>
Date: Wed, 27 Mar 2024 10:39:08 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E6=82=A3=E4=BF=A1=E6=81=AF=E6=9D=A1?=
 =?UTF-8?q?=E4=BB=B6=E6=9F=A5=E8=AF=A2=E6=8A=A5=E9=94=99bug=E4=BF=AE?=
 =?UTF-8?q?=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../src/main/resources/mapper/ehs/EhsHiddenDangerMapper.xml     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ruoyi-system/src/main/resources/mapper/ehs/EhsHiddenDangerMapper.xml b/ruoyi-system/src/main/resources/mapper/ehs/EhsHiddenDangerMapper.xml
index c56cc01..a9376a4 100644
--- a/ruoyi-system/src/main/resources/mapper/ehs/EhsHiddenDangerMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/ehs/EhsHiddenDangerMapper.xml
@@ -59,7 +59,7 @@ FROM ehs_hidden_danger h  LEFT JOIN sys_dept d ON h.dept_id = d.dept_id
             <if test="checkType != null  and checkType != ''"> and check_type like concat('%', #{checkType}, '%')</if>
             <if test="hiddenDangerImg != null  and hiddenDangerImg != ''"> and hidden_danger_img = #{hiddenDangerImg}</if>
             <if test="rectifyMeasure != null  and rectifyMeasure != ''"> and rectify_measure like concat('%', #{rectifyMeasure}, '%')</if>
-            <if test="status != null  and status != ''"> and status like concat('%', #{status}, '%')</if>
+            <if test="status != null  and status != ''"> and h.status = #{status}</if>
             <if test="params.beginRectifyTime != null and params.beginRectifyTime != '' and params.endRectifyTime != null and params.endRectifyTime != ''">
                     and rectify_time between #{params.beginRectifyTime} and #{params.endRectifyTime}</if>
             <if test="principalName != null "> and principal_name like concat('%', #{principalName}, '%')</if>