From 004d9e74f66d87e8416a9b0d807b64cbfd1576f8 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 15 Dec 2021 15:16:07 +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