From cfef703dffc6488977a728c8d89f2a00f5d62d67 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 07 Aug 2020 09:56:29 +0800
Subject: [PATCH] Merge branch 'follow' of https://gitee.com/chonggaoxiao/new_excoin into follow
---
src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml b/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml
index 4ad0d24..4bc3f36 100644
--- a/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml
+++ b/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml
@@ -84,4 +84,10 @@
and trade_id = #{traderId}
</select>
+ <update id="updateFollowerProfitByTradeMemberId">
+ update follow_follower_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