From b141df9bf9764db8567efebed48006e12ab1f657 Mon Sep 17 00:00:00 2001 From: wzy <wzy19931122ai@163.com> Date: Sun, 14 Aug 2022 15:52:45 +0800 Subject: [PATCH] fix:jhy 停止下单 --- 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