Data packet pairing method and system, terminal and storage medium

By performing conditional verification and integration processing on the data to be grouped and matched in the database, a common field mapping relationship is established, which solves the problem of difficulty in displaying data groups and detailed information and complicated multi-group matching labels in the existing technology, and achieves simplicity and accuracy. Data pairing and presentation.

CN118796956APending Publication Date: 2024-10-18BEIJING XIRON CULTURE GRP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410860206.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing technology cannot simultaneously display the detailed information of the data group and the detailed information of the data, and when the data needs to belong to multiple groupings and pairs at the same time, the combination of labels is complicated and prone to errors and omissions.

Method used

Condition verification is performed by obtaining the data to be grouped and matched in the database. If the data meets the basic verification conditions, the data field information is obtained for sub-table query. If the query result is empty, the integration process is performed and a common field mapping relationship is established for data pairing. Process until the preset quantity requirements are met and then saved to the database.

Benefits of technology

It achieves the simplicity and accuracy of the data pairing result set, adapts to the needs of multi-group pairing, and has scalability and reusability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796956A_ABST
    Figure CN118796956A_ABST
Patent Text Reader

Abstract

The invention discloses a data grouping and pairing method and system, a terminal and a storage medium, and the method comprises the steps: obtaining a plurality of data to be grouped and paired in a database, and carrying out the condition verification of all data; if the basic verification conditions are met, obtaining field information of the data, and performing information query on the sub-table to obtain a query result; if the query result is null, performing integration processing on all the data to obtain a target set, establishing a corresponding mapping relation between the public fields of all the data and the target set, and performing pairing processing on all the data to obtain a detailed data set; and if the element quantity of the target element set meets the preset quantity requirement, storing the target data of the detail data set to a database to obtain a target data set. According to the method, when the method belongs to a plurality of groups for pairing at the same time, the obtained result set is more concise, so that information query is facilitated, verification and grouping of data pairing can be changed according to specific requirements, and the method has extremely high expandability and reusability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data grouping pairing method, system, terminal and storage medium. Background Art

[0002] In today's data age, data plays an increasingly important role, among which data processing is becoming more and more critical, and is the basis and premise of data analysis and information management. In the data processing process, data grouping also plays an important role. Whether data grouping is successful will directly affect the data quality and the accuracy of analysis; and by grouping and pairing data, the efficiency of data mining and analysis can be effectively improved; in terms of data visualization and data governance, data pairing can provide a more comprehensive perspective. With the continuous improvement of automation and intelligence levels, in order to adapt to the increasingly complex data management and analysis needs, data grouping and pairing play a key role in data integrity, visualization, data governance and other aspects.

[0003] At present, when data is paired through labeling, when it is required to display group detailed information and to associate data detailed information, it is impossible to take into account the display of group detailed information and data detailed information at the same time; and although the labeling method can form new group pairings through the new creation method, when data needs to belong to multiple group pairs at the same time, it is necessary to create multiple labels to mark the data. Not only is the combination of labels complicated, but it is also easy to have problems such as wrong labeling and missing labels during the labeling process.

[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0005] The main purpose of the present invention is to provide a data grouping pairing method, system, terminal and storage medium, aiming to solve the problem that the prior art cannot simultaneously take into account the display of group detailed information and data detail information, and when data needs to belong to multiple group pairs at the same time, not only is the combination of labels complicated, but it is also easy to have problems such as wrong labeling and missing labels during the labeling process.

[0006] To achieve the above object, the present invention provides a data grouping pairing method, the data grouping pairing method comprising the following steps:

[0007] Acquire a plurality of data to be grouped and paired in a database, and perform conditional verification on all the data, wherein the database includes a main table and a sub-table;

[0008] If all the data meet the basic verification condition, then obtain the field information of any one of the data, perform information query on the subtable according to the field information, and obtain the query result;

[0009] If the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set;

[0010] If the number of elements in the detailed data set meets the preset number requirement, the target data in the detailed data set is saved to the database to obtain a target data set.

[0011] Optionally, the data grouping and pairing method, wherein the step of obtaining a plurality of data to be grouped and paired in a database and performing conditional verification on all the data, specifically includes:

