给商品查询增加助记码的查询条件
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
where 1=1
|
||||
<if test="materialParam != null and materialParam !=''">
|
||||
<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})
|
||||
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey} or m.mnemonic like #{bindKey})
|
||||
</if>
|
||||
<if test="color != null and color !=''">
|
||||
<bind name="bindColor" value="'%'+color+'%'"/>
|
||||
@@ -107,7 +107,7 @@
|
||||
and me.default_flag=1
|
||||
<if test="materialParam != null and materialParam !=''">
|
||||
<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})
|
||||
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey} or m.mnemonic like #{bindKey})
|
||||
</if>
|
||||
<if test="color != null and color !=''">
|
||||
<bind name="bindColor" value="'%'+color+'%'"/>
|
||||
@@ -171,6 +171,12 @@
|
||||
<if test="standard != null">
|
||||
standard,
|
||||
</if>
|
||||
<if test="brand != null">
|
||||
brand,
|
||||
</if>
|
||||
<if test="mnemonic != null">
|
||||
mnemonic,
|
||||
</if>
|
||||
<if test="color != null">
|
||||
color,
|
||||
</if>
|
||||
@@ -239,6 +245,12 @@
|
||||
<if test="standard != null">
|
||||
#{standard,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="brand != null">
|
||||
#{brand,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mnemonic != null">
|
||||
#{mnemonic,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="color != null">
|
||||
#{color,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user