Commit 24f221ca authored by 季圣华's avatar 季圣华
Browse files

优化商品查询框的搜索条件

parent 6cd6fff1
......@@ -217,7 +217,7 @@
and m.enable_serial_number ='1'
<if test="q != null and q !=''">
<bind name="bindKey" value="'%'+q+'%'"/>
and (m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
</if>
and ifnull(m.delete_flag,'0') !='1'
order by m.id desc
......@@ -234,7 +234,7 @@
and m.enable_serial_number ='1'
<if test="q != null and q !=''">
<bind name="bindKey" value="'%'+q+'%'"/>
and (m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
</if>
and ifnull(m.delete_flag,'0') !='1'
</select>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment