From 0eb68e935e7a09fb2c20abb0276bdf4e4f554c5d Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 26 May 2021 14:40:58 +0800 Subject: [PATCH] modify --- src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml b/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml index d66f75b..d5d3cae 100644 --- a/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml +++ b/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml @@ -11,9 +11,30 @@ <if test="record.type != null and record.type != '' "> and t.is_set_frist = #{record.type} </if> + <if test="record.nickname != null and record.nickname != '' "> + and t.nickname like concat('%',#{record.nickname},'%') + </if> </where> - - order by f.id desc + order by + <if test="record.totalProfitRatioSc != null and record.totalProfitRatioSc != '' and record.totalProfitRatioSc == 1" > + f.total_profit_ratio, + </if> + <if test="record.totalProfitRatioSc != null and record.totalProfitRatioSc != '' and record.totalProfitRatioSc == 2" > + f.total_profit_ratio desc, + </if> + <if test="record.winRateSc != null and record.winRateSc != '' and record.winRateSc == 1" > + f.win_rate, + </if> + <if test="record.winRateSc != null and record.winRateSc != '' and record.winRateSc == 2" > + f.win_rate desc, + </if> + <if test="record.totalFollowerCntSc != null and record.totalFollowerCntSc != '' and record.totalFollowerCntSc == 1" > + f.total_follower_cnt, + </if> + <if test="record.totalFollowerCntSc != null and record.totalFollowerCntSc != '' and record.totalFollowerCntSc == 2" > + f.total_follower_cnt desc, + </if> + f.id desc </select> <select id="selectOneByMemberId" resultType="com.xcong.excoin.modules.documentary.vo.FollowTraderProfitInfoVo"> -- Gitblit v1.9.1