给销售相关的单据接口增加销售人员的查询参数

This commit is contained in:
jishenghua
2025-06-17 23:32:23 +08:00
parent d5e535fbd6
commit c6f7b63e95
4 changed files with 8 additions and 3 deletions

View File

@@ -153,6 +153,9 @@
and
(ifnull(dh.discount_last_money,0)+ifnull(dh.other_money,0)-ifnull(dh.deposit,0)-abs(ifnull(dh.change_amount,0))=0)
</if>
<if test="salesMan != null and salesMan !=''">
and FIND_IN_SET(#{salesMan}, dh.sales_man) > 0
</if>
<if test="remark != null and remark !=''">
<bind name="bindRemark" value="'%'+remark+'%'"/>
and (dh.remark like #{bindRemark} or di.remark like #{bindRemark})