From f6a912c1a6a26c809568f964941fb4ad4483274e Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 31 May 2021 11:19:40 +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