From 183f7ace7ed8de8fe36e36b67c49b0b2ad24ac95 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 07 Aug 2020 09:56:23 +0800
Subject: [PATCH] modify

---
 src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml b/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml
index 61f15b5..4bc3f36 100644
--- a/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml
+++ b/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml
@@ -86,7 +86,8 @@
 
 	<update id="updateFollowerProfitByTradeMemberId">
 		update follow_follower_profit
-		set total_principal=#{principal}, total_profit=#{profit}
+		set total_principal=total_principal+#{principal},
+		total_profit=total_profit+#{profit}
 		where trade_member_id=#{tradeMemberId} and member_id=#{memberId}
 	</update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1