Method, device and equipment for bulk switching of contacts in enterprise social app
By setting up information record tables and batch callback interfaces in a third-party service system, the contact relationships in enterprise-level social apps are automatically updated, solving the problem of cumbersome employee contact switching in existing technologies and achieving fast and efficient batch switching.
Patent Information
- Application Number
- CN202510060266.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2045-01-15
AI Technical Summary
Existing enterprise-level social apps require administrators to manually switch employee contacts, which is cumbersome and time-consuming, and lacks batch switching functionality.
By setting up an information record table and a batch callback interface in a third-party service system, the correspondence between service specialists and employees can be automatically updated, enabling batch switching of contacts in enterprise-level social apps. The system automatically updates friend relationships using the identification information in the information record table and the callback interface.
It improves the speed and efficiency of contact switching, reduces the tediousness of manual operation, and provides convenience for service personnel.
Smart Images

Figure CN119961023B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet, and particularly relates to a method and device for batch switching of contacts in an enterprise-level social app, an electronic device, a computer readable storage medium and a computer program product. BACKGROUND
[0002] In order to communicate with service objects in time, service personnel in an enterprise will add service objects as contacts by using an enterprise-level social app. Since each service personnel will be responsible for service of multiple members in a company or an entire organization, the service personnel will have many contacts in the enterprise-level social app. In the prior art, when an employee of a certain account is transferred, the contacts under the employee need to be assigned to multiple counterparts. However, the enterprise-level social app currently does not have a function of switching multiple contacts under a certain account, and an administrator needs to switch the contacts one by one in a background management page of the enterprise-level social app, which needs to be operated multiple times and is very cumbersome. SUMMARY
[0003] Therefore, the embodiments of the present application provide a method and device for batch switching of contacts in an enterprise-level social app, an electronic device, a computer readable storage medium and a computer program product, which are used to solve at least one technical problem.
[0004] The embodiment of the application provides a method for batch switching of contacts in an enterprise-level social app, characterized in that the method is realized based on an enterprise-level social app and a third-party service system, a callback interface for batch returning information is arranged between the third-party service system and the enterprise-level social app, the third-party service system comprises an information record table, the information record table comprises the following information: service agent account information and an agent identifier oprid of the service agent registered in the third-party service system, organization structure information and an organization structure identifier orgid of an enterprise, employee information and an employee identifier empid in the organization structure, an identity identifier unionid obtained by an employee after binding a personal social app account to the enterprise-level social app, and a corresponding relationship between a service agent providing a third-party service for the employee and the employee; the enterprise-level social app comprises a registered service agent account and an agent identifier userid, a registered employee account and an employee identifier external_userid, and a friend relationship between the service agent and the corresponding employee; the method comprises the following steps: when one or more service agents providing a third-party service for the employee are changed, the third-party service system updates the corresponding relationship between the service agents and the employees in the information record table; the third-party service system obtains the oprid of a new service agent corresponding to the employee who is changed according to the updated information record table, and determines the userid of the new service agent in the enterprise-level social app according to the oprid of the new service agent; the third-party service system obtains the unionid of a plurality of employees who are changed according to the updated information record table, divides the plurality of unionids into a plurality of sets, the unionids in each set correspond to the same old service agent, determines a corresponding empid set according to the employee information in each unionid set, and obtains a plurality of first-type empid sets; the third-party service system determines the unionid set of the employees corresponding to each old service agent according to the external_userid of the friend employees of each old service agent in the enterprise-level social app, determines a plurality of empid sets corresponding to each unionid set according to the employee information in each unionid set, and obtains a plurality of second-type empid sets; the third-party service system determines the external_userid corresponding to one or more employee information which simultaneously belongs to the first-type empid set and belongs to the second-type empid set, and updates the corresponding relationship of the one or more employee information in the enterprise-level social app to the new service agent through the external_userid, thereby completing batch switching of the friend employees of the new and old service agents.
[0005] Optionally, according to the method of the embodiment of the present application, the enterprise-level social app determines the external_userid corresponding to the one or more employee information according to the one or more employee information belonging to the first type of empid set and belonging to the second type of empid set, and updates the corresponding relationship of the one or more employee information to the new service officer through the external_userid, including: obtaining the intersection of each corresponding first type of empid set and second type of empid set to obtain a plurality of empid intersections; determining the corresponding one or more unionids according to one or more empids in each empid intersection, and determining the corresponding one or more external_userids according to the one or more unionids; determining one or more employee information that has the change according to the one or more external_userids; updating the corresponding relationship of one or more employees that have the change in each empid intersection to the userid of the new service officer to establish a friend relationship between the new service officer and the corresponding employee.
[0006] Optionally, according to the method of the embodiment of the present application, the method further includes: the enterprise-level social app stores the obtained one or more external_userids in a message queue, and updates a plurality of external_userids to the userid of the new service officer in batches by calling the message queue.
[0007] Optionally, according to the method of the embodiment of the present application, the change includes one or more of the following multiple change items: enterprise change, employee organization change, employee change.
[0008] Optionally, according to the method of the embodiment of the present application, the personal information of the employee registered in the enterprise-level social app includes a mobile phone number, the mobile phone number is bound to the external_userid of the employee in the enterprise-level social app, and the third-party service system locates the empid of the employee according to the mobile phone number.
[0009] The embodiment of the application provides a device for batch switching of contacts in an enterprise-level social app, which is realized based on an enterprise-level social app and a third-party service system, and a callback interface for batch returning information is arranged between the third-party service system and the enterprise-level social app, wherein the third-party service system comprises an information record table, and the information record table comprises the following information: service agent account information and an agent identifier oprid of the service agent registered in the third-party service system, organization structure information and an organization structure identifier orgid of an enterprise, employee information and an employee identifier empid in the organization structure, an identity identifier unionid obtained by an employee after binding a personal social app account to the enterprise-level social app, and a corresponding relationship between a service agent providing a third-party service for the employee and the employee; the enterprise-level social app comprises a registered service agent account and an agent identifier userid, a registered employee account and an employee identifier external_userid, and a friend relationship between the service agent and the corresponding employee; the device comprises an updating module, which is used for updating the corresponding relationship between the service agent and the employee in the information record table by the third-party service system when one or more service agents providing a third-party service for the employee are changed; a first obtaining module, which is used for obtaining the oprid of a new service agent corresponding to the employee where the change occurs according to the updated information record table, and determining the userid of the new service agent in the enterprise-level social app according to the oprid of the new service agent; a second obtaining module, which is used for obtaining the unionid of a plurality of employees where the change occurs according to the updated information record table, dividing the plurality of unionids into a plurality of sets, the unionids in each set corresponding to the same old service agent, and determining a corresponding empid set according to the employee information in each unionid set to obtain a plurality of first-type empid sets; a first determining module, which is used for determining the unionid set of the employees corresponding to each old service agent according to the external_userid of the friend employee of each old service agent in the enterprise-level social app, and determining a plurality of empid sets corresponding to each unionid set according to the employee information in the unionid set to obtain a plurality of second-type empid sets; and a second determining module, which is used for determining the external_userid corresponding to one or more employee information which simultaneously belongs to the first-type empid set and the second-type empid set according to the one or more employee information, and updating the corresponding relationship of the one or more employee information in the enterprise-level social app to the new service agent through the external_userid, so as to complete batch switching of the friend employees of the new and old service agents.
[0010] An electronic device is provided, which comprises a processor and a memory storing computer program instructions; the processor implements the steps of the method as described above when executing the computer program instructions.
[0011] A computer readable storage medium is provided, which stores computer program instructions; the computer program instructions are executed by a processor to implement the steps of the method as described above.
[0012] A computer program product is provided, which comprises computer program instructions; the computer program instructions are executed by a processor to implement the steps of the method as described above.
[0013] Embodiments of the present application record the correspondence between the identities of the employees and the service officers in the information record table set in the third-party service system, and through the batch information callback interface set between the third-party service system and the enterprise-level social app, the batch switching of the contact information of the service officers in the enterprise-level social app is realized, the speed of switching the contact information of the service officers is improved, and the use of the enterprise-level social app by the service officers is facilitated. BRIEF DESCRIPTION OF DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings in the embodiments of the present application.
[0015] Figure 1 is a schematic diagram of the system architecture of the embodiments of the present application.
[0016] Figure 2 is a flow chart of the method for batch switching of contact information in the enterprise-level social app according to the embodiments of the present application.
[0017] Figure 3 is a schematic diagram of the processing process for batch switching of contact information in the enterprise-level social app according to the embodiments of the present application.
[0018] Figure 4 is another schematic diagram of the processing process for batch switching of contact information in the enterprise-level social app according to the embodiments of the present application.
[0019] Figure 5 is a structural block diagram of the device for batch switching of contact information in the enterprise-level social app according to the embodiments of the present application.
[0020] Figure 6 is a schematic diagram of the hardware structure of the electronic device according to the embodiments of the present application. DETAILED DESCRIPTION
[0021] The principles and spirit of this application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided to make the principles and spirit of this application clearer and more thorough, enabling those skilled in the art to better understand and implement the principles and spirit of this application. The exemplary embodiments provided herein are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments described herein without inventive effort are within the scope of protection of this application.
[0022] The embodiments of this application relate to terminal devices and / or servers. Those skilled in the art will understand that the embodiments of this application can be implemented as a system, apparatus, device, method, computer-readable storage medium, or computer program product. Therefore, this disclosure can be specifically implemented in at least one of the following forms: entirely hardware, entirely software, or a combination of hardware and software. According to embodiments of this application, this application claims protection for a method, apparatus, electronic device, computer-readable storage medium, and computer program product for batch switching of contacts in an enterprise-level social app. Figure 1 A schematic diagram of a system architecture according to an embodiment of this application is shown. For example... Figure 1 As shown, the system includes a terminal device 102 and a server 104. The terminal device 102 can include at least one of the following: a smartphone, tablet, laptop, desktop computer, smart TV, various wearable devices, augmented reality (AR) devices, virtual reality (VR) devices, etc. A client can be installed on the terminal device 102. For example, the client can be a client specifically designed to perform a particular function (such as an application app), or a client with multiple embedded application applets (with different functions), or a client logged in via a browser. Users can operate on the terminal device 102. For example, a user can open the client installed on the terminal device 102 and input commands through the client, or a user can open the browser installed on the terminal device 102 and input commands through the browser. After receiving the user's input command, the terminal device 102 sends a request message containing the command to the server 104. After receiving the request message, the server 104 performs the corresponding processing and then returns the processing result information to the terminal device 102. The user command is completed through a series of data processing and information interaction.
[0023] In this document, terms such as first, second, and third are used only to distinguish one entity (or operation) from another, and are not intended to require or imply any order or relationship between these entities (or operations).
[0024] Figure 2A flow chart of a method for batch switching of contacts in an enterprise-level social app is shown. The method for batch switching of contacts in an enterprise-level social app is implemented based on an enterprise-level social app and a third-party service system, and a callback interface for batch returning information is provided between the third-party service system and the enterprise-level social app, wherein,
[0025] The third-party service system includes an information record table, which includes the following information: service agent account information and agent identifier oprid registered in the third-party service system, organization structure information and organization structure identifier orgid of an enterprise, employee information and employee identifier empid in the organization structure, identity identifier unionid obtained by an employee after binding a personal social app account to the enterprise-level social app, and a corresponding relationship between a service agent providing a third-party service for the employee and the employee;
[0026] The enterprise-level social app includes registered service agent accounts and agent identifiers userid, registered employee accounts and employee identifiers external_userid, a binding relationship between external_userid and unionid, and a friend relationship between a service agent and a corresponding employee;
[0027] The method includes the following steps:
[0028] S101: When one or more service agents providing a third-party service for employees are changed, the third-party service system updates the corresponding relationship between the service agents and the employees in the information record table;
[0029] S102: The third-party service system obtains the oprid of a new service agent corresponding to the changed employee according to the updated information record table, and determines the userid of the new service agent in the enterprise-level social app according to the oprid of the new service agent;
[0030] S103: The third-party service system obtains the unionid of the plurality of changed employees according to the updated information record table, divides the plurality of unionids into a plurality of sets, the unionids in each set correspond to the same old service agent, determines a corresponding empid set according to the employee information in each unionid set, and obtains a plurality of first-type empid sets;
[0031] S104: The third-party service system determines the unionid set of the employees corresponding to each old service officer according to the external_userid of the friend employees of each old service officer in the enterprise-level social app, and determines a plurality of empid sets corresponding to each unionid set according to the employee information in each unionid set, to obtain a plurality of second-type empid sets;
[0032] S105: The third-party service system determines the external_userid corresponding to one or more employee information that simultaneously belongs to the first-type empid set and belongs to the second-type empid set, and updates the corresponding relationship of the one or more employee information in the enterprise-level social app to the new service officer through the external_userid, to complete the batch switching of the friend employees of the new and old service officers.
[0033] In the embodiments of the present application, the enterprise-level social app refers to a social software used between employees in an enterprise or organization, such as WeChat for Enterprise, Feishu, DingTalk, etc. The third-party service system refers to a software relied on by a third party to provide various outsourcing services for enterprises, and the organization structure information, organization structure identifier orgid, employee information and employee identifier empid of the service officer service object, and the identity information and identifier of the service officer are stored in the third-party service system. Wherein, these information and corresponding relationship are stored in the information record table in the third-party service system. The service officer refers to a specially assigned staff member who provides services for the third-party service tool for enterprises and employees of the enterprise.
[0034] The employees in the enterprise can log in to the enterprise-level social app by using the account in the personal social software, and can obtain the identity identifier unionid after being bound to the enterprise-level social app.
[0035] For ease of understanding, Table 1 shows the first information record table in the embodiments of the present application;
[0036] Table 1
[0037]
[0038]
[0039] The employee name, employee phone, employee organization, organization identifier orgid, employee identifier empid, hro_userid corresponding to the employee HRO system account generated in the HRO system when the employee logs in to the HRO system applet, unionid generated when the employee logs in to the enterprise-level social app by using the personal social software, service officer name, and service officer identifier opid are recorded in the first information record table.
[0040] It should be noted that in the information recording table shown in Table 1, the employee name and employee phone number can be obtained by inviting the employee to log in to the small program set in the personal social software through the third-party service system, and filling in the corresponding content.
[0041] In addition, the account of the service officer in the third-party service system can be bound to the enterprise WeChat account, and the corresponding relationship is stored in the third-party service system. Table 2 shows an information recording table recording the correspondence between the account of the service officer in the third-party service system and the account of the service officer in the enterprise social app.
[0042] Table 2
[0043] Name of examiner oprid userid Zhang 1 oprid 1 userid 1 Zhang 2 oprid 2 userid 2 Zhang 3 oprid 3 userid 3 Zhang 4 oprid 4 userid 4
[0044] In Table 2, the name of the officer, the account of the officer in the third-party service system op rid, and the account of the officer in the enterprise social app userid bound to the account are recorded.
[0045] When the corresponding service officer of the employee changes, the relationship between the service officer and the employee in the information recording table also changes. For example, referring to Table 1, service officer Zhang Yi leaves, and the corresponding service officers of Li Yi and Li Wu are adjusted to Zhang Er, and the corresponding service officer of Li San is adjusted to Zhang Si. Therefore, the first information recording table is updated as follows:
[0046] Table 3
[0047]
[0048] The second information recording table is updated to Table 4:
[0049] Table 4
[0050] Name of examiner oprid userid Zhang 2 oprid 2 userid 2 Zhang 3 oprid 3 userid 3 Zhang 4 oprid 4 userid 4
[0051] The third-party service system can obtain the op rid of the new service officers Zhang Si and Zhang Er according to the updated second information table, and then obtain the corresponding userid according to the op rid.
[0052] The third-party service system also needs to obtain the unionid of the employee whose service officer has changed in the information recording table. Since the corresponding old service officer of the employee whose service officer has changed is not the same, it is necessary to divide one or more unionids corresponding to the same old service officer into a set, and then obtain the corresponding empid set according to the unionid set in each set. The empid set is called the first type of empid set, and each empid in the empid set corresponds to each unionid in the unionid set.
[0053] For example, according to the corresponding contents of Table 3 and Table 4, Li Yi corresponds to unionid1, Li San corresponds to unionid3, and Li Wu corresponds to unionid5. Since Li Yi and Li Wu correspond to the same old service officer, which is Zhang Yi, their unionids are divided into a set: (unionid1 and unionid5), and the corresponding empid set is (empid1 and empid5). Li San corresponds to the old service officer Zhang San, so the empid set obtained is (empid3). Both empids are the first type of empid set.
[0054] The third-party service system also needs to pull the external_userid of the friends of the old service officer in the enterprise social app through the callback interface, and then request the unionid of the employee from the enterprise social app according to the external_userid. Finally, the unionid set of different old service officers is obtained, and the corresponding empid set is obtained according to the unionid set.
[0055] For example, according to the contact information of Zhang Yi in the enterprise social app, the contact of Zhang Yi is Li Yi (because the information recorded in the information record table records two employees corresponding to Zhang Yi, namely Li Yi and Li Wu, but Zhang Yi only adds Li Yi as a friend, so the friend employee of Zhang Yi is only Li Yi). The friend employee of Zhang San is Li San. Then the enterprise social app calls the external_userid1 of Li Yi and the external_userid3 of Li San to the third-party service system, and then requests the corresponding unionid from the enterprise social app according to the respective external_userid. Finally, two second-type empid sets are obtained, which are (empid1) and (empid3), respectively.
[0056] Finally, the third-party service system determines the external_userid of the employee whose service officer is changed and who is added by the old service officer according to the first-type set and the second-type set, and then switches the external_userid to the userid of the corresponding new service officer, thereby completing the batch switching of the friend employees of the new and old service officers.
[0057] Embodiments of the present application record the correspondence between the identities of employees and service agents through an information record table set in a third-party service system, and can realize batch switching of service agent contacts in an enterprise-level social app through a batch information callback interface set between the third-party service system and the enterprise-level social app, thereby improving the speed of service personnel contact switching and providing convenience for service personnel using the enterprise-level social app.
[0058] In some embodiments of the present application, optionally, the enterprise-level social app determines the external_userid corresponding to one or more employee information according to one or more employee information that belongs to the first type of empid set and belongs to the second type of empid set, and updates the correspondence of the one or more employee information to a new service agent through the external_userid, including:
[0059] Finding the intersection of each corresponding first type of empid set and second type of empid set to obtain a plurality of empid intersections;
[0060] Determining the corresponding one or more unionids according to one or more empids in each empid intersection, and determining the corresponding one or more external_userids according to the one or more unionids;
[0061] Determining one or more changed employee information according to the one or more external_userids;
[0062] Updating the correspondence of the one or more changed employees corresponding to each empid intersection to the userid corresponding to the new service agent to establish a friend relationship between the new service agent and the corresponding employee.
[0063] For example, the first type of empid set corresponding to the old service officer Zhang Yi is (empid1 and empid5), and the first type of empid set corresponding to the old service officer Zhang San is (empid3); the second type of empid set obtained according to the friends of the old service officer Zhang Yi in the enterprise-level social app is (empid1), and the second type of empid set obtained according to the friends of the old service officer Zhang San in the enterprise-level social app is (empid3), the first type of empid set and the second type of empid set corresponding to Zhang Yi are (empid1), the first type of empid set and the second type of empid set corresponding to Zhang San are (empid3), then the unionid1 corresponding to empid1 is obtained, and then the third-party service system requests the external_userid1 corresponding to the unionid1 from the enterprise-level social app, and switches the external_userid1 and the corresponding employee information to the userid of Zhang Er through the callback interface; similarly, the external_userid1 corresponding to empid3 and the corresponding employee information are switched to the userid of Zhang Si.
[0064] In addition, only one embodiment of the present application is shown in Table 1, and in other embodiments of the present application, an organization can have only one service officer. For example, taking the embodiment shown in Table 1 as an example, the service officer of A organization can be Zhang Yi, and the service officers corresponding to Li Yi and Li Er belonging to A organization are Zhang Yi, the service officer of B organization can be Zhang Er, and the service officers corresponding to Li San, Li Si and Li Wu belonging to B organization are Zhang Er, if the service officer of A organization is changed from Zhang Yi to Zhang San, then the account of Zhang San in the enterprise WeChat can be determined first, and then the unionid set is determined by the external_userid of the friends of Zhang Yi in the enterprise WeChat, and then the corresponding empid set is determined; in this way, the intersection of the empid set and the empid set corresponding to Li Yi and Li Er is obtained, and the intersection of the empid set is obtained, and the external_userid corresponding to the employees in the intersection is switched to the userid of Zhang San.
[0065] In some embodiments of the present application, the enterprise-level social app stores one or more external_userids obtained in the message queue, and updates a plurality of external_userids to the userid of the new service officer in batches by calling the message queue.
[0066] Figure 3 A processing process schematic diagram of batch switching contacts in the enterprise-level social app is shown. In this embodiment, the enterprise-level social app is the enterprise WeChat, and the third-party service system is the HRO system, as shown inFigure 3 As shown, the HRO system has an intranet system, a C-end system, and a message queue mq, the HRO system is connected with the WeChat backstage through the C-end system, and information transmission is performed between the two through a callback interface. In this embodiment, there are four trigger conditions for information change of the information record table in the HRO intranet system, which are employee organization modification, enterprise modification, organization corresponding specialist modification, and operator (the general term of service specialists and the supervisor of service specialists, and the supervisor is also a kind of service specialist, but the position is higher than that of ordinary service specialists) modification. Among them, the two trigger conditions of employee organization modification and enterprise modification start to change the service specialist corresponding to the employee in the information record table, and then store the message of the change of the corresponding relationship between the employee and the service specialist in the message queue mq, but the two trigger conditions of organization corresponding specialist modification and operator modification are that the organization corresponding specialist has been modified, because in the HRO intranet system, the organization corresponding specialist modification only needs to be performed through an operation page, and multiple organizations or operators can be modified in the operation page, therefore, the modification of the organization corresponding specialist or the operator change also needs to batch switch the corresponding relationship between each employee and the service specialist in the information record table, for example, batch switching the service specialist corresponding to the same organization in the information record table by using an excel table. Finally, the service specialist corresponding to the employee in the information record table is changed, and the message is also stored in the mq, and the C-end system of the HRO acts as a message consumer to obtain the message in the message queue mq, and switches the external_userid of the employee whose corresponding service specialist is changed to the userid of the corresponding new service specialist in WeChat, and completes the switching process.
[0067] Optionally, according to some embodiments of the present application, the change includes one or more of the following multiple change items: enterprise change, employee organization change, service specialist change. The service specialist change includes ordinary service specialist change and supervisor change of service specialist.
[0068] According to some embodiments of the present application, optionally, the personal information of the employee registered in the enterprise-level social app includes a mobile phone number, the mobile phone number is bound to the external_userid of the employee in the enterprise-level social app, and the third-party service system locates the empid of the employee according to the mobile phone number.
[0069] In the embodiments of the present application, the third-party service system can set a mini program in the personal social app of the employee and remind the employee to fill in the name and mobile phone number, because the uniqueness of the mobile phone number corresponding to each employee, the empid or external_userid obtained in the foregoing step can be replaced by the mobile phone number to obtain the two information.
[0070] The implementation manners of the embodiments of the present application and the advantages brought by the implementation manners are described above through multiple embodiments. The specific processing procedures of the embodiments of the present application are described in detail below in combination with specific examples.
[0071] Figure 4 is another processing procedure schematic diagram of the embodiments of the present application for batch switching of contacts in an enterprise-level social app. As shown in Figure 4 , in this embodiment, the batch switching of contacts in the enterprise-level social app includes a pre-stage, employee login, and internal account switching. The switching procedure involves the intranet system (third-party service system) end, the employee self-service system end (the third-party service system is set in the employee personal social app as an applet), and the WeChat for Enterprise (enterprise-level social app) background end. In the pre-stage, the following content needs to be done in the intranet system: employee specialist intranet account (oprid) binding WeChat for Enterprise, creating organizational structure relationship in customers, creating employee specialist account oprid on customers / organizations, creating employee empid information, and corresponding customers and organizations.
[0072] For the employee login procedure, the empid and unionid of the employee are bound in the intranet system, and the employee logs in the self-service system to fill in personal information.
[0073] In the internal account switching stage, the trigger conditions for updating the information recorded in the intranet system include: employee modifying organization (changing organization identifier org), employee switching out account customer (changing customer), specialist modifying account on organization (switching corresponding service specialist oprid), and batch switching operator account. Then, the WeChat for Enterprise interface is called to switch contacts, and the batch switching of friend employees in the enterprise-level social app is completed.
[0074] Corresponding to the method embodiments of the present application, the present application also provides a device for batch switching of contacts in an enterprise-level social app, Figure 5 is a structural block diagram of the device for batch switching of contacts in an enterprise-level social app of the embodiments of the present application. As shown in Figure 5 , the device 100 for batch switching of contacts in an enterprise-level social app is implemented based on the enterprise-level social app and a third-party service system. A callback interface for batch returning information is provided between the third-party service system and the enterprise-level social app, wherein,
[0075] The third-party service system comprises an information record table, and the information record table comprises the following information: service agent account information and an agent identifier oprid registered in the third-party service system, enterprise organizational structure information and an organizational structure identifier orgid, employee information and an employee identifier empid in the organizational structure, an identity identifier unionid obtained by an employee after binding a personal social app account to an enterprise-level social app, and a corresponding relationship between a service agent providing a third-party service for the employee and the employee;
[0076] The enterprise-level social app comprises a registered service agent account and an agent identifier userid, a registered enterprise employee account and an employee identifier external_userid, and a friend relationship between a service agent and a corresponding employee;
[0077] The device 100 comprises:
[0078] An updating module 110 is configured to update, by the third-party service system, the corresponding relationship between a service agent and an employee in the information record table when one or more service agents providing a third-party service for the employee are changed;
[0079] A first obtaining module 120 is configured to obtain, by the third-party service system according to the updated information record table, an oprid of a new service agent corresponding to an employee who is changed, and determine a userid of the new service agent in the enterprise-level social app according to the oprid of the new service agent;
[0080] A second obtaining module 130 is configured to obtain, by the third-party service system according to the updated information record table, unionids of a plurality of employees who are changed, divide the plurality of unionids into a plurality of sets, unionids in each set corresponding to the same old service agent, determine a corresponding empid set according to employee information in each unionid set, and obtain a plurality of first-type empid sets;
[0081] A first determining module 140 is configured to determine, by the third-party service system, a unionid set of employees corresponding to each old service agent according to external_userids of friend employees of each old service agent in the enterprise-level social app, and determine a corresponding plurality of empid sets according to employee information in each unionid set, and obtain a plurality of second-type empid sets;
[0082] The second determining module 150 is configured to determine, by the third-party service system, an external_userid corresponding to one or more pieces of employee information that belong to both the first type of empid set and the second type of empid set, and update a corresponding relationship of the one or more pieces of employee information in the enterprise-level social app as a new service officer through the external_userid, thereby completing batch switching of friend employees of the new and old service officers.
[0083] The electronic device in the embodiments of the present application can be a user terminal device, can be a server, can also be other computing devices, and can also be a cloud server. Figure 6 FIG. 1 is a hardware structure schematic diagram of an electronic device according to an embodiment of the present application. The electronic device can include a processor 601 and a memory 602 storing computer program instructions. The processor 601 executes the computer program instructions to implement the flow or function of the method of any of the above embodiments.
[0084] Specifically, the processor 601 can include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or can be configured to implement one or more integrated circuits of the embodiments of the present application. The memory 602 can include a mass storage device for data or instructions. For example, the memory 602 can be at least one of a hard disk drive (HDD), a read-only memory (ROM), a random access memory (RAM), a floppy disk drive, a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, a universal serial bus (USB) drive, or other physical / tangible memory storage devices. For another example, the memory 602 can include removable or non-removable (or fixed) media. For another example, the memory 602 can be internal or external to the integrated gateway disaster recovery device. The memory 602 can be a non-volatile solid-state memory. In other words, the memory 602 generally includes a tangible (non-transitory) computer-readable storage medium (such as a memory device) encoded with computer-executable instructions, and when the software is executed (such as by one or more processors), the operations described in the method of the embodiments of the present application can be performed. The processor 601 implements the flow or function of any of the above embodiments by reading and executing the computer program instructions stored in the memory 602.
[0085] In one example, Figure 6The electronic device shown can also include a communication interface 603 and a bus 610. Among them, the processor 601, the memory 602, the communication interface 603 are connected through the bus 610 and complete the communication between each other. The communication interface 603 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the application. The bus 610 includes hardware, software or both, which can couple the components of the online data traffic billing device to each other. For example, the bus can include at least one of the following: an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front side bus (FSB), a hyper transport (HT) interconnect, an industry standard architecture (ISA) bus, an infiniband interconnect, a low pin count (LPC) bus, a memory bus, a micro channel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standards association local (VLB) bus or other suitable bus. The bus 610 can include one or more buses. Although the embodiments of the application describe or show a specific bus, any suitable bus or interconnection method can be considered by the embodiments of the application.
[0086] In combination with the method in the above embodiments, the embodiments of the application further provide a computer readable storage medium, which has stored thereon computer program instructions, and the computer program instructions are executed by a processor to implement the flow or function of any of the methods in the above embodiments.
[0087] In addition, the embodiments of the application also provide a computer program product, which has stored thereon computer program instructions, and the computer program instructions are executed by a processor to implement the flow or function of any of the methods in the above embodiments.
[0088] The flowcharts and / or block diagrams of the methods, devices, systems and computer program products of the embodiments of the application are described above as examples, and the related aspects are described. It should be understood that each block in the flowchart and / or block diagram can be implemented by computer program instructions, or by special hardware that performs specified functions or actions, or by a combination of special hardware and computer instructions. For example, these computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer or other programmable data processing apparatus to form a machine, so that the instructions executed by the processor enable the implementation of the functions / actions specified in each block or combination of blocks in the flowchart and / or block diagram. Such a processor can be a general purpose processor, a special purpose processor, a special application processor or a field programmable logic circuit.
[0089] The functional blocks shown in the structural block diagram of the embodiments of the present application can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc.; when implemented in software, it is a program or code segment used to perform the required tasks. The program or code segment can be stored in a memory or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0090] It should be noted that the present application is not limited to the specific configurations and processes described above or shown in the drawings. The above description is merely a specific implementation of the present application, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the described systems, devices, modules or units can refer to the corresponding processes in the method embodiments, which need not be described again. It should be understood that the scope of protection of the present application is not limited thereto, and any skilled in the art can think of various equivalent modifications or replacements within the technical scope disclosed by the present application, and these modifications or replacements should be covered within the scope of protection of the present application.
Claims
1. A method for bulk switching of contacts in an enterprise social app, characterized in that, The method is realized based on an enterprise-level social app and a third-party service system, a callback interface for batch returning information is arranged between the third-party service system and the enterprise-level social app, wherein, The third-party service system comprises an information record table, and the information record table comprises the following information: service agent account information and an agent identifier oprid of a service agent registered in the third-party service system, organization structure information and an organization structure identifier orgid of an enterprise, employee information and an employee identifier empid in the organization structure, an identity identifier unionid obtained by an employee after binding a personal social app account to the enterprise-level social app, and a corresponding relationship between a service agent providing a third-party service for the employee and the employee; The enterprise-level social app comprises registered service agent account and agent identifier userid, registered employee account and employee identifier external_userid of the enterprise, and a friend relationship between the service agent and the corresponding employee; The method comprises: When one or more service agents providing a third-party service for employees are changed, the third-party service system updates the corresponding relationship between the service agents and the employees in the information record table; The third-party service system obtains oprid of a new service agent corresponding to the employee who is changed according to the updated information record table, and determines userid of the new service agent in the enterprise-level social app according to the oprid of the new service agent; The third-party service system obtains unionid of a plurality of employees who are changed according to the updated information record table, divides the plurality of unionids into a plurality of sets, the unionids in each set correspond to the same old service agent, determines a corresponding empid set according to employee information in each unionid set, and obtains a plurality of first-type empid sets; The third-party service system determines unionid sets of employees corresponding to each old service agent according to external_userid of friend employees of each old service agent in the enterprise-level social app, and determines a plurality of empid sets corresponding to each unionid set according to employee information in the unionid set, and obtains a plurality of second-type empid sets; The third-party service system determines external_userid corresponding to one or more employee information which simultaneously belongs to the first-type empid set and the second-type empid set, and updates the corresponding relationship of the one or more employee information in the enterprise-level social app to the new service agent through the external_userid, and completes batch switching of friend employees of the new and old service agents.
2. The method of claim 1, wherein, The enterprise-level social app determines the external_userid corresponding to the one or more employee information according to the one or more employee information belonging to the first type of empid set and belonging to the second type of empid set, and updates the corresponding relationship of the one or more employee information to the new service officer through the external_userid, including: Obtaining the intersection of each corresponding first type of empid set and second type of empid set to obtain a plurality of empid intersections; Determine the corresponding one or more unionids according to the one or more empids in each empid intersection, and determine the corresponding one or more external_userids according to the one or more unionids; According to one or more external_userids, determine one or more employee information that has changed; Update the corresponding relationship of one or more employees that have changed in each empid intersection to the userid of the new service officer to establish a friend relationship between the new service officer and the corresponding employee.
3. The method of claim 1, wherein, The method further comprises: The enterprise-level social app stores the obtained one or more external_userids in the message queue, and updates a plurality of external_userids to the userid of the new service officer in batches by calling the message queue.
4. The method of claim 1, wherein, The change includes one or more of the following change items: enterprise change, employee organization change, service officer change.
5. The method of claim 1, wherein, The employee registers the personal information of the enterprise-level social app, which includes a mobile phone number, and the mobile phone number is bound to the external_userid of the employee in the enterprise-level social app, and the third-party service system locates the empid of the employee according to the mobile phone number.
6. An apparatus for bulk switching of contacts in an enterprise social app, the apparatus comprising: The device is realized based on the enterprise-level social app and the third-party service system, and a callback interface for batch returning information is provided between the third-party service system and the enterprise-level social app, wherein, The third-party service system includes an information record table, which includes the following information: service officer account information and officer identifier oprid registered in the third-party service system, organization structure information and organization structure identifier orgid of the enterprise, employee information and employee identifier empid in the organization structure, identity identifier unionid obtained after the employee binds the personal social app account to the enterprise-level social app, and the corresponding relationship between the service officer and the employee for providing third-party services to the employee; The enterprise-level social app includes registered service officer account and officer identifier userid, registered enterprise employee account and employee identifier external_userid, and the friend relationship between the service officer and the corresponding employee; The device comprises: An updating module is configured to update, when one or more service officers providing third-party services for employees are changed, a correspondence between the service officers and the employees in the information record table by the third-party service system; A first obtaining module is configured to obtain, by the third-party service system, oprids of new service officers corresponding to the employees who are changed according to the updated information record table, and determine, according to the oprids of the new service officers, userids of the new service officers in the enterprise-level social app; A second obtaining module is configured to obtain, by the third-party service system, unionids of the employees who are changed according to the updated information record table, divide the unionids into a plurality of sets, unionids in each set corresponding to the same old service officer, and determine, according to employee information in each unionid set, a corresponding empid set, to obtain a plurality of first-type empid sets; A first determining module is configured to determine, by the third-party service system, unionid sets of employees corresponding to each old service officer according to external_userids of friend employees of each old service officer in the enterprise-level social app, and determine, according to employee information in each unionid set, a plurality of empid sets corresponding thereto, to obtain a plurality of second-type empid sets; A second determining module is configured to determine, by the third-party service system, external_userids corresponding to one or more employee information that simultaneously belongs to the first-type empid set and the second-type empid set, and update, by the external_userids, a correspondence between the one or more employee information in the enterprise-level social app to the new service officer, to complete batch switching of friend employees of the new and old service officers.
7. An electronic device, comprising: The electronic device comprises a processor and a memory storing computer program instructions; the electronic device implements the method of any one of claims 1-5 when executing the computer program instructions.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer program instructions; the computer program instructions are executed by the processor to implement the method of any one of claims 1-5.
9. A computer program product, characterised in that, The computer program instructions are executed by the processor to implement the method of any one of claims 1-5.
Citation Information
Patent Citations
Method, device and equipment for quickly remarking employee information and storage medium
CN117808426A
Contact person processing method and device, equipment, storage medium and program product
CN118779866A