From 4f7e387ba7a50608cc7978fdde5dd02a93a84f5c Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 06 Aug 2020 18:04:03 +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