From 22fe3ae2f33fa2ca77786848f3d27941f767e00f Mon Sep 17 00:00:00 2001 From: linfso Date: Wed, 1 Jan 2025 16:04:17 +0800 Subject: [PATCH] md --- .../resources/mapper/EmisWaybillMapper.xml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) 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}