An organizational structure adjustment method and device, electronic equipment and storage medium

By configuring changes to pipeline nodes and differential pipeline information processing for clients, the problems of high traffic consumption and low efficiency in traditional methods are solved, enabling efficient organizational restructuring.

CN114741444BActive Publication Date: 2026-01-13TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110020327.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-07
Publication Date
2026-01-13
Estimated Expiration
2041-01-07

AI Technical Summary

Technical Problem

In enterprise instant messaging software, traditional organizational restructuring methods result in high client traffic consumption, fetching redundant information, long update times, low efficiency, and high hardware resource consumption.

Method used

By configuring change log nodes for the client's address book organizational structure, change log information is recorded. When the corresponding server on the client changes, an information synchronization request is sent to obtain the differential log information of the business server's architecture. The address book organizational structure is then adjusted based on the differential log information.

Benefits of technology

It reduced the consumption of data computing resources and network traffic on servers and clients, shortened the organizational restructuring time, and improved restructuring efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114741444B_ABST
    Figure CN114741444B_ABST
Patent Text Reader

Abstract

The application provides a kind of organizational structure adjustment method, comprising: configuring the change flow node matched for different objects in the address book organizational structure of client, and recording the corresponding change flow information through the change flow node;When the server corresponding to the client changes, send information synchronization request to the business server;Get the architecture difference flow information sent by the business server, and adjust the address book organizational structure of the client based on the architecture difference flow information.The application also provides a kind of device, electronic equipment and storage medium, which can effectively reduce the consumption of a large number of computing resources and network traffic of data between server and client during the organizational structure adjustment process, reduce the time of organizational structure adjustment, and improve the adjustment efficiency of organizational structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet communication technology, and in particular to organizational structure adjustment methods, devices, electronic devices, and storage media. Background Technology

[0002] With the continuous development of computer and mobile internet technologies, a large number of instant messaging applications have emerged, providing users with much convenience in communication. Enterprise instant messaging software and other communication tools often contain enterprise organizational structure data. This data shows the company's department information and the basic information of each department's members, such as department name, member information, email address, and phone number. To facilitate users' convenient querying of relevant information or other business operations (such as text chat) within the organizational structure data, it is usually necessary to update the organizational structure data to the communication tool's client in a timely manner. When the organizational structure is adjusted, traditional technology uses a server to send all information, and the client compares the local information with the full information to achieve organizational structure synchronization. This often results in high client bandwidth consumption, the retrieval of a large amount of redundant information, long update times, low efficiency, and excessive computational load, consuming too many hardware resources. Summary of the Invention

[0003] In view of this, the organizational structure adjustment method, apparatus, electronic device and storage medium provided in the embodiments of the present invention can adjust the address book organizational structure of the client based on the differential flow information of the architecture when the server corresponding to the client changes. Thus, during the organizational structure adjustment process, the consumption of a large amount of computing resources and network traffic of the server and the client on the data can be effectively reduced, the time of organizational structure adjustment can be reduced, and the efficiency of organizational structure adjustment can be improved.

[0004] The technical solution of this invention is implemented as follows:

[0005] This invention provides a method for adjusting organizational structure, including:

[0006] Configure matching change log nodes for different objects in the client's address book organizational structure, and record the corresponding change log information through the change log nodes;

[0007] When the server corresponding to the client changes, an information synchronization request is sent to the business server, wherein the information synchronization request carries the first version number information of the address book;

[0008] Obtain the architecture differential pipeline information sent by the business server, wherein the architecture differential pipeline information is determined by the business server based on the first version number information of the client and the first architecture version number stored by the client;

[0009] The differential architecture log information is parsed. If it is determined that the differential architecture log information includes a deletion marker, the object in the address book organizational structure corresponding to the differential architecture log information is deleted; or,

[0010] When it is determined that the identifier information in the differential transaction log information of the architecture matches the identifier information in the change transaction log information of the client, the address book organizational structure is maintained; or,

[0011] In response to the differential flow information of the architecture, business data matching the objects in the address book organizational structure is obtained, and the address book organizational structure of the client is updated based on the business data.

[0012] This invention also provides an organizational structure adjustment device, comprising:

[0013] The information processing module is used to configure matching change log nodes for different objects in the client's address book organizational structure, and to record the corresponding change log information through the change log nodes;

[0014] The information transmission module is used to send an information synchronization request to the business server when the server corresponding to the client changes, wherein the information synchronization request carries the first version number information of the address book;

[0015] The information processing module is used to obtain the architecture differential pipeline information sent by the business server, wherein the architecture differential pipeline information is determined by the business server based on the first version number information of the client and the first architecture version number stored by the client;

[0016] The information processing module is used to parse the architecture differential transaction information, and when it is determined that the architecture differential transaction information includes a deletion marker, delete the object in the address book organizational structure corresponding to the architecture differential transaction information;

[0017] The information processing module is used to maintain the address book organizational structure when it is determined that the identification information in the architecture differential flow information is consistent with the identification information in the client's change flow information;

[0018] The information processing module is used to respond to the differential flow information of the architecture, obtain business data that matches the objects in the address book organizational structure, and update the address book organizational structure of the client based on the business data.

