From 19a0ffbf9653be38d3f366fc25cda8357e534086 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 26 Mar 2021 10:03:37 +0800
Subject: [PATCH] Merge branch 'activity' of http://120.27.238.55:7000/r/exchange into activity

---
 src/main/resources/mapper/contract/ContractOrderDao.xml |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/contract/ContractOrderDao.xml b/src/main/resources/mapper/contract/ContractOrderDao.xml
index d0441d5..ff042eb 100644
--- a/src/main/resources/mapper/contract/ContractOrderDao.xml
+++ b/src/main/resources/mapper/contract/ContractOrderDao.xml
@@ -97,4 +97,14 @@
         reward_ratio=#{rewardRatio}
         where id=#{id}
     </update>
+
+    <select id="getBurstUsdtByMemberId" resultType="java.math.BigDecimal">
+        SELECT
+            IFNULL(SUM(reward_amount), 0)
+        FROM
+            contract_order
+        WHERE
+            closing_type IN (4, 5)
+            and member_id=#{memberId}
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1