diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index e56704a08..dbe862add 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -1731,9 +1731,6 @@ and a.update_site=#{updateSite} - - AND mu.id = #{params.moneyUserId} - and exists ( select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and FIND_IN_SET( ewpi.`problem_type`, #{params.problemQueryIds} ) @@ -1886,6 +1883,11 @@ select 1 from emis_customer_user ecu where a.cust_no=ecu.monthly_pay_code and ecu.owner_site=#{params.privSiteCode} ) + + or EXISTS ( + select 1 from emis_money_user emu where wss.money_user_id=emu.money_user_id and emu.money_user_id=#{params.moneyUserId} and emu.del_flag='0' + ) + or a.salesmen=#{params.privEmpName} or a.payee=#{params.privEmpName} @@ -3119,6 +3121,11 @@ select 1 from emis_customer_user ecu where a.cust_no=ecu.monthly_pay_code and ecu.owner_site=#{params.privSiteCode} ) + + or EXISTS ( + select 1 from emis_money_user emu where wss.money_user_id=emu.money_user_id and emu.money_user_id=#{params.moneyUserId} and emu.del_flag='0' + ) + or a.salesmen=#{params.privEmpName} or a.payee=#{params.privEmpName}