diff --git a/emis-oms-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-oms-biz/src/main/resources/mapper/EmisWaybillMapper.xml index 67af9fa..df38e01 100644 --- a/emis-oms-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-oms-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -491,17 +491,22 @@ and a.customer_code=#{customerCode} + and exists (select 1 from emis_customer_user ecu where a.del_flag='0' and a.receive_mobile=ecu.phone and ecu.customer_code=#{customerCode} ) + + + and a.payment_status='0' + + + and a.customer_code=#{customerCode} - - and a.customer_code=#{customerCode} - + and not exists(