insert into mk_dist_sell_allocation(
`dist_flag`,
`third_merch_sn`,
`supplier_id`,
`dist_id`,
dist_chnl_id,
store_id,
`goods_id`,
`alloc_type`,
`expend_dist_ids`,
`expend_dist_lines`,
`is_valid`,
sell_alloc_history_id,
`note`,
`creater_sn`,
`create_time`,
`moder_sn`,
`mod_time`,
`tstm`)
values(
#{distFlag},
#{thirdMerchSn},
#{supplierId},
#{distId},
#{distChnlId},
#{storeId},
#{goodsId},
#{allocType},
#{expendDistIds},
#{expendDistLines},
#{isValid},
#{sellAllocHistoryId},
#{note},
#{createrSn},
#{createTime},
#{moderSn},
#{modTime},
#{tstm})
update mk_dist_sell_allocation
`dist_flag` = #{distFlag},
`third_merch_sn` = #{thirdMerchSn},
`supplier_id` = #{supplierId},
`dist_id` = #{distId},
`dist_chnl_id` = #{distChnlId},
`store_id` = #{storeId},
`goods_id` = #{goodsId},
`alloc_type` = #{allocType},
`expend_dist_ids` = #{expendDistIds},
`expend_dist_lines` = #{expendDistLines},
`sell_alloc_history_id` = #{sellAllocHistoryId},
`is_valid` = #{isValid},
`note` = #{note},
`creater_sn` = #{createrSn},
`create_time` = #{createTime},
`moder_sn` = #{moderSn},
`mod_time` = #{modTime},
`tstm` = #{tstm}
where sell_alloc_id = #{sellAllocId}
delete from mk_dist_sell_allocation where sell_alloc_id = #{value}
delete from mk_dist_sell_allocation where sell_alloc_id in
#{sellAllocId}