From df51a79a9e09e0273cc50d966ad136efe8b99100 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 01 Mar 2022 10:46:32 +0800 Subject: [PATCH] Merge branch 'bea' of http://120.27.238.55:7000/r/exchange into bea --- src/main/resources/mapper/walletCoinOrder/GbzOrderDao.xml | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/walletCoinOrder/GbzOrderDao.xml b/src/main/resources/mapper/walletCoinOrder/GbzOrderDao.xml index 36a6b2b..187d6e1 100644 --- a/src/main/resources/mapper/walletCoinOrder/GbzOrderDao.xml +++ b/src/main/resources/mapper/walletCoinOrder/GbzOrderDao.xml @@ -4,6 +4,25 @@ <select id="selectInPage" resultType="com.xcong.excoin.modules.coin.entity.GbzOrderEntity"> select * from gbz_order + <where> + <if test="record != null" > + <if test="record.memberId != null"> + member_id=#{record.memberId} + </if> + </if> + </where> order by create_time desc </select> + + <select id="selectOrderTotalAmount" resultType="java.math.BigDecimal"> + select sum(cnt) + from gbz_order + where member_id=#{memberId} and status=1 + </select> + + <update id="updateStatus"> + update gbz_order + set status = 2 + where member_id=#{memberId} + </update> </mapper> \ No newline at end of file -- Gitblit v1.9.1