From e9021602c042efff49267e7a164ab403ad00401d Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 26 Mar 2021 14:06:01 +0800
Subject: [PATCH] 20210325  交易员头部信息

---
 src/main/resources/mapper/contract/ContractOrderDao.xml                  |    2 +-
 src/main/resources/mapper/documentary/FollowFollowerOrderRelationDao.xml |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/contract/ContractOrderDao.xml b/src/main/resources/mapper/contract/ContractOrderDao.xml
index 8dea86b..ff042eb 100644
--- a/src/main/resources/mapper/contract/ContractOrderDao.xml
+++ b/src/main/resources/mapper/contract/ContractOrderDao.xml
@@ -60,7 +60,7 @@
     </select>
 
     <select id="selectFollowOrderTotalProfitByMemberId" resultType="java.math.BigDecimal">
-        select IFNULL(sum(reward_ratio)*100, 0)
+        select sum(reward_ratio)*100
         from contract_order
         where member_id=#{memberId} and contract_type=2
     </select>
diff --git a/src/main/resources/mapper/documentary/FollowFollowerOrderRelationDao.xml b/src/main/resources/mapper/documentary/FollowFollowerOrderRelationDao.xml
index 7ef1015..374d8e0 100644
--- a/src/main/resources/mapper/documentary/FollowFollowerOrderRelationDao.xml
+++ b/src/main/resources/mapper/documentary/FollowFollowerOrderRelationDao.xml
@@ -40,7 +40,7 @@
 	</select>
 
 	<select id="selectTraderTotalProfitSelf" resultType="java.math.BigDecimal">
-		select IFNULL(sum(reward_amount), 0)
+		select sum(reward_amount)
 		from contract_order
 		where member_id=#{memberId} and contract_type=2
 	</select>

--
Gitblit v1.9.1