Method, device and storage medium for obtaining synchronization node information of work order system
By comparing node operation time and calculating text similarity, the KNN algorithm is used to obtain the closest node information, which solves the problem of the existing work order system not returning key information during node transfer, and achieves complete synchronization of information and system consistency. .
Patent Information
- Application Number
- CN202310247167.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-03-07
AI Technical Summary
The existing work order system did not return some key information during the node transfer process, resulting in the developed work order system being unable to maintain information consistent with the existing system and unable to fully display node information.
By comparing the node operation time of the first work order system and the second work order system, the occurrence probability of the log node is calculated, and the SimHash algorithm is used to calculate the text content similarity, and the KNN algorithm is combined to obtain the closest node information to achieve synchronization of node information. .
It achieves complete capture and synchronization of node information, ensuring the consistency and interconnection of system data from both parties.
Smart Images

Figure CN116401600B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of work order systems, and in particular to a method, device and storage medium for acquiring synchronization node information of a work order system. Background Art
[0002] At present, mature call / work order systems on the market are generally expensive, but such systems usually charge fees based on the number of users or concurrent users of the module. However, as the company's business develops, fixed users cannot meet the requirements of the existing business, so the NetEase Qiyu call / work order system came into our sight. During the use of the existing work order system, we found that some functions were imperfect and inconvenient. Based on this system, we developed our own work order system and synchronized the existing work order system to ensure the consistency of the data of both systems and the interconnection of the call system.
[0003] Because the API interface document of the existing work order system does not return some key information (such as attachment address, etc.) during the node transfer process, the work order system we developed does not display complete node information during the transfer process and cannot be consistent with the information of the existing work order system. How to capture the node information that needs to be synchronized is a technical problem that needs to be solved. Summary of the invention
[0004] The purpose of the present invention is to overcome the above technical deficiencies, provide a method, device and storage medium for obtaining synchronous node information of a work order system, and solve the technical problem of how to capture the node information that needs to be synchronized in the prior art.
[0005] In order to achieve the above technical objectives, the technical solution of the present invention provides a method for obtaining synchronization node information of a work order system, comprising the following steps:
[0006] S1. According to the first node information that needs to be synchronized by the first work order system, the node operation time corresponding to the first node information is compared with the node operation record time of the second work order system to obtain the occurrence probability of the record of each log node of the second work order system;
[0007] S2. Calculate the similarity between the text content of each log node of the first work order system and the text content of each log node corresponding to the second work order system by SimHash;
[0008] S3. Taking the occurrence probability and the similarity of the node information of the second work order system as the coordinates x and y corresponding to the prediction point respectively, and using the KNN algorithm to obtain the closest node information.
[0009] Further, in step S1, the node information is one or more of an operator, a node type, and an attachment information signature.
[0010] Furthermore, the node type includes one or more of creation, transfer, reply, reminder, completion and restart.
[0011] Further, in step S1, the occurrence probability is obtained by combining a preset probability with a Bayesian formula, and the preset probability is obtained by comparing the node operation time of the second work order system with the time of the operation record of the first work order system to obtain the absolute value of the time difference, and matching the corresponding preset probability according to the absolute value of the time difference.
[0012] Further, in step S1, matching the corresponding preset probability according to the absolute value of the time difference includes: when the absolute value of the time difference is less than or equal to 500 milliseconds, the preset probability is 0.9; when the absolute value of the time difference is less than or equal to 1 second, the preset probability is 0.8; when the absolute value of the time difference is less than or equal to 5 seconds, the preset probability is 0.7; when the absolute value of the time difference is less than or equal to 30 seconds, the preset probability is 0.6; when the absolute value of the time difference is less than or equal to 120 seconds, the preset probability is 0.5; other absolute values of the time difference are zero.
[0013] Furthermore, in step S2, the text content of each log node whose node content is empty and whose similarity value is less than 0.5 is excluded.
[0014] Furthermore, in step S3, the calculation formula of the KNN algorithm is: Among them, 1-n represents 1-n node operation records. The distance between the predicted point and all points is calculated, then saved and sorted, and a smaller value is selected from them.
[0015] In addition, the present invention also proposes a device for acquiring synchronization node information of a work order system, comprising:
[0016] A first acquisition unit is used to compare the node operation time corresponding to the first node information that needs to be synchronized by the first work order system with the node operation record time of the second work order system, and obtain the occurrence probability of the record of each log node of the second work order system;
[0017] A calculation unit, configured to calculate the similarity between the text content of each log node of the first work order system and the text content of each log node corresponding to the second work order system by SimHash;
[0018] The second acquisition unit is used to take the occurrence probability and the similarity of the node information of the second work order system as coordinates x and y corresponding to the prediction point respectively, and adopt the KNN algorithm to obtain the node information that can be synchronized.
[0019] Furthermore, the present invention also proposes a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for obtaining synchronization node information of the work order system are implemented.
[0020] Compared with the prior art, the beneficial effects of the present invention include: the present invention proposes a method for obtaining synchronization node information of a work order system, which uses the first node information that needs to be synchronized according to the first work order system, compares the node operation time corresponding to the first node information with the node operation record time of the second work order system, obtains the occurrence probability of the record of each log node of the second work order system, and then calculates the similarity of the text content of the node in combination with the SimHash algorithm, and then uses the KNN algorithm to find the node information closest to the target (1, 1), thereby realizing the capture of the node information that needs to be synchronized. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flowchart of a method for obtaining synchronization node information of a work order system provided in this specific embodiment of the present invention.
[0022] Figure 2 It is a structural block diagram of a device for acquiring synchronization node information of a work order system provided in this specific embodiment of the present invention. DETAILED DESCRIPTION
[0023] Combination Figure 1 This specific implementation provides a method for obtaining synchronization node information of a work order system, including the following steps:
[0024] S1. According to the first node information that needs to be synchronized by the first work order system, the node operation time corresponding to the first node information is compared with the node operation record time of the second work order system to obtain the occurrence probability of the record of each log node of the second work order system; the node information is one or more of the operator, node type and attachment information signature; the node type includes one or more of creation, transfer, reply, reminder, completion and restart; the occurrence probability is obtained by combining the preset probability with the Bayesian formula, and the preset probability is obtained by comparing the node operation time of the second work order system with the operation record time of the first work order system to obtain the absolute value of the time difference, and matching the corresponding preset probability according to the absolute value of the time difference;
[0025] Matching the corresponding preset probability according to the absolute value of the time difference includes: when the absolute value of the time difference is less than or equal to 500 milliseconds, the preset probability is 0.9; when the absolute value of the time difference is less than or equal to 1 second, the preset probability is 0.8; when the absolute value of the time difference is less than or equal to 5 seconds, the preset probability is 0.7; when the absolute value of the time difference is less than or equal to 30 seconds, the preset probability is 0.6; when the absolute value of the time difference is less than or equal to 120 seconds, the preset probability is 0.5; other absolute values of the time difference are zero;
[0026] S2. Calculate the similarity between the text content of each log node of the first work order system and the text content of each log node corresponding to the second work order system by SimHash; further, excluding the text content of each log node whose node content is empty and whose similarity value is less than 0.5;
[0027] S3. The occurrence probability and the similarity of the node information of the second work order system are respectively regarded as the coordinates x and y corresponding to the prediction point, and the KNN algorithm is used to obtain the closest node information; the calculation formula of the KNN algorithm is:
[0028]
[0029] Among them, 1-n represents 1-n node operation records. The distance between the predicted point and all points is calculated, then saved and sorted, and a smaller value is selected from them.
[0030] Combination Figure 2 This specific implementation also proposes a device for acquiring synchronization node information of a work order system, including:
[0031] A first acquisition unit is used to compare the node operation time corresponding to the first node information that needs to be synchronized by the first work order system with the node operation record time of the second work order system, and obtain the occurrence probability of the record of each log node of the second work order system;
[0032] A calculation unit, configured to calculate the similarity between the text content of each log node of the first work order system and the text content of each log node corresponding to the second work order system by SimHash;
[0033] The second acquisition unit is used to take the occurrence probability and the similarity of the node information of the second work order system as coordinates x and y corresponding to the prediction point respectively, and adopt the KNN algorithm to obtain the node information that can be synchronized.
[0034] In addition, this specific implementation also proposes a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for obtaining synchronization node information of the work order system are implemented.
[0035] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the method of the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0036] Example 1
[0037] This embodiment provides a method for obtaining synchronization node information of a work order system, including the following steps:
[0038] S1. According to the first node information that needs to be synchronized by the first work order system, the node operation time corresponding to the first node information is compared with the node operation record time of the second work order system to obtain the occurrence probability of the record of each log node of the second work order system; the node information is one or more of the operator, node type and attachment information signature; the node type includes one or more of creation, transfer, reply, reminder, completion and restart; the occurrence probability is obtained by combining the preset probability with the Bayesian formula, and the preset probability is obtained by comparing the node operation time of the second work order system with the operation record time of the first work order system to obtain the absolute value of the time difference, and matching the corresponding preset probability according to the absolute value of the time difference;
[0039] Matching the corresponding preset probability according to the absolute value of the time difference includes: when the absolute value of the time difference is less than or equal to 500 milliseconds, the preset probability is 0.9; when the absolute value of the time difference is less than or equal to 1 second, the preset probability is 0.8; when the absolute value of the time difference is less than or equal to 5 seconds, the preset probability is 0.7; when the absolute value of the time difference is less than or equal to 30 seconds, the preset probability is 0.6; when the absolute value of the time difference is less than or equal to 120 seconds, the preset probability is 0.5; other absolute values of the time difference are zero;
[0040] S2. Calculate the similarity between the text content of each log node of the first work order system and the text content of each log node corresponding to the second work order system by SimHash; further, excluding the text content of each log node whose node content is empty and whose similarity value is less than 0.5;
[0041] S3. The occurrence probability and the similarity of the node information of the second work order system are respectively regarded as the coordinates x and y corresponding to the prediction point, and the KNN algorithm is used to obtain the closest node information; the calculation formula of the KNN algorithm is: Among them, 1-n represents 1-n node operation records. The distance between the predicted point and all points is calculated, then saved and sorted, and a smaller value is selected from them.
[0042] Some terms and formulas in this embodiment are explained as follows:
[0043] Bayesian formula: When the analysis sample is large enough to approach the population size, the probability of an event occurring in the sample will be close to the probability of the event occurring in the population.
[0044] KNN algorithm (K-Nearest-Neighbor): If most of the K most similar samples (i.e., the nearest samples in the feature space) of a sample belong to a certain category, then the sample also belongs to this category.
[0045] SimHash algorithm: Calculates the similarity between texts and implements text deduplication. The vector space model (VSM) can be used to calculate text similarity, that is, first segment the text, extract features, and establish text vectors based on the features. The calculation of similarity between texts is converted into the calculation of feature vector distance, such as Euclidean distance, cosine angle, etc.
[0046] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for obtaining synchronization node information of a work order system, characterized in that: The following steps are involved: S1. According to the first node information that needs to be synchronized by the first work order system, the node operation time corresponding to the first node information is compared with the node operation record time of the second work order system to obtain the occurrence probability of the record of each log node of the second work order system; the occurrence probability is obtained by combining the preset probability with the Bayesian formula, and the preset probability is obtained by comparing the node operation time of the second work order system with the operation record time of the first work order system to obtain the absolute value of the time difference, and matching the corresponding preset probability according to the absolute value of the time difference; S2. Calculate the similarity between the text content of each log node of the first work order system and the text content of each log node corresponding to the second work order system by SimHash; S3. Taking the occurrence probability and the similarity of the node information of the second work order system as the coordinates x and y corresponding to the prediction point respectively, and using the KNN algorithm to obtain the closest node information.
2. The method for obtaining synchronization node information of a work order system according to claim 1, characterized in that: In step S1, the node information is one or more of an operator, a node type, and an attachment information signature.
3. The method for obtaining synchronization node information of a work order system according to claim 2, characterized in that: The node type includes one or more of creation, transfer, reply, reminder, completion and restart.
4. The method for obtaining synchronization node information of a work order system according to claim 1, characterized in that: In step S1, matching the corresponding preset probability according to the absolute value of the time difference includes: when the absolute value of the time difference is less than or equal to 500 milliseconds, the preset probability is 0.9; when the absolute value of the time difference is less than or equal to 1 second, the preset probability is 0.8; when the absolute value of the time difference is less than or equal to 5 seconds, the preset probability is 0.7; when the absolute value of the time difference is less than or equal to 30 seconds, the preset probability is 0.6; when the absolute value of the time difference is less than or equal to 120 seconds, the preset probability is 0.5; other absolute values of the time difference are zero.
5. The method for obtaining synchronization node information of a work order system according to claim 1, characterized in that: In step S2, the text content of each log node whose node content is empty and whose similarity value is less than 0.5 is also excluded.
6. A device for acquiring synchronization node information of a work order system, characterized in that: include: A first acquisition unit is used to compare the node operation time corresponding to the first node information that needs to be synchronized by the first work order system with the node operation record time of the second work order system, and obtain the occurrence probability of the record of each log node of the second work order system; the occurrence probability is obtained by combining a preset probability with a Bayesian formula, and the preset probability is obtained by comparing the node operation time of the second work order system with the operation record time of the first work order system to obtain an absolute value of the time difference, and matching the corresponding preset probability according to the absolute value of the time difference; A calculation unit, configured to calculate the similarity between the text content of each log node of the first work order system and the text content of each log node corresponding to the second work order system by SimHash; The second acquisition unit is used to take the occurrence probability and the similarity of the node information of the second work order system as coordinates x and y corresponding to the prediction point respectively, and adopt the KNN algorithm to obtain the node information that can be synchronized.
7. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for obtaining synchronization node information of the work order system described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
System log data classification processing method and device and intelligent electronic equipment
CN111736978A
Data processing method and device and computer readable storage medium
CN112000788A
Work order scoring method for intelligent quality inspection
CN113516379A
Work order classification method and device and computer readable storage medium
CN114742043A
Big data service management system based on distributed storage
CN115330422A
