From aecfc263a34ee79406a5aa16887bb69a3807a197 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Fri, 29 Jul 2022 16:18:15 +0800 Subject: [PATCH] fix --- src/main/resources/mapper/dapp/DappFundFlowDao.xml | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/dapp/DappFundFlowDao.xml b/src/main/resources/mapper/dapp/DappFundFlowDao.xml index f4578c8..fa8d4c8 100644 --- a/src/main/resources/mapper/dapp/DappFundFlowDao.xml +++ b/src/main/resources/mapper/dapp/DappFundFlowDao.xml @@ -48,6 +48,7 @@ <if test="status != null"> and a.status=#{status} </if> + order by a.id desc </select> <select id="selectAmountTotalByType" resultType="java.util.HashMap"> @@ -58,7 +59,7 @@ , MAX(if(type = 4, a.amount, 0)) teamReward from (select type, sum(amount) amount from dapp_fund_flow - where member_id=22 + where member_id=#{memberId} group by type ) a </select> -- Gitblit v1.9.1