From f757b44cf6e8ebc1a8942c9ded338544d7485d24 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Fri, 21 May 2021 17:53:47 +0800 Subject: [PATCH] modify --- src/main/resources/mapper/otc/OtcEntrustOrderDao.xml | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml index fcfc65c..9b8f5e0 100644 --- a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml +++ b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml @@ -17,13 +17,14 @@ 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 + a.status=1 and a.remain_coin_amount > 0 <if test="record != null"> <if test="record.type != null and record.type!=''"> and order_type = #{record.type} </if> </if> </where> + order by a.create_time desc </select> <select id="selectEntrustOrderByOrderType" resultType="com.xcong.excoin.modules.otc.entity.OtcEntrustOrder"> @@ -39,7 +40,7 @@ and status != #{record.status} </if> <if test="record.status != null and record.status != 3"> - and status == #{record.status} + and status = #{record.status} </if> </where> </select> @@ -57,9 +58,10 @@ and status != #{record.status} </if> <if test="record.status != null and record.status != 3"> - and status == #{record.status} + and status = #{record.status} </if> </where> + order by create_time desc </select> <update id="updateRemainAmount"> -- Gitblit v1.9.1