INSERT INTO subject_goods_mapper (subject_id_,goods_category_id_,create_time_,update_time_,type_,goods_id_list_)
VALUES(#{subjectId},#{goodsCategoryId},now(),now(),#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{goodsIdList})
INSERT INTO subject_goods_mapper (subject_id_,goods_category_id_,create_time_,update_time_)
VALUES
(#{item},#{goodsCategoryId},now(),now())
UPDATE subject_goods_mapper
subject_id_ = #{subjectId},
update_time_ = NOW(),
goods_category_id_ = #{goodsCategoryId},
type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
goods_id_list_ = #{goodsIdList},
WHERE id_ = #{id}
DELETE FROM subject_goods_mapper WHERE id_ = #{id}
DELETE FROM subject_goods_mapper WHERE goods_category_id_ = #{goodsCategoryId}