给商品查询接口增加扩展信息的查询
This commit is contained in:
@@ -51,6 +51,11 @@
|
||||
<bind name="bindColor" value="'%'+color+'%'"/>
|
||||
and m.color like #{bindColor}
|
||||
</if>
|
||||
<if test="materialOther != null and materialOther !=''">
|
||||
<bind name="bindOther" value="'%'+materialOther+'%'"/>
|
||||
and (m.mfrs like #{bindOther} or m.other_field1 like #{bindOther}
|
||||
or m.other_field2 like #{bindOther} or m.other_field3 like #{bindOther})
|
||||
</if>
|
||||
<if test="weight != null and weight !=''">
|
||||
and m.weight = #{weight}
|
||||
</if>
|
||||
@@ -101,6 +106,11 @@
|
||||
<bind name="bindColor" value="'%'+color+'%'"/>
|
||||
and m.color like #{bindColor}
|
||||
</if>
|
||||
<if test="materialOther != null and materialOther !=''">
|
||||
<bind name="bindOther" value="'%'+materialOther+'%'"/>
|
||||
and (m.mfrs like #{bindOther} or m.other_field1 like #{bindOther}
|
||||
or m.other_field2 like #{bindOther} or m.other_field3 like #{bindOther})
|
||||
</if>
|
||||
<if test="weight != null and weight !=''">
|
||||
and m.weight = #{weight}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user