select id,
oldid,
svyid,
script_type,
seqno,
script_desc,
tag,
sort,
ismandatory,
ishide,
del_flag,
orgid,
create_by,
create_time,
update_by,
update_time,
isupload,
upload_time,
svy_topicid,
pid,
guid,
categoryid,
script_content,
suitway,
script_picture,
script_topic,
isavailable, language, otherdata, value_type, reply, scoretype, score
from svy_lib_template_script
insert into svy_lib_template_script
oldid,
svyid,
script_type,
seqno,
script_desc,
tag,
sort,
ismandatory,
ishide,
del_flag,
orgid,
create_by,
create_time,
update_by,
update_time,
isupload,
upload_time,
svy_topicid,
pid,
guid,
categoryid,
script_content,
suitway,
isavailable,
language,
otherdata,
value_type,
reply,
scoretype,
score,
script_picture,
script_topic,
#{oldid},
#{svyid},
#{scriptType},
#{seqno},
#{scriptDesc},
#{tag},
#{sort},
#{ismandatory},
#{ishide},
#{delFlag},
#{orgid},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{isupload},
#{uploadTime},
#{svyTopicid},
#{pid},
#{guid},
#{categoryid},
#{scriptContent},
#{suitway},
#{isavailable},
#{language},
#{otherdata},
#{valueType},
#{reply},
#{scoretype},
#{score},
#{scriptPicture},
#{scriptTopic},
update svy_lib_template_script
oldid = #{oldid},
svyid = #{svyid},
script_type = #{scriptType},
seqno = #{seqno},
script_desc = #{scriptDesc},
tag = #{tag},
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},
svy_topicid = #{svyTopicid},
pid = #{pid},
guid = #{guid},
categoryid = #{categoryid},
script_content = #{scriptContent},
suitway = #{suitway},
isavailable = #{isavailable},
language = #{language},
otherdata = #{otherdata},
value_type = #{valueType},
reply = #{reply},
scoretype = #{scoretype},
score = #{score},
script_picture = #{scriptPicture},
script_topic = #{scriptTopic},
where id = #{id}
update svy_lib_template_script
set del_flag=1
where id = #{id}
delete from svy_lib_template_script where id in
#{id}