select id, script_type, script_code, script, tag, sort, ismandatory, ishide, del_flag, orgid, create_by, create_time, update_by, update_time, isupload, upload_time, answer, pid, guid, taskid, optiondesc, nexttopicid, nexttopicsort, scoretype, score, showtype, script_picture from svy_task_script
    
    
    
    
        insert into svy_task_script
        
            script_type,
            script_code,
            script,
            tag,
            sort,
            ismandatory,
            ishide,
            del_flag,
            orgid,
            create_by,
            create_time,
            update_by,
            update_time,
            isupload,
            upload_time,
            answer,
            pid,
            guid,
            taskid,
            optiondesc,
            nexttopicid,
            nexttopicsort,
            scoretype,
            score,
            showtype,
            script_picture,
         
        
            #{scriptType},
            #{scriptCode},
            #{script},
            #{tag},
            #{sort},
            #{ismandatory},
            #{ishide},
            #{delFlag},
            #{orgid},
            #{createBy},
            #{createTime},
            #{updateBy},
            #{updateTime},
            #{isupload},
            #{uploadTime},
            #{answer},
            #{pid},
            #{guid},
            #{taskid},
            #{optiondesc},
            #{nexttopicid},
            #{nexttopicsort},
            #{scoretype},
            #{score},
            #{showtype},
            #{scriptPicture},
         
    
    
        update svy_task_script
        
            script_type = #{scriptType},
            script_code = #{scriptCode},
            script = #{script},
            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},
            answer = #{answer},
            pid = #{pid},
            guid = #{guid},
            taskid = #{taskid},
            optiondesc = #{optiondesc},
            nexttopicid = #{nexttopicid},
            nexttopicsort = #{nexttopicsort},
            scoretype = #{scoretype},
            score = #{score},
            showtype = #{showtype},
            picture_path = #{picturePath},
            script_picture = #{scriptPicture},
        
        where id = #{id}
    
    
        delete from svy_task_script where id = #{id}
    
    
        delete from svy_task_script where id in
        
            #{id}