From 000eb60dd306f9ed79a82ed3fc4d965c453aa297 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 06 Dec 2021 11:36:53 +0800
Subject: [PATCH] fix
---
gc-shop/src/main/resources/mapper/shop/ScoreOrderMapper.xml | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/gc-shop/src/main/resources/mapper/shop/ScoreOrderMapper.xml b/gc-shop/src/main/resources/mapper/shop/ScoreOrderMapper.xml
index 4dcd053..008cb08 100644
--- a/gc-shop/src/main/resources/mapper/shop/ScoreOrderMapper.xml
+++ b/gc-shop/src/main/resources/mapper/shop/ScoreOrderMapper.xml
@@ -14,7 +14,7 @@
d.express_no expressNo
FROM
xzx_score_order a
- left join xzx_user_info b on b.user_id = a.user_id
+ inner join xzx_user_info b on b.user_id = a.user_id
left join xzx_score_express_info d on d.order_id = a.id
WHERE 1 = 1
<if test="orderNo != null and orderNo != ''">
@@ -142,4 +142,19 @@
and a.CREATED_TIME >= #{qgStartTime}
and a.CREATED_TIME <= #{qgEndTime}
</select>
+
+ <select id="selectOrderByIsFinish" resultType="com.xzx.gc.entity.ScoreOrder">
+ select
+ a.*
+ from xzx_score_order a
+ where a.is_finish = 1
+ and a.status = 2
+ and a.is_finish_time <= #{dateTime}
+ </select>
+
+ <update id="updateOrderStatusToDone">
+ update xzx_score_order
+ set status = 4
+ where id = #{id}
+ </update>
</mapper>
--
Gitblit v1.9.1