From d7d36e784001dee535ec9ca0878e5302f0c6e2ff Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期四, 13 三月 2025 09:11:41 +0800
Subject: [PATCH] bug修改

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

diff --git a/ruoyi-system/src/main/resources/mapper/system/THouseMapper.xml b/ruoyi-system/src/main/resources/mapper/system/THouseMapper.xml
index 47b75b6..d5450f9 100644
--- a/ruoyi-system/src/main/resources/mapper/system/THouseMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/THouseMapper.xml
@@ -53,7 +53,7 @@
                 and (t2.start_time is not null)
             </if>
             <if test="req.leaseStatus == 1">
-                and (t2.start_time is null)
+                and (t2.start_time is null) and t1.lease_status = 1
             </if>
             AND t1.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
         </where>

--
Gitblit v1.7.1