From d30d959c8f249c20b39e66dd0c48341a77751d21 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 21 May 2021 17:03:32 +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()) &gt; 30
+	</update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1