select branchid, guid,orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, sceneid, flowid, flownodeid, branchname, isenable, sort, nodetype, targetid, oldid from ivr_scene_flownodebranch
    
    
    
    
        insert into ivr_scene_flownodebranch
        
            orgid,
            del_flag,
            update_by,
            update_time,
            create_by,
            create_time,
            isupload,
            upload_time,
            sceneid,
            flowid,
            flownodeid,
            branchname,
            isenable,
            sort,
            nodetype,
            targetid,
            oldid,
            guid,
         
        
            #{orgid},
            #{delFlag},
            #{updateBy},
            #{updateTime},
            #{createBy},
            #{createTime},
            #{isupload},
            #{uploadTime},
            #{sceneid},
            #{flowid},
            #{flownodeid},
            #{branchname},
            #{isenable},
            #{sort},
            #{nodetype},
            #{targetid},
            #{oldid},
            #{guid},
         
    
    
        update ivr_scene_flownodebranch
        
            orgid = #{orgid},
            del_flag = #{delFlag},
            update_by = #{updateBy},
            update_time = #{updateTime},
            create_by = #{createBy},
            create_time = #{createTime},
            isupload = #{isupload},
            upload_time = #{uploadTime},
            sceneid = #{sceneid},
            flowid = #{flowid},
            flownodeid = #{flownodeid},
            branchname = #{branchname},
            isenable = #{isenable},
            sort = #{sort},
            nodetype = #{nodetype},
            targetid = #{targetid},
            oldid = #{oldid},
            guid = #{guid},
        
        where branchid = #{branchid}
    
    
        delete from ivr_scene_flownodebranch where branchid = #{branchid}
    
    
        delete from ivr_scene_flownodebranch where branchid in
        
            #{branchid}