insert into mall_goods_attribute(
store_id,
`goods_id`,
`merch_sn`,
`attribute_id`,
`value`)
values(
#{storeId},
#{goodsId},
#{merchSn},
#{attributeId},
#{value})
update mall_goods_attribute
`store_id` = #{storeId},`goods_id` = #{goodsId},`merch_sn` = #{merchSn},`attribute_id` = #{attributeId},`value` = #{value}
where id = #{id}
update mall_goods_attribute
`value` = #{value}
where goods_id = #{goodsId} AND attribute_id = #{attributeId} and store_id = #{storeId}
delete from mall_goods_attribute where id = #{value}
delete from mall_goods_attribute where goods_id = #{goodsId}
delete from mall_goods_attribute where id in
#{id}