[0019] In the above scheme,

[0020] The information processing module is used to determine different objects in the client's address book organizational structure;

[0021] The information processing module is used to configure a first change sequence node for the department objects in the address book organizational structure based on the determined different objects.

[0022] The information processing module is used to configure a second change pipeline node for member objects in the address book organizational structure based on the determined different objects.

[0023] The information processing module is used to store, through the first change sequence node, the type, identification information, version number information and change sequence information of the node that matches the department object in the address book organizational structure;

[0024] The information processing module is used to store the type, identification information, version number information, and change sequence information of the node that matches the member object in the address book organizational structure through the second change sequence node.

[0025] In the above scheme,

[0026] The information processing module is used to add corresponding change log information to the first change log node when a department object is added in the address book organizational structure.

[0027] The information processing module is used to adjust the sequence number corresponding to the change flow information in the first change flow node when the department object in the address book organizational structure is updated.

[0028] The information processing module is used to adjust the sequence number corresponding to the change flow information in the first change flow node and mark the change flow information corresponding to the deleted department object when the department object in the address book organizational structure is deleted.

[0029] In the above scheme,

[0030] The information processing module is used to add corresponding change log information to the first change log node when a member object is added to the address book organizational structure.

[0031] The information processing module is used to adjust the sequence number corresponding to the change sequence information in the first change sequence node when the member object in the address book organizational structure is updated;

[0032] The information processing module is used to adjust the sequence number corresponding to the change sequence information in the first change sequence node and mark the change sequence information corresponding to the deleted member object when a member object in the address book organizational structure is deleted.

[0033] In the above scheme,

[0034] The information processing module is used to receive the architecture differential flow information sent by the business server; or,

[0035] The information processing module is used to retrieve the architecture differential flow information stored by the business server, wherein the architecture differential flow information includes:

[0036] The parameters for the number of return packet nodes and the version number parameters included in different change log information.

[0037] In the above scheme,

[0038] The information processing module is used to parse the architecture differential transaction information, and when it is determined that the architecture differential transaction information includes a deletion marker, delete the object in the address book organizational structure corresponding to the architecture differential transaction information;

[0039] The information processing module is used to maintain the address book organizational structure when it is determined that the identification information in the architecture differential flow information is consistent with the identification information in the client's change flow information;

[0040] The information processing module is used to respond to the differential flow information of the architecture, obtain business data that matches the objects in the address book organizational structure, and update the address book organizational structure of the client based on the business data.

[0041] In the above scheme,

[0042] The information processing module is used to delete the change flow information carrying a deletion identifier in the client when the number of change flow information in the change flow node of the client exceeds the quantity threshold.

[0043] The information processing module is used to trigger a full update process when the second architecture version number of the change flow information in the change flow node of the client is earlier than the first architecture version number, so as to update the client's address book organization structure through the full update process.

[0044] In the above scheme,

[0045] The information processing module is used to delete a corresponding number of change flow information carrying deletion identifiers in the storage space when the change flow information in the change flow node of the client exceeds a first proportional threshold of the storage space corresponding to the client.

[0046] The information processing module is used to delete the change flow information carrying a deletion identifier stored in the storage space within the corresponding time period when the change flow information in the change flow node of the client exceeds the second proportional threshold of the storage space corresponding to the client.

[0047] In the above scheme,

[0048] The information processing module is used to trigger a full update process when the hidden rules in the client's address book organizational structure change, so as to update the client's address book organizational structure through the full update process.

[0049] The information processing module is used to trigger a full update process when the location of a target object in the client's organizational structure changes, so as to update the client's address book organizational structure through the full update process.

[0050] This invention also provides an electronic device, comprising:

[0051] Memory, used to store executable instructions;

[0052] A processor, used to implement a preceding organizational restructuring method when running executable instructions stored in the memory.

[0053] This invention also provides an interconnection server, comprising:

[0054] Memory, used to store executable instructions;

[0055] A processor, for running executable instructions stored in the memory, a preceding organizational structure adjustment method.

[0056] This invention also provides a computer-readable storage medium storing executable instructions, wherein the executable instructions, when executed by a processor, pre-execution organizational structure adjustment method is provided.

[0057] The embodiments of the present invention have the following beneficial effects:

[0058] By configuring matching change log nodes for different objects in the client's address book organizational structure and recording corresponding change log information through these nodes, when the server corresponding to the client changes, an information synchronization request is sent to the business server. This information synchronization request carries the first version number information of the address book. The architecture differential log information sent by the business server is obtained, whereby the architecture differential log information is determined by the business server based on the client's first version number information and the first architecture version number saved by the client. Based on the architecture differential log information, the client's address book organizational structure is adjusted. This effectively reduces the consumption of significant computing resources and network traffic by both the server and client during organizational structure adjustment, shortens the adjustment time, and improves the efficiency of organizational structure adjustment. Attached Figure Description

[0059] Figure 1 This is a schematic diagram illustrating a use case of the organizational structure adjustment method provided in this embodiment of the invention;

