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'