[0012] Acquire multiple target information input by the user, and search the database according to all the target information to obtain multiple data to be grouped and paired;

[0013] Obtain the target requirements of the user, perform conditional verification on all the data according to the target requirements, obtain verification results, and determine whether all the data meet basic verification conditions according to the verification results;

[0014] If the verification result is that all the data do not meet the target requirement, it is determined that all the data do not meet the basic verification condition;

[0015] If the verification result is that all the data meet the target requirement, it is determined that all the data meet the basic verification condition.

[0016] Optionally, the data grouping and pairing method, wherein if all the data satisfy the basic verification condition, obtaining field information of any one of all the data, performing information query on the subtable according to the field information to obtain a query result, further comprises:

[0017] If the query result is not empty, obtaining the associated fields of the main table and the sub-table according to the information record of the query result;

[0018] The main table information and the sub-table information corresponding to the data are acquired according to the associated fields, and the information record is deleted according to the main table information and the sub-table information.

[0019] Optionally, the data grouping and pairing method, wherein if the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set, specifically includes:

[0020] If the query result is empty, all the data are integrated to obtain the target set;

[0021] Acquire common fields of all the data, establish a mapping relationship between the common fields and the target set, and obtain a common field set of the common fields according to the mapping relationship;

[0022] The common field set is traversed to obtain field set elements, and a detailed data set is acquired from the mapping relationship according to the field set elements.

[0023] Optionally, the data grouping and pairing method, wherein if the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set, and then further comprises:

[0024] Obtaining the number of elements in the detailed data set, comparing the number of elements with a preset number to obtain a comparison result, and judging whether the number of elements meets the quantity requirement according to the comparison result;

[0025] If the comparison result is that the number of elements is greater than the preset number, it is determined that the number of elements meets the quantity requirement;

[0026] If the comparison result is that the number of elements is less than or equal to the preset number, it is determined that the number of elements does not meet the quantity requirement.

[0027] Optionally, the data grouping and pairing method, wherein if the number of elements in the detailed data set meets a preset number requirement, saving the target data in the detailed data set to the database to obtain the target data set, specifically includes:

[0028] If the number of elements meets the preset number requirement, it is determined that the data pairing is successful, and a corresponding data saving instruction is generated;

[0029] According to the data saving instruction, the target field information of the common field set is saved to the main table of the database, and the target data of the detailed data set is saved to the sub-table of the database to obtain the target data set.

[0030] Optionally, the data grouping and pairing method, wherein the step of saving the target data of the detailed data set to the main table and the sub-table to obtain a target data set, further comprises:

[0031] A target data display instruction input by a user is obtained, and query processing is performed on the target data set according to the target data display instruction to obtain target main table information and target sub-table information, and the target main table information and the target sub-table information are displayed.

[0032] Optionally, in the data grouping pairing method, the data grouping pairing system comprises:

[0033] A data verification module, used to obtain a plurality of data to be grouped and paired in a database, and perform conditional verification on all the data, wherein the database includes a main table and a sub-table;

[0034] An information query module, used for obtaining field information of any one of the data if all the data meet the basic verification condition, and performing information query on the subtable according to the field information to obtain a query result;

[0035] A data pairing module, for, if the query result is empty, integrating all the data to obtain a target set, establishing a mapping relationship between the common fields of all the data and the target set, and pairing all the data according to the mapping relationship to obtain a detailed data set;

[0036] The pairing determination module is used to save the target data in the detailed data set to the database if the number of elements in the detailed data set meets the preset number requirement, so as to obtain a target data set.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a program stored in the memory and executable on the processor, and when the program is executed by the processor, the steps of the data group pairing method as described above are implemented.