[0060] Figure 2 This is a schematic diagram of the composition structure of the organizational structure adjustment device provided in an embodiment of the present invention;

[0061] Figure 3 An optional flowchart illustrating the organizational structure adjustment method provided in this embodiment of the invention;

[0062] Figure 4 An optional flowchart illustrating the organizational structure adjustment method provided in this embodiment of the invention;

[0063] Figure 5 This is a schematic diagram of the incremental update process in an embodiment of the present invention;

[0064] Figure 6 This is a schematic diagram of the incremental update process in an embodiment of the present invention;

[0065] Figure 7 An optional flowchart illustrating the organizational structure adjustment method provided in this embodiment of the invention;

[0066] Figure 8 This is a schematic diagram of the updated organizational structure in an embodiment of the present invention. Detailed Implementation

[0067] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on the present invention. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0068] Unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to limit the invention.

[0069] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0070] It should be noted that in the following description, the term "some embodiments" refers to a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0071] Before providing a further detailed description of the embodiments of the present invention, the nouns and terms involved in the embodiments of the present invention will be explained, and the nouns and terms involved in the embodiments of the present invention shall be interpreted as follows.

[0072] 1) Contact data: Data saved in the contact list of the user in the instant messaging client, including contact names (nicknames), instant messaging identifiers, and other information.

[0073] 2) Terminals, including but not limited to: ordinary terminals and dedicated terminals, wherein the ordinary terminals maintain a long connection and / or a short connection with the transmission channel, and the dedicated terminals maintain a long connection with the transmission channel.

[0074] 3) Client: The carrier that implements specific functions in the terminal. For example, a mobile client (APP) is a carrier of specific functions in a mobile terminal, such as performing online live streaming or playing online videos.

[0075] 4) In response to, used to indicate the conditions or states on which the operation performed depends. When the conditions or states on which it depends are met, one or more operations performed may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.

[0076] 5) A mini program is a type of application developed using a front-end-oriented language (such as JavaScript) and running services within Hyper Text Markup Language (HTML) pages. It is downloaded by a client (such as a browser or any client with an embedded browser engine) via a network (such as the internet) and interpreted and executed within the client's browser environment, saving the steps of installation on the client side. For example, mini programs that provide various services such as airline ticket purchases and transit QR codes can be downloaded and run on social networking clients.

[0077] Figure 1 This is a schematic diagram illustrating a use case of the organizational structure adjustment method provided in this embodiment of the invention. (See attached diagram.) Figure 1The terminals (including terminals 10-1 and 10-2) are equipped with software clients capable of performing instant messaging functions, such as WeChat for Business, WeChat for Personal Use, or QQ chat software clients or plugins. Users can perform corresponding communication functions through the corresponding clients. During the operation of the instant messaging client, the organizational structure needs to be adjusted according to changes in the situation. For example, the enterprise organizational structure data is a multi-branch tree structure, where each department, group, or member has only one parent department, and a department can have multiple departments, groups, or members. Each department, group, or member can be regarded as a node in the enterprise organizational structure data. The terminals are connected to the server 200 through network 300, which can be a wide area network, a local area network, or a combination of both, and data transmission is achieved using a wireless link.

[0078] As an example, terminal 10-1 or terminal 10-2 is used to deploy the organizational structure adjustment device to implement the organizational structure adjustment method provided by the present invention, so as to record the corresponding change flow information through the change flow node; when the server corresponding to the client changes, an information synchronization request is sent to the business server, wherein the information synchronization request carries the first version number information of the address book;

[0079] The system obtains the architecture differential flow information sent by the business server, wherein the architecture differential flow information is determined by the business server based on the first version number information of the client and the first architecture version number saved by the client; the system adjusts the address book organization structure of the client based on the architecture differential flow information; and finally presents the corresponding address book organization structure on the user interface (UI) through display components for user use.

[0080] The structure of the organizational structure adjustment device according to an embodiment of the present invention will be described in detail below. The organizational structure adjustment device can be implemented in various forms, such as a dedicated terminal with organizational structure adjustment device processing function, or a server equipped with organizational structure adjustment device processing function, for example, the preceding... Figure 1 Server 200. Figure 2 This is a schematic diagram of the composition of the organizational structure adjustment device provided in an embodiment of the present invention. It can be understood that... Figure 2 This is merely an exemplary structure of the organizational restructuring device, not the entire structure; it can be implemented as needed. Figure 2 The structure shown may be part or all of the structure.

[0081] The organizational structure adjustment device provided in this embodiment of the invention includes: at least one processor 201, a memory 202, a user interface 203, and at least one network interface 204. The various components in the organizational structure adjustment device are coupled together via a bus system 205. It can be understood that the bus system 205 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 205 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 2 The general labeled all buses as Bus System 205.

[0082] The user interface 203 may include a monitor, keyboard, mouse, trackball, click wheel, buttons, touchpad, or touch screen.

[0083] It is understood that memory 202 can be volatile memory or non-volatile memory, or both. In this embodiment of the invention, memory 202 is capable of storing data to support the operation of a terminal (such as 10-1). Examples of this data include any computer programs used to operate on the terminal (such as 10-1), such as operating systems and applications. The operating system includes various system programs, such as the framework layer, core library layer, driver layer, etc., used to implement various basic services and handle hardware-based tasks. Applications can include various applications.

[0084] In some embodiments, the organizational structure adjustment device provided in this invention can be implemented using a combination of hardware and software. For example, the organizational structure adjustment device provided in this invention can be a processor in the form of a hardware decoding processor, programmed to execute the organizational structure adjustment method provided in this invention. For instance, the processor in the form of a hardware decoding processor can employ one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0085] As an example of the organizational structure adjustment device provided in this embodiment of the invention, which is implemented by combining software and hardware, the organizational structure adjustment device provided in this embodiment of the invention can be directly embodied as a combination of software modules executed by processor 201. The software modules can be located in a storage medium, which is located in memory 202. Processor 201 reads the executable instructions included in the software modules in memory 202 and combines them with necessary hardware (e.g., including processor 201 and other components connected to bus 205) to complete the organizational structure adjustment method provided in this embodiment of the invention.

[0086] As an example, processor 201 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., wherein the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0087] As an example of the hardware implementation of the organizational structure adjustment device provided in this embodiment of the invention, the device provided in this embodiment of the invention can be directly executed by a processor 201 in the form of a hardware decoding processor. For example, it can be executed by one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components to implement the organizational structure adjustment method provided in this embodiment of the invention.

[0088] In this embodiment of the invention, the memory 202 is used to store various types of data to support the operation of the organizational restructuring device. Examples of such data include: any executable instructions for operation on the organizational restructuring device, such as executable instructions that can be included in a program implementing the organizational restructuring method of this embodiment of the invention.

[0089] In other embodiments, the organizational structure adjustment device provided in this invention can be implemented in software. Figure 2An organizational structure adjustment device stored in memory 202 is shown. This device can be software in the form of programs and plug-ins, and includes a series of modules. As an example of a program stored in memory 202, it may include an organizational structure adjustment device. The organizational structure adjustment device includes the following software modules: an information transmission module 2081 and an information processing module 2082. When the software modules in the organizational structure adjustment device are read into RAM and executed by processor 201, the organizational structure adjustment method provided in this embodiment of the invention will be implemented. The functions of each software module in the organizational structure adjustment device include:

[0090] The information processing module 2082 is used to configure matching change log nodes for different objects in the client's address book organizational structure, and to record the corresponding change log information through the change log nodes.

[0091] The information transmission module 2081 is used to send an information synchronization request to the business server when the server corresponding to the client changes, wherein the information synchronization request carries the first version number information of the address book.

[0092] The information processing module 2082 is used to obtain the architecture differential pipeline information sent by the business server, wherein the architecture differential pipeline information is determined by the business server based on the first version number information of the client and the first architecture version number stored by the client.

[0093] The information processing module 2082 is used to adjust the address book organization structure of the client based on the differential flow information of the architecture.

[0094] according to Figure 2 The illustrated electronic device, in one aspect of this application, also provides a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform various embodiments and combinations of embodiments provided in the various optional implementations of the organizational restructuring method described above.

[0095] Before introducing the organizational structure adjustment method provided by this invention, the relevant organizational structure adjustment process of instant messaging clients (such as WeChat Work) will first be described. In these clients, address book data is the core data of the platform, and organizational structure data includes hierarchical structure information and attribute information of nodes within the enterprise organization. Specifically, the hierarchical structure information of nodes can include department information and the parent department information of each part, which can be used to construct the hierarchical structure of the enterprise organization; the attribute information of nodes can include employee information and the department information to which the employee belongs, which can be used to establish the relationship between employees and departments. Within the enterprise organizational structure, enterprise administrators (or enterprise members, with higher privileges than ordinary members) have high-granularity privacy protection permissions for organizational structure information, supporting not only personal information hiding but also address book viewing permissions. Enterprise administrators can add / delete departments, add / delete / move / edit members, etc., on the client (e.g., via web or app), and the operation results will be promptly synchronized to all members of the company. Enterprise administrators can perform structure hiding operations: they can set whitelists and blacklists in the management backend. For example, members on the whitelist can view the complete organizational structure, while other members cannot see them in the organizational structure. Members on the blacklist can only see their own group (department) and its parent department; others can see the members on the blacklist. Of course, blacklists and whitelists can be set up according to the specific needs of the company.

[0096] When adjusting organizational structures, related technologies typically use a server to distribute full information and the client to compare local information with the full information to synchronize the organizational structure. This often results in high client bandwidth consumption, the retrieval of a large amount of redundant information, long update times, low efficiency, and excessive computational load, consuming too many hardware resources.

[0097] To overcome the above problems, refer to Figure 3 , combined Figure 2 The illustrated organizational structure adjustment device illustrates the organizational structure adjustment method provided in this embodiment of the invention. Figure 3 This is an optional flowchart illustrating the organizational structure adjustment method provided in this embodiment of the invention. It can be understood that... Figure 3 The steps shown can be performed by various electronic devices that run organizational restructuring mechanisms, such as mobile phones or tablets with organizational restructuring capabilities. The following section addresses... Figure 3 The steps shown are explained.

