From 6ac0aeeea8834ad234623a321a64504a998c05d7 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 14 Nov 2022 17:34:52 +0800
Subject: [PATCH] 20221114,按日期查看资产
---
src/main/resources/mapper/dapp/DappAccountMoneyChangeDao.xml | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/dapp/DappAccountMoneyChangeDao.xml b/src/main/resources/mapper/dapp/DappAccountMoneyChangeDao.xml
index 546f861..5688825 100644
--- a/src/main/resources/mapper/dapp/DappAccountMoneyChangeDao.xml
+++ b/src/main/resources/mapper/dapp/DappAccountMoneyChangeDao.xml
@@ -63,4 +63,38 @@
order by a.create_time desc
</select>
+ <select id="selectMoneyTotalInPage" resultType="cc.mrbird.febs.dapp.vo.AdminMoneyTotalVo">
+ SELECT
+ *
+ FROM
+ (
+ SELECT
+ date_format(create_time, '%Y-%m-%d') createTime
+ FROM
+ member_coin_charge
+ <where>
+ <if test="record.description!=null and record.description!=''">
+ and (member_id in (select id from dapp_member where FIND_IN_SET(#{record.description}, referer_ids)))
+ </if>
+ </where>
+ GROUP BY
+ date_format(create_time, '%Y-%m-%d')
+ UNION
+ SELECT
+ date_format(create_time, '%Y-%m-%d') createTime
+ FROM
+ member_coin_withdraw
+ <where>
+ is_inside = 'N'
+ <if test="record.description!=null and record.description!=''">
+ and (member_id in (select id from dapp_member where FIND_IN_SET(#{record.description}, referer_ids)))
+ </if>
+ </where>
+ GROUP BY
+ date_format(create_time, '%Y-%m-%d')
+ ) as a
+ ORDER BY
+ a.createTime DESC
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1