From d8fb05f44d8969921b7128d92be282176475ee80 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 20 May 2021 10:32:13 +0800 Subject: [PATCH] modify --- src/main/resources/mapper/otc/OtcEntrustOrderDao.xml | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml index 6686dce..324c12c 100644 --- a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml +++ b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml @@ -6,7 +6,7 @@ select a.id, b.id mbId - ,b.nikename nickname + ,c.name nickname ,a.unit_price unitPrice ,a.remain_coin_amount amount ,a.limit_min_amount min @@ -14,7 +14,8 @@ ,b.total_order_cnt orderCnt ,b.finish_ratio finishRatio from otc_entrust_order a - left join otc_market_bussiness b on a.mb_id=b.id + left join otc_market_bussiness b on a.member_id=b.member_id + left join member c on a.member_id=c.id <where> a.status=1 <if test="record != null"> @@ -42,4 +43,10 @@ </if> </where> </select> + + <update id="updateRemainAmount"> + update otc_entrust_order + set remain_coin_amount = remain_coin_amount + ${amount} + where id=#{id} + </update> </mapper> \ No newline at end of file -- Gitblit v1.9.1