[0098] Step 301: The organizational structure adjustment device configures matching change flow nodes for different objects in the client's address book organizational structure, and records the corresponding change flow information through the change flow nodes.

[0099] In some embodiments of the present invention, configuring matching change log nodes for different objects in the client's address book organizational structure, and recording the corresponding change log information through the change log nodes, can be achieved in the following ways:

[0100] The system identifies different objects in the client's address book organizational structure; based on the identified different objects, it configures a first change sequence node for department objects in the address book organizational structure; based on the identified different objects, it configures a second change sequence node for member objects in the address book organizational structure; through the first change sequence node, it stores the type, identification information, version number information, and change sequence information of the node matching the department object in the address book organizational structure; through the second change sequence node, it stores the type, identification information, version number information, and change sequence information of the node matching the member object in the address book organizational structure. Specifically, the organizational structure of an instant messaging client can include department objects and member objects. The same member object can belong to different department objects. Therefore, by adding corresponding change log information to the first change log node when a department object is added to the address book organizational structure; adjusting the sequence number corresponding to the change log information in the first change log node when a department object is updated; or adjusting the sequence number corresponding to the change log information in the first change log node when a department object is deleted from the address book organizational structure, and marking the change log information corresponding to the deleted department object, changes in the organizational structure can be recorded promptly and accurately. The format of the hashnode node in the change log is as follows:

[0101] hashnode

[0102] {

[0103] uint32 type; / / 1 member, 2 departments

[0104] uint64 vid; / / Member ID

[0105] uint64 parentid; / / Member's parent department ID

[0106] uint64 partyid; / / Department ID

[0107] Furthermore, through the aforementioned data structure, when a member object is added to the address book organizational structure, corresponding change log information can be added to the first change log node; when a member object is updated in the address book organizational structure, the sequence number corresponding to the change log information in the first change log node can be adjusted; when a member object is deleted from the address book organizational structure, the sequence number corresponding to the change log information in the first change log node can be adjusted, and the change log information corresponding to the deleted member object can be marked. Since the database data is stored in tables, read and write operations need to be performed based on the rows and columns of the tables. To support CRUD operations on the tree-structured enterprise organizational structure data, the server constructs an in-memory organizational structure tree at the logical layer. This tree structure is built based on the hierarchical structure and attribute information of the nodes in the enterprise organization. This allows for recursive downward queries of child nodes (e.g., querying sub-departments or members of a specific department) when data needs to be read from the database, as well as checks on the legality of subsequent modifications to the enterprise organizational structure using the tree structure, achieving fast and efficient organizational structure read and write capabilities.

[0108] Step 302: When the server corresponding to the client changes, the organizational structure adjustment device sends an information synchronization request to the business server.

[0109] The information synchronization request carries the first version number information of the address book.

[0110] The server can store version numbers of local enterprise organizational structure data. Upon receiving an update request from a client, it can determine whether the requested organizational structure data has been updated based on both the client's version number and the local version number. If an update is found, the server can obtain information about any changes made to the organizational structure data.

[0111] Step 303: The organizational structure adjustment device obtains the architecture difference flow information sent by the business server.

[0112] The differential architecture flow information is determined by the business server based on the first version number information of the client and the first architecture version number stored in the client.

[0113] In some embodiments of the present invention, obtaining the architecture differential flow information sent by the service server can be achieved in the following ways:

[0114] 1) Passive reception: Receive the architecture differential flow information sent by the business server.

[0115] 2) Active Acquisition: Retrieve the architecture differential flow information stored by the business server.

[0116] The architecture differential pipeline information includes: a limit parameter for the number of return packets and a version number parameter included in different change pipeline information. Specifically, the hashnode request contains the following two fields:

[0117] 1) limit (uint32): Limit on the number of return packets.

[0118] 2) cli_version (bytes): The version number of the client's current local architecture. The backend version includes six version numbers:

[0119] A) hash_version: The maximum sequence number (seq) of the client's local schema HashNode; B) filter_version: The version number of the schema hiding rule; C) last_delete_time: The timestamp of the physical deletion of the schema.

[0120] D) multi_version: Version number from the user's perspective of the changed architecture; E) hashnode_version: Version number of the hashnode in this update; F) tag_version: Version number of the tag in this update. When the client performs an incremental update, the request includes the largest sequence number (hash_version_cli) of the hashnode from the last synchronization. The server will send hashnodes larger than hash_version_cli to the corresponding client after filtering by the hiding rules.

[0121] Step 304: The organizational structure adjustment device adjusts the address book organizational structure of the client based on the differential flow information of the structure.

[0122] Continue to refer to Figure 4 , Figure 4 This is an optional flowchart illustrating the organizational structure adjustment method provided in this embodiment of the invention. It can be understood that... Figure 4 The steps shown can be performed by various electronic devices that run organizational restructuring mechanisms, such as mobile phones or tablets with organizational restructuring capabilities. The following section addresses... Figure 4 The steps shown are explained.