[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a data group pairing program, and when the data group pairing program is executed by a processor, the steps of the data group pairing method described above are implemented.

[0039] In the present invention, multiple data to be grouped and paired are obtained from a database, and conditional verification is performed on all the data, wherein the database includes a main table and a sub-table; if all the data meet the basic verification conditions, the field information of any one of the data is obtained, and the sub-table is queried according to the field information to obtain a query result; if the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set; if the number of elements in the detailed data set meets the preset number requirement, the target data in the detailed data set is saved to the database to obtain a target data set. When the present invention belongs to multiple grouping pairs at the same time, not only is the result set obtained more concise, which is convenient for information query, but the verification and grouping of data pairing can also be modified according to specific needs, and it has strong scalability and reusability. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 is a flow chart of a preferred embodiment of the data grouping pairing method of the present invention;

[0041] Figure 2 is a schematic diagram of the overall flow of the data grouping pairing method in a preferred embodiment of the present invention;

[0042] Figure 3 It is a schematic diagram of the principle of a preferred embodiment of the data group matching system of the present invention;

[0043] Figure 4 It is a schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0045] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0046] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0047] The data grouping pairing method described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the data group pairing method includes the following steps:

[0048] Step S10: Acquire a plurality of data to be grouped and paired from a database, and perform conditional verification on all the data.

[0049] The step S10 comprises:

[0050] Step S11, obtaining multiple target information input by the user, searching the database according to all the target information, and obtaining multiple data to be grouped and paired;

[0051] Step S12: obtaining the target requirements of the user, performing conditional verification on all the data according to the target requirements, obtaining verification results, and judging whether all the data meet basic verification conditions according to the verification results;

[0052] Step S13: If the verification result is that all the data do not meet the target requirement, it is determined that all the data do not meet the basic verification condition;

[0053] Step S14: If the verification result is that all the data meet the target requirement, it is determined that all the data meet the basic verification condition.

[0054] Specifically, in an embodiment of the present invention, taking the example of multiple book works that need to pay corresponding payment amounts to different contracting parties respectively, it is necessary to group and pair the multiple book works to obtain the payee information of the same contracting party in the multiple book works, and display the corresponding product information in the result set. For the convenience of explaining the principle, take two book works selected by the user (for example, book 1 and book 2), obtain the payee information of the same contracting party of the two book works, and display the corresponding product information in the result set as an example, and the data structure corresponding to the book works is Data, but is not limited to this. Specifically, first, it is necessary to specify the data required for grouping and pairing, that is, obtain multiple target information input by the user (for example, the work information of book 1 and book 2), search and process the database according to all the target information, and obtain multiple data to be grouped and paired, for example, Data1 (that is, the product code productNo1 corresponding to book 1) and Data2 (that is, the product code productNo2 corresponding to book 1), wherein, for specifying the data required for grouping and pairing, since the grouping and pairing method requires at least two pieces of data to be implemented, except that the data structure and fields must be consistent, there are no special requirements for the required data, such as book work information, etc.; afterwards, it is necessary to determine whether Data1 and Data2 meet the basic verification conditions for pairing. If the basic verification conditions are not met, it means that there is no need for grouping and pairing, and the process ends directly; if the basic verification conditions are met, the process continues, wherein the basic verification conditions can be set according to the actual needs of the user, for example, whether the quantity, amount, etc. reaches the threshold, and whether Data1 and Data2 can be associated Specifically, the target demand of the user is obtained (for example, whether the payment amount corresponding to the product codes productNo1 and productNo2 is greater than 0), and all the data are conditionally checked according to the target demand to obtain the check result, and whether all the data meet the basic check condition according to the check result; if the check result is that all the data do not meet the target demand (for example, the payment amount corresponding to productNo1 is less than or equal to 0, or the payment amount corresponding to productNo2 is less than or equal to 0), then it is determined that all the data do not meet the basic check condition; if the check result is that all the data meet the target demand (for example, the payment amount corresponding to productNo1 and the payment amount corresponding to productNo2 are both greater than 0), then it is determined that all the data meet the basic check condition; and judging whether all the data meet the basic check condition is to prepare for the subsequent grouping and pairing of all the data.

[0055] Step S20: If all the data satisfy the basic verification condition, the field information of any one of the data is obtained, and the sub-table is queried according to the field information to obtain a query result.

[0056] Specifically, in an embodiment of the present invention, if all of the data meet the basic verification conditions, a group matching process is performed, and the implementation process of group matching depends on the comparison of the data Data one by one, so Data1 is set as the newly added data. Since data Data information may exist in the subtable, the field information in Data2 is obtained, that is, the key field data_keys (for example, the certificate code field in the payee information), wherein the field information allows a combination of multiple fields, and then the subtable is queried according to the field information to obtain the query result, and different operations are subsequently performed according to whether the query result is empty.

