From a34ac17fa9106f23cddf0b9a9cf90f909ca8ccc6 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 04 Jul 2024 11:54:56 +0800
Subject: [PATCH] 逻辑

---
 src/main/resources/mapper/dapp/DappStorageMapper.xml |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/dapp/DappStorageMapper.xml b/src/main/resources/mapper/dapp/DappStorageMapper.xml
index cdb9b6a..788ebd5 100644
--- a/src/main/resources/mapper/dapp/DappStorageMapper.xml
+++ b/src/main/resources/mapper/dapp/DappStorageMapper.xml
@@ -46,7 +46,25 @@
         where
                 date_format(create_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d')
         order by amount desc
-            limit {offset},{count}
+            limit #{offset},#{count}
+    </select>
+
+    <select id="selectListInPage" resultType="cc.mrbird.febs.dapp.entity.DappStorage">
+        select
+        a.*,
+        b.address address
+        from
+        dapp_storage a
+        left join dapp_member b on a.member_id = b.id
+        <where>
+            <if test="record.address != '' and record.address != null">
+                and b.address = #{record.address}
+            </if>
+            <if test="record.state != null">
+                and a.state = #{record.state}
+            </if>
+        </where>
+        order by a.create_time desc
     </select>
 
 

--
Gitblit v1.9.1