初步给商品的扩展信息拆分成扩展1 扩展2 扩展3

This commit is contained in:
jishenghua
2025-03-24 23:17:10 +08:00
parent 91a985ff58
commit ce8af5bedd
8 changed files with 125 additions and 21 deletions

View File

@@ -70,9 +70,17 @@
<bind name="bindMfrs" value="'%'+mfrs+'%'"/>
and m.mfrs like #{bindMfrs}
</if>
<if test="materialOther != null and materialOther !=''">
<bind name="bindOther" value="'%'+materialOther+'%'"/>
and (m.other_field1 like #{bindOther} or m.other_field2 like #{bindOther} or m.other_field3 like #{bindOther})
<if test="otherField1 != null and otherField1 !=''">
<bind name="bindOtherField1" value="'%'+otherField1+'%'"/>
and m.other_field1 like #{bindOtherField1}
</if>
<if test="otherField2 != null and otherField2!=''">
<bind name="bindOtherField2" value="'%'+otherField2+'%'"/>
and m.other_field2 like #{bindOtherField2}
</if>
<if test="otherField3 != null and otherField3 !=''">
<bind name="bindOtherField3" value="'%'+otherField3+'%'"/>
and m.other_field3 like #{bindOtherField3}
</if>
<if test="weight != null and weight !=''">
and m.weight = #{weight}
@@ -330,6 +338,18 @@
<bind name="bindMfrs" value="'%'+mfrs+'%'"/>
and m.mfrs like #{bindMfrs}
</if>
<if test="otherField1 != null and otherField1 !=''">
<bind name="bindOtherField1" value="'%'+otherField1+'%'"/>
and m.other_field1 like #{bindOtherField1}
</if>
<if test="otherField2 != null and otherField2!=''">
<bind name="bindOtherField2" value="'%'+otherField2+'%'"/>
and m.other_field2 like #{bindOtherField2}
</if>
<if test="otherField3 != null and otherField3 !=''">
<bind name="bindOtherField3" value="'%'+otherField3+'%'"/>
and m.other_field3 like #{bindOtherField3}
</if>
<if test="idList.size()>0">
and m.category_id in
<foreach collection="idList" item="item" index="index" separator="," open="(" close=")">
@@ -375,6 +395,18 @@
<bind name="bindMfrs" value="'%'+mfrs+'%'"/>
and m.mfrs like #{bindMfrs}
</if>
<if test="otherField1 != null and otherField1 !=''">
<bind name="bindOtherField1" value="'%'+otherField1+'%'"/>
and m.other_field1 like #{bindOtherField1}
</if>
<if test="otherField2 != null and otherField2!=''">
<bind name="bindOtherField2" value="'%'+otherField2+'%'"/>
and m.other_field2 like #{bindOtherField2}
</if>
<if test="otherField3 != null and otherField3 !=''">
<bind name="bindOtherField3" value="'%'+otherField3+'%'"/>
and m.other_field3 like #{bindOtherField3}
</if>
<if test="idList.size()>0">
and m.category_id in
<foreach collection="idList" item="item" index="index" separator="," open="(" close=")">