md
This commit is contained in:
parent
e2eacd0184
commit
f3085eb68a
@ -1284,14 +1284,9 @@
|
|||||||
and bl_sign!='1' and waybill_status!='40'
|
and bl_sign!='1' and waybill_status!='40'
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="custNo != null and custNo != ''">
|
|
||||||
and EXISTS (
|
|
||||||
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.isNeedBatch == null or (params.isNeedBatch != null and params.isNeedBatch != 1) ) and salesmen == null and custNo == null " >
|
<if test="(params.isNeedBatch == null or (params.isNeedBatch != null and params.isNeedBatch != 1) ) " >
|
||||||
<if test=" params.privSiteCode != null and params.privSiteCode != '88888'">
|
<if test="(salesmen == null or salesmen=='') and params.privSiteCode != null and params.privSiteCode != '88888'">
|
||||||
and (
|
and (
|
||||||
|
|
||||||
a.send_site_code in (
|
a.send_site_code in (
|
||||||
@ -1314,6 +1309,11 @@
|
|||||||
<if test="params.isQueryPrintOrder != null and params.isQueryPrintOrder == 1">
|
<if test="params.isQueryPrintOrder != null and params.isQueryPrintOrder == 1">
|
||||||
or EXISTS (select 1 from emis_tms_scan_record etsr where a.bill_code=etsr.main_bill_code and etsr.scan_site_code=#{params.privSiteCode})
|
or EXISTS (select 1 from emis_tms_scan_record etsr where a.bill_code=etsr.main_bill_code and etsr.scan_site_code=#{params.privSiteCode})
|
||||||
</if>
|
</if>
|
||||||
|
<if test="custNo != null and custNo != ''">
|
||||||
|
or EXISTS (
|
||||||
|
select 1 from emis_customer_user ecu where a.cust_no=ecu.monthly_pay_code and ecu.owner_site=#{params.privSiteCode}
|
||||||
|
)
|
||||||
|
</if>
|
||||||
|
|
||||||
or a.salesmen=#{params.privEmpName}
|
or a.salesmen=#{params.privEmpName}
|
||||||
or a.payee=#{params.privEmpName}
|
or a.payee=#{params.privEmpName}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user