完善商品属性接口,支持新增、删除和查询

This commit is contained in:
季圣华
2022-08-30 00:40:48 +08:00
parent 52bd683c7b
commit 654a246d84
10 changed files with 31 additions and 139 deletions

View File

@@ -5,8 +5,9 @@
<select id="selectByConditionMaterialAttribute" resultType="com.jsh.erp.datasource.entities.MaterialAttribute">
select * from jsh_material_attribute ma
where 1=1
<if test="attributeField != null">
and ma.attribute_field = #{attributeField}
<if test="attributeName != null">
<bind name="bindAttributeName" value="'%'+attributeName+'%'"/>
and ma.attribute_name like #{bindAttributeName}
</if>
and ifnull(ma.delete_flag,'0') !='1'
order by ma.id desc
@@ -18,8 +19,9 @@
<select id="countsByMaterialAttribute" resultType="java.lang.Long">
SELECT count(ma.id) from jsh_material_attribute ma
where 1=1
<if test="attributeField != null">
and ma.attribute_field = #{attributeField}
<if test="attributeName != null">
<bind name="bindAttributeName" value="'%'+attributeName+'%'"/>
and ma.attribute_name like #{bindAttributeName}
</if>
and ifnull(ma.delete_flag,'0') !='1'
</select>