From d5ffb71a7359e7ce81c43930c3503c4c03e5309c Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Sun, 07 Jul 2024 10:55:45 +0800
Subject: [PATCH] 逻辑
---
src/main/resources/mapper/dapp/DappStorageMapper.xml | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/dapp/DappStorageMapper.xml b/src/main/resources/mapper/dapp/DappStorageMapper.xml
index 7daaa38..034ba0b 100644
--- a/src/main/resources/mapper/dapp/DappStorageMapper.xml
+++ b/src/main/resources/mapper/dapp/DappStorageMapper.xml
@@ -50,6 +50,30 @@
</select>
+ <select id="selectOneByCreateTimeDesc" resultType="cc.mrbird.febs.dapp.entity.DappStorage">
+ SELECT
+ *
+ FROM
+ dapp_storage
+ ORDER BY
+ create_time DESC
+ limit #{offset},#{count}
+ </select>
+
+
+ <select id="selectByAmountDesc" resultType="cc.mrbird.febs.dapp.entity.DappStorage">
+ SELECT
+ *
+ FROM
+ dapp_storage
+ where
+ date_format(create_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d')
+ ORDER BY
+ amount DESC
+ limit #{offset},#{count}
+ </select>
+
+
<select id="selectAmountByAmountDesc" resultType="cc.mrbird.febs.dapp.entity.DappStorage">
select
*
@@ -78,4 +102,14 @@
</select>
+ <select id="selectListGroupByMemberId" resultType="cc.mrbird.febs.dapp.entity.DappStorage">
+ SELECT
+ member_id
+ FROM
+ dapp_storage
+ GROUP BY
+ member_id
+ </select>
+
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1