From 0d74b08831ab8d77d065104985623c829b3e27f2 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Tue, 30 Mar 2021 11:11:15 +0800 Subject: [PATCH] modify --- src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml b/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml index 6e1fbeb..bfca65f 100644 --- a/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml +++ b/src/main/resources/mapper/documentary/FollowFollowerProfitDao.xml @@ -102,12 +102,12 @@ <select id="selectFollowerCntByTradeMemberId" resultType="java.lang.Integer"> select count(1) from follow_follower_profit - where trade_member_id=#{tradeMemberId} + where trade_member_id=#{tradeMemberId} and is_follow = 1 </select> <select id="selectAllFollowerProfit" resultType="java.math.BigDecimal"> select sum(total_profit) from follow_follower_profit - where trade_member_id=#{tradeMemberId} and is_follow = 1 + where trade_member_id=#{tradeMemberId} </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1