select ID,
               extID,
               switchID,
               switchText,
               switchWav,
               selfRegex,
               selfRegex2,
               isEnable,
               del_flag,
               update_by,
               update_time,
               create_by,
               create_time,
               isupload,
               upload_time,
               orgid,
               pid,
               is_end,
               nodynamiccruxs,
               dynamiccruxs,
               guid
        from ivr_liba_extemplatescript
    
    
    
    
    
        insert into ivr_liba_extemplatescript
        
            extID,
            switchID,
            switchText,
            switchWav,
            selfRegex,
            selfRegex2,
            isEnable,
            del_flag,
            update_by,
            update_time,
            create_by,
            create_time,
            isupload,
            upload_time,
            orgid,
            pid,
            guid,
            is_end,
            dynamiccruxs,
            nodynamiccruxs,
        
        
            #{extID},
            #{switchID},
            #{switchText},
            #{switchWav},
            #{selfRegex},
            #{selfRegex2},
            #{isEnable},
            #{delFlag},
            #{updateBy},
            #{updateTime},
            #{createBy},
            #{createTime},
            #{isupload},
            #{uploadTime},
            #{orgid},
            #{pid},
            #{guid},
            #{isEnd},
            #{dynamiccruxsJson},
            #{nodynamiccruxsJson},
        
    
    
        update ivr_liba_extemplatescript
        
            extID = #{extID},
            switchID = #{switchID},
            switchText = #{switchText},
            switchWav = #{switchWav},
            selfRegex = #{selfRegex},
            selfRegex2 = #{selfRegex2},
            isEnable = #{isEnable},
            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},
            is_end = #{isEnd},
            dynamiccruxs = #{dynamiccruxsJson},
            nodynamiccruxs = #{nodynamiccruxsJson},
        
        where ID = #{ID}
    
    
        delete
        from ivr_liba_extemplatescript
        where ID = #{ID}
    
    
        delete from ivr_liba_extemplatescript where ID in
        
            #{ID}