This commit is contained in:
linfso 2024-11-16 12:41:24 +08:00
parent 74c5ec62f3
commit e2eacd0184

View File

@ -1290,7 +1290,7 @@
)
</if>
<if test="params.isNeedBatch == null and salesmen == null and custNo == null " >
<if test="(params.isNeedBatch == null or (params.isNeedBatch != null and params.isNeedBatch != 1) ) and salesmen == null and custNo == null " >
<if test=" params.privSiteCode != null and params.privSiteCode != '88888'">
and (
@ -1315,8 +1315,6 @@
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>
or a.salesmen=#{params.privEmpName}
or a.payee=#{params.privEmpName}
or a.operate_employee_code=#{params.privEmpCode}