From ab4f788aaba47910e3edf0fe1b001e56cdea26db Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 20 May 2021 16:54:19 +0800
Subject: [PATCH] modify

---
 src/main/resources/mapper/otc/OtcEntrustOrderDao.xml |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml
index 324c12c..d469525 100644
--- a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml
+++ b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml
@@ -24,6 +24,7 @@
                 </if>
             </if>
         </where>
+        order by a.create_time desc
     </select>
 
     <select id="selectEntrustOrderByOrderType" resultType="com.xcong.excoin.modules.otc.entity.OtcEntrustOrder">
@@ -44,6 +45,25 @@
         </where>
     </select>
 
+    <select id="selectOwnEntrustListInPage" resultType="com.xcong.excoin.modules.otc.entity.OtcEntrustOrder">
+        select * from otc_entrust_order
+        <where>
+            <if test="record.orderType != null and record.orderType != ''" >
+                and order_type = #{record.orderType}
+            </if>
+            <if test="record.memberId != null">
+                and member_id = #{record.memberId}
+            </if>
+            <if test="record.status != null and record.status == 3">
+                and status != #{record.status}
+            </if>
+            <if test="record.status != null and record.status != 3">
+                and status == #{record.status}
+            </if>
+        </where>
+        order by create_time desc
+    </select>
+
     <update id="updateRemainAmount">
         update otc_entrust_order
         set remain_coin_amount = remain_coin_amount + ${amount}

--
Gitblit v1.9.1