Method, apparatus, device, storage medium, and program product for obtaining associated cases
By analyzing the change information and updating the case details data, building a new case relationship, obtaining and comparing the case number group, the problem of inefficient change of the case number group is solved, and more efficient case number group updates are achieved.
Patent Information
- Application Number
- CN202111425653.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2041-11-26
AI Technical Summary
In complex cases, it is extremely difficult to obtain all case number groups associated with a case number, especially when the data changes, which leads to split or merger of case number groups, which leads to errors. The traditional modification method is inefficient.
By obtaining the change information of the relevant data, analyzing the change information to update the detailed data corresponding to the case identification, building a new case relationship based on the detailed data, obtaining the current and historical case number groups, and deleting the historical case number groups at the same time, adding the current case number group.
The efficiency of case number group changes is improved, the amount of calculation of the current case number group is reduced, and the process of determining the current case number group is accelerated by comparing the case number group.
Smart Images

Figure CN114036170B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technologies, and particularly to a method, apparatus, device, storage medium, and program product for obtaining associated cases. Background Art
[0002] In complex and numerous cases, it is extremely difficult to obtain all case number groups associated with a certain case number. When data changes (the relationship between case numbers changes), it may cause the previous case number groups to split or merge, resulting in errors in the previous case number groups. To avoid such errors, it is usually necessary to modify the case number groups.
[0003] In traditional technologies, the way to modify case number groups is to manually obtain the updated data, so that the case number groups can be manually checked and modified according to the updated data. However, such a modification method is inefficient. Summary of the Invention
[0004] Based on this, it is necessary to provide a method, apparatus, computer device, computer-readable storage medium, and computer program product for obtaining associated cases that can improve the efficiency of changing case number groups in view of the above technical problems.
[0005] In a first aspect, the present application provides a method for obtaining associated cases. The method includes: obtaining change information of relevant data, where the change information carries a case identifier; parsing the change information to update the detailed data corresponding to the case identifier; constructing a new case relationship according to the detailed data; obtaining a current case number group corresponding to the case identifier according to the new case relationship; obtaining a historical case number group corresponding to the case identifier; when the current case number group is different from the historical case number group, deleting the historical case number group and adding the current case number group.
[0006] In one embodiment, the parsing the change information to update the detailed data corresponding to the case identifier includes: parsing the change information to obtain a current case number, an associated case number, and case detailed information; updating the detailed data corresponding to the case identifier according to the current case number, the associated case number, and the case detailed information.
[0007] In one embodiment, the obtaining a current case number group corresponding to the current case number according to the new case relationship includes: locating the current case number in the new case relationship, obtaining the case numbers associated with the current case number to obtain the current case number group; or locating the associated case number associated with the current case number in the new case relationship, and obtaining the current case number group based on the associated case number.
[0008] In one embodiment, the obtaining of the historical case number group corresponding to the current case number includes: obtaining the case number group including the current case number as the corresponding historical case number group; or obtaining the case number group including the associated case numbers of the current case number as the corresponding historical case number group.
[0009] In one embodiment, after parsing the change information to update the detailed data corresponding to the case identifier, it further includes: configuring a unique identifier for the detailed information, and storing the detailed data in Tidb according to the unique identifier;
[0010] The constructing of the new case relationship according to the detailed data includes: establishing a case relationship by using the Cartesian product according to the detailed data, and when the current case number and the corresponding associated case numbers are associated in multiple dimensions, identifying the case relationship through multiple dimensions.
[0011] In one embodiment, the obtaining of the current case number group corresponding to the current case number according to the new case relationship includes: taking the current case number as the center and taking a preset layer as the radius to obtain the current case number group from the new case relationship.
[0012] In one embodiment, the method further includes: assembling the updated current case number group and the changed case numbers in a preset format, and sending the assembled data to the using end.
[0013] In a second aspect, the present application further provides an associated case obtaining device. The device includes: a data obtaining module, configured to obtain change information of relevant data, where the change information carries a case identifier; an information parsing module, configured to parse the change information to update the detailed data corresponding to the case identifier; a relationship constructing module, configured to construct a new case relationship according to the detailed data; a current case number group obtaining module, configured to obtain the current case number group corresponding to the case identifier according to the new case relationship; a historical case number group obtaining module, configured to obtain the historical case number group corresponding to the case identifier; and a case number group processing module, configured to delete the historical case number group and add the current case number group when the current case number group is different from the historical case number group.
[0014] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above method are implemented.
[0015] In a fourth aspect, the present application further provides a computer-readable storage medium. On the computer-readable storage medium, a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0016] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program which, when executed by a processor, implements the steps of the above-mentioned method.
[0017] The above-mentioned method, apparatus, device, storage medium and program product for obtaining related cases construct new case relationships through detailed data, form corresponding current case number groups only based on the case relationships, reduce the computational amount of calculating the current case number groups according to the case data, and improve the efficiency of forming the current case groups. By comparing the current case number group with the historical case number group to determine whether to update the historical case number group to form the corresponding current case number group, since only the case numbers are compared, the efficiency of determining the corresponding current case number group of the current case number is further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is an application environment diagram of the method for obtaining related cases in an embodiment;
[0019] Figure 2 It is a schematic flowchart of the method for obtaining related cases in an embodiment;
[0020] Figure 3 It is a schematic flowchart of the method for obtaining related cases in another embodiment;
[0021] Figure 4 It is a structural block diagram of the apparatus for obtaining related cases in an embodiment;
[0022] Figure 5 It is an internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0023] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0024] The method for obtaining related cases provided in the embodiments of the present application can be applied to, for example Figure 1In the application environment shown. Among them, the terminal 102 communicates with the middleware 104. After the terminal 102 obtains the change information of the relevant data, it parses the change information to update the detailed data corresponding to the case identifier; constructs a new case relationship according to the detailed data; obtains the current case number group corresponding to the case identifier according to the new case relationship; obtains the historical case number group corresponding to the case identifier; when the current case number group is different from the historical case number group, deletes the historical case number group and adds the current case number group. The updated detailed data, the newly added current case number group and the historical case number group of the above terminal are all stored on the middleware 104. Among them, the terminal 102 can be but is not limited to various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The middleware 104 can be implemented by an independent database or a database cluster composed of multiple databases. Optionally, the middleware 104 is a Tidb database.
[0025] In one embodiment, as Figure 2 shown, a method for obtaining related cases is provided. Taking the application of this method to the terminal 102 as an example, it includes the following steps:
[0026] Step 202, obtain the change information of the relevant data, and the change information carries a case identifier.
[0027] Among them, the relevant data refers to the information related to the case. The relevant data can be stored in a database or a database cluster. The relevant data changes according to the processing of the business system, resulting in changes in the relevant data. Optionally, the database records the change information of the relevant data each time, such as storing it in the database log, so that the server can obtain the change information of the relevant data. More preferably, the relevant data is stored according to the case, and each case is stored as a piece of relevant data. Therefore, the change information of the relevant data can carry a case identifier.
[0028] Specifically, the terminal obtains the information that the relevant data has changed, and the change information includes the case identifier of the relevant case. Optionally, the case identifier is the case number. Among them, the case numbers of various types of cases are accurately disclosed, and the case number identifying the case can be parsed from its own case number. The case number of the case itself is the current case number, and the current case number is represented by the English abbreviation cn. For example, the case number of the case itself is "(2009) Weimin Yizi No. 282 Civil Judgment", and the terminal standardizes the case number. After removing special characters, converting Chinese and English symbols, and / or converting Chinese case, the corresponding case number is "2009001282".
[0029] Step 204: Analyze the change information to update the detailed data corresponding to the case identifier.
[0030] Among them, the detailed data includes all the information involved in the case, such as the case number, related case number, filing time, hearing time, plaintiff and defendant, ruling result, etc. It should be noted that the related case number is the case number parsed from the information in the case, called the related case number, that is, the case number of other cases stored in the case file.
[0031] Specifically, the terminal analyzes the change information to obtain the case number of the case with information changes, that is, the current case number, queries the changed case according to the current case number for easy analysis of the changed case, generates corresponding detailed data according to the parsed content, and updates the detailed data corresponding to the case identifier through the above detailed data.
[0032] Step 206: Construct a new case relationship according to the detailed data.
[0033] Among them, the case relationship refers to the association relationship between the case number of the case itself, that is, the current case number, and the related case number.
[0034] Specifically, the terminal constructs a new set of association relationships as the new case relationship according to the current case number and the related case number in the detailed data of the case. For example, the current case number in the detailed data of a certain case is cn, and the related case numbers are bcn1 and bcn2. The case relationships constructed according to cn, bcn1, and bcn2 in the detailed data of the case are cn - bcn1 and cn - bcn2.
[0035] Step 208: Obtain the current case number group corresponding to the case identifier according to the new case relationship.
[0036] Among them, the current case number group is a case number group composed of the current case number and the related case number in the new case relationship and the related case numbers iteratively found by taking the related case number as the current case number.
[0037] Specifically, the terminal forms a case number group according to the current case number and the related case number in the new case relationship and the related case numbers iteratively found by taking the related case number as the current case number, and takes the above case number group as the current case number group of the current case number.
[0038] Step 210: Obtain the historical case number group corresponding to the current case number.
[0039] Among them, the historical case number group is the case number group before the information of the current case number is changed.
[0040] Specifically, the terminal obtains the case number group before the information of the current case number is changed as the historical case number group.
[0041] Step 212: When the current case number group is different from the historical case number group, delete the historical case number group and add the current case number group.
[0042] The terminal determines whether the current case number group obtained corresponding to the current case number is the same as the historical case number group. If the current case number group is different from the historical case number group, delete the historical case number group, add the current case number group, and store the added current case number group. If the current case number group is the same as the historical case number group, end the update process.
[0043] In the above related case acquisition method, the terminal constructs a new case relationship through the detailed data, and only forms the corresponding current case number group according to the case relationship, reducing the calculation amount of calculating the current case number group based on the case data and improving the efficiency of forming the current case group. By comparing the current case number group with the historical case number group, it is determined whether to update the historical case number group to form the corresponding current case number group. Since only the case numbers are compared, the efficiency of determining the corresponding current case number group of the current case is further improved.
[0044] In one embodiment, the change information is parsed to update the detailed data corresponding to the case identifier, including: parsing the change information to obtain the current case number, related case numbers, and case detailed information; updating the detailed data corresponding to the case identifier according to the current case number, related case numbers, and case detailed information.
[0045] Among them, the case detailed information is the case number of the case, related case numbers, filing time, hearing time, plaintiff and defendant, ruling result, etc.
[0046] Specifically, the terminal parses the change information to obtain the case number of the case with information change, that is, the current case number. According to the current case number, the terminal parses the changed case to obtain its own case number, that is, the current case number, related case numbers, and its own filing time, hearing time, plaintiff and defendant, ruling result and other case detailed information. The terminal updates the detailed data of the current case number according to the information obtained by the above parsing.
[0047] In the above related case acquisition method, the terminal parses the change information to update the corresponding detailed data, converting the case corresponding to the change information into detailed data, reducing the data volume of case processing.
[0048] In one embodiment, obtaining the current case number group corresponding to the current case number according to the new case relationship includes: locating the current case number in the new case relationship, obtaining the case numbers associated with the current case number to obtain the current case number group; or locating the related case numbers associated with the current case number in the new case relationship, and obtaining the current case number group based on the related case numbers.
[0049] Specifically, the terminal locates the current case number from the new case relationship, obtains the associated case numbers of the current case number, takes the associated case numbers as the current case number to iteratively obtain the corresponding associated case numbers, and obtains the current case number group based on the above current case number and associated case numbers. If the terminal fails to locate the current case number from the new case relationship, it locates the associated case number associated with the current case number from the new case relationship, takes the associated case number as the current case number to iteratively obtain the corresponding associated case numbers, and obtains the current case number group based on the above current case number and associated case numbers. It should be noted that if the terminal fails to locate the current case number from the new case relationship, it means that the current case number is not included in the detailed data, which means that the data obtained by parsing the change information is to delete the current case. Accordingly, the current case number is not included in the detailed data.
[0050] The above method for obtaining associated cases can obtain the current case group through the current case number or the associated case numbers associated with the current case number. There are various ways to obtain the current case number group, which increases the robustness of the system.
[0051] In one embodiment, obtaining the historical case number group corresponding to the current case number includes: obtaining the case number group including the current case number as the corresponding historical case number group; or obtaining the case number group including the associated case numbers of the current case number as the corresponding historical case number group.
[0052] Specifically, the terminal obtains the case number group including the current case number as the corresponding historical case number group; if the terminal fails to obtain the case number group including the current case number, it obtains the case number group including the associated case numbers of the current case number as the corresponding historical case number group. It should be noted that if the case number group including the current case number is not obtained, it means that the change information is a newly added case and there is no historical case number group. The historical case number group of the associated case numbers of the current case number is used as the historical case number group of the current case number.
[0053] The above method for obtaining associated cases determines the historical case number group through the current case number and the associated case numbers of the current case number. There are various ways to obtain the historical case number group, which increases the robustness of the system.
[0054] In one embodiment, after parsing the change information to update the detailed data corresponding to the case identifier, it further includes: configuring a unique identifier for the detailed information and storing the detailed data in Tidb according to the unique identifier; constructing a new case relationship based on the detailed data, including: establishing a case relationship by using the Cartesian product according to the detailed data, and when the current case number and the corresponding associated case numbers are associated in multiple dimensions, identifying the case relationship through multiple dimensions.
[0055] Among them, Tidb is a kind of database. Multiple dimensions refer to different dimensions such as case filing, judgment documents, and being executed of the case.
[0056] Specifically, the terminal configures a unique identifier for the detailed information of each case, and stores the corresponding detailed information in the Tidb database according to the unique identifier. The terminal establishes a case relationship between the current case number and the associated case number in the detailed data, and iteratively obtains the corresponding associated case number by using the associated case number as the current case number, and establishes a case relationship between the above current case number and the associated case number in a Cartesian product manner. When there is an association relationship between the current case number and the associated case number in multiple dimensions, such as case filing, judgment documents, execution, etc., a dimension identifier corresponding to the dimension is marked on the association relationship.
[0057] The above method for obtaining related cases stores detailed data through Tidb, which makes the storage and call speed of the detailed data faster.
[0058] In one embodiment, obtaining a current case number group corresponding to the current case number according to the new case relationship includes: taking the current case number as the center and obtaining the current case number group from the new case relationship with a preset layer as the radius.
[0059] Among them, the first layer of the preset layer is to parse the associated case number in the case corresponding to the current case number according to the current case number; the second layer of the preset layer is to set each associated case number as the current case number, and parse the associated case number in the case corresponding to the current case number according to each current case number; the third layer of the preset layer is to set the associated case number in the second layer as the current case number, and parse the associated case number in the case corresponding to the current case number according to each current case number... Correspondingly, the nth layer of the preset layer is to set the associated case number in the n-1th layer as the current case number, and parse the associated case number in the case corresponding to the current case number according to each current case number.
[0060] Specifically, the terminal takes the current case number as the center, obtains the corresponding current case number and associated case number according to the preset number of layers, and establishes a new case relationship according to the above current case number and associated case number to generate a corresponding current case number group.
[0061] Optionally, the number of layers of the preset layer is 5 layers.
[0062] The above method for obtaining related cases can determine the strong association relationship between the current case number and the associated case number, determine the effective influence range of the current case number group, and enhance the processing efficiency and function of the computer by controlling the number of layers of the associated case numbers for constructing the case relationship through the preset layer.
[0063] In one embodiment, the method further includes: assembling the updated current case number group and the changed case numbers in a preset format, and sending the assembled data to the using end.
[0064] Specifically, the terminal responds to the user's query requirement, assembles the changed current case number group, the changed case numbers and the corresponding detailed information into an assembled json format, and sends the assembled data to the display device of the downstream user.
[0065] In one embodiment, as Figure 3 shown, the terminal obtains the change information of the case, and the case number of the case, i.e., the current case number, can be obtained through the change information. Among them, the case numbers of various types of cases are accurately disclosed, and the case number identifying the case can be parsed from its own case number. The case number of the case itself is the current case number, and the current case number is represented by the English abbreviation "cn". For example, the case number of the case itself is "(2009) Weimin Yizi No. 282 Civil Judgment". The terminal standardizes the case number, such as removing special characters in the case number and converting Chinese and English symbols. The corresponding case number after processing is "2009001282". The terminal locates the changed case through the case number, and parses the case number, or information such as personnel and companies mentioned in the text of the changed case through an algorithm to obtain the corresponding associated case number, which is represented by the English abbreviation "bcn". Correspondingly, the parsed associated case number also undergoes standardization processing. It can be understood that the case number of each case is unique. The terminal generates corresponding detailed data according to the processed "cn", and the detailed data includes "cn", "bcn", as well as the case-filing time, court session time, plaintiff and defendant, ruling result, etc., and updates the detailed data generated by the changed case to the Tidb database.
[0066] The terminal forms a case relationship based on "cn" and "bcn" in the detailed data, where the relationship key of the case relationship is generated according to the unique identifier "id". Among them, each case number in each piece of detailed data has a unique identifier "id", and this identifier is globally unique. If there are multiple "cn" and "bcn", the terminal controls multiple "cn" and "bcn" to form a case relationship in the form of a Cartesian product. If "cn" and "bcn" are associated in multiple dimensions, the terminal saves the "id" of multiple dimensions in the relationship key field of this case relationship.
[0067] The terminal finds all cases related to the current case within five levels through a recursive method according to the case relationship, and uses all the found cases as the latest case number group data to generate the current case number group.
[0068] The terminal queries the current case number group and historical case number group of the current case number. If there is a current case number group but no historical case number group for the current case number, it indicates that the change information is a newly added case. The terminal queries the historical case number group of the associated case number of the newly added case, deletes the historical case number group, and adds the current case number group. If the terminal queries the current case number group and historical case number group of the current case number, it indicates that the change information is partial information of the current case. Then, it determines whether the historical case number group is the same as the current case number group. If the historical case number group is not the same as the current case number group, the historical case number group is deleted and the current case number group is added; if the historical case number group is the same as the current case number group, it remains unchanged. If the terminal queries the historical case number group of the current case number but does not query the current case number group, it indicates that the change information is to delete the current case. The terminal queries the historical case number group of the associated case number of the current case, deletes the historical case number group, and adds the current case number group.
[0069] The terminal queries the relevant case details according to the case number of the case, assembles them into the specified Json format, and sends them to the downstream display device of the user.
[0070] It should be noted that if the case relationship changes, the corresponding relationship key also changes.
[0071] Regardless of whether the case number group corresponding to the current case number has changed, it is necessary to reassemble the detailed data for distribution, because there may be some fields in the detailed data that are not related to the case number group. Although the case number group has not changed, there may have been other data changes in the detailed data.
[0072] It should be understood that although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0073] Based on the same inventive concept, the embodiments of the present application also provide an associated case acquisition device for implementing the above-mentioned associated case acquisition method. The implementation solutions provided by this device for solving problems are similar to the implementation solutions described in the above method. Therefore, the specific limitations in one or more of the following embodiments of the associated case acquisition device can refer to the limitations on the associated case acquisition method in the above text, and will not be repeated here.
[0074] In one embodiment, asFigure 4 As shown in the figure, a related case acquisition device is provided, including: a data acquisition module 100, an information parsing module 200, a relationship construction module 300, a current case number group acquisition module 400, a historical case number group acquisition module 500, and a case number group processing module 600, where:
[0075] The data acquisition module 100 is used to acquire the change information of relevant data, and the change information carries a case identifier;
[0076] The information parsing module 200 is used to parse the change information to update the detailed data corresponding to the case identifier;
[0077] The relationship construction module 300 is used to construct a new case relationship according to the detailed data;
[0078] The current case number group acquisition module 400 is used to acquire the current case number group corresponding to the case identifier according to the new case relationship;
[0079] The historical case number group acquisition module 500 is used to acquire the historical case number group corresponding to the case identifier;
[0080] The case number group processing module 600 is used to delete the historical case number group and add the current case number group when the current case number group is different from the historical case number group.
[0081] In one embodiment, the information parsing module 200 includes: a parsing sub-module for parsing the change information to obtain the current case number, associated case number, and case detailed information; an update sub-module for updating the detailed data corresponding to the case identifier according to the current case number, associated case number, and case detailed information.
[0082] In one embodiment, the current case number group acquisition module 400 includes: locating the current case number from the new case relationship, and acquiring the case numbers associated with the current case number to obtain the current case number group; or locating the associated case numbers associated with the current case number from the new case relationship, and acquiring the current case number group based on the associated case numbers.
[0083] In one embodiment, the historical case number group acquisition module 500 includes: acquiring the case number group including the current case number as the corresponding historical case number group; or acquiring the case number group including the associated case numbers of the current case number as the corresponding historical case number group.
[0084] In one embodiment, it further includes: a storage module for configuring a unique identifier for the detailed information and storing the detailed data in Tidb according to the unique identifier;
[0085] The relationship construction module 300 includes: establishing case relationships in the way of Cartesian product according to the detailed data, and when there are associations between the current case number and the corresponding associated case numbers in multiple dimensions, identifying the case relationships through multiple dimensions.
[0086] In one embodiment, the current case number group acquisition module 400 includes: taking the current case number as the center and obtaining the current case number group from the new case relationships with a preset layer as the radius.
[0087] In one embodiment, it further includes: an assembly module, which is used to assemble the updated current case number group and the changed case numbers in a preset format and send the assembled data to the using end.
[0088] Each module in the above-mentioned associated case acquisition device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in the processor in the computer device in the form of hardware or be independent of it, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned respective modules.
[0089] In one embodiment, a computer device is provided. This computer device can be a server, and its internal structure diagram can be as Figure 5 shown. This computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of this computer device is used to provide computing and control capabilities. The memory of this computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of this computer device is used to store detailed data and case number group data. The network interface of this computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it realizes an associated case acquisition method.
[0090] Those skilled in the art can understand that Figure 5 the structure shown in
[0091] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented: obtaining change information of relevant data, where the change information carries a case identifier; parsing the change information to update the detailed data corresponding to the case identifier; constructing a new case relationship according to the detailed data; obtaining the current case number group corresponding to the case identifier according to the new case relationship; obtaining the historical case number group corresponding to the case identifier; when the current case number group is different from the historical case number group, deleting the historical case number group and adding the current case number group.
[0092] In one embodiment, when the processor executes the computer program, the parsing of the change information to update the detailed data corresponding to the case identifier includes: parsing the change information to obtain the current case number, the associated case number, and the case detailed information; updating the detailed data corresponding to the case identifier according to the current case number, the associated case number, and the case detailed information.
[0093] In one embodiment, when the processor executes the computer program, obtaining the current case number group corresponding to the current case number according to the new case relationship includes: locating the current case number from the new case relationship, and obtaining the case numbers associated with the current case number to obtain the current case number group; or locating the associated case number associated with the current case number from the new case relationship, and obtaining the current case number group based on the associated case number.
[0094] In one embodiment, when the processor executes the computer program, obtaining the historical case number group corresponding to the current case number includes: obtaining the case number group including the current case number as the corresponding historical case number group; or obtaining the case number group including the associated case number of the current case number as the corresponding historical case number group.
[0095] In one embodiment, after the processor executes the computer program and parses the change information to update the detailed data corresponding to the case identifier, it further includes: configuring a unique identifier for the detailed information, and storing the detailed data in Tidb according to the unique identifier; constructing a new case relationship according to the detailed data, including: establishing a case relationship by using the Cartesian product according to the detailed data, and when the current case number and the corresponding associated case number are associated in multiple dimensions, identifying the case relationship through multiple dimensions.
[0096] In one embodiment, when the processor executes the computer program, obtaining the current case number group corresponding to the current case number according to the new case relationship includes: taking the current case number as the center and obtaining the current case number group from the established new case relationship with a preset layer as the radius.
[0097] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0098] Assemble the updated current case number group and the changed case numbers into a preset format, and send the assembled data to the using end.
[0099] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining change information of relevant data, where the change information carries a case identifier; parsing the change information to update the detailed data corresponding to the case identifier; constructing a new case relationship according to the detailed data; obtaining the current case number group corresponding to the case identifier according to the new case relationship; obtaining the historical case number group corresponding to the case identifier; when the current case number group is different from the historical case number group, deleting the historical case number group and adding the current case number group.
[0100] In one embodiment, when the computer program is executed by a processor, the parsing of the change information to update the detailed data corresponding to the case identifier includes: parsing the change information to obtain the current case number, the associated case number, and the case detailed information; updating the detailed data corresponding to the case identifier according to the current case number, the associated case number, and the case detailed information.
[0101] In one embodiment, when the computer program is executed by a processor, the obtaining of the current case number group corresponding to the current case number according to the new case relationship includes: locating the current case number from the new case relationship, and obtaining the case numbers associated with the current case number to obtain the current case number group; or locating the associated case number associated with the current case number from the new case relationship, and obtaining the current case number group based on the associated case number.
[0102] In one embodiment, when the computer program is executed by a processor, the obtaining of the historical case number group corresponding to the current case number includes: obtaining the case number group including the current case number as the corresponding historical case number group; or obtaining the case number group including the associated case number of the current case number as the corresponding historical case number group.
[0103] In one embodiment, after the computer program is executed by a processor to parse the change information to update the detailed data corresponding to the case identifier, it further includes: configuring a unique identifier for the detailed information, and storing the detailed data into Tidb according to the unique identifier; constructing a new case relationship according to the detailed data, including: establishing a case relationship by using the Cartesian product according to the detailed data, and when the current case number and the corresponding associated case number are associated in multiple dimensions, identifying the case relationship through multiple dimensions.
[0104] In one embodiment, when the computer program is executed by a processor, the obtaining of the current case number group corresponding to the current case number according to the new case relationship includes: taking the current case number as the center and taking a preset layer as the radius to obtain the current case number group from the established new case relationship.
[0105] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: assembling the updated current case number group and the changed case numbers into a preset format, and sending the assembled data to the using end.
[0106] In one embodiment, a computer program product is provided, including a computer program which, when executed by a processor, implements the following steps: obtaining change information of relevant data, where the change information carries a case identifier; parsing the change information to update the detailed data corresponding to the case identifier; constructing a new case relationship according to the detailed data; obtaining the current case number group corresponding to the case identifier according to the new case relationship; obtaining the historical case number group corresponding to the case identifier; when the current case number group is different from the historical case number group, deleting the historical case number group and adding the current case number group.
[0107] In one embodiment, when the computer program is executed by a processor, parsing the change information to update the detailed data corresponding to the case identifier includes: parsing the change information to obtain the current case number, the associated case number, and the case detailed information; updating the detailed data corresponding to the case identifier according to the current case number, the associated case number, and the case detailed information.
[0108] In one embodiment, when the computer program is executed by a processor, obtaining the current case number group corresponding to the current case number according to the new case relationship includes: locating the current case number from the new case relationship, and obtaining the case numbers associated with the current case number to obtain the current case number group; or locating the associated case number associated with the current case number from the new case relationship, and obtaining the current case number group based on the associated case number.
[0109] In one embodiment, when the computer program is executed by a processor, obtaining the historical case number group corresponding to the current case number includes: obtaining the case number group including the current case number as the corresponding historical case number group; or obtaining the case number group including the associated case number of the current case number as the corresponding historical case number group.
[0110] In one embodiment, after parsing the change information to update the detailed data corresponding to the case identifier when the computer program is executed by a processor, the following steps are further included: configuring a unique identifier for the detailed information, and storing the detailed data in Tidb according to the unique identifier; constructing a new case relationship according to the detailed data, including: establishing a case relationship in a Cartesian product manner according to the detailed data, and when the current case number and the corresponding associated case number are associated in multiple dimensions, identifying the case relationship through multiple dimensions.
[0111] In one embodiment, when the computer program is executed by a processor, obtaining a current case number group corresponding to the current case number according to the new case relationship includes: centering on the current case number and obtaining the current case number group from the established new case relationship with a preset layer as the radius.
[0112] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: assembling the updated current case number group and the changed case numbers in a preset format, and sending the assembled data to the using end.
[0113] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data that have been authorized by the user or fully authorized by all parties.
[0114] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0115] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0116] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A method for obtaining related cases, characterized in that, the method includes: Obtaining change information of related data, where the change information carries a case identifier; Parsing the change information to obtain the current case number, related case numbers, and case details information; Updating the details data corresponding to the case identifier according to the current case number, the related case numbers, and the case details information; Configuring a unique identifier for the details information, and storing the details data in Tidb according to the unique identifier; Establishing case relationships in the form of a Cartesian product based on the details data, and when the current case number and the corresponding related case numbers are associated in multiple dimensions, identifying the case relationships through multiple dimensions; Obtaining the current case number group corresponding to the case identifier according to the new case relationship; Obtaining the historical case number group corresponding to the case identifier; When the current case number group is different from the historical case number group, deleting the historical case number group and adding the current case number group.
2. The method according to claim 1, characterized in that, the obtaining the current case number group corresponding to the current case number according to the new case relationship includes: Locating the current case number from the new case relationship, and obtaining the case numbers associated with the current case number to obtain the current case number group; or Locating the related case numbers associated with the current case number from the new case relationship, and obtaining the current case number group based on the related case numbers.
3. The method according to claim 1, characterized in that, the obtaining the historical case number group corresponding to the current case number includes: Obtaining the case number group including the current case number as the corresponding historical case number group; or Obtaining the case number group including the related case numbers of the current case number as the corresponding historical case number group.
4. The method according to claim 1, characterized in that, the obtaining the current case number group corresponding to the current case number according to the new case relationship includes: Taking the current case number as the center, and obtaining the current case number group from the new case relationship with a preset layer as the radius.
5. The method according to claim 1, characterized in that, the method further includes: Assembling the updated current case number group and the changed case numbers in a preset format, and sending the assembled data to the using end.
6. An apparatus for obtaining related cases, characterized in that, the apparatus includes: A data acquisition module for acquiring change information of related data, where the change information carries a case identifier; An information parsing module for parsing the change information to update the details data corresponding to the case identifier; A storage module for configuring a unique identifier for the details information and storing the details data in Tidb according to the unique identifier; A relationship construction module for constructing a new case relationship according to the details data; A current case number group acquisition module for obtaining the current case number group corresponding to the case identifier according to the new case relationship; A historical case number group acquisition module for obtaining the historical case number group corresponding to the case identifier; A case number group processing module, configured to delete the historical case number group and add the current case number group when the current case number group is different from the historical case number group; Wherein, the information parsing module includes: a parsing sub-module, configured to parse the change information to obtain the current case number, the associated case number, and the case details information; an updating sub-module, configured to update the details data corresponding to the case identifier according to the current case number, the associated case number, and the case details information; The relationship construction module includes: establishing case relationships in a Cartesian product manner according to the details data, and when the current case number and the corresponding associated case number are associated in multiple dimensions, identifying the case relationships through multiple dimensions.
7. The apparatus according to claim 6, wherein, The current case number group obtaining module further includes: locating the current case number from the new case relationships, and obtaining the case numbers associated with the current case number to obtain the current case number group; or locating the associated case numbers associated with the current case number from the new case relationships, and obtaining the current case number group based on the associated case numbers.
8. A computer device, including a memory and a processor, the memory storing a computer program, wherein, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium, having a computer program stored thereon, wherein, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer program product, including a computer program, wherein, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Litigation case classification method and device, computer equipment and storage medium
CN111522955A
All trail case association method and device based on judgment document, electronic equipment and computer readable medium
CN112948571A