diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index ba17e1552..122480de8 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -1242,6 +1242,26 @@ and a.send_date #{params.endDate} + + 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 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.send_date = ]]> #{params.beginSendDate}