Communication method and device, electronic equipment and storage medium
The job group database and user relationship database determine the receipt user, which solves the communication time-consuming problem caused by changes in communication objects in the enterprise, and realizes efficient communication processing.
Patent Information
- Application Number
- CN202510557952.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-08-01
AI Technical Summary
In enterprises, communications take a long time and are less efficient in the existing technology due to changes in communication objects due to shift systems or personnel changes.
Find the initial job position identification through the job position group database, display and select the target job position, send the communication text to the receipt user, use the job position user relationship and the user group database to determine the receipt user, and sort the receipt communication text according to the receipt level and time.
It shortens the communication time, improves communication efficiency, and avoids the trouble of re-searching the communication object due to personnel changes.
Smart Images

Figure CN120416210A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular, to a communication method, device, electronic device, and storage medium. Background Art
[0002] In a modern working environment, more and more enterprises use communication software as an internal communication tool for enterprise employees. When enterprise employees need to conduct work communication, they can directly find the employees related to the work within the enterprise for communication.
[0003] However, due to the shift system of enterprises or other factors, personnel changes are common in enterprises. When personnel in a specific position change, users need to search and confirm again to find a new communication object for communication, resulting in long communication time and low efficiency. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a communication method, device, electronic device, and storage medium, which can complete the communication of communication users based on the work positions of the recipients, shorten the communication time, and improve the communication efficiency.
[0005] In a first aspect, an embodiment of this application provides a communication method, which includes:
[0006] In response to a communication request initiated by a communication user in a group communication interface, find the initial work position identifier corresponding to the group in the group communication interface from the work position group database;
[0007] Wherein, the group identifier and the work position identifier are correspondingly stored in the work position group database;
[0008] Display the initial work position corresponding to the initial work position identifier in the group communication interface, so that the communication user can select a target work position from the initial work positions;
[0009] In response to the communication text input by the communication user in the group communication interface, send the communication text to the recipient user corresponding to the target work position in the group.
[0010] In a possible implementation manner, the recipient user corresponding to the target work position in the group is determined through the following steps:
[0011] Find the user identifier corresponding to the target work position from the work position user relationship database; the work position identifier and the user identifier are correspondingly stored in the work position user relationship database;
[0012] Find the user identifier corresponding to the group identifier of the group from the user group database; the user identifier and the group identifier are correspondingly stored in the user group database;
[0013] For each user identifier corresponding to the target job position, determine whether the user identifier corresponding to the target job position is included in the user identifiers corresponding to the group identifier;
[0014] If the user identifier corresponding to the target job position is included in the user identifiers corresponding to the group identifier, determine the user identifier corresponding to the target job position as the receipt user identifier;
[0015] Determine the user corresponding to the receipt user identifier as the receipt user.
[0016] In a possible implementation manner, the method further includes:
[0017] In response to a pending receipt communication text query request initiated by the receipt user on the group receipt interface, query the pending receipt communication text of the group corresponding to the receipt user on the group receipt interface in the communication text database; the communication text database stores the group identifier, communication text, latest receipt time, and receipt level correspondingly;
[0018] Sort all the pending receipt communication texts according to the latest receipt time and receipt level corresponding to the pending receipt communication text in the communication text database to obtain the serial number of the pending receipt communication text; the earlier the position of the pending receipt communication text in the serial number of the pending receipt communication text, the higher the receipt priority.
[0019] Display the pending receipt communication text on the group receipt interface according to the arrangement order in the serial number of the pending receipt communication text, so that the receipt user can make a receipt based on the pending receipt communication text.
[0020] In a possible implementation manner, the method further includes:
[0021] In response to the receipt user's input of the signed-in job position identifier on the job position sign-in interface, store the receipt user and the signed-in job position identifier correspondingly in the job position-user relationship database;
[0022] Update the user group database based on the updated job position-user relationship database.
[0023] In a possible implementation manner, updating the user group database based on the updated job position-user relationship database includes:
[0024] Query the job position identifier corresponding to the receipt user in the updated job position-user relationship database to obtain the valid job position identifier corresponding to the receipt user;
[0025] Query the group identifier corresponding to the valid job position identifier in the job position-group database to obtain the valid group identifier corresponding to the valid job position identifier;
[0026] If there is no data record corresponding to the receipt user and the first group identifier in the user group database, then store the receipt user and the first group identifier correspondingly in the user group database;
[0027] Query the data record corresponding to the receipt user and the valid group identifier from the user group database to obtain the first latest valid data record corresponding to the receipt user;
[0028] Query the data record corresponding to the receipt user from the user group database to obtain the first current data record corresponding to the receipt user;
[0029] If the first current data record is not in the first latest valid data record, then set the user group status of the first current data record in the user group database to the invalid status.
[0030] In a possible implementation manner, the communication method further includes:
[0031] In response to the group management user inputting the to-be-created job position identifier and the to-be-created group identifier on the job position creation interface, update the job position group database;
[0032] Update the user group database based on the updated job position group database.
[0033] In a possible implementation manner, updating the user group database based on the updated job position group database includes:
[0034] Query the job position identifier corresponding to the to-be-created group identifier from the updated job position group database to obtain the valid job position identifier corresponding to the to-be-created group identifier;
[0035] Query the data record corresponding to the valid job position identifier from the job position user relationship database to obtain the latest valid user;
[0036] Query the second latest valid data record corresponding to the latest valid user from the user group database;
[0037] Query the data record corresponding to the to-be-created group identifier from the user group database to obtain the second current data record corresponding to the to-be-created group identifier;
[0038] If the second current data record is not in the second latest valid data record, then set the user group status of the second current data record in the user group database to the invalid status.
[0039] In a second aspect, an embodiment of the present application further provides a communication device, and the communication device includes:
[0040] A search module, configured to search for an initial job position identifier corresponding to the group corresponding to the group communication interface from a job position group database in response to a communication request initiated by a communication user in the group communication interface;
[0041] Wherein, the job position group database stores a group identifier and a job position identifier correspondingly;
[0042] A display module, configured to display an initial job position corresponding to the initial job position identifier in the group communication interface, so that the communication user can select a target job position from the initial job positions;
[0043] A sending module, configured to send the communication text to the recipient user corresponding to the target job position in the group in response to the communication text input by the communication user in the group communication interface.
[0044] In a possible implementation manner, the sending module is specifically configured to search for a user identifier corresponding to the target job position from a job position user relationship database; the job position user relationship database stores a job position identifier and a user identifier correspondingly; search for a user identifier corresponding to the group identifier of the group from a user group database; the user group database stores a user identifier and a group identifier correspondingly; for each user identifier corresponding to the target job position, determine whether the user identifier corresponding to the target job position is included in the user identifier corresponding to the group identifier; if the user identifier corresponding to the target job position is included in the user identifier corresponding to the group identifier, determine the user identifier corresponding to the target job position as the recipient user identifier; and determine the user corresponding to the recipient user identifier as the recipient user.
[0045] In a possible implementation manner, the device further includes: a query module and a sorting module;
[0046] The query module is configured to query, in response to a query request for communication texts to be replied by the recipient user in the group reply interface, the communication texts to be replied by the recipient user in the group corresponding to the group reply interface from a communication text database; the communication text database stores a group identifier, a communication text, a latest reply time, and a reply level correspondingly;
[0047] The sorting module is configured to sort all the communication texts to be replied according to the latest reply time and the reply level corresponding to the communication texts to be replied in the communication text database, to obtain a sequence number of the communication texts to be replied; the earlier the position of the communication text to be replied in the sequence number of the communication texts to be replied, the higher the reply priority.
[0048] The display module is further configured to display the communication texts to be replied in the group reply interface according to the arrangement order in the sequence number of the communication texts to be replied, so that the recipient user can reply based on the communication texts to be replied.
[0049] In a possible implementation, the device further includes: a storage module and an update module;
[0050] The storage module is configured to, in response to receiving the signed-in job position identifier input by the recipient user in the job position sign-in interface, store the recipient user and the signed-in job position identifier in the job position-user relationship database in a corresponding manner;
[0051] The update module is configured to update the user group database based on the updated job position-user relationship database.
[0052] In a possible implementation, the update module is specifically configured to query the job position identifier corresponding to the recipient user in the updated job position-user relationship database to obtain the valid job position identifier corresponding to the recipient user; query the group identifier corresponding to the valid job position identifier in the job position group database to obtain the valid group identifier corresponding to the valid job position identifier; if there is no data record corresponding to the recipient user and the first group identifier in the user group database, store the recipient user and the first group identifier in the user group database in a corresponding manner; query the data record corresponding to the recipient user and the valid group identifier in the user group database to obtain the first latest valid data record corresponding to the recipient user; query the data record corresponding to the recipient user in the user group database to obtain the first current data record corresponding to the recipient user; if the first current data record is not in the first latest valid data record, set the user group status of the first current data record in the user group database to the invalid status.
[0053] In a possible implementation, the update module is further configured to, in response to the group management user inputting the to-be-created job position identifier and the to-be-created group identifier in the job position creation interface, update the job position group database;
[0054] The update module is further configured to update the user group database based on the updated job position group database.
[0055] In a possible implementation, the update module is specifically configured to query the job position identifier corresponding to the to-be-created group identifier in the updated job position group database to obtain the valid job position identifier corresponding to the to-be-created group identifier; query the data record corresponding to the valid job position identifier in the job position-user relationship database to obtain the latest valid user; query the second latest valid data record corresponding to the latest valid user in the user group database; query the data record corresponding to the to-be-created group identifier in the user group database to obtain the second current data record corresponding to the to-be-created group identifier; if the second current data record is not in the second latest valid data record, set the user group status of the second current data record in the user group database to the invalid status.
[0056] In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of any communication method in the first aspect.
[0057] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, it performs the steps of any communication method in the first aspect.
[0058] An embodiment of the present application provides a communication method, device, electronic device, and storage medium. The method includes: in response to a communication request initiated by a communication user in a group communication interface, searching for an initial job position identifier corresponding to the group corresponding to the group communication interface from a job position group database; wherein, the group identifier and the job position identifier are correspondingly stored in the job position group database; displaying the initial job position corresponding to the initial job position identifier in the group communication interface, so that the communication user can select a target job position from the initial job positions; in response to the communication text input by the communication user in the group communication interface, sending the communication text to the receipt users corresponding to the target job position in the group. The present application can complete the communication of the communication user based on the job positions of the receipt users, shortening the communication duration and improving the communication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and thus should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0060] Figure 1 Shows a flowchart of a communication method provided by an embodiment of the present application;
[0061] Figure 2 Shows a flowchart of another communication method provided by an embodiment of the present application;
[0062] Figure 3 Shows a schematic structural diagram of a communication device provided by an embodiment of the present application;
[0063] Figure 4 Shows a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0064] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. It should be understood that the accompanying drawings in this application only serve the purpose of illustration and description, and are not used to limit the protection scope of this application. Additionally, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of this application. It should be understood that the operations in the flowchart may not be implemented in sequence, and steps without a logical context relationship may be reversed or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of this application.
[0065] Furthermore, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. The components of the embodiments of this application usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of this application that is required to be protected, but only represents the selected embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of this application.
[0066] To enable those skilled in the art to use the content of this application, in combination with the specific application scenario of the "communication technology field", the following implementation manners are given. For those skilled in the art, without departing from the spirit and scope of this application, the general principles defined here can be applied to other embodiments and application scenarios. Although this application is mainly described around the "communication technology field", it should be understood that this is only an exemplary embodiment.
[0067] It should be noted that the term "including" will be used in the embodiments of this application to indicate the existence of the features stated thereafter, but does not exclude adding other features.
[0068] The following provides a detailed description of a communication method provided by the embodiments of this application.
[0069] Refer to Figure 1 As shown, it is a schematic flowchart of a communication method provided by the embodiments of this application. The specific execution process of this communication method is as follows:
[0070] S101. In response to a communication request initiated by a communication user in the group communication interface, search for the initial work position identifier corresponding to the group corresponding to the group communication interface from the work position group database.
[0071] S102. Display the initial job position corresponding to the initial job position identifier in the group communication interface, so that the communication user can select a target job position from the initial job positions.
[0072] S103. In response to the communication text input by the communication user in the group communication interface, send the communication text to the receipt user corresponding to the target job position in the group.
[0073] An embodiment of the present application provides a communication method, which includes: in response to a communication request initiated by a communication user in a group communication interface, look up the initial job position identifier corresponding to the group corresponding to the group communication interface from a job position group database; wherein, the job position group database stores the group identifier and the job position identifier correspondingly; display the initial job position corresponding to the initial job position identifier in the group communication interface, so that the communication user can select a target job position from the initial job positions; in response to the communication text input by the communication user in the group communication interface, send the communication text to the receipt user corresponding to the target job position in the group. The present application can complete the communication of the communication user based on the job position of the receipt user, shorten the communication duration, and improve the communication efficiency.
[0074] The following describes the exemplary steps of the embodiment of the present application:
[0075] S101. In response to a communication request initiated by a communication user in a group communication interface, look up the initial job position identifier corresponding to the group corresponding to the group communication interface from a job position group database.
[0076] In the embodiment of the present application, the communication user refers to an individual for instant communication, accurate to a single system user. When the communication user needs to communicate, the communication user will initiate a communication request in the group communication interface of the corresponding group. After receiving the communication request initiated by the communication user, look up the job position corresponding to the group corresponding to the group communication interface from the job position group database to obtain the initial job position identifier; the initial job position identifier corresponding to the group refers to the set of job positions where all users in the group are located. The job position can also be called a job post / position, etc., which describes a certain identity with special permissions, such as an auditor, an administrator, a member of a certain department, etc.
[0077] Among them, the job position group database describes the relationship between the job position and the group, and stores the latest status of all job positions in each group. Specifically, it stores the group identifier, the job position identifier, the start message sequence number (the latest message sequence number in the group when each job position is added to the group), the end message sequence number (the latest message sequence number in the group when each job position is deleted from the group), the current number of unreturned communication texts of the job position in the group, and the last pulled message sequence number (the last pulled message sequence number when the user enters the group dialog box).
[0078] In addition, the theme of enabling a certain group to conduct instant messaging together for group carrying. In the group database, there are correspondingly stored group identification, group type, group name, group number, group announcement, group dissolution time, dissolution population, latest message summary, group message serial number, latest message time, latest message serial number, group destruction time, and group identification, etc.
[0079] S102. Display the initial job position corresponding to the initial job position identifier in the group communication interface, so that the communication user can select the target job position from the initial job positions.
[0080] In the embodiment of the present application, the target job position is the job position of the user who conducts communication text receipt for the communication user's selection.
[0081] S103. In response to the communication text input by the communication user in the group communication interface, send the communication text to the receipt user corresponding to the target job position in the group.
[0082] In the embodiment of the present application, after the communication user selects the target job position, the communication user will input the communication text that needs to be communicated, and then the method sends the communication text to the receipt user corresponding to the target job position in the group.
[0083] Here, the present application can send the communication text to the corresponding receipt user based on the job position group database carrying the job position, complete the communication for the communication user, avoid the communication user from re-searching and confirming new communication objects for communication due to personnel changes, shorten the communication duration, and improve the communication efficiency.
[0084] In addition, the communication user can also set corresponding information such as receipt duration, receipt level, etc. for the communication text. The receipt duration refers to the longest receipt duration for the communication text, and the receipt user needs to receipt the communication text within the receipt duration.
[0085] Here, in the embodiment of the present application, the receipt level is specifically divided into three categories: prompt, normal, and urgent. When the receipt level is set to prompt, there is no need to set a specific receipt limit time, and the system will display the un-responded count for a long time to remind the user to conduct receipt. When the receipt level is set to normal, a receipt limit time needs to be set. Once the receipt is not received after exceeding the set time, the system will not only display the un-responded count but also send a text message to the user through the contact information for reminder. When the receipt level is set to urgent, in addition to displaying the un-responded count, the system will use the virtual machine to call the user's phone multiple times, and the number of calls can be set according to the actual situation to ensure that the urgent communication text is processed in a timely manner.
[0086] Specifically, the receipt user corresponding to the target job position in the group is determined through the following steps:
[0087] Step 1: Search for the user identifier corresponding to the target job position in the job position - user relationship database.
[0088] In the implementation manner of this application, each user can participate in one or more job positions, and each job position can correspond to multiple users. The job position - user relationship database stores the mapping relationship between job positions and users to effectively manage and maintain the relationship between job positions and users. The job position - user relationship database correspondingly stores job position identifiers and user identifiers.
[0089] Step 2: Search for the user identifier corresponding to the group identifier of the group in the user group database.
[0090] In the implementation manner of this application, the user group database describes the relationship between users and groups and stores the latest status of all users in each group. The user group database correspondingly stores user identifiers, group identifiers, the sequence number of the last message pulled by the user in the group, the current number of un - replied communication texts of the user in the group, the start message sequence number of the user in the group, the end message sequence number (when the user exits the group), whether the group is pinned, whether it is hidden, the user group status (valid status and invalid status), etc. Search for the user identifier in the data records corresponding to the group identifier and with the user group status being the valid status in the user group database.
[0091] Step 3: For each user identifier corresponding to the target job position, determine whether the user identifier corresponding to the target job position is included in the user identifiers corresponding to the group identifier.
[0092] Step 4: If the user identifier corresponding to the target job position is included in the user identifiers corresponding to the group identifier, then determine the user identifier corresponding to the target job position as the receipt user identifier.
[0093] In the implementation manner of this application, if the user identifier corresponding to the target job position is included in the user identifiers corresponding to the group identifier, it indicates that the user is in the group, and then determine the user identifier corresponding to the target job position as the receipt user identifier. If the user identifier corresponding to the target job position is included in the user identifiers corresponding to the group identifier, it indicates that the user is not in the group, then the user identifier corresponding to the target job position is not the receipt user.
[0094] Step 5: Determine the user corresponding to the receipt user identifier as the receipt user.
[0095] Furthermore, the communication text receipt is performed through the following steps:
[0096] Step 1: In response to a query request for communication texts to be acknowledged initiated by the acknowledging user on the group acknowledgment interface, query the communication texts to be acknowledged in the group corresponding to the acknowledging user on the group acknowledgment interface in the communication text database.
[0097] In an embodiment of the present application, the communication text database stores corresponding group identifiers, communication texts, acknowledgment durations, acknowledgment levels, communication text types, communication text serial numbers, the number of users who have read the communication text, identifiers of users who have not acknowledged the communication text, identifiers of users who have acknowledged the communication text, the latest acknowledgment time (the latest acknowledgment time = communication text sending time + acknowledgment duration), communication text sending time, work position identifiers (the target work positions set by the communication user for the communication text); for each data record corresponding to the group in the communication text database and with the identifier of the user who has acknowledged the communication text being empty, if the acknowledging user is included in the identifier of the user who has not acknowledged the communication text in the data record, then determine the data record as the communication text to be acknowledged in the group corresponding to the acknowledging user on the group acknowledgment interface.
[0098] Among them, the work positions of the users corresponding to the identifier of the user who has not acknowledged the communication text and the work positions of the users corresponding to the identifier of the user who has acknowledged the communication text should be the same as the target work positions set by the communication user for the communication text.
[0099] Step 2: Sort all the communication texts to be acknowledged according to the latest acknowledgment time and acknowledgment level corresponding to the communication texts to be acknowledged in the communication text database to obtain the serial numbers of the communication texts to be acknowledged; the earlier the position of the communication text to be acknowledged in the serial numbers of the communication texts to be acknowledged, the higher the acknowledgment priority.
[0100] In an embodiment of the present application, the higher the acknowledgment level of the communication text to be acknowledged, the more forward the sorting; for communication texts to be acknowledged with the same acknowledgment level, the closer to the latest acknowledgment time, the more forward the sorting.
[0101] Step 3: Display the communication texts to be acknowledged on the group acknowledgment interface in the order of arrangement in the serial numbers of the communication texts to be acknowledged, so that the acknowledging user can make an acknowledgment based on the communication texts to be acknowledged.
[0102] Further, the method further includes: in response to the acknowledging user inputting a signed-in work position identifier on the work position sign-in interface, storing the acknowledging user and the signed-in work position identifier correspondingly in the work position-user relationship database; based on the updated work position-user relationship database, updating the user group database.
[0103] In an embodiment of the present application, when the acknowledging user signs in to the work position after logging in, it is necessary to update each database;
[0104] Specifically, based on the updated job user relationship database, the user group database is updated, including: querying the job identifier corresponding to the receipt user in the updated job user relationship database to obtain the valid job identifier corresponding to the receipt user; querying the group identifier corresponding to the valid job identifier in the job group database to obtain the valid group identifier corresponding to the valid job identifier; if there is no data record corresponding to the receipt user and the first group identifier in the user group database, storing the corresponding receipt user and the first group identifier in the user group database; querying the data record corresponding to the receipt user and the valid group identifier in the user group database to obtain the first latest valid data record corresponding to the receipt user; querying the data record corresponding to the receipt user in the user group database to obtain the first current data record corresponding to the receipt user; if the first current data record is not in the first latest valid data record, setting the user group status of the first current data record in the user group database to the invalid status.
[0105] Further, the method further includes: in response to the group management user inputting the to-be-created job identifier and the to-be-created group identifier on the job creation interface, updating the job group database; and updating the user group database based on the updated job group database.
[0106] Specifically, updating the job group database includes: if there is no data record corresponding to the to-be-created job identifier and the to-be-created group identifier in the job group database, storing the corresponding to-be-created job identifier and the to-be-created group identifier in the job group database; if there is a data record corresponding to the to-be-created job identifier and the to-be-created group identifier in the job group database, setting the value of the end message sequence number in the data record corresponding to the to-be-created job identifier and the to-be-created group identifier to be empty.
[0107] Here, since in this application, when deleting a job in a group, there is no need to delete the data record, and only the value of the end message sequence number in the data record needs to be changed. Therefore, there may be corresponding data records in the job group database. When there are corresponding data records, only the value of the end message sequence number in the data record needs to be changed.
[0108] Specifically, updating the user group database based on the updated job position group database includes: querying job position identifiers corresponding to the group identifier to be created from the updated job position group database to obtain valid job position identifiers corresponding to the group identifier to be created; querying data records corresponding to the valid job position identifiers from the job position-user relationship database to obtain the latest valid users; querying second latest valid data records corresponding to the latest valid users from the user group database; querying data records corresponding to the group identifier to be created from the user group database to obtain second current data records corresponding to the group identifier to be created; if the second current data records are not in the second latest valid data records, setting the user group status of the second current data records in the user group database to an invalid status.
[0109] Further, the method further includes: in response to the group management user inputting the job position identifier to be deleted and the group identifier to be deleted on the job position deletion interface, setting the value of the end message sequence number in the data records corresponding to the job position identifier to be deleted and the group identifier to be deleted in the job position group database to the corresponding value of the latest message sequence number corresponding to the group identifier to be deleted in the group database.
[0110] Here, when deleting a job position in a group in this application, there is no need to delete the data records, and only the value of the end message sequence number in the data records needs to be changed.
[0111] In addition, this application can update the database in any scenario where the database needs to be updated, such as when the user logs out or deletes a job position, etc., which is specifically determined according to the actual situation.
[0112] Refer to Figure 2 As shown, it is a flowchart of another communication method provided by an embodiment of this application. The following describes each step of the embodiment of this application exemplarily:
[0113] S201. Search for the user identifier corresponding to the target job position from the job position-user relationship database.
[0114] S202. Search for the user identifier corresponding to the group identifier of the group from the user group database.
[0115] S203. For each user identifier corresponding to the target job position, determine whether the user identifier corresponding to the target job position is included in the user identifiers corresponding to the group identifier.
[0116] S204. If the user identifier corresponding to the target job position is included in the user identifiers corresponding to the group identifier, determine the user identifier corresponding to the target job position as the receipt user identifier.
[0117] S205. Determine the user corresponding to the receipt user identifier as the receipt user.
[0118] An embodiment of the present application provides another communication method. This method can determine the receipt user for the communication user based on the work position of the receipt user, thereby completing the communication, shortening the communication duration, and improving the communication efficiency.
[0119] Based on the same inventive concept, an embodiment of the present application also provides a communication device corresponding to the communication method. Since the principle of the device in the embodiment of the present application for solving problems is similar to the above communication method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0120] Refer to Figure 3 As shown in the figure, it is a schematic diagram of a communication device provided by an embodiment of the present application. The communication device includes:
[0121] A search module 301, configured to, in response to a communication request initiated by a communication user in a group communication interface, search for an initial work position identifier corresponding to the group corresponding to the group communication interface from a work position group database;
[0122] Wherein, the work position group database stores a group identifier and a work position identifier in a corresponding manner;
[0123] A display module 302, configured to display the initial work position corresponding to the initial work position identifier in the group communication interface, so that the communication user can select a target work position from the initial work positions;
[0124] A sending module 303, configured to, in response to the communication text input by the communication user in the group communication interface, send the communication text to the receipt user corresponding to the target work position in the group.
[0125] In a possible implementation manner, the sending module 303 is specifically configured to search for the user identifier corresponding to the target work position from a work position user relationship database; the work position user relationship database stores a work position identifier and a user identifier in a corresponding manner; search for the user identifier corresponding to the group identifier of the group from a user group database; the user group database stores a user identifier and a group identifier in a corresponding manner; for each user identifier corresponding to the target work position, determine whether the user identifier corresponding to the target work position is included in the user identifier corresponding to the group identifier; if the user identifier corresponding to the target work position is included in the user identifier corresponding to the group identifier, determine the user identifier corresponding to the target work position as the receipt user identifier; and determine the user corresponding to the receipt user identifier as the receipt user.
[0126] In a possible implementation manner, the device further includes: a query module 304, a sorting module 305;
[0127] A query module 304, configured to query, in response to a query request for communication texts to be acknowledged initiated by an acknowledging user on a group acknowledgment interface, the communication texts to be acknowledged in the corresponding group of the acknowledging user on the group acknowledgment interface in a communication text database; the communication text database stores corresponding group identifiers, communication texts, latest acknowledgment times, and acknowledgment levels.
[0128] A sorting module 305, configured to sort all communication texts to be acknowledged according to the latest acknowledgment time and acknowledgment level corresponding to the communication texts to be acknowledged in the communication text database, to obtain an order number of the communication texts to be acknowledged; the earlier the position of the communication text to be acknowledged in the order number of the communication texts to be acknowledged, the higher the acknowledgment priority.
[0129] A display module 302 is further configured to display, on the group acknowledgment interface, the communication texts to be acknowledged in the arrangement order in the order number of the communication texts to be acknowledged, so that the acknowledging user can acknowledge based on the communication texts to be acknowledged.
[0130] In a possible implementation manner, the device further includes: a storage module 306, an update module 307;
[0131] The storage module 306 is configured to, in response to a signed-in job position identifier input by the acknowledging user on a job position sign-in interface, store the acknowledging user and the signed-in job position identifier correspondingly in a job position user relationship database.
[0132] The update module 307 is configured to update a user group database based on the updated job position user relationship database.
[0133] In a possible implementation manner, the update module 307 is specifically configured to query, in the updated job position user relationship database, the job position identifier corresponding to the acknowledging user to obtain the valid job position identifier corresponding to the acknowledging user; query, in a job position group database, the group identifier corresponding to the valid job position identifier to obtain the valid group identifier corresponding to the valid job position identifier; if there is no data record corresponding to the acknowledging user and the first group identifier in the user group database, store the acknowledging user and the first group identifier correspondingly in the user group database; query, in the user group database, the data record corresponding to the acknowledging user and the valid group identifier to obtain the first latest valid data record corresponding to the acknowledging user; query, in the user group database, the data record corresponding to the acknowledging user to obtain the first current data record corresponding to the acknowledging user; if the first current data record is not in the first latest valid data record, set the user group status of the first current data record in the user group database to an invalid status.
[0134] In a possible implementation, the update module 307 is further configured to update the job position group database in response to the job position identification to be created and the group identification to be created input by the group management user in the job position creation interface;
[0135] The update module 307 is further configured to update the user group database based on the updated job position group database.
[0136] In a possible implementation, the update module 307 is specifically configured to query the job position identification corresponding to the group identification to be created from the updated job position group database to obtain the valid job position identification corresponding to the group identification to be created; query the data record corresponding to the valid job position identification from the job position user relationship database to obtain the latest valid user; query the second latest valid data record corresponding to the latest valid user from the user group database; query the data record corresponding to the group identification to be created from the user group database to obtain the second current data record corresponding to the group identification to be created; if the second current data record is not in the second latest valid data record, set the user group status of the second current data record in the user group database to the invalid status.
[0137] An embodiment of the present application provides a communication device, which includes: a lookup module 301, configured to respond to a communication request initiated by a communication user in a group communication interface, and look up the initial job position identification corresponding to the group in the group communication interface from the job position group database; where the job position group database stores the group identification and the job position identification correspondingly; a display module 302, configured to display the initial job position corresponding to the initial job position identification in the group communication interface, so that the communication user can select a target job position from the initial job positions; a sending module 303, configured to send the communication text to the receipt user corresponding to the target job position in the group in response to the communication text input by the communication user in the group communication interface. The present application can complete the communication of the communication user based on the job position of the receipt user, shorten the communication duration, and improve the communication efficiency.
[0138] As Figure 4 shown, an electronic device 400 provided by an embodiment of the present application includes: a processor 401, a memory 402, and a bus. The memory 402 stores machine-readable instructions executable by the processor 401. When the electronic device runs, the processor 401 communicates with the memory 402 through the bus, and the processor 401 executes the machine-readable instructions to perform the steps of the communication method as described above.
[0139] Specifically, the above-mentioned memory 402 and processor 401 can be general memories and processors, which are not specifically limited herein. When the processor 401 runs the computer program stored in the memory 402, it can execute the above-mentioned communication method.
[0140] Corresponding to the above-mentioned communication method, an embodiment of the present application also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, it executes the steps of the above-mentioned communication method.
[0141] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the method embodiments, which will not be elaborated herein. In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some communication interfaces. The indirect couplings or communication connections of the devices or modules can be electrical, mechanical, or other forms.
[0142] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0143] In addition, in each embodiment of the present application, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
[0144] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the information processing method described in various embodiments of this application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0145] The above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed by this application can easily think of changes or substitutions, which should all be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims
1. A communication method, characterized in that, The communication method includes: In response to a communication request initiated by a communication user in a group communication interface, look up the initial job position identifier corresponding to the group corresponding to the group communication interface from a job position group database; Wherein, the job position group database stores group identifiers and job position identifiers correspondingly; Display the initial job position corresponding to the initial job position identifier in the group communication interface, so that the communication user can select a target job position from the initial job positions; In response to the communication text input by the communication user in the group communication interface, send the communication text to the receipt user corresponding to the target job position in the group.
2. The communication method according to claim 1, wherein Determine the receipt user corresponding to the target job position in the group through the following steps: Look up the user identifier corresponding to the target job position from a job position user relationship database; the job position user relationship database stores job position identifiers and user identifiers correspondingly; Look up the user identifier corresponding to the group identifier of the group from a user group database; the user group database stores user identifiers and group identifiers correspondingly; For each user identifier corresponding to the target job position, determine whether the user identifier corresponding to the target job position is included in the user identifiers corresponding to the group identifier; If the user identifier corresponding to the target job position is included in the user identifiers corresponding to the group identifier, determine the user identifier corresponding to the target job position as the receipt user identifier; Determine the user corresponding to the receipt user identifier as the receipt user.
3. The communication method according to claim 2, wherein The method further includes: In response to a query request for communication texts to be received initiated by a receipt user in a group receipt interface, query the communication texts to be received by the receipt user in the group corresponding to the group receipt interface from a communication text database; the communication text database stores group identifiers, communication texts, the latest receipt time, and receipt levels correspondingly; Sort all the communication texts to be received according to the latest receipt time and receipt level corresponding to the communication texts to be received in the communication text database to obtain a serial number of the communication texts to be received; the earlier the position of the communication text to be received in the serial number of the communication texts to be received, the higher the receipt priority; Display the communication texts to be received in the group receipt interface according to the arrangement order in the serial number of the communication texts to be received, so that the receipt user can give a receipt based on the communication texts to be received.
4. The communication method according to claim 2, wherein The method further includes: In response to the receipt user inputting a signed-in job position identifier in a job position sign-in interface, store the receipt user and the signed-in job position identifier correspondingly into the job position user relationship database; Update the user group database based on the updated job position user relationship database.
5. The communication method according to claim 4, wherein The updating the user group database based on the updated job position user relationship database includes: Query the job position identifier corresponding to the receipt user in the updated job position user relationship database to obtain the valid job position identifier corresponding to the receipt user; Query the group identifier corresponding to the valid job position identifier in the job position group database to obtain the valid group identifier corresponding to the valid job position identifier; If there is no data record corresponding to the receipt user and the first group identifier in the user group database, store the corresponding receipt user and the first group identifier in the user group database; Query the data record corresponding to the receipt user and the valid group identifier from the user group database to obtain the first latest valid data record corresponding to the receipt user; Query the data record corresponding to the receipt user from the user group database to obtain the first current data record corresponding to the receipt user; If the first current data record is not in the first latest valid data record, set the user group status of the first current data record in the user group database to an invalid status.
6. The communication method according to claim 4, wherein The communication method further includes: In response to the group management user inputting the to-be-created job position identifier and the to-be-created group identifier on the job position creation interface, update the job position group database; Update the user group database based on the updated job position group database.
7. The communication method according to claim 6, characterized in that, The updating the user group database based on the updated job position group database includes: Query the job position identifier corresponding to the to-be-created group identifier from the updated job position group database to obtain the valid job position identifier corresponding to the to-be-created group identifier; Query the data record corresponding to the valid job position identifier from the job position user relationship database to obtain the latest valid user; Query the second latest valid data record corresponding to the latest valid user from the user group database; Query the data record corresponding to the to-be-created group identifier from the user group database to obtain the second current data record corresponding to the to-be-created group identifier; If the second current data record is not in the second latest valid data record, set the user group status of the second current data record in the user group database to an invalid status.
8. A communication device, characterized in that, The communication device includes: A lookup module, configured to, in response to a communication request initiated by a communication user on the group communication interface, look up the initial job position identifier corresponding to the group corresponding to the group communication interface from the job position group database; Wherein, the job position group database stores the group identifier and the job position identifier correspondingly; A display module, configured to display the initial job position corresponding to the initial job position identifier on the group communication interface, so that the communication user can select a target job position from the initial job position; A sending module, configured to, in response to the communication text input by the communication user on the group communication interface, send the communication text to the receipt user corresponding to the target job position in the group.
9. An electronic device, characterized in that, Includes: A processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the communication method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is run by the processor, it performs the steps of the communication method according to any one of claims 1 to 7.