diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index 122480de8..d5b358a2e 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -212,7 +212,6 @@ - @@ -1243,23 +1242,11 @@ - and EXISTS ( - select 1 from emis_waybill_attachment ewatm - where - ewatm.del_flag='0' and a.bill_code=ewatm.bill_code - and ewatm.attach_type='0' - ) - - + and a.goods_pics is not null - and not EXISTS ( - select 1 from emis_waybill_attachment ewatm - where - ewatm.del_flag='0' and a.bill_code=ewatm.bill_code - and ewatm.attach_type='0' - ) + and a.goods_pics is null