[0123] Step 401: The organizational structure adjustment device parses the differential flow information of the structure and determines whether it includes a deletion mark. If it does, proceed to step 402; otherwise, proceed to step 403.

[0124] Step 402: When the organizational structure adjustment device determines that the differential flow information of the structure includes a deletion mark, it deletes the object in the address book organizational structure corresponding to the differential flow information of the structure.

[0125] Step 403: When the organizational structure adjustment device determines that the identification information in the differential flow information of the structure is consistent with the identification information in the change flow information of the client, the organizational structure of the address book is maintained.

[0126] Step 404: The organizational structure adjustment device responds to the differential flow information of the structure, obtains business data that matches the objects in the address book organizational structure, and updates the address book organizational structure of the client based on the business data.

[0127] Among them, reference Figure 5 , Figure 5 This is a schematic diagram of the incremental update process in an embodiment of the present invention. When the client performs an incremental update, the request may include the maximum sequence number (hash_version_cli) of the hashnode from the last synchronization. The server will retrieve the hashnode that is greater than hash_version_cli after filtering by the hiding rules.

[0128] Step 405: When the number of change log entries in the change log node of the client exceeds the quantity threshold, delete the change log entries carrying the deletion identifier in the client.

[0129] Step 406: When the second architecture version number of the change log information in the change log node of the client is earlier than the first architecture version number, a full update process is triggered.

[0130] Therefore, the client's address book organization structure can be updated through the full update process.

[0131] In some embodiments of the present invention, when the change log information in the change log node of the client exceeds a first proportional threshold of the storage space corresponding to the client, a corresponding number of change log information carrying deletion identifiers are deleted from the storage space. Wherein, reference... Figure 6 , Figure 6 This is a schematic diagram of the full update process in an embodiment of the present invention. When the number of HashNodes marked for deletion exceeds a certain amount, it puts pressure on storage, memory, and network traffic, requiring the physical deletion of some marked HashNodes. The first proportion threshold can be selected as 50%, meaning that when the change log information in the client's change log nodes exceeds 50% of the client's corresponding storage space, 50% of the change log information carrying deletion markers can be deleted. During this process, due to the physical deletion of change logs, such as... Figure 6As shown, the local organizational structure data on the client is outdated and may be missing information due to physical deletion. Therefore, a full update operation is necessary to ensure the integrity and accuracy of the organizational structure.

[0132] In some embodiments of the present invention, when the change log information in the change log node of the client exceeds a second proportional threshold of the storage space corresponding to the client, the change log information carrying a deletion identifier stored in the storage space within the corresponding time period is deleted. Figure 6 This is a schematic diagram of the full update process in an embodiment of the present invention. When the number of HashNodes marked for deletion exceeds a certain amount, it puts pressure on storage, memory, and network traffic, requiring the physical deletion of some marked HashNodes. The second percentage threshold can be selected as 50%, meaning that if the change log information in the client's change log nodes exceeds 50% of the client's corresponding storage space, the change log information stored in the change log nodes over the past 7 days can be deleted to alleviate the terminal's storage pressure and reduce hardware resource consumption. Specifically, refer to... Figure 7 , Figure 7 An optional flowchart illustrating the organizational structure adjustment method provided in this embodiment of the invention includes the following steps:

[0133] Step 701: Trigger the full update process.

[0134] Step 702: Physically remove hashnodes marked for deletion that were more than 7 days ago.

[0135] Step 703: Determine whether the number of hashnodes marked for deletion within 7 days is greater than the threshold. If yes, proceed to step 704; otherwise, proceed to step 707.

[0136] Step 704: Determine whether the change logs within 7 days are concentrated on the update day. If so, proceed to step 705; otherwise, proceed to step 706.

[0137] Step 705: Physically remove hashnodes marked for deletion within 7 days.

[0138] Step 706: Physically clear the hashnode flow that has been marked as deleted for 7 days.

[0139] Step 707: End the full update process.

[0140] In some embodiments of the present invention, when the hiding rules in the client's address book organizational structure change, a full update process is triggered to update the client's address book organizational structure. Similarly, when the location of a target object in the client's organizational structure changes, a full update process is triggered to update the client's address book organizational structure. When the enterprise's hiding rules change, the visible organizational structure range for each user may change significantly. Since the backend cannot calculate the difference in changes for each user, all clients across the company need to undergo a full update to cover the local organizational structure and ensure that the adjusted organizational structure is compatible with user permissions and hiding rules. Figure 8 This is a schematic diagram of the updated organizational structure in an embodiment of the present invention. The organizational structure adjustment method shown in Figure 7 processes the address book in the client, allowing for... Figure 8 The updated organizational structure diagram shown presents to the user the results of adjustments to the client's address book organizational structure based on the differential flow information of the structure.

[0141] In this invention, embodiments can be implemented using cloud technology. Cloud technology refers to a hosting technology that unifies hardware, software, and network resources within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. It can also be understood as a general term for network technologies, information technologies, integration technologies, management platform technologies, and application technologies based on cloud computing business models. The backend services of network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites; therefore, cloud technology needs cloud computing as its support.