[0057] Step S30: If the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set.

[0058] The step S30 comprises:

[0059] Step S31: if the query result is empty, all the data are integrated to obtain a target set;

[0060] Step S32: acquiring common fields of all the data, establishing a mapping relationship between the common fields and the target set, and obtaining a common field set of the common fields according to the mapping relationship;

[0061] Step S33: traverse the common field set to obtain field set elements, and obtain a detailed data set from the mapping relationship according to the field set elements.

[0062] Specifically, in the embodiment of the present invention, if the query result is empty, all the data are integrated, that is, Data1, Data2 and the paired detailed data of Data2 (if there is no paired detailed data, this part can be empty) are integrated to obtain the target collection, that is, data_collection (for example, product detailed information), so as to facilitate the establishment of subsequent mapping relationships. At the same time, since the detailed data have the same data structure, the available common fields, that is, specify_fields (for example, the beneficiary's ID code), are obtained, wherein the common fields allow the combination of multiple fields, but the fields to be combined must be the common fields of the relevant data in the matching process; then the spec is established. ify_fields to data_collection mapping relationship, that is, Map, from which the public field set corresponding to specify_fields can be obtained, that is, specify_fields_collection (for example, document code set), and specify_fields_collection is traversed to obtain the field collection element, that is, specify_fields_elem, and then the corresponding detailed data set, that is, data_collection (for example, product information, royalty information, amount information, etc.) can be obtained from Map with specify_fields_elem.

[0063] Furthermore, in an embodiment of the present invention, if the query result is not empty, the associated fields of the main table and the sub-table are obtained according to the information record of the query result, that is, the primary key ID of the main table stored in the sub-table, and the sub-table information (for example, the primary key ID, product code and royalty code and other fields of the main table) and the main table information (for example, the payee information stored in the main table) of the paired detailed data of Data2 and Data2 are obtained according to the associated fields, and the sub-table information and the main table information are cached; thereafter, in order to simplify the subsequent processing logic, the information records are deleted according to the main table information and the sub-table information to reduce the difficulty of implementation; if the deleted data is needed subsequently, it can be obtained from the cached data.

[0064] Furthermore, in another embodiment of the present invention, the deletion operation of the target information according to the main table information and the sub-table information may not be performed, that is, the sub-table continues to use the existing main table primary key ID as the basis for associating the main table and the sub-table, and only the matching logic of the main table primary key ID corresponding to the new data needs to be added later.

[0065] Step S40: If the number of elements in the detailed data set meets the preset number requirement, the target data in the detailed data set is saved to the database to obtain a target data set.

[0066] The step S40 comprises:

[0067] Step S41: If the number of elements meets the preset number requirement, it is determined that the data pairing is successful, and a corresponding data saving instruction is generated;

[0068] Step S42: according to the data saving instruction, save the target field information of the common field set to the main table of the database, and save the target data of the detailed data set to the sub-table of the database to obtain the target data set.

[0069] Specifically, in an embodiment of the present invention, the number of elements of the detailed data set is obtained, the number of elements is compared with a preset number (for example, the preset number is 1), a comparison result is obtained, and a determination is made based on the comparison result whether the number of elements meets the quantity requirement; if the determination result is that the number of elements is less than or equal to the preset number, that is, the number of elements is less than or equal to 1, then it is determined that the number of elements does not meet the quantity requirement and no processing is required; if the determination result is that the number of elements is greater than the preset number, that is, the number of elements is greater than 1, then it is determined that the number of elements meets the quantity requirement, indicating that the data pairing is successful. The function generates a corresponding data saving instruction. According to the data saving instruction, the target field information of the common field set is saved to the main table of the database (for example, the payee information is saved to the main table), and the target data of the detailed data set is saved to the sub-table of the database (for example, the product detail information is saved to the sub-table), so as to obtain the target data set; finally, according to the main table and the sub-table, the data required by the user (for example, the payee information and the corresponding product information of the same contracting party of two book works) can be queried at one time, that is, the same contracting party information of N products can be formed in the main table, and the corresponding product information can be formed in the sub-table.

[0070] Furthermore, in an embodiment of the present invention, if paired data needs to be displayed, the main table information can be directly queried, and detailed data information can be obtained after matching the sub-table information according to the associated fields of the main table and the sub-table, that is, the target data display instruction input by the user is obtained, and the target data set is queried and processed according to the target data display instruction to obtain the target main table information and the target sub-table information, and the target main table information and the target sub-table information are displayed, which can take into account the display of group detailed information and data detail information at the same time.

[0071] Furthermore, the entire process of the data grouping pairing method in the embodiment of the present invention is as follows: Figure 2 As shown:

[0072] Step S101, start;

[0073] Step S102, specifying the data to be grouped and paired, namely, Data1 and Data2;

[0074] Step S103: It is necessary to determine whether Data1 and Data2 meet the basic verification conditions for pairing. If Data1 and Data2 do not meet the basic verification conditions, proceed to step S112; if Data1 and Data2 meet the basic verification conditions, proceed to step S104;

[0075] Step S104: If Data1 and Data2 meet the basic verification conditions, the grouping and pairing process is continued. The implementation of the grouping and pairing process depends on the comparison of the data one by one. Therefore, Data1 is set as the newly added data, and the field information in Data2, that is, the key field data_keys, is used to query the subtable to obtain the query result, and it is determined whether the query result is empty. If the query result is not empty, step S105 is entered; if the query result is empty, step S107 is entered;

[0076] Step S105: if the query result is not empty, then obtain the associated fields of the main table and the sub-table according to the information record of the query result, obtain the sub-table information and main-table information of the paired detail data of Data2 and Data2 according to the associated fields, and cache the sub-table information and the main-table information;

[0077] Step S106, deleting the information record according to the main table information and the sub-table information;

[0078] Step S107, if the query result is empty, integrate the paired detailed data of Data1, Data2 and Data2 to obtain the target collection, i.e., data_collection, obtain the available common fields of the paired detailed data of Data1, Data2 and Data2, i.e., specify_fields, and establish a mapping relationship from specify_fields to data_collection, i.e., Map;

[0079] Step S108, the public field collection corresponding to specify_fields, namely specify_fields_collection, can be obtained from the mapping relationship, and specify_fields_collection is traversed to obtain the field collection element, namely specify_fields_elem;

[0080] Step S109, according to specify_fields_elem, the corresponding detailed data set, i.e., data_collection, can be obtained from Map, and it is determined whether the number of elements in data_collection is greater than the preset number, i.e., 1. If the number of elements in data_collection is greater than 1, then step S110 is entered; if the number of elements in data_collection is less than or equal to 1, then step S111 is entered;

[0081] Step S110: If the number of elements in data_collection is greater than 1, the target field information of the common field set is saved to the main table of the database, and the target data of the detailed data set is saved to the sub-table of the database to obtain a target data set;

[0082] Step S111, judging whether the traversal of the common field set is completed, if the traversal is not completed, proceeding to step S109, if the traversal is completed, proceeding to step S112;

[0083] Step S112, end.

[0084] When the present invention belongs to multiple grouping pairs at the same time, not only the result set obtained is more concise, which is convenient for information query, but the verification and grouping of data pairing can also be modified according to specific needs, and it has strong scalability and reusability.

[0085] Furthermore, if Figure 3 As shown, based on the above data group pairing method, the present invention also provides a data group pairing system accordingly, and the data group pairing system includes:

[0086] The data verification module 51 is used to obtain a plurality of data to be grouped and paired in a database, and to perform conditional verification on all the data, wherein the database includes a main table and a sub-table;

[0087] An information query module 52 is used for obtaining field information of any one of the data if all the data meet the basic verification condition, and performing information query on the subtable according to the field information to obtain a query result;

[0088] The data pairing module 53 is used to integrate all the data to obtain a target set if the query result is empty, establish a mapping relationship between the common fields of all the data and the target set, and pair all the data according to the mapping relationship to obtain a detailed data set;

[0089] The pairing determination module 54 is configured to save the target data in the detailed data set to the database if the number of elements in the detailed data set meets a preset number requirement, so as to obtain a target data set.

[0090] Furthermore, if Figure 4 As shown, based on the above data group pairing method, the present invention also provides a terminal, which includes a processor 10, a memory 20 and a display 30. Figure 4 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0091] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal, etc. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a data group pairing program 40 is stored on the memory 20, and the data group pairing program 40 can be executed by the processor 10, thereby realizing the data group pairing method in the present application.

