From 9b3d8ecd9e297efc570e8c16737dd0231952e118 Mon Sep 17 00:00:00 2001 From: linfso Date: Sun, 2 Mar 2025 21:47:06 +0800 Subject: [PATCH] md --- .../main/resources/mapper/EmisWaybillMapper.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index bd3452f28..8545f5e7c 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -2327,15 +2327,15 @@ AND a.bl_profit = '0' AND a.order_status != '0' AND a.order_status != '2' - AND ( a.problem_type is null or (a.problem_type is not null and (a.problem_type != 173 and a.problem_type != 170 and a.problem_type != 151) ) ) - - and a.send_date = ]]> #{params.beginDate} - - - and a.send_date #{params.endDate} + and not EXISTS ( + select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` in(173,170,151) + ) + + and DATE_FORMAT(a.send_date,'%Y%m')= #{params.billMonth} + ORDER BY a.send_date DESC - LIMIT 1000 + LIMIT 5000