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/OtcOrderDao.xml |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/otc/OtcOrderDao.xml b/src/main/resources/mapper/otc/OtcOrderDao.xml
index 5c21413..d5bb0d4 100644
--- a/src/main/resources/mapper/otc/OtcOrderDao.xml
+++ b/src/main/resources/mapper/otc/OtcOrderDao.xml
@@ -37,4 +37,18 @@
             </if>
         </where>
     </select>
+
+    <update id="updateOrderStatusByOrderNo">
+        update otc_order
+        set status=#{status}
+        <if test="payName != null and payName != ''">
+            , pay_name = #{payName}
+        </if>
+        where order_no=#{orderNo}
+    </update>
+
+    <select id="selectOrderByOrderNoAndType" resultType="com.xcong.excoin.modules.otc.entity.OtcOrder">
+        select * from otc_order
+        where order_no=#{orderNo} and order_type=#{orderType}
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1