[0092] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, configured to run program codes stored in the memory 20 or process data, such as executing the data grouping pairing method.

[0093] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.

[0094] In one embodiment, when the processor 10 executes the data group pairing program 40 in the memory 20, the following steps are implemented:

[0095] Acquire a plurality of data to be grouped and paired in a database, and perform conditional verification on all the data, wherein the database includes a main table and a sub-table;

[0096] If all the data meet the basic verification condition, then obtain the field information of any one of the data, perform information query on the subtable according to the field information, and obtain the query result;

[0097] If the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set;

[0098] If the number of elements in the detailed data set meets the preset number requirement, the target data in the detailed data set is saved to the database to obtain a target data set.

[0099] The step of obtaining a plurality of data to be grouped and paired in a database and performing conditional verification on all the data specifically includes:

[0100] Acquire multiple target information input by the user, and search the database according to all the target information to obtain multiple data to be grouped and paired;

[0101] Obtain the target requirements of the user, perform conditional verification on all the data according to the target requirements, obtain verification results, and determine whether all the data meet basic verification conditions according to the verification results;

[0102] If the verification result is that all the data do not meet the target requirement, it is determined that all the data do not meet the basic verification condition;

[0103] If the verification result is that all the data meet the target requirement, it is determined that all the data meet the basic verification condition.

