From adb628d7646724beed23e53771bbf18a1b294cf0 Mon Sep 17 00:00:00 2001 From: zainali5120 <512061637@qq.com> Date: Sat, 20 Feb 2021 15:01:23 +0800 Subject: [PATCH] TRC20版本提交 --- src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml b/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml index 73cfc88..eb35811 100644 --- a/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml +++ b/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml @@ -3,8 +3,9 @@ <mapper namespace="com.xcong.excoin.modules.documentary.dao.FollowTraderProfitInfoDao"> <select id="selectFollowTraderProfitInfoEntity" resultType="com.xcong.excoin.modules.documentary.vo.FollowTraderProfitInfoVo"> - select * from follow_trader_profit_info - order by id desc + select * from follow_trader_profit_info f left join member m on f.member_id = m.id + where m.is_trader = 1 + order by f.id desc </select> <select id="selectOneByMemberId" resultType="com.xcong.excoin.modules.documentary.vo.FollowTraderProfitInfoVo"> @@ -31,5 +32,9 @@ and closing_type not in (4,5) order by opening_time desc </select> - + + <select id="selectTraderInfoProfitByMemberId" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderProfitInfoEntity"> + select * from follow_trader_profit_info + where member_id=#{memberId} + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1