md
This commit is contained in:
parent
df65986a77
commit
3d831cfc7c
@ -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 and a.bl_sub_bill='0'
|
||||
where a.del_flag='0' and b.del_flag='0' and a.main_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,6 @@
|
||||
emis_tms_scan_record a ,emis_waybill b
|
||||
WHERE
|
||||
a.del_flag = '0' and b.del_flag='0'
|
||||
and a.bl_sub_bill = '0'
|
||||
and a.main_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 ) )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user