[0142] It's important to note that cloud computing is a computing model that distributes computing tasks across a resource pool comprised of numerous computers, enabling various application systems to access computing power, storage space, and information services as needed. The network providing these resources is called the "cloud." From the user's perspective, resources in the "cloud" are infinitely scalable, readily available, and can be used on demand, expanded at any time, and paid for based on usage. As the foundational providers of cloud computing capabilities, they establish cloud resource pool platforms, often referred to as cloud platforms or Infrastructure as a Service (IaaS). These platforms deploy various types of virtual resources within the resource pool for external customers to choose from. The cloud resource pool primarily includes: computing devices (which can be virtualized machines containing operating systems), storage devices, and network devices.

[0143] Specifically, when the server corresponding to the client changes, an information storage request can be sent to the data storage server to store the updated version number information, change sequence information, and member identification information in the address book organizational structure in the cloud server. When the target user's target terminal uses the corresponding client to obtain the address book organizational structure in the cloud server, the address book organizational structure of the target terminal's client is updated based on the version number information, change sequence information, and member identification information stored in the cloud server. Therefore, when a user changes terminals to use the client (e.g., the same user switches from WeChat Work on a mobile phone to WeChat Work on a tablet), the client on the target terminal can directly update the address book organizational structure of the target terminal's client from the version number information, change sequence information, and member identification information stored in the cloud server, avoiding the problem of asynchronous address book organizational structures caused by multiple terminals logging into the client, thus improving the user experience.

[0144] By configuring matching change log nodes for different objects in the client's address book organizational structure and recording corresponding change log information through these nodes, when the server corresponding to the client changes, an information synchronization request is sent to the business server. This information synchronization request carries the first version number information of the address book. The architecture differential log information sent by the business server is obtained, whereby the architecture differential log information is determined by the business server based on the client's first version number information and the first architecture version number saved by the client. Based on the architecture differential log information, the client's address book organizational structure is adjusted. This effectively reduces the consumption of significant computing resources and network traffic by both the server and client during organizational structure adjustment, shortens the adjustment time, and improves the efficiency of organizational structure adjustment.

[0145] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for adjusting organizational structure, characterized in that, The method includes: Configure matching change log nodes for different objects in the client's address book organizational structure, and record corresponding change log information through the change log nodes. The change log information includes the identifier of the object and the identifier of the parent department to which the object belongs. The object includes members and departments. When the server corresponding to the client changes, an information synchronization request is sent to the business server, wherein the information synchronization request carries the first version number information of the address book; Receive the architecture differential pipeline information sent by the service server; or, The system retrieves the architecture differential pipeline information stored by the business server. The architecture differential pipeline information is determined by the business server based on the first version number information of the client and the first architecture version number stored by the client. The architecture differential pipeline information includes a return packet node limit parameter and version number parameters of different change pipeline information. The differential architecture log information is parsed. If it is determined that the differential architecture log information includes a deletion marker, the object in the address book organizational structure corresponding to the differential architecture log information is deleted; or, When it is determined that the identifier information in the differential transaction log information of the architecture matches the identifier information in the change transaction log information of the client, the address book organizational structure is maintained; or, In response to the differential flow information of the architecture, business data matching the objects in the address book organizational structure is obtained, and the address book organizational structure of the client is updated based on the business data; When the second architecture version number of the change log information in the client's change log node is earlier than the first architecture version number, the hiding rules in the address book organizational structure change, or the ownership location of the target object in the address book organizational structure changes, the client's address book organizational structure is updated through a full update process, wherein the full update process is implemented in the following ways: When the change log information in the change log node of the client exceeds the first proportion threshold of the corresponding storage space of the client, delete the corresponding number of change log information carrying deletion flags in the storage space; When the change log information in the change log node of the client exceeds the second proportional threshold of the corresponding storage space of the client, the change log information carrying the deletion identifier stored in the storage space within the corresponding time period is deleted.

2. The method according to claim 1, characterized in that, The method involves configuring matching change log nodes for different objects in the client's address book organizational structure, and recording corresponding change log information through these change log nodes, including: Identify the different objects in the client's address book organizational structure; Based on the identified different objects, configure the first change flow node for the department objects in the address book organizational structure; Based on the identified different objects, configure a second change pipeline node for the member objects in the address book organizational structure; The first change log node stores the node type, identification information, version number information, and change log information that match the department objects in the address book organizational structure. The second change log node stores the type, identification information, version number information, and change log information of the node that matches the member object in the address book organizational structure.

3. The method according to claim 2, characterized in that, The step of storing the type, identification information, version number information, and change log information of the node matching the department object in the address book organizational structure through the first change log node includes: When a department object is added to the address book organizational structure, the corresponding change log information is added to the first change log node; or... When the department object in the address book organizational structure is updated, adjust the sequence number corresponding to the change sequence information in the first change sequence node; or... When a department object in the address book organizational structure is deleted, the sequence number corresponding to the change flow information in the first change flow node is adjusted, and the change flow information corresponding to the deleted department object is marked.

