select id,
sort,
prompt,
branch_flag,
branch_nextscriptno,
score,
script_desc,
targetname,
targettype,
taskid,
scriptno,
templateID,
scriptid,
script_topic, language, categoryName, script_content, is_must, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, value_type, targetoptions, script_type, targetid, targetvalue, next_scriptno, script_result, otherdata, picture_path
from svy_task_template_script
insert into svy_task_template_script
taskid,
scriptno,
templateID,
scriptid,
script_desc,
language,
categoryName,
script_content,
is_must,
del_flag,
update_by,
update_time,
create_by,
create_time,
isupload,
upload_time,
orgid,
pid,
guid,
value_type,
targetoptions,
script_type,
targetid,
targetvalue,
next_scriptno,
script_result,
otherdata,
picture_path,
sort,
script_topic,
branch_flag,
branch_nextscriptno,
targetname,
targettype,
score,
prompt,
#{taskid},
#{scriptno},
#{templateID},
#{scriptid},
#{scriptDesc},
#{language},
#{categoryName},
#{scriptContent},
#{isMust},
#{delFlag},
#{updateBy},
#{updateTime},
#{createBy},
#{createTime},
#{isupload},
#{uploadTime},
#{orgid},
#{pid},
#{guid},
#{valueType},
#{targetoptions},
#{scriptType},
#{targetid},
#{targetvalue},
#{nextScriptno},
#{scriptResult},
#{otherdata},
#{picturePath},
#{sort},
#{scriptTopic},
#{branchFlag},
#{branchNextscriptno},
#{targetname},
#{targettype},
#{score},
#{prompt},
update svy_task_template_script
taskid = #{taskid},
scriptno = #{scriptno},
templateID = #{templateID},
scriptid = #{scriptid},
script_desc = #{scriptDesc},
language = #{language},
categoryName = #{categoryName},
script_content = #{scriptContent},
is_must = #{isMust},
del_flag = #{delFlag},
update_by = #{updateBy},
update_time = #{updateTime},
create_by = #{createBy},
create_time = #{createTime},
isupload = #{isupload},
upload_time = #{uploadTime},
orgid = #{orgid},
pid = #{pid},
guid = #{guid},
value_type = #{valueType},
targetoptions = #{targetoptions},
script_type = #{scriptType},
targetid = #{targetid},
targetvalue = #{targetvalue},
next_scriptno = #{nextScriptno},
script_result = #{scriptResult},
otherdata = #{otherdata},
picture_path = #{picturePath},
sort = #{sort},
script_topic = #{scriptTopic},
branch_flag = #{branchFlag},
branch_nextscriptno =
#{branchNextscriptno},
targetname = #{targetname},
targettype = #{targettype},
score = #{score},
prompt = #{prompt},
where id = #{d}
delete
from svy_task_template_script
where id = #{id}
delete from svy_task_template_script where id in
#{id}