From 4e97bf5c84a1aed6c0d9f6df277421f8ba5ed1a9 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期五, 06 十二月 2024 21:32:55 +0800 Subject: [PATCH] 1.售后存在多条情况修复 --- src/main/resources/mapper/payment/DeliveryOrderMapper.xml | 40 ++++++++++++++++++++++++++++++++-------- 1 files changed, 32 insertions(+), 8 deletions(-) diff --git a/src/main/resources/mapper/payment/DeliveryOrderMapper.xml b/src/main/resources/mapper/payment/DeliveryOrderMapper.xml index 7af2ae0..e679dc7 100644 --- a/src/main/resources/mapper/payment/DeliveryOrderMapper.xml +++ b/src/main/resources/mapper/payment/DeliveryOrderMapper.xml @@ -17,11 +17,17 @@ #{item} </foreach> </if> +<!-- <if test="condition.startDate != null">--> +<!-- AND q.create_time > #{condition.startDate}--> +<!-- </if>--> +<!-- <if test="condition.endDate != null">--> +<!-- AND q.create_time <= #{condition.endDate}--> +<!-- </if>--> <if test="condition.startDate != null"> - AND q.create_time > #{condition.startDate} + AND o.payment_time > #{condition.startDate} </if> <if test="condition.endDate != null"> - AND q.create_time <= #{condition.endDate} + AND o.payment_time <= #{condition.endDate} </if> ORDER BY o.payment_time </select> @@ -130,11 +136,17 @@ AND o.warehouse_location_code LIKE concat('%', #{condition.warehouseLocationCode},'%') </if> +<!-- <if test="condition.startDate != null">--> +<!-- AND q.create_time > #{condition.startDate}--> +<!-- </if>--> +<!-- <if test="condition.endDate != null">--> +<!-- AND q.create_time <= #{condition.endDate}--> +<!-- </if>--> <if test="condition.startDate != null"> - AND q.create_time > #{condition.startDate} + AND o.payment_time > #{condition.startDate} </if> <if test="condition.endDate != null"> - AND q.create_time <= #{condition.endDate} + AND o.payment_time <= #{condition.endDate} </if> ) tt GROUP BY tt.id, tt.supplierName, tt.supplierTel, tt.stationName @@ -177,11 +189,17 @@ AND o.warehouse_location_code LIKE concat('%', #{condition.warehouseLocationCode},'%') </if> +<!-- <if test="condition.startDate != null">--> +<!-- AND q.create_time > #{condition.startDate}--> +<!-- </if>--> +<!-- <if test="condition.endDate != null">--> +<!-- AND q.create_time <= #{condition.endDate}--> +<!-- </if>--> <if test="condition.startDate != null"> - AND q.create_time > #{condition.startDate} + AND o.payment_time > #{condition.startDate} </if> <if test="condition.endDate != null"> - AND q.create_time <= #{condition.endDate} + AND o.payment_time <= #{condition.endDate} </if> ORDER BY q.arrive_time @@ -213,11 +231,17 @@ t.warehouse_location_code LIKE concat('%', #{name},'%') ) </if> +<!-- <if test="startDate != null">--> +<!-- AND o.create_time > #{startDate}--> +<!-- </if>--> +<!-- <if test="endDate != null">--> +<!-- AND o.create_time <= #{endDate}--> +<!-- </if>--> <if test="startDate != null"> - AND o.create_time > #{startDate} + AND t.payment_time > #{startDate} </if> <if test="endDate != null"> - AND o.create_time <= #{endDate} + AND t.payment_time <= #{endDate} </if> <if test="statusList != null and statusList.size > 0"> -- Gitblit v1.9.3