[0104] If all the data satisfy the basic verification condition, the field information of any one of the data is obtained, and the subtable is queried according to the field information to obtain the query result, and then the following is further included:

[0105] If the query result is not empty, obtaining the associated fields of the main table and the sub-table according to the information record of the query result;

[0106] The main table information and the sub-table information corresponding to the data are acquired according to the associated fields, and the information record is deleted according to the main table information and the sub-table information.

[0107] If the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set, specifically including:

[0108] If the query result is empty, all the data are integrated to obtain the target set;

[0109] Acquire common fields of all the data, establish a mapping relationship between the common fields and the target set, and obtain a common field set of the common fields according to the mapping relationship;

[0110] The common field set is traversed to obtain field set elements, and a detailed data set is acquired from the mapping relationship according to the field set elements.

[0111] If the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set, and then the following is further included:

[0112] Obtaining the number of elements in the detailed data set, comparing the number of elements with a preset number to obtain a comparison result, and judging whether the number of elements meets the quantity requirement according to the comparison result;

[0113] If the comparison result is that the number of elements is greater than the preset number, it is determined that the number of elements meets the quantity requirement;

[0114] If the comparison result is that the number of elements is less than or equal to the preset number, it is determined that the number of elements does not meet the quantity requirement.

[0115] If the number of elements in the detailed data set meets the preset number requirement, the target data in the detailed data set is saved to the database to obtain the target data set, which specifically includes:

[0116] If the number of elements meets the preset number requirement, it is determined that the data pairing is successful, and a corresponding data saving instruction is generated;

[0117] According to the data saving instruction, the target field information of the common field set is saved to the main table of the database, and the target data of the detailed data set is saved to the sub-table of the database to obtain the target data set.

[0118] The step of saving the target data of the detailed data set to the main table and the sub-table to obtain a target data set further includes:

[0119] A target data display instruction input by a user is obtained, and query processing is performed on the target data set according to the target data display instruction to obtain target main table information and target sub-table information, and the target main table information and the target sub-table information are displayed.

[0120] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a data group pairing program, and when the data group pairing program is executed by a processor, the steps of the data group pairing method described above are implemented.

[0121] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0122] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.

[0123] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A data grouping method, characterized in that: The data group pairing method comprises: Acquire a plurality of data to be grouped and paired in a database, and perform conditional verification on all the data, wherein the database includes a main table and a sub-table; If all the data meet the basic verification condition, then obtain the field information of any one of the data, perform information query on the subtable according to the field information, and obtain the query result; If the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set; If the number of elements in the detailed data set meets the preset number requirement, the target data in the detailed data set is saved to the database to obtain a target data set.

