select id,
templateid,
prologue,
dept_code,
long_temp,
send_day,
instruction,
conclusion,
categoryid,
svycode,
svyname,
description,
introduce,
submitprompt,
tag,
version,
centerlibrarycode,
centerlibraryid,
islocal,
isenable,
orgid,
del_flag,
create_by,
create_time,
update_by,
update_time,
isupload,
upload_time,
task_script_id,
pid,
guid,
dept_names,
label_info,
campus,
suitway,
otherdata,
value_type,
reply,
taskid
from svy_task_template
insert into svy_task_template
templateid,
categoryid,
svycode,
svyname,
description,
introduce,
submitprompt,
tag,
version,
centerlibrarycode,
centerlibraryid,
islocal,
isenable,
orgid,
del_flag,
create_by,
create_time,
update_by,
update_time,
isupload,
upload_time,
task_script_id,
pid,
guid,
dept_names,
label_info,
campus,
suitway,
otherdata,
value_type,
reply,
taskid,
prologue,
instruction,
conclusion,
dept_code,
long_temp,
send_day,
#{templateid},
#{categoryid},
#{svycode},
#{svyname},
#{description},
#{introduce},
#{submitprompt},
#{tag},
#{version},
#{centerlibrarycode},
#{centerlibraryid},
#{islocal},
#{isenable},
#{orgid},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{isupload},
#{uploadTime},
#{taskScriptId},
#{pid},
#{guid},
#{deptNames},
#{labelInfo},
#{campus},
#{suitway},
#{otherdata},
#{valueType},
#{reply},
#{taskid},
#{prologue},
#{instruction},
#{conclusion},
#{deptCode},
#{longTemp},
#{sendDay},
update svy_task_template
templateid = #{templateid},
categoryid = #{categoryid},
svycode = #{svycode},
svyname = #{svyname},
description = #{description},
introduce = #{introduce},
submitprompt = #{submitprompt},
tag = #{tag},
version = #{version},
centerlibrarycode = #{centerlibrarycode},
centerlibraryid = #{centerlibraryid},
islocal = #{islocal},
isenable = #{isenable},
orgid = #{orgid},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
isupload = #{isupload},
upload_time = #{uploadTime},
task_script_id = #{taskScriptId},
pid = #{pid},
guid = #{guid},
dept_names = #{deptNames},
label_info = #{labelInfo},
campus = #{campus},
suitway = #{suitway},
otherdata = #{otherdata},
value_type = #{valueType},
reply = #{reply},
taskid = #{taskid},
prologue = #{prologue},
instruction = #{instruction},
conclusion = #{conclusion},
dept_code = #{deptCode},
long_temp = #{longTemp},
send_day = #{sendDay},
where id = #{id}
delete
from svy_task_template
where id = #{id}
delete from svy_task_template where id in
#{id}