From 70c91a7c2100e4241eee11270ae56807e59b6689 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 10 Jul 2020 15:03:35 +0800
Subject: [PATCH] modify
---
src/main/resources/mapper/home/MemberQuickBuySaleDao.xml | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/home/MemberQuickBuySaleDao.xml b/src/main/resources/mapper/home/MemberQuickBuySaleDao.xml
index 4af7288..050c21a 100644
--- a/src/main/resources/mapper/home/MemberQuickBuySaleDao.xml
+++ b/src/main/resources/mapper/home/MemberQuickBuySaleDao.xml
@@ -6,4 +6,11 @@
<select id="selectByIdAndMemberId" resultType="com.xcong.excoin.modules.home.entity.MemberQuickBuySaleEntity">
SELECT a.* FROM member_quick_buy_sale a WHERE a.id = #{id} AND a.member_id = #{memberId}
</select>
+
+ <update id="updateQuickBuySaleTimeOut">
+ update member_quick_buy_sale
+ set order_status = 5
+ where order_type = 'B' and order_status=1
+ and timestampdiff(MINUTE, create_time, now()) > 30
+ </update>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1