2. The data grouping pairing method according to claim 1, characterized in that: The step of obtaining a plurality of data to be grouped and paired from a database and performing conditional verification on all the data specifically includes: Acquire multiple target information input by the user, and search the database according to all the target information to obtain multiple data to be grouped and paired; Obtain the target requirements of the user, perform conditional verification on all the data according to the target requirements, obtain verification results, and determine whether all the data meet basic verification conditions according to the verification results; If the verification result is that all the data do not meet the target requirement, it is determined that all the data do not meet the basic verification condition; If the verification result is that all the data meet the target requirement, it is determined that all the data meet the basic verification condition.

3. The data grouping pairing method according to claim 1, characterized in that: If all the data meet the basic verification condition, the field information of any one of the data is obtained, and the sub-table is queried according to the field information to obtain the query result, and then the following is further included: If the query result is not empty, obtaining the associated fields of the main table and the sub-table according to the information record of the query result; The main table information and the sub-table information corresponding to the data are acquired according to the associated fields, and the information record is deleted according to the main table information and the sub-table information.

4. The data grouping pairing method according to claim 1, characterized in that: If the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set, specifically including: If the query result is empty, all the data are integrated to obtain the target set; Acquire common fields of all the data, establish a mapping relationship between the common fields and the target set, and obtain a common field set of the common fields according to the mapping relationship; The common field set is traversed to obtain field set elements, and a detailed data set is acquired from the mapping relationship according to the field set elements.

5. The data grouping pairing method according to claim 1, characterized in that: If the query result is empty, all the data are integrated to obtain a target set, a mapping relationship between the common fields of all the data and the target set is established, and all the data are paired according to the mapping relationship to obtain a detailed data set, and then the following is further included: Obtaining the number of elements in the detailed data set, comparing the number of elements with a preset number to obtain a comparison result, and judging whether the number of elements meets the quantity requirement according to the comparison result; If the comparison result is that the number of elements is greater than the preset number, it is determined that the number of elements meets the quantity requirement; If the comparison result is that the number of elements is less than or equal to the preset number, it is determined that the number of elements does not meet the quantity requirement.

6. The data grouping pairing method according to claim 4, characterized in that: If the number of elements in the detailed data set meets the preset number requirement, the target data in the detailed data set is saved to the database to obtain the target data set, which specifically includes: If the number of elements meets the preset number requirement, it is determined that the data pairing is successful, and a corresponding data saving instruction is generated; According to the data saving instruction, the target field information of the common field set is saved to the main table of the database, and the target data of the detailed data set is saved to the sub-table of the database to obtain the target data set.

7. The data grouping pairing method according to claim 6, characterized in that: The target data of the detailed data set is saved in the main table and the sub-table to obtain a target data set, and then the following steps are further included: A target data display instruction input by a user is obtained, and query processing is performed on the target data set according to the target data display instruction to obtain target main table information and target sub-table information, and the target main table information and the target sub-table information are displayed.

8. A data group matching system, characterized in that: The data group pairing system comprises: A data verification module, used to obtain a plurality of data to be grouped and paired in a database, and perform conditional verification on all the data, wherein the database includes a main table and a sub-table; An information query module, used for obtaining field information of any one of the data if all the data meet the basic verification condition, and performing information query on the subtable according to the field information to obtain a query result; A data pairing module, for, if the query result is empty, integrating all the data to obtain a target set, establishing a mapping relationship between the common fields of all the data and the target set, and pairing all the data according to the mapping relationship to obtain a detailed data set; The pairing determination module is used to save the target data in the detailed data set to the database if the number of elements in the detailed data set meets the preset number requirement, so as to obtain a target data set.

9. A terminal, characterized in that: The terminal includes a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the data group pairing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, wherein the computer-readable storage medium stores a data group pairing program, and when the data group pairing program is executed by a processor, the steps of the data group pairing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for building standardized remote sensing satellite data integration general metadata model

    CN106503168A

  • Data processing method, electronic device and storage medium

    CN110399380A

  • Set mapping method and device among multiple sets of models

    CN116301882A

  • Field objects and a method for developing a graphical user interface containing the field objects

    US5892510A