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