给商品选择接口增加商品类别的查询条件

This commit is contained in:
季圣华
2020-12-15 21:38:43 +08:00
parent 0388b8fa86
commit 5ee379241d
6 changed files with 71 additions and 9 deletions

View File

@@ -106,6 +106,12 @@
<if test="q != null">
and (m.name like '%${q}%' or me.bar_code like '%${q}%')
</if>
<if test="idList.size()>0">
and m.category_id in
<foreach collection="idList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
</if>
and ifnull(m.delete_flag,'0') !='1'
ORDER BY id desc
<if test="offset != null and rows != null">
@@ -121,6 +127,12 @@
<if test="q != null">
and (m.name like '%${q}%' or me.bar_code like '%${q}%')
</if>
<if test="idList.size()>0">
and m.category_id in
<foreach collection="idList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
</if>
and ifnull(m.delete_flag,'0') !='1'
</select>