INSERT INTO goods
(id_,goods_category_id_,sn_,name_,brand_,specification_,image_,stock_count_,sell_count_,market_price_,discount_price_,group_purchase_price_,brief_,desc_,is_new_,is_top_,status_,memo_,publish_time_,complement_goods_id_list_,update_time_,create_time_)
VALUES(#{id},#{goodsCategoryId},#{sn},#{name},#{brand},#{specification},#{image},#{stockCount},#{sellCount},#{marketPrice},#{discountPrice},#{groupPurchasePrice},#{brief},#{desc},
#{isNew,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isTop,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{memo},#{publishTime},#{complementGoodsIdList},now(),now())
UPDATE goods
specification_ = #{specification},
status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
is_top_ = #{isTop,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
sn_ = #{sn},
market_price_ = #{marketPrice},
memo_ = #{memo},
is_new_ = #{isNew,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
group_purchase_price_ = #{groupPurchasePrice},
name_ = #{name},
stock_count_ = #{stockCount},
goods_category_id_ = #{goodsCategoryId},
brand_ = #{brand},
brief_ = #{brief},
update_time_ = #{updateTime},
discount_price_ = #{discountPrice},
sell_count_ = #{sellCount},
image_ = #{image},
desc_ = #{desc},
publish_time_ = #{publishTime},
complement_goods_id_list_ = #{complementGoodsIdList},
WHERE id_ = #{id}
DELETE FROM goods WHERE id_ = #{id}