insert into mk2_goods_topic_price(
`mgthp_id`,
`topic_id`,
`topic_type`,
`topic_price`,
`topic_name`,
`topic_content`,
`topic_goods_sku`,
`topic_begin_time`,
`topic_end_time`,
`import_time`,
`creater_sn`,
`create_time`,
`moder_sn`,
`mod_time`,
`tstm`)
values(
#{mgthpId},
#{topicId},
#{topicType},
#{topicPrice},
#{topicName},
#{topicContent},
#{topicGoodsSku},
#{topicBeginTime},
#{topicEndTime},
#{importTime},
#{createrSn},
#{createTime},
#{moderSn},
#{modTime},
#{tstm})
update mk2_goods_topic_price
`topic_id` = #{topicId},
`topic_type` = #{topicType},
`topic_price` = #{topicPrice},
`topic_name` = #{topicName},
`topic_content` = #{topicContent},
`topic_goods_sku` = #{topicGoodsSku},
`topic_begin_time` = #{topicBeginTime},
`topic_end_time` = #{topicEndTime},
`import_time` = #{importTime},
`creater_sn` = #{createrSn},
`create_time` = #{createTime},
`moder_sn` = #{moderSn},
`mod_time` = #{modTime},
`tstm` = #{tstm}
where mgthp_id = #{mgthpId}
delete from mk2_goods_topic_price where mgthp_id = #{value}
delete from mk2_goods_topic_price where mgthp_id in
#{mgthpId}
insert into mk2_goods_topic_price(
`mgthp_id`,
`topic_id`,
`topic_type`,
`topic_price`,
`topic_name`,
`topic_content`,
`topic_goods_sku`,
`topic_begin_time`,
`topic_end_time`,
`import_time`,
`creater_sn`,
`create_time`,
`moder_sn`,
`mod_time`,
`tstm`)
values
(
#{item.mgthpId},
#{item.topicId},
#{item.topicType},
#{item.topicPrice},
#{item.topicName},
#{item.topicContent},
#{item.topicGoodsSku},
#{item.topicBeginTime},
#{item.topicEndTime},
#{item.importTime},
#{item.createrSn},
#{item.createTime},
#{item.moderSn},
#{item.modTime},
#{item.tstm}
)