select topicid,
oldid,
svyid,
topictype,
topiccode,
topic,
sort,
ismandatory,
ishide,
del_flag,
orgid,
create_by,
create_time,
update_by,
update_time,
isupload,
upload_time,
tag,
categoryid,
topic_content,
suitway,
isavailable,
otherdata,
language,
svy_topicid as svyTopicId
from svy_lib_topic
insert into svy_lib_topic
oldid,
svyid,
topictype,
topiccode,
topic,
sort,
ismandatory,
ishide,
del_flag,
orgid,
create_by,
create_time,
update_by,
update_time,
isupload,
upload_time,
tag,
svy_topicid,
categoryid,
topic_content,
suitway,
isavailable,
language,
otherdata,
#{oldid},
#{svyid},
#{topictype},
#{topiccode},
#{topic},
#{sort},
#{ismandatory},
#{ishide},
#{delFlag},
#{orgid},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{isupload},
#{uploadTime},
#{tag},
#{svyTopicId},
#{categoryid},
#{topicContent},
#{suitway},
#{isavailable},
#{language},
#{otherdata},
update svy_lib_topic
oldid = #{oldid},
svyid = #{svyid},
topictype = #{topictype},
topiccode = #{topiccode},
topic = #{topic},
sort = #{sort},
ismandatory = #{ismandatory},
ishide = #{ishide},
del_flag = #{delFlag},
orgid = #{orgid},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
isupload = #{isupload},
upload_time = #{uploadTime},
categoryid = #{categoryid},
topic_content = #{topicContent},
suitway = #{suitway},
isavailable = #{isavailable},
tag = #{tag},
language = #{language},
otherdata = #{otherdata},
where topicid = #{topicid}
update svy_lib_topic
del_flag =1,
where topicid = #{topicid}
delete from svy_lib_topic where topicid in
#{topicid}