From 8ffb450a79194fc77bfc09eb867677e842121bc4 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期三, 19 二月 2025 09:38:05 +0800
Subject: [PATCH] 小程序登录

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

diff --git a/ruoyi-system/src/main/resources/mapper/system/TCheckAcceptRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TCheckAcceptRecordMapper.xml
index 2e99a8c..42b13b5 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TCheckAcceptRecordMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TCheckAcceptRecordMapper.xml
@@ -76,5 +76,44 @@
         </where>
         ORDER BY t.create_time DESC
     </select>
+    <select id="pageListApplet" resultType="com.ruoyi.system.vo.TCheckAcceptRecordVO">
+        select
+        t.id,
+        t.contract_id,
+        t.house_id,
+        t.check_time,
+        t.lease_reason,
+        t.check_person,
+        t.accompany_person,
+        t.overall_situation,
+        t.furniture_situation,
+        t.device_situation,
+        t.clean_situation,
+        t.other_problem,
+        t.pictures,
+        t.check_result,
+        t.check_money,
+        t.create_time,
+        t.update_time,
+        t.create_by,
+        t.update_by,
+        t.disabled,
+        c.contract_number,
+        h.house_name
+        from t_check_accept_record t
+        left join t_contract c on t.contract_id = c.id
+        left join t_house h on t.house_id = h.id
+        <where>
+
+            <if test="query.status != null">
+                AND t.status = #{query.status}
+            </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}, '%'))
+            </if>
+            AND t.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
+        </where>
+        ORDER BY t.create_time DESC
+    </select>
 
 </mapper>

--
Gitblit v1.7.1