给进销存统计报表增加商品类别的筛选参数

This commit is contained in:
季圣华
2023-05-14 18:05:28 +08:00
parent fbdfdd73ed
commit 6594130333
4 changed files with 34 additions and 7 deletions

View File

@@ -328,6 +328,12 @@
<bind name="bindKey" value="'%'+materialParam+'%'"/>
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
</if>
<if test="categoryIdList.size()>0">
and m.category_id in
<foreach collection="categoryIdList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
</if>
<if test="endTime != null">
and dh.oper_time &lt;= #{endTime}
</if>
@@ -350,6 +356,12 @@
<bind name="bindKey" value="'%'+materialParam+'%'"/>
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
</if>
<if test="categoryIdList.size()>0">
and m.category_id in
<foreach collection="categoryIdList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
</if>
<if test="endTime != null">
and dh.oper_time &lt;= #{endTime}
</if>