This commit is contained in:
linfso 2025-07-09 10:57:00 +08:00
parent fb04bdc67c
commit 7a9183da30

View File

@ -293,8 +293,8 @@
) )
) tb3, ) tb3,
( (
SELECT count( 1 ) AS transCount FROM emis_waybill SELECT count( 1 ) AS transCount FROM emis_waybill a
WHERE del_flag='0' and order_status != '2' AND waybill_status != 0 AND bl_sign != '1' WHERE a.del_flag='0' and a.order_status != '2' AND a.waybill_status != 0 AND a.bl_sign != '1'
and not exists( 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` !=null and ewpi.`problem_type` in(173,170,151) select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` !=null and ewpi.`problem_type` in(173,170,151)
) )