demand: TMS系统 - 运单管理 - 寄件运单查询/寄件运单查询新/派件运单查询/中心运单查询 - 新增查询条件“现金客户” 导出的数据也包含现金客户
This commit is contained in:
parent
add8a2a212
commit
4e898fc20e
@ -1731,9 +1731,6 @@
|
||||
<if test="updateSite != null and updateSite != ''"> and a.update_site=#{updateSite}</if>
|
||||
|
||||
|
||||
<if test="params.moneyUserId != null and params.moneyUserId != ''">
|
||||
AND mu.id = #{params.moneyUserId}
|
||||
</if>
|
||||
<if test="params.problemQueryType != null and params.problemQueryType == 1 and params.problemQueryIds != null and params.problemQueryIds !=''">
|
||||
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}
|
||||
)
|
||||
</if>
|
||||
<if test="params.moneyUserId != null and params.moneyUserId != ''">
|
||||
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'
|
||||
)
|
||||
</if>
|
||||
|
||||
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}
|
||||
)
|
||||
</if>
|
||||
<if test="params.moneyUserId != null and params.moneyUserId != ''">
|
||||
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'
|
||||
)
|
||||
</if>
|
||||
|
||||
or a.salesmen=#{params.privEmpName}
|
||||
or a.payee=#{params.privEmpName}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user