insert into mall_goods
(
`id`,
`category_id`,
`goods_sn`,
`name`,
`brand_id`,
`goods_number`,
`keywords`,
`goods_brief`,
`goods_desc`,
`is_on_sale`,
`add_time`,
`sort_order`,
`is_delete`,
`attribute_category`,
`counter_price`,
`extra_price`,
`is_new`,
`goods_unit`,
`primary_pic_url`,
`list_pic_url`,
`retail_price`,
`sell_volume`,
`primary_product_id`,
`unit_price`,
`promotion_desc`,
`promotion_tag`,
`app_exclusive_price`,
`is_app_exclusive`,
`is_limited`,
`is_hot`,
`market_price`,
`sku`,
`goods_biz_type`,
`create_sn`,
`create_time`,
`moder_sn`,
`mod_time`,
`tstm`
)
values
(
#{id},
#{categoryId},
#{goodsSn},
#{name},
#{brandId},
#{goodsNumber},
#{keywords},
#{goodsBrief},
#{goodsDesc},
#{isOnSale},
#{addTime},
#{sortOrder},
#{isDelete},
#{attributeCategory},
#{counterPrice},
#{extraPrice},
#{isNew},
#{goodsUnit},
#{primaryPicUrl},
#{listPicUrl},
#{retailPrice},
#{sellVolume},
#{primaryProductId},
#{unitPrice},
#{promotionDesc},
#{promotionTag},
#{appExclusivePrice},
#{isAppExclusive},
#{isLimited},
#{isHot},
#{marketPrice},
#{sku},
#{goodsBizType},
#{createrSn},
#{createTime},
#{moderSn},
#{modTime},
#{tstm}
)
update mall_goods
`category_id` = #{categoryId},
`goods_sn` = #{goodsSn},
`name` = #{name},
`brand_id` = #{brandId},
`goods_number` = #{goodsNumber},
`keywords` = #{keywords},
`goods_brief` = #{goodsBrief},
`goods_desc` = #{goodsDesc},
`is_on_sale` = #{isOnSale},
`add_time` = #{addTime},
`sort_order` = #{sortOrder},
`is_delete` = #{isDelete},
`attribute_category` = #{attributeCategory},
`counter_price` = #{counterPrice},
`extra_price` = #{extraPrice},
`is_new` = #{isNew},
`goods_unit` = #{goodsUnit},
`primary_pic_url` = #{primaryPicUrl},
`list_pic_url` = #{listPicUrl},
`retail_price` = #{retailPrice},
`sell_volume` = #{sellVolume},
`primary_product_id` = #{primaryProductId},
`unit_price` = #{unitPrice},
`promotion_desc` = #{promotionDesc},
`promotion_tag` = #{promotionTag},
`app_exclusive_price` = #{appExclusivePrice},
`is_app_exclusive` = #{isAppExclusive},
`is_limited` = #{isLimited},
`is_hot` = #{isHot},
`market_price` = #{marketPrice},
sku = #{sku,jdbcType=VARCHAR},
goods_biz_type = #{goodsBizType,jdbcType=CHAR},
creater_sn = #{createrSn,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
moder_sn = #{moderSn,jdbcType=VARCHAR},
mod_time = #{modTime,jdbcType=TIMESTAMP},
tstm = #{tstm,jdbcType=TIMESTAMP},
where id = #{id}
delete from mall_goods where id = #{value}
delete from mall_goods where id in
#{id}