Method, device and computer equipment for updating employee information in ZenTao
The working time system automatically synchronizes DingTalk employee information to ZenTao, which solves the problem of the gap in member information update between ZenTao and DingTalk systems, achieves efficient employee information update, reduces labor costs and improves the real-time nature of information.
Patent Information
- Application Number
- CN202111045019.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-09-07
AI Technical Summary
The existing ZenTao and DingTalk systems cannot automatically synchronize member information, causing managers to manually update, resulting in high manpower consumption and low efficiency.
The working hours system calls DingTalk's API interface to obtain all employee information, and after processing its format, compare it with the current employee information in the ZenTao database, and automatically update the employee information in ZenTao to ensure that department information is updated first.
It reduces the cost of manual updates, improves update efficiency, and ensures that employee information in ZenTao is up to date.
Smart Images

Figure CN113568922B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method for updating employee information in ZenTao, a device for updating employee information in ZenTao, and a computer device. Background Art
[0002] With the development of the Internet, more and more software can be used to manage employees, such as the project management software ZenTao (a full-featured project management software that integrates product management, project management, quality management, document management, organization management and transaction management), DingTalk (a software used for business communication and work collaboration), and other software.
[0003] In the related technologies, ZenTao and DingTalk are independent of each other, and the member information of the two cannot be communicated with each other. When the administrator finds that the member architecture information of DingTalk has changed, he needs to manually update the member architecture information in ZenTao, which causes huge consumption of manpower and the efficiency of manual update is relatively high. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the above-mentioned technologies to a certain extent. To this end, the first object of the present invention is to propose a method for updating employee information in ZenTao, which can automatically update employee information in ZenTao through all employee information in the work time system, thereby reducing the labor cost caused by manual updating, improving the updating efficiency, and ensuring that the employee information in ZenTao is the latest.
[0005] The second objective of the present invention is to provide a device for updating employee information in ZenTao.
[0006] A third object of the present invention is to provide a computer device.
[0007] A fourth object of the present invention is to provide a non-transitory computer-readable storage medium.
[0008] To achieve the above-mentioned purpose, the first embodiment of the present invention proposes a method for updating employee information in ZenTao, comprising: sending an information acquisition request to a work time system, so that the work time system acquires all employee information contained in DingTalk by calling an API interface of DingTalk, wherein the all employee information includes all department information and all personal information;
[0009] Receiving all employee information sent by the working time system according to the information acquisition request;
[0010] Processing the format of all employee information;
[0011] Obtaining the current employee information in the ZenTao database, wherein the current employee information includes the current department information and the current personal information;
[0012] Based on the processed information of all employees and the information of the current employee, determining ZenTao users who belong to ZenTao among all employees;
[0013] The current employee information is updated according to the ZenTao employee information corresponding to the ZenTao user in the total employee information, wherein the update of the current department information in the current employee information takes precedence over the update of the current personal information.
[0014] In addition, the method for updating employee information in ZenTao according to the above embodiment of the present invention may also have the following additional technical features:
[0015] According to an embodiment of the present invention, sending the information acquisition request to the working time system includes:
[0016] Receive data update instructions from administrators through ZenTao front-end;
[0017] Calling the ZenTao backend Controller layer according to the data update instruction;
[0018] Call the Model layer through the ZenTao backend Controller layer;
[0019] An information acquisition request is sent to the working time system through the Model layer.
[0020] According to an embodiment of the present invention, the ZenTao front end is provided with a synchronized organizational structure button, which is used to instruct the ZenTao to start updating the current employee information, and the administrator sends the data update instruction by clicking the synchronized organizational structure button.
[0021] According to an embodiment of the present invention, the personal information includes: employee name, email address and telephone number.
[0022] According to an embodiment of the present invention, determining the ZenTao users belonging to ZenTao among all employees based on the processed information of all employees and the current employee information includes:
[0023] Obtaining the employee names contained in the processed all employee information;
[0024] Determine whether the employee's name exists in the current employee information;
[0025] If the employee's name exists in the current employee information, it is determined that the employee is a ZenTao user;
[0026] If the employee name does not exist in the current employee information, it is determined that the employee is not a ZenTao user.
[0027] According to an embodiment of the present invention, determining the ZenTao users belonging to ZenTao among all employees based on the processed information of all employees and the current employee information includes:
[0028] Obtaining the employee names contained in the processed all employee information;
[0029] Determine whether the employee's name exists in the current employee information;
[0030] If the employee's name exists in the current employee information, it is determined that the employee is a ZenTao user;
[0031] If the employee name does not exist in the current employee information, it is determined that the employee is not a ZenTao user.
[0032] According to an embodiment of the present invention, updating the current employee information according to the ZenTao employee information corresponding to the ZenTao user in the total employee information includes:
[0033] Acquire the ZenTao employee information corresponding to the ZenTao user from the all employee information;
[0034] Determine whether there is any employee information to be updated in the current employee information that does not match the ZenTao employee information;
[0035] When the employee information to be updated exists, determining the name of the employee to be updated corresponding to the employee information to be updated;
[0036] Acquire the target employee information corresponding to the employee name to be updated from the ZenTao employee information;
[0037] The employee information to be updated is updated according to the target employee information.
[0038] To achieve the above purpose, the second embodiment of the present invention provides a device for updating employee information in ZenTao, comprising:
[0039] A sending module, used to send an information acquisition request to the work time system, so that the work time system obtains all employee information contained in DingTalk by calling the API interface of DingTalk, wherein the all employee information includes all department information and all personal information;
[0040] A receiving module, used to receive all employee information sent by the working time system according to the information acquisition request;
[0041] A processing module, used for processing the format of all employee information;
[0042] The acquisition module is used to acquire the current employee information in the ZenTao database, wherein the current employee information includes the current department information and the current personal information;
[0043] A determination module, configured to determine ZenTao users belonging to ZenTao among all employees based on the processed information of all employees and the current employee information;
[0044] The updating module is used to update the current employee information according to the ZenTao employee information corresponding to the ZenTao user in the total employee information, wherein the updating of the current department information in the current employee information takes precedence over the updating of the current personal information.
[0045] In addition, the device for updating employee information in ZenTao according to the above embodiment of the present invention may also have the following additional technical features:
[0046] According to an embodiment of the present invention, the sending module is specifically used for:
[0047] Receive data update instructions from administrators through ZenTao front-end;
[0048] Calling the ZenTao backend Controller layer according to the data update instruction;
[0049] Call the Model layer through the ZenTao backend Controller layer;
[0050] An information acquisition request is sent to the working time system through the Model layer.
[0051] To achieve the above objectives, the third aspect of the present invention proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for updating employee information in ZenTao proposed in the first aspect of the present invention is implemented.
[0052] To achieve the above objectives, the fourth aspect of the present invention provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for updating employee information in ZenTao provided in the first aspect of the present invention.
[0053] The technical solution of the present invention synchronizes the user information on DingTalk to ZenTao through the work time system, and updates the employee information in ZenTao according to the employee information on DingTalk. Thus, the employee information in ZenTao is automatically updated through all the employee information in the work time system, which can reduce the labor cost caused by manual updating, improve the updating efficiency, and ensure that the employee information in ZenTao is the latest. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 The figure is a flow chart of a method for updating employee information in ZenTao according to an embodiment of the present invention.
[0055] Figure 2 The flowchart of ZenTao sending an information acquisition request according to an embodiment of the present invention is shown.
[0056] Figure 3 The figure is a schematic diagram of the ZenTao front-end to back-end call according to an embodiment of the present invention.
[0057] Figure 4 This is a flow chart of updating current employee information according to an embodiment of the present invention.
[0058] Figure 5 Schematic diagram of a block diagram of a device for updating employee information in ZenTao according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] It should be noted that, for the project management software ZenTao and DingTalk of the same company A, when it is found that the employee information of company A has changed, the administrator needs to update the employee information in ZenTao after updating the employee information in DingTalk. At this time, through the method for updating employee information in ZenTao of the embodiment of the present invention, the administrator does not need to manually update the employee information in ZenTao (i.e., update it according to DingTalk), but ZenTao can obtain all employee information in DingTalk through the working time system, without the need for manual changes to the employee information, which greatly reduces labor costs.
[0061] Among them, the working time system can be understood as a system used within the enterprise to record employee working time information, and its employee information is complete and accurate.
[0062] Figure 1 The figure is a flow chart of a method for updating employee information in ZenTao according to an embodiment of the present invention.
[0063] like Figure 1 As shown, the method comprises the following steps:
[0064] S1, sending an information acquisition request to the work time system, so that the work time system obtains all employee information contained in DingTalk by calling the API interface of DingTalk, where all employee information includes all department information and all personal information.
[0065] The information acquisition request may be understood as a request for acquiring all employee information contained in the working time system. The request may be issued according to the instructions of the manager or may be automatically issued according to a set time.
[0066] Among them, all employee information may refer to the employee information corresponding to all employees in the enterprise, including all department information and all personal information. All department information may include but is not limited to: inheritance information between departments and department attribute information (such as R&D, testing, etc.), and all personal information may include but is not limited to: employee name, email address and phone number.
[0067] In an embodiment of the present invention, the working time system can be associated with DingTalk, that is, the working time system and DingTalk can obtain all employee information within DingTalk by calling the underlying API (Application Programming Interface) of DingTalk.
[0068] Specifically, when employee information changes and the employee information within ZenTao needs to be updated, ZenTao can send an information acquisition request to the work time system. After receiving the information acquisition request, the work time system calls the underlying API interface of DingTalk to obtain all employee information within DingTalk.
[0069] S2, receiving all employee information sent by the working time system according to the information acquisition request.
[0070] Specifically, after the work time system receives all employee information, it can send all employee information to ZenTao, and then ZenTao receives all employee information.
[0071] S3, processes the format of all employee information.
[0072] It should be noted that the data structure of all employee information returned by the timekeeping system is not recognizable by ZenTao. Therefore, the format of all employee information returned by the timekeeping system can be processed first, and then subsequent processing can be performed.
[0073] S4, obtaining the current employee information in the ZenTao database, wherein the current employee information includes the current department information and the current personal information.
[0074] The current employee information may refer to the current (i.e., before update) employee information in the ZenTao database. Department information may include, but is not limited to: inter-department inheritance information and department attribute information (such as R&D, testing, etc.), and personal information may include, but is not limited to: employee name, email address, and phone number.
[0075] Specifically, ZenTao can obtain the current employee information in its own database through feasible methods, that is, it can obtain the current department information and current personal information within it.
[0076] S5, based on the processed information of all employees and the current employee information, determine the ZenTao users who belong to ZenTao among all employees.
[0077] After processing all employee information and obtaining the current employee information, the ZenTao users who belong to ZenTao among all employees corresponding to all employee information can be determined based on all employee information and current employee information, and dual-platform users using DingTalk and ZenTao can be found. Generally speaking, ZenTao users must be DingTalk users, but DingTalk users are not necessarily ZenTao users, that is, each employee corresponding to the current employee information must be part of all employees corresponding to all employee information, and each employee corresponding to all employee information is not necessarily an employee in the current employee information.
[0078] S6, updating the current employee information according to the ZenTao employee information corresponding to the ZenTao user in all employee information, wherein the updating of the current department information in the current employee information precedes the updating of the current personal information.
[0079] Specifically, after determining the ZenTao users included in the DingTalk users, the ZenTao user information corresponding to the ZenTao users in the entire employee information can be obtained, and the current employee information can be updated according to the ZenTao user information. The current department information can be updated first, and then the current personal information can be updated. That is, the current department information can be updated first according to the department information corresponding to the ZenTao user, and then the current personal information can be updated according to the personal information corresponding to the ZenTao user.
[0080] For example, if all employees of an enterprise Y are a, b, c, and d, then all employee information in DingTalk includes each employee's department information and personal information. Assuming that the ZenTao users are a and b, and a's department information in the ZenTao database is x1 and his personal information is x2, then when employee a's employee information changes, x1 can be updated according to a's department information in the DingTalk user database, and x2 can be updated according to a's employee information.
[0081] Therefore, this method can automatically update the employee information in ZenTao through all the employee information in the work time system, which can reduce the labor cost caused by manual updating, improve the updating efficiency, and ensure that the employee information in ZenTao is the latest.
[0082] In one embodiment of the present invention, the above step S1 may include the following steps:
[0083] S11, receiving a data update instruction sent by an administrator through the ZenTao front-end.
[0084] In one example, the ZenTao front-end may be provided with a synchronize organizational structure button for instructing ZenTao to start updating the current employee information. The administrator may send a data update instruction by clicking the synchronize organizational structure button.
[0085] S12, calling the ZenTao backend Controller layer according to the data update instruction.
[0086] S13, call the Model layer through the ZenTao backend Controller layer.
[0087] S14, sending an information acquisition request to the working time system through the Model layer.
[0088] Specifically, when it is necessary to update the employee information within ZenTao, the administrator can open the front-end page of ZenTao, log in with the management account in the ZenTao-Organization view, find the Synchronize Organizational Structure button on the front-end page, and click the button to issue a data update instruction, so that the ZenTao front-end sends a request to the back-end. When the back-end receives the request, it calls the ZenTao back-end Controller layer, and then calls the Model layer through the ZenTao back-end Controller layer. That is, the chain is: Controller layer-Model layer, and the Model layer sends an information acquisition request to the work time system. After that, the work time system can obtain all employee information contained in DingTalk by calling the API interface of DingTalk, and return all employee information to ZenTao.
[0089] In this example, the request from the frontend to the backend is as follows Figure 3 As shown, the front-end uses the CreateLink method of the ZenTao PHP framework. Since ZenTao does not separate the front-end and back-end architecture, this method can be used to call the Controller layer directly, and then the Controller layer calls the Model layer to complete the entire calling process.
[0090] In one embodiment of the present invention, Figure 4 As shown, the above step S5 may include: obtaining the employee name contained in all processed employee information; determining whether the employee name exists in the current employee information; if the employee name exists in the current employee information, determining that the employee is a ZenTao user; if the employee name does not exist in the current employee information, determining that the employee is not a ZenTao user.
[0091] Specifically, all employee information contains all employee names, and some of the employee names exist in ZenTao. Therefore, the ZenTao users among all employees can be determined by judging whether the employee name exists in the current employee information. There may be one or more ZenTao users. In addition, the ZenTao roster can be determined by directly obtaining employee information in ZenTao, and then the ZenTao roster is compared with the DingTalk roster. Among them, users with the same alias or name are ZenTao users (dual-platform users). If they are different, data synchronization will not be performed, so as to maximize the fit of user groups.
[0092] After the ZenTao user is determined, the above step S6 is executed.
[0093] In one embodiment of the present invention, referring to Figure 4 , the above step S6 may include: obtaining the ZenTao employee information corresponding to the ZenTao user from all employee information; determining whether there is employee information to be updated that does not match the ZenTao employee information in the current employee information; if there is employee information to be updated, determining the name of the employee to be updated corresponding to the employee information to be updated; obtaining the target employee information corresponding to the name of the employee to be updated from the ZenTao employee information; and updating the employee information to be updated according to the target employee information.
[0094] The employee information to be updated can be understood as the employee information that needs to be updated in the current employee information. The target employee information can be understood as the employee information of the ZenTao user that has been updated in all employee information.
[0095] Specifically, after the ZenTao user is determined, the ZenTao employee information corresponding to the ZenTao user can be obtained from all employee information, where there may be one or more ZenTao users. Then, it is determined whether there is employee information to be updated that does not match the ZenTao employee information in the current employee information in the ZenTao database. For example, when the telephone number w1 of ZenTao user y in the current employee information is inconsistent with the telephone number w2 in the ZenTao employee information, it means that the current employee information of ZenTao user y does not match the ZenTao user information, that is, there is employee information w1 to be updated that does not match the ZenTao employee information in the current employee information. The employee name y corresponding to the employee information w1 to be updated is determined. After that, the target employee information corresponding to y can be found in the ZenTao employee information, and then the employee information to be updated can be updated to the target employee information, thereby realizing the process of synchronizing DingTalk employee information to ZenTao employee information.
[0096] That is to say, after ZenTao requests the data from the work time system, the user information in the work time system does not completely match the ZenTao database and needs to be processed. After that, the department information is synchronized first, such as processing the inheritance relationship between departments, and then all personal information belonging to the corresponding department is synchronized, mainly including name, email address, phone number, etc. At the same time, in order to distinguish the employee information who is a DingTalk user but not a ZenTao user, the name is compared with the existing ZenTao users. If it is consistent, it is a user of the two platforms (ZenTao and DingTalk). If it is inconsistent, it will not be synchronized, so as to maximize the fit of the user group, so as to process the information source in DingTalk into a format that ZenTao can recognize and store it in the ZenTao database.
[0097] In summary, the method for updating employee information in ZenTao in the embodiment of the present invention eliminates the gap between employee information in ZenTao and DingTalk platforms. By synchronizing DingTalk employee information to ZenTao, maintenance costs can be reduced, and it is convenient for each role in the production process to manage members. Through data support, online problems can be tracked to departments and visualized on the large screen for real-time observation. In addition, it lays the foundation for the company to conduct BUG indicator statistics at the granularity of departments in the future, provides data source support for subsequent efficiency improvement, and is conducive to improving product quality.
[0098] Figure 5 Schematic diagram of a block diagram of a device for updating employee information in ZenTao according to an embodiment of the present invention.
[0099] like Figure 5 As shown, the employee information updating device 100 in ZenTao includes: a sending module 10, a receiving module 20, a processing module 30, an acquiring module 40, a determining module 50 and an updating module 60.
[0100] Among them, the sending module 10 is used to send an information acquisition request to the working time system, so that the working time system obtains all employee information contained in DingTalk by calling the API interface of DingTalk, wherein all employee information includes all department information and all personal information; the receiving module 20 is used to receive all employee information sent by the working time system according to the information acquisition request; the processing module 30 is used to process the format of all employee information; the acquisition module 40 is used to obtain the current employee information in the ZenTao database, wherein the current employee information includes the current department information and the current personal information; the determination module 50 is used to determine the ZenTao users belonging to ZenTao among all employees based on the processed all employee information and the current employee information; the update module 60 is used to update the current employee information according to the ZenTao employee information corresponding to the ZenTao user in all employee information, wherein the update of the current department information in the current employee information takes precedence over the update of the current personal information.
[0101] In one embodiment, the sending module 10 can be specifically used to: receive data update instructions sent by the administrator through the ZenTao front-end; call the ZenTao back-end Controller layer according to the data update instructions; call the Model layer through the ZenTao back-end Controller layer; and send an information acquisition request to the work time system through the Model layer.
[0102] In one embodiment, the ZenTao front-end may be provided with a synchronize organizational structure button for instructing ZenTao to start updating the current employee information. The administrator sends a data update instruction by clicking the synchronize organizational structure button.
[0103] In one embodiment, the personal information may include: employee name, email address, and phone number.
[0104] In one embodiment, the processing module 50 may include: a first acquisition unit, used to acquire the employee name contained in all processed employee information; a first judgment unit, used to judge whether the employee name exists in the current employee information; a first determination unit, used to determine that the employee belongs to a ZenTao user if the employee name exists in the current employee information; and a second determination unit, used to determine that the employee does not belong to a ZenTao user if the employee name does not exist in the current employee information.
[0105] In one embodiment, the update module 60 may include: a second acquisition unit, used to acquire the ZenTao employee information corresponding to the ZenTao user from all employee information; a second judgment unit, used to judge whether there is employee information to be updated that does not match the ZenTao employee information in the current employee information; a third determination unit, used to determine the name of the employee to be updated corresponding to the employee information to be updated when there is employee information to be updated; acquiring the target employee information corresponding to the employee name to be updated from the ZenTao employee information from the third acquisition unit; an update unit, used to update the employee information to be updated according to the target employee information.
[0106] It should be noted that other specific implementations of the device for updating employee information in ZenTao in the embodiment of the present invention can refer to the specific implementations of the method for updating employee information in ZenTao mentioned above, which will not be described here to avoid redundancy.
[0107] The device can automatically update the employee information in ZenTao through all the employee information in the timekeeping system, which can reduce the labor cost caused by manual updating, improve the updating efficiency, and ensure that the employee information in ZenTao is up to date.
[0108] Corresponding to the above embodiment, the present invention also provides a computer device.
[0109] The computer device of the embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for updating employee information in ZenTao according to the above embodiment of the present invention can be implemented.
[0110] According to the computer device of an embodiment of the present invention, when the processor executes the computer program stored in the memory, it first sends an information acquisition request to the work time system, so that the work time system obtains all employee information contained in DingTalk by calling the API interface of DingTalk, wherein all employee information includes all department information and all personal information; then receives all employee information sent by the work time system according to the information acquisition request; then processes the format of all employee information; thereafter, obtains the current employee information in the ZenTao database, wherein the current employee information includes current department information and current personal information; based on the processed all employee information and the current employee information, determines the ZenTao users belonging to ZenTao among all employees; finally, according to the ZenTao employee information corresponding to the ZenTao users in all employee information, updates the current employee information, wherein the update of the current department information in the current employee information takes precedence over the update of the current personal information.
[0111] Therefore, when the processor of the computer device executes the computer program, it can automatically update the employee information in ZenTao through all the employee information in the work time system, which can reduce the labor cost caused by manual updating, improve the updating efficiency, and ensure that the employee information in ZenTao is the latest.
[0112] Corresponding to the above embodiment, the present invention also proposes a non-transitory computer-readable storage medium.
[0113] The non-transitory computer-readable storage medium of the embodiment of the present invention stores a computer program, which, when executed by a processor, can implement the method for updating employee information in ZenTao according to the above embodiment of the present invention.
[0114] According to the non-temporary computer-readable storage medium of an embodiment of the present invention, when the processor executes the computer program stored thereon, it first sends an information acquisition request to the work time system, so that the work time system obtains all employee information contained in DingTalk by calling the API interface of DingTalk, wherein all employee information includes all department information and all personal information; then receives all employee information sent by the work time system according to the information acquisition request; then processes the format of all employee information; thereafter, obtains the current employee information in the ZenTao database, wherein the current employee information includes current department information and current personal information; based on the processed all employee information and the current employee information, determines the ZenTao users belonging to ZenTao among all employees; finally, according to the ZenTao employee information corresponding to the ZenTao users in all employee information, updates the current employee information, wherein the update of the current department information in the current employee information takes precedence over the update of the current personal information.
[0115] Therefore, when the processor executes the computer program, the storage medium can automatically update the employee information in ZenTao through all the employee information in the work time system, which can reduce the labor cost caused by manual update, improve the update efficiency, and ensure that the employee information in ZenTao is the latest.
[0116] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.
[0117] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0118] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0119] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0120] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0121] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0122] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0123] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for updating employee information in ZenTao. It is characterized in that include: Sending an information acquisition request to the work time system, so that the work time system acquires all employee information contained in DingTalk by calling the API interface of DingTalk, wherein the all employee information includes all department information and all personal information; Receiving all employee information sent by the working time system according to the information acquisition request; Processing the format of all employee information; Obtaining the current employee information in the ZenTao database, wherein the current employee information includes the current department information and the current personal information; Based on the processed information of all employees and the information of the current employee, determining ZenTao users who belong to ZenTao among all employees; According to the ZenTao employee information corresponding to the ZenTao user in the total employee information, the current employee information is updated, wherein the update of the current department information in the current employee information takes precedence over the update of the current personal information, The updating of the current employee information according to the ZenTao employee information corresponding to the ZenTao user in the total employee information includes: Acquire ZenTao employee information corresponding to the ZenTao user from the all employee information; Determine whether there is any employee information to be updated in the current employee information that does not match the ZenTao employee information; When the employee information to be updated exists, determining the name of the employee to be updated corresponding to the employee information to be updated; Acquire target employee information corresponding to the employee name to be updated from the ZenTao employee information; Update the employee information to be updated according to the target employee information, The sending of the information acquisition request to the working time system includes: Receive data update instructions from administrators through ZenTao front-end; Calling the ZenTao backend Controller layer according to the data update instruction; Call the Model layer through the ZenTao backend Controller layer; An information acquisition request is sent to the working time system through the Model layer.
2. The method for updating employee information in ZenTao according to claim 1, It is characterized in that The ZenTao front end is provided with a synchronize organization structure button, which is used to instruct the ZenTao to start updating the current employee information. The administrator sends the data update instruction by clicking the synchronize organization structure button.
3. The method for updating employee information in ZenTao according to claim 1, It is characterized in that The personal information includes: employee name, email address and telephone number.
4. The method for updating employee information in ZenTao according to claim 3, It is characterized in that The determining, based on the processed information of all employees and the current employee information, ZenTao users belonging to ZenTao among all employees includes: Obtaining the employee names contained in the processed all employee information; Determine whether the employee's name exists in the current employee information; If the employee's name exists in the current employee information, it is determined that the employee is a ZenTao user; If the employee name does not exist in the current employee information, it is determined that the employee is not a ZenTao user.
5. A device for updating employee information in ZenTao, It is characterized in that include: A sending module, used to send an information acquisition request to the work time system, so that the work time system obtains all employee information contained in DingTalk by calling the API interface of DingTalk, wherein the all employee information includes all department information and all personal information; A receiving module, used for receiving all employee information sent by the working time system according to the information acquisition request; A processing module, used for processing the format of all employee information; The acquisition module is used to acquire the current employee information in the ZenTao database, wherein the current employee information includes the current department information and the current personal information; A determination module, configured to determine ZenTao users belonging to ZenTao among all employees based on the processed information of all employees and the current employee information; An updating module is used to update the current employee information according to the ZenTao employee information corresponding to the ZenTao user in the total employee information, wherein the updating of the current department information in the current employee information takes precedence over the updating of the current personal information. Update modules include: The second acquisition unit is used to acquire the ZenTao employee information corresponding to the ZenTao user from all employee information; The second judgment unit is used to judge whether there is any employee information to be updated in the current employee information that does not match the ZenTao employee information; A third determining unit is used to determine the name of the employee to be updated corresponding to the employee information to be updated when there is employee information to be updated; The third acquisition unit is used to acquire the target employee information corresponding to the employee name to be updated from the ZenTao employee information; The updating unit is used to update the employee information to be updated according to the target employee information. The sending module is specifically used for: Receive data update instructions from administrators through ZenTao front-end; Calling the ZenTao backend Controller layer according to the data update instruction; Call the Model layer through the ZenTao backend Controller layer; An information acquisition request is sent to the working time system through the Model layer.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method for updating employee information in ZenTao according to any one of claims 1 to 4 is implemented.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for updating employee information in ZenTao according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Group management method and device
CN107403302A
