insert into mall_product(
`goods_id`,
`goods_specification_ids`,
`goods_specification_name_value`,
`goods_sn`,
`goods_number`,
`goods_default`
)
values(
#{goodsId},
#{goodsSpecificationIds},
#{goodsSpecificationNameValue},
#{goodsSn},
#{goodsNumber},
#{goodsDefault}
)
update mall_product
`goods_id` = #{goodsId},
`goods_specification_ids` = #{goodsSpecificationIds},
`goods_specification_name_value` =
#{goodsSpecificationNameValue},
`goods_sn` = #{goodsSn},
`goods_number` = #{goodsNumber},
`goods_default` = #{goodsDefault},
where id = #{id}
delete from mall_product where id = #{id}
delete from mall_product where goods_id = #{goodsId}
delete from mall_product where id in
#{id}
insert into mall_product(
`goods_id`,
`goods_specification_ids`,
`goods_specification_name_value`,
`goods_sn`,
`goods_number`,
`goods_default`
)
values
(
#{item.goodsId},
#{item.goodsSpecificationIds},
#{item.goodsSpecificationNameValue},
#{item.goodsSn},
#{item.goodsNumber},
#{item.goodsDefault}
)
update mall_product
`goods_id` = #{item.goodsId},
`goods_specification_ids` = #{item.goodsSpecificationIds},
`goods_specification_name_value` =
#{item.goodsSpecificationNameValue},
`goods_sn` = #{item.goodsSn},
`goods_number` = #{item.goodsNumber},
`goods_default` = #{item.goodsDefault},
where id = #{item.id}