给多属性接口增加属性值的查询条件

This commit is contained in:
jishenghua
2025-04-28 11:26:04 +08:00
parent 4b83f0e2b2
commit c0d47a27d5
4 changed files with 10 additions and 4 deletions

View File

@@ -9,6 +9,10 @@
<bind name="bindAttributeName" value="'%'+attributeName+'%'"/>
and ma.attribute_name like #{bindAttributeName}
</if>
<if test="attributeValue != null">
<bind name="bindAttributeValue" value="'%'+attributeValue+'%'"/>
and ma.attribute_value like #{bindAttributeValue}
</if>
and ifnull(ma.delete_flag,'0') !='1'
order by ma.id desc
</select>