From c561a9b16605ce948e8d4edeb5dc8c301887eea1 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Mon, 31 May 2021 15:35:03 +0800 Subject: [PATCH] modify --- src/main/resources/mapper/otc/OtcEntrustOrderDao.xml | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml index 58828f6..e93f83c 100644 --- a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml +++ b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml @@ -29,9 +29,9 @@ and order_type = #{record.type} </if> </if> - and and a.member_id not in (select black_member_id from otc_black_list x where x.member_id=#{memberId}) + and a.member_id not in (select black_member_id from otc_black_list x where x.member_id=#{record.memberId}) </where> - order by a.create_time desc + order by a.unit_price desc </select> <select id="selectEntrustOrderByOrderType" resultType="com.xcong.excoin.modules.otc.entity.OtcEntrustOrder"> @@ -51,6 +51,10 @@ <if test="record.status != null and record.status != 3"> and a.status = #{record.status} </if> + + <if test="record.isDefualt != null"> + and b.is_defualt = #{record.isDefualt} + </if> </where> </select> -- Gitblit v1.9.1