From 6feca7b6f433cf4558ad8423d6eb0ff109880c78 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 02 Dec 2022 11:44:51 +0800
Subject: [PATCH] 20221130

---
 src/main/resources/mapper/dapp/DappSystemProfitDao.xml |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/dapp/DappSystemProfitDao.xml b/src/main/resources/mapper/dapp/DappSystemProfitDao.xml
index 02c7329..295147f 100644
--- a/src/main/resources/mapper/dapp/DappSystemProfitDao.xml
+++ b/src/main/resources/mapper/dapp/DappSystemProfitDao.xml
@@ -55,4 +55,39 @@
             limit 1
     </select>
 
+    <select id="selectSystemProfitInPage" resultType="cc.mrbird.febs.dapp.vo.AdminDappSystemProfitVo">
+        select
+               a.id id,
+               a.create_time createTime,
+               a.amount amount,
+               a.state state,
+               b.address address
+        from
+             dapp_system_profit a
+        inner 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 != '' and record.state != null">
+                and a.state = #{record.state}
+            </if>
+        </where>
+        order by a.id desc
+    </select>
+
+    <select id="selectSystemProfitFlowListInPage" resultType="cc.mrbird.febs.dapp.vo.AdminSystemProfitFlowListVo">
+        select
+        a.create_time createTime,
+        a.amount amount,
+        a.status status,
+        a.type type,
+        b.address address
+        from
+        dapp_fund_flow a
+        inner join dapp_member b on a.member_id = b.id
+        where a.system_profit_id = #{record.id}
+        order by a.create_time asc
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1