From 24af1542a06151bd81d214a3db1960b7e83388a8 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期五, 07 三月 2025 15:00:30 +0800
Subject: [PATCH] 权限

---
 ruoyi-system/src/main/resources/mapper/system/TCheckAcceptRecordMapper.xml |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/TCheckAcceptRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TCheckAcceptRecordMapper.xml
index 6c81ca8..f0f1693 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TCheckAcceptRecordMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TCheckAcceptRecordMapper.xml
@@ -90,8 +90,11 @@
         left join t_house h on t.house_id = h.id
         <where>
 
-            <if test="query.status != null and query.status != ''">
-                AND t.status = #{query.status}
+            <if test="query.status != null and query.status != '' and query.status == 1">
+                AND t.status = 0
+            </if>
+            <if test="query.status != null and query.status != '' and query.status == 2">
+                AND t.status = 1
             </if>
             <if test="query.houseNameOrAddress != null and query.houseNameOrAddress != ''">
                 AND (h.house_name LIKE concat('%', #{query.houseNameOrAddress}, '%') or h.house_address LIKE concat('%', #{query.houseNameOrAddress}, '%'))

--
Gitblit v1.7.1