4. The method according to claim 2, characterized in that, The step of storing the type, identification information, version number information, and change sequence information of the node matching the member object in the address book organizational structure through the first change sequence node includes: When a member object is added to the address book organizational structure, the corresponding change log information is added to the first change log node; or... When a member object in the address book organizational structure is updated, the sequence number corresponding to the change sequence information in the first change sequence node is adjusted; or... When a member object in the address book organizational structure is deleted, the sequence number corresponding to the change sequence information in the first change sequence node is adjusted, and the change sequence information corresponding to the deleted member object is marked.

5. The method according to claim 1, characterized in that, The method further includes: When the server corresponding to the client changes, an information storage request is sent to the data storage server to store the updated version number information, change sequence information of the address book, and member identification information in the address book organizational structure in the cloud server. When the target user obtains the address book organizational structure in the cloud server through the corresponding client on the target terminal, the address book organizational structure of the client on the target terminal is updated based on the version number information, change serial information and member identification information of the address book stored in the cloud server.

6. An organizational structure adjustment device, characterized in that, The device includes: The information processing module is used to configure matching change log nodes for different objects in the client's address book organizational structure, and record corresponding change log information through the change log nodes. The change log information includes the identifier of the object and the identifier of the parent department to which the object belongs. The object includes members and departments. The information transmission module is used to send an information synchronization request to the business server when the server corresponding to the client changes, wherein the information synchronization request carries the first version number information of the address book; The information processing module is used to receive the architecture differential pipeline information sent by the business server; or, to retrieve the architecture differential pipeline information stored by the business server, wherein the architecture differential pipeline information is determined by the business server based on the first version number information of the client and the first architecture version number stored by the client, and the architecture differential pipeline information includes a return packet node limit parameter and a version number parameter of different change pipeline information; The information processing module is used to parse the architecture differential transaction information, and when it is determined that the architecture differential transaction information includes a deletion marker, delete the object in the address book organizational structure corresponding to the architecture differential transaction information; The information processing module is used to maintain the address book organizational structure when it is determined that the identification information in the architecture differential flow information is consistent with the identification information in the client's change flow information; The information processing module is used to respond to the differential flow information of the architecture, obtain business data that matches the objects in the address book organizational structure, and update the address book organizational structure of the client based on the business data; The information processing module is used to update the client's address book organization structure through a full update process when the second architecture version number of the change log information in the client's change log node is earlier than the first architecture version number, the hiding rules in the address book organization structure change, or the location of the target object in the address book organization structure changes. The full update process is implemented as follows: when the change log information in the client's change log node exceeds a first proportion threshold of the client's corresponding storage space, a corresponding number of change log information entries carrying deletion identifiers are deleted from the storage space; when the change log information in the client's change log node exceeds a second proportion threshold of the client's corresponding storage space, change log information entries carrying deletion identifiers stored in the storage space within a corresponding time period are deleted.

7. The apparatus according to claim 6, characterized in that, The information processing module is also used for: Identify different objects in the client's address book organizational structure; based on the identified different objects, configure a first change sequence node for the department objects in the address book organizational structure; Based on the identified different objects, configure a second change pipeline node for the member objects in the address book organizational structure; The first change log node stores the node type, identification information, version number information, and change log information that match the department objects in the address book organizational structure. The second change log node stores the type, identification information, version number information, and change log information of the node that matches the member object in the address book organizational structure.

8. The apparatus according to claim 7, characterized in that, The information processing module is also used for: When a department object is added to the address book organizational structure, the corresponding change log information is added to the first change log node; when a department object is updated in the address book organizational structure, the sequence number corresponding to the change log information in the first change log node is adjusted; when a department object is deleted in the address book organizational structure, the sequence number corresponding to the change log information in the first change log node is adjusted, and the change log information corresponding to the deleted department object is marked.

9. The apparatus according to claim 7, characterized in that, The information processing module is also used for: When a member object is added to the address book organizational structure, the corresponding change sequence information is added to the first change sequence node; when a member object is updated in the address book organizational structure, the sequence number corresponding to the change sequence information in the first change sequence node is adjusted; when a member object is deleted in the address book organizational structure, the sequence number corresponding to the change sequence information in the first change sequence node is adjusted, and the change sequence information corresponding to the deleted member object is marked.

10. The apparatus according to claim 6, characterized in that, The information processing module is also used for: When the server corresponding to the client changes, an information storage request is sent to the data storage server to store the updated version number information, change sequence information of the address book, and member identification information in the address book organizational structure in the cloud server. When the target user obtains the address book organizational structure in the cloud server through the corresponding client on the target terminal, the address book organizational structure of the client on the target terminal is updated based on the version number information, change serial information and member identification information of the address book stored in the cloud server.

11. An electronic device, characterized in that, The electronic device includes: Memory, used to store executable instructions; When a processor is used to execute executable instructions stored in the memory, it implements the organizational restructuring method according to any one of claims 1 to 5.

12. A computer-readable storage medium storing executable instructions, characterized in that, When the executable instructions are executed by the processor, they implement the organizational structure adjustment method according to any one of claims 1 to 5.

13. A computer program product comprising computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Enterprise organization architecture data updating method and device, server and client

    CN110414771A

  • Electronic medical record system and method

    CN110462743A