select id,
               taskid,
               send_taskid,
               send_taskname,
               is_end,
               templateID,
               score,
               is_user_operation,
               appenddesc,
               targetid,
               option_code,
               targetname,
               targettype,
               categoryName,
               targetvalue,
               targetregex2,
               targetregex,
               optiondesc, language, version, groupid, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, scriptid, nodynamiccruxs, dynamiccruxs, next_question
        from ivr_task_template_targetoption
    
    
    
    
        insert into ivr_task_template_targetoption
        
            taskid,
            templateID,
            targetid,
            targetname,
            targettype,
            categoryName,
            targetvalue,
            targetregex2,
            targetregex,
            optiondesc,
            language,
            version,
            groupid,
            isabnormal,
            warnup,
            warndown,
            del_flag,
            update_by,
            update_time,
            create_by,
            create_time,
            isupload,
            upload_time,
            orgid,
            pid,
            guid,
            scriptid,
            nodynamiccruxs,
            dynamiccruxs,
            next_question,
            appenddesc,
            option_code,
            is_user_operation,
            score,
            is_end,
            send_taskid,
            send_taskname,
        
        
            #{taskid},
            #{templateID},
            #{targetid},
            #{targetname},
            #{targettype},
            #{categoryName},
            #{targetvalue},
            #{targetregex2},
            #{targetregex},
            #{optiondesc},
            #{language},
            #{version},
            #{groupid},
            #{isabnormal},
            #{warnup},
            #{warndown},
            #{delFlag},
            #{updateBy},
            #{updateTime},
            #{createBy},
            #{createTime},
            #{isupload},
            #{uploadTime},
            #{orgid},
            #{pid},
            #{guid},
            #{scriptid},
            #{nodynamiccruxsJson},
            #{dynamiccruxsJson},
            #{nextQuestion},
            #{appenddesc},
            #{optionCode},
            #{isUserOperation},
            #{score},
            #{isEnd},
            #{sendTaskid},
            #{sendTaskname},
        
    
    
        update ivr_task_template_targetoption
        
            taskid = #{taskid},
            templateID = #{templateID},
            targetid = #{targetid},
            targetname = #{targetname},
            targettype = #{targettype},
            categoryName = #{categoryName},
            targetvalue = #{targetvalue},
            targetregex2 = #{targetregex2},
            targetregex = #{targetregex},
            optiondesc = #{optiondesc},
            language = #{language},
            version = #{version},
            groupid = #{groupid},
            isabnormal = #{isabnormal},
            warnup = #{warnup},
            warndown = #{warndown},
            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},
            scriptid = #{scriptid},
            nodynamiccruxs = #{nodynamiccruxsJson},
            dynamiccruxs = #{dynamiccruxsJson},
            next_question = #{nextQuestion},
            appenddesc = #{appenddesc},
            option_code = #{optionCode},
            is_user_operation = #{isUserOperation},
            score = #{score},
            is_end = #{isEnd},
            send_taskid= #{sendTaskid},
            send_taskname = #{sendTaskname},
        
        where id = #{id}
    
    
        delete
        from ivr_task_template_targetoption
        where id = #{id}
    
    
        delete from ivr_task_template_targetoption where id in
        
            #{id}