This commit is contained in:
linfso 2025-02-24 13:40:32 +08:00
parent 6f392e31cb
commit 67c71869d3

View File

@ -183,7 +183,7 @@
from (
select DISTINCT a.scan_site_code,b.bill_code , b.bl_sign
from emis_tms_scan_record a,emis_waybill b
where a.del_flag='0' and b.del_flag='0' and a.main_bill_code=b.bill_code
where a.del_flag='0' and b.del_flag='0' and a.bill_code=b.bill_code
and not EXISTS (
select 1 from emis_waybill_problem_info ewpi where ewpi.bill_code=b.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` in(151,173,170)
)
@ -229,7 +229,7 @@
emis_tms_scan_record a ,emis_waybill b
WHERE
a.del_flag = '0' and b.del_flag='0'
and a.main_bill_code = b.bill_code
and a.bill_code = b.bill_code
and b.bl_sign = '0'
and b.bill_code NOT IN ( SELECT bill_code FROM emis_waybill_problem_info ewpi WHERE ewpi.del_flag = '0' AND ewpi.`problem_type` IN ( 151, 173, 170 ) )
and a.scan_site_code=#{scanSiteCode}