From 8ddec1fa60bdbd2d970cff7b4bf2ae5b4ded1627 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期日, 29 十二月 2024 14:58:28 +0800 Subject: [PATCH] 1.腾讯地图:定时任务每天凌晨5点 --- src/main/resources/mapper/payment/OrderMapper.xml | 41 ++++++++++------------------------------- 1 files changed, 10 insertions(+), 31 deletions(-) diff --git a/src/main/resources/mapper/payment/OrderMapper.xml b/src/main/resources/mapper/payment/OrderMapper.xml index fc86d17..08965d0 100644 --- a/src/main/resources/mapper/payment/OrderMapper.xml +++ b/src/main/resources/mapper/payment/OrderMapper.xml @@ -68,7 +68,7 @@ and (oi.status = 'reduce' or oi.status = 'abnormal') ) and q.transfer_id is null - and q.status in ('COLLECTION', 'SEND') + and q.status in ('COLLECTION', 'SEND','RECEIVE') </if> <if test="condition.billId != null and condition.billId != ''"> AND q.bill_id = #{condition.billId} @@ -174,7 +174,7 @@ and (oi.status = 'reduce' or oi.status = 'abnormal') ) and q.transfer_id is null - and q.status in ('COLLECTION', 'SEND') + and q.status in ('COLLECTION', 'SEND','RECEIVE') </if> <if test="condition.billId != null and condition.billId != ''"> AND q.bill_id = #{condition.billId} @@ -201,15 +201,8 @@ on oi.order_id=o.id where oi.status in ('abnormal','reduce','lack','back') and o.transfer_id is null - and o.status in ('COLLECTION','SEND') + and o.status in ('COLLECTION','SEND','RECEIVE') ) --- AND exists( --- select 1 from t_order_item oi --- where oi.order_id = q.id --- and oi.status in ('abnormal','reduce','lack','back') --- ) --- and q.transfer_id is null --- and q.status in ('COLLECTION', 'SEND') </if> <if test="condition.abnormalOrderStatus != null and condition.abnormalOrderStatus != '' and condition.abnormalOrderStatus == 'PROCESSED'"> @@ -223,22 +216,8 @@ on oi.order_id=o.id where oi.status in ('abnormal','reduce','lack','back') and o.transfer_id is null - and o.status in ('COLLECTION','SEND') + and o.status in ('COLLECTION','SEND','RECEIVE') ) --- AND exists( --- select 1 from t_order_item oi --- where oi.order_id = q.id --- and oi.status in ('abnormal','reduce','lack','back') --- ) --- AND not exists( --- select 1 from t_order_item oi --- where oi.order_id = q.id --- and oi.status in ('abnormal','reduce','lack','back') --- and q.transfer_id is null --- and q.status in ('COLLECTION', 'SEND') --- ) - - </if> ORDER BY q.create_time desc, q.payment_time desc @@ -431,7 +410,7 @@ and (oi.status = 'reduce' or oi.status = 'abnormal') ) and q.transfer_id is null - and q.status in ('COLLECTION', 'SEND') + and q.status in ('COLLECTION', 'SEND','RECEIVE') </if> <if test="condition.billId != null and condition.billId != ''"> AND q.bill_id = #{condition.billId} @@ -492,7 +471,7 @@ on oi.order_id=o.id where oi.status in ('abnormal','reduce','lack','back') and o.transfer_id is null - and o.status in ('COLLECTION','SEND') + and o.status in ('COLLECTION','SEND','RECEIVE') ) union @@ -512,7 +491,7 @@ on oi.order_id=o.id where oi.status in ('abnormal','reduce','lack','back') and o.transfer_id is null - and o.status in ('COLLECTION','SEND') + and o.status in ('COLLECTION','SEND','RECEIVE') ) </select> @@ -531,7 +510,7 @@ and oi.status in ('abnormal','reduce','lack','back') ) and q.transfer_id is null - and q.status in ('COLLECTION', 'SEND') + and q.status in ('COLLECTION', 'SEND','RECEIVE') union @@ -550,7 +529,7 @@ where oi.order_id = q.id and oi.status in ('abnormal','reduce','lack','back') and q.transfer_id is null - and q.status in ('COLLECTION', 'SEND') + and q.status in ('COLLECTION', 'SEND','RECEIVE') ) </select> @@ -607,7 +586,7 @@ <!-- and (oi.status = 'reduce' or oi.status = 'abnormal')--> <!-- )--> <!-- and q.transfer_id is null--> -<!-- and q.status in ('COLLECTION', 'SEND')--> +<!-- and q.status in ('COLLECTION', 'SEND','RECEIVE')--> <!-- </if>--> <if test="condition.billId != null and condition.billId != ''"> AND q.bill_id = #{condition.billId} -- Gitblit v1.9.3