insert into mall_cart
(
`user_id`,
`goods_id`,
`goods_sn`,
`product_id`,
`goods_name`,
`market_price`,
`retail_price`,
`number`,
`goods_specification_name_value`,
`goods_specification_ids`,
`checked`,
`list_pic_url`,
`stock_num`,
`store_id`,
`sku`,
`goods_biz_type`,
`creater_sn`,
`create_time`,
`moder_sn`,
`mod_time`
)
values
(
#{userId},
#{goodsId},
#{goodsSn},
#{productId},
#{goodsName},
#{marketPrice},
#{retailPrice},
#{number},
#{goodsSpecificationNameValue},
#{goodsSpecificationIds},
#{checked},
#{listPicUrl},
#{stockNum},
#{storeId},
#{sku},
#{goodsBizType},
#{createrSn},
#{createTime},
#{moderSn},
#{modTime}
)
update mall_cart
`user_id` = #{userId},
`goods_id` = #{goodsId},
`goods_sn` = #{goodsSn},
`product_id` = #{productId},
`goods_name` = #{goodsName},
`market_price` = #{marketPrice},
`retail_price` = #{retailPrice},
`number` = #{number},
`goods_specification_name_value` =
#{goodsSpecificationNameValue},
`goods_specification_ids` = #{goodsSpecificationIds},
`checked` = #{checked},
`list_pic_url` = #{listPicUrl},
`stock_num` = #{stockNum},
`store_id` = #{storeId},
`goods_biz_type` = #{goodsBizType},
creater_sn = #{createrSn,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
moder_sn = #{moderSn,jdbcType=VARCHAR},
mod_time = #{modTime,jdbcType=TIMESTAMP}
where id = #{id}
delete from mall_cart where id = #{value}
delete from mall_cart where id in
#{id}