From a57b2756ee1843be1c230959f5534e8d90abc463 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Tue, 26 Jul 2022 17:44:08 +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