From d9020bd54a0e373053ab9d4b9fead118dd441430 Mon Sep 17 00:00:00 2001 From: linfso Date: Fri, 9 Aug 2024 13:56:48 +0800 Subject: [PATCH] md --- .../resources/mapper/EmisWaybillMapper.xml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index d1dbf5ecd..842a05c9c 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -661,14 +661,17 @@ - and FIND_IN_SET(a.`problem_type`,#{params.problemQueryIds}) + and a.bill_code in ( + select bill_code from emis_waybill_problem_info ewpi where FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} ) + ) - and + and a.bill_code not in ( + select bill_code from emis_waybill_problem_info ewpi where FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} ) + ) - and a.order_date = ]]> #{params.beginOrderDate} @@ -1434,15 +1437,18 @@ - and FIND_IN_SET( a.`problem_type`,#{params.problemQueryIds}) + and a.bill_code in ( + select bill_code from emis_waybill_problem_info ewpi where FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} ) + ) - and ( ) + and a.bill_code not in ( + select bill_code from emis_waybill_problem_info ewpi where FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} ) + ) - and a.bl_sign='1'