Data processing methods, apparatus, storage media and electronic equipment

By calling the target script file in local memory to perform data verification, the problem of low data processing efficiency in existing technologies is solved, and efficient maintenance of the subordinate relationship between corporate groups and their branches or subsidiaries is achieved.

CN117009337BActive Publication Date: 2026-03-13INDUSTRIAL AND COMMERCIAL BANK OF CHINA +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-07
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

When maintaining the subordinate relationship between a corporate group and its branches or subsidiaries, the existing technology relies on frequent data queries from the database for verification, resulting in low data processing efficiency.

Method used

Data validation is performed by calling the target script file in local memory. The dependency relationship is verified through the target variable and recursive method, abnormal data is filtered out, and an accurate dependency relationship chain is generated.

Benefits of technology

It reduces interaction with the database, saves system resources, improves data processing efficiency, and ensures the accuracy of hierarchical relationships.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117009337B_ABST
    Figure CN117009337B_ABST
Patent Text Reader

Abstract

This invention discloses a data processing method, apparatus, storage medium, and electronic device, relating to the field of financial technology. The method includes: receiving a target data processing request and invoking a target script file, wherein the target data processing request includes at least data to be processed, the data to be processed representing subordinate relationship information between multiple target institutions; performing data verification on the data to be processed through the target script file to obtain a verification result; if the verification result indicates the presence of abnormal data in the data to be processed, filtering out the abnormal data from the data to be processed to obtain target data, wherein the target data is used to generate subordinate relationship links between multiple target institutions. This invention solves the technical problem of low data processing efficiency in existing technologies that use data queries from the database each time to perform data verification in the process of maintaining subordinate relationships between institutions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of financial technology, and more specifically, to a data processing method, apparatus, storage medium, and electronic device. Background Technology

[0002] Currently, in supply chain financing, information about corporate groups and their branches or subsidiaries already exists, representing the hierarchical relationships (or subordinate relationships) between these entities. These relationships allow users to identify branches or subsidiaries within a specific group. As business expands, the sharing and allocation of credit lines between the group and its branches or subsidiaries has emerged. Therefore, after group clients provide their hierarchical relationships offline, it is necessary to maintain the existing hierarchical relationships in the system.

[0003] In related technologies, during the maintenance of the existing total-to-score relationship in the system, data verification is performed by querying the database each time before updating the data in the background to avoid the erroneous scenario of one organization having multiple superiors. However, this method involves many useless interaction processes. For example, when the data to be updated does not fall under the aforementioned erroneous scenario, the data query interaction with the database is useless, increasing the interaction with the database, consuming system resources, and resulting in low data processing efficiency.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This invention provides a data processing method, apparatus, storage medium, and electronic device to at least solve the technical problem of low data processing efficiency in the prior art, which uses a method of querying data from the database each time to perform data verification in the process of maintaining the subordinate relationship between institutions.

[0006] According to one aspect of the present invention, a data processing method is provided, comprising: receiving a target data processing request and invoking a target script file, wherein the target data processing request includes at least data to be processed, the data to be processed representing subordinate relationship information between multiple target institutions, and the target script file includes at least target variables for storing subordinate relationships between multiple target institutions; performing data verification on the data to be processed through the target script file to obtain a verification result, wherein the verification result represents whether there is abnormal data in the data to be processed; if the verification result represents that there is abnormal data in the data to be processed, filtering out the abnormal data from the data to be processed to obtain target data, wherein the target data is used to generate subordinate relationship links between multiple target institutions.

[0007] Furthermore, before receiving the target data processing request and calling the target script file, the method further includes: creating a first utility class in the script file, and defining a first static method and a recursive method in the first utility class; creating a target variable in the first static method to obtain the target script file, wherein the target variable includes a parameter key and a parameter value, the parameter key is used to store the data identifier of the first data in the data to be processed, and the parameter value is used to store the data identifier of the parent data corresponding to the first data.

[0008] Furthermore, the target script file is used to perform data validation on the data to be processed, and the validation results are obtained. This includes: traversing the target data structure recursively and filling the target variables with the data in the target data structure. The target data structure contains historical institution information data and data to be processed. The historical institution information data represents the historical subordinate relationship information of multiple target institutions. During the process of filling the target variables with the data in the target data structure, it is determined whether there is any data in the data to be processed that is duplicated with the historical institution information data. If there is data in the data to be processed that is duplicated with the historical institution information data, the validation result indicates that there is abnormal data in the data to be processed.

[0009] Furthermore, the target data structure is traversed recursively to populate the target variable with data from the target data structure. This includes: traversing the target data structure recursively to obtain the data identifier of each data item and the data identifier of the parent data corresponding to each data item; using the data identifier as the key and the data identifier of the parent data as the value; generating key-value pairs using the key and value, and storing the key-value pairs in the target variable. The key-value pairs are used to represent the parent-child relationship between each data item and its corresponding parent data.

[0010] Furthermore, during the process of filling the target variable with data from the target data structure, it is determined whether there is any duplicate data in the data to be processed that is the same as the historical institution information data. This includes: during the process of filling the target variable with data from the target data structure, it is determined whether there is any duplicate key value in the data to be processed that is the same as the historical institution information data; if there is a duplicate key value in the data to be processed that is the same as the historical institution information data, then it is determined that there is duplicate data in the data to be processed that is the same as the historical institution information data.

[0011] Furthermore, after filtering out abnormal data from the data to be processed and obtaining the target data, the method also includes: determining the subordinate relationships between multiple target institutions based on the target data and generating new subordinate relationships; after generating new subordinate relationships, updating the institution information table associated with the target data structure to maintain the subordinate relationships between multiple target institutions in the institution information table.

[0012] Furthermore, after updating the organization information table associated with the target data structure, the method also includes: sending the data in the updated organization information table to the target interface, and generating a hierarchical relationship link between multiple target organizations on the target interface using the data in the updated organization information table.

[0013] According to another aspect of the present invention, a data processing apparatus is also provided, comprising: a receiving module, configured to receive a target data processing request and invoke a target script file, wherein the target data processing request includes at least data to be processed, the data to be processed representing subordinate relationship information between multiple target organizations, and the target script file includes at least target variables, the target variables being used to store the subordinate relationships between multiple target organizations; a verification module, configured to perform data verification on the data to be processed using the target script file and obtain a verification result, wherein the verification result represents whether there is abnormal data in the data to be processed; and a processing module, configured to filter out abnormal data from the data to be processed and obtain target data if the verification result represents abnormal data in the data to be processed, wherein the target data is used to generate a subordinate relationship link between multiple target organizations.

[0014] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described data processing method at runtime.

[0015] According to another aspect of the present invention, an electronic device is also provided, the electronic device including one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are configured to run the programs, wherein the programs are configured to execute the above-described data processing method during runtime.

[0016] In this embodiment of the invention, a data verification method is adopted in local memory. First, a target data processing request is received, a target script file is invoked, and then the data to be processed is verified using the target script file to obtain a verification result. If the verification result indicates that there is abnormal data in the data to be processed, the abnormal data is filtered out from the data to be processed, and the target data is obtained. The target data processing request includes at least the data to be processed, which represents the subordinate relationship information between multiple target organizations. The target script file includes at least target variables, which are used to store the subordinate relationships between multiple target organizations. The verification result indicates whether there is abnormal data in the data to be processed, and the target data is used to generate a subordinate relationship chain between multiple target organizations.

[0017] In the above process, by calling the target script file to perform data verification on the data to be processed, data verification is realized in local memory. Compared with the traditional data verification by querying the database, this greatly reduces the interaction with the database, reduces the system's input and output operations, saves system resources, effectively improves data processing efficiency, facilitates the maintenance of subordinate relationships between institutions, and can filter out abnormal data from the data to be processed when there is abnormal data, thus ensuring the accuracy of maintaining subordinate relationships between institutions.

[0018] Therefore, the technical solution of this invention achieves the goal of reducing interaction with the database, saving system resources, and improving data processing efficiency. It also solves the technical problem of low data processing efficiency in the prior art, which uses data querying from the database every time to verify data in the process of maintaining the subordinate relationship between organizations. Attached Figure Description

[0019] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0020] Figure 1 This is a flowchart of an optional data processing method according to an embodiment of the present invention;

[0021] Figure 2 This is a schematic diagram of an optional inter-agency relationship according to an embodiment of the present invention;

[0022] Figure 3 This is a schematic diagram of an optional abnormal inter-agency relationship according to an embodiment of the present invention;

[0023] Figure 4 This is a flowchart illustrating an optional hierarchical relationship between maintenance organizations according to an embodiment of the present invention;

[0024] Figure 5 This is a schematic diagram of an optional data processing apparatus according to an embodiment of the present invention;

[0025] Figure 6 This is a schematic diagram of an optional electronic device according to an embodiment of the present invention. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] It should be noted that all relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this invention are information and data authorized by the user or fully authorized by all parties. For example, this system has an interface with the relevant user or organization. Before obtaining relevant information, it needs to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving consent from the aforementioned user or organization.

[0029] Example 1

[0030] According to an embodiment of the present invention, an embodiment of a data processing method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0031] Figure 1This is a flowchart of an optional data processing method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:

[0032] Step S101: Receive target data processing request and call target script file. The target data processing request includes at least data to be processed, which represents the subordinate relationship information between multiple target institutions. The target script file includes at least target variables, which are used to store the subordinate relationship between multiple target institutions.

[0033] In the above process, target data processing requests can be received through application systems, processors, electronic devices, and other devices. Optionally, the target data processing request can be received through a data processing system. For example, a user adds a subordinate relationship between organizations on the front-end interface, generating a target data processing request. The data processing system then receives the target data processing request and calls the target script file for data verification. Optionally, the data to be processed can be the newly added subordinate relationship data between organizations, the target organization can be a branch or subsidiary of a group, and the target variable can be a variable of type HashMap or a variable of type ConcurrentHashMap (a type of hash table).

[0034] Figure 2 This is a schematic diagram illustrating an optional inter-agency relationship according to an embodiment of the present invention, such as... Figure 2 As shown, this includes the head office-branch relationship (i.e., subordinate relationship) between the group and its branches or subsidiaries. The existing subordinate relationship can be: the group includes institution A and institution C, and institution A includes institution B and institution D. The newly added subordinate relationship data between institutions (i.e., the data to be processed) can be the subordinate relationship data between the group and institution E (i.e., the group includes institution E).

[0035] Step S102: Perform data verification on the data to be processed using the target script file to obtain the verification result, wherein the verification result indicates whether there is abnormal data in the data to be processed.

[0036] Specifically, the data to be processed may contain anomalous data. For example, if a new subordinate relationship is added based on the data to be processed, and an organization has multiple superiors, then the data to be processed is erroneous data (i.e., anomalous data). Figure 3 This is a schematic diagram of an optional abnormal inter-agency relationship according to an embodiment of the present invention, such as... Figure 3As shown, the existing subordinate relationships can be: a group includes institutions A and C, and institution A includes institutions B and D; the newly added subordinate relationship data between institutions (i.e., the data to be processed) can be the subordinate relationship data between a group and institution B (i.e., the group includes institution B). In this case, institution B has two superiors, so the newly added subordinate relationship data between the group and institution B is considered to be erroneous data. Therefore, it is necessary to perform data validation on the data to be processed through the target script file to obtain the validation result.

[0037] It should be noted that by calling the target script file to perform data validation on the data to be processed, data validation is achieved in local memory, which greatly reduces the interaction with the database and effectively improves data processing efficiency.

[0038] Step S103: If the verification result indicates that there is abnormal data in the data to be processed, then the abnormal data is filtered out from the data to be processed to obtain the target data. The target data is used to generate the subordinate relationship link between multiple target institutions.

[0039] Specifically, after data validation of the data to be processed through the target script file, if abnormal data exists in the data to be processed, the abnormal data is filtered out to obtain the correct data (i.e., the target data). This allows the generation of hierarchical relationship chains between organizations based on the correct data. For example, if the data to be processed is: Group includes organization E and Group includes organization B, after data validation, abnormal data (i.e., Group includes organization B) is filtered out, resulting in the target data being: Group includes organization E, and the generation of hierarchical relationship chains between organizations is as follows: Figure 2 The hierarchy between the group and organization E is shown.

[0040] It should be noted that, in the above process, abnormal data was filtered out from the data to be processed, ensuring the accuracy of the subordinate relationships between maintenance agencies.

[0041] Based on the scheme defined in steps S101 to S103 above, it can be understood that in this embodiment of the invention, a method of data verification in local memory is adopted. First, a target data processing request is received, a target script file is called, and then the data to be processed is verified through the target script file to obtain a verification result. If the verification result indicates that there is abnormal data in the data to be processed, the abnormal data is filtered out from the data to be processed to obtain the target data. The target data processing request includes at least the data to be processed, which represents the subordinate relationship information between multiple target organizations. The target script file includes at least target variables, which are used to store the subordinate relationships between multiple target organizations. The verification result indicates whether there is abnormal data in the data to be processed, and the target data is used to generate a subordinate relationship link between multiple target organizations.

[0042] It is worth noting that in the above process, by calling the target script file to perform data validation on the data to be processed, data validation is achieved in local memory. Compared with the traditional data validation by querying the database, this greatly reduces the interaction with the database, reduces system input and output operations, saves system resources, effectively improves data processing efficiency, facilitates the maintenance of subordinate relationships between institutions, and can filter out abnormal data from the data to be processed when there is abnormal data, thus ensuring the accuracy of maintaining subordinate relationships between institutions.

[0043] Therefore, the technical solution of this invention achieves the goal of reducing interaction with the database, saving system resources, and improving data processing efficiency. It also solves the technical problem of low data processing efficiency in the prior art, which uses data querying from the database every time to verify data in the process of maintaining the subordinate relationship between organizations.

[0044] In one optional embodiment, before receiving the target data processing request and invoking the target script file, a first utility class is created in the script file, and a first static method and a recursive method are defined in the first utility class. Then, a target variable is created in the first static method to obtain the target script file. The target variable includes a parameter key and a parameter value. The parameter key is used to store the data identifier of the first data in the data to be processed, and the parameter value is used to store the data identifier of the parent data corresponding to the first data.

[0045] Optionally, the first utility class can be a String class, the first data can be the data of the branch, the data identifier of the first data can be the Child Id in the data, the parent data can be the data of the superior organization corresponding to the branch, and the data identifier of the parent data can be the Parent Id in the data.

[0046] Specifically, create a script file and within that script file, create a utility class (the first utility class). Define a static method (the first static method) within this class. This method creates a HashMap variable (the target variable) to store the mapping relationship between an organization and its parent organization. The target variable includes a key and a value. The key stores the Child ID, and the value stores the identifier of the corresponding parent organization, i.e., the Parent ID. Partial code is shown below:

[0047] Map<String,String> parentIndex = new HashMap<String,String> ()

[0048] Specifically, a recursive method is defined in this class. The parameters of this method include two tree-structured data transmitted from the front end (i.e., Child Id and Parent Id) and a HashMap type variable defined in the static method (i.e., the target variable).

[0049] It should be noted that the above process can generate a target script file, which can then be called to perform data validation on the data to be processed, thus enabling data validation to be performed in local memory.

[0050] In one optional embodiment, during the process of verifying the data to be processed using the target script file and obtaining the verification result, the target data structure is traversed recursively, and data from the target data structure is filled into target variables. During this process, it is determined whether there is any data in the data to be processed that is duplicated with historical institution information data. If duplicate data is found, the verification result indicates that abnormal data exists in the data to be processed. The target data structure includes historical institution information data and the data to be processed; the historical institution information data represents the historical affiliation information of multiple target institutions.

[0051] Specifically, the target data structure can be the tree structure mentioned above. By recursively traversing the tree structure, the Child ID and its corresponding Parent ID of each piece of data are stored in a HashMap variable (that is, the data in the target data structure is filled into the target variable).

[0052] Specifically, because the data to be processed may contain abnormal data, such as Figure 3 As shown, historical organizational information data can be: a group including organization A and organization C, organization A including organization B and organization D. The data to be processed can be a group including organization B. In this case, the subordinate relationship of organization B is: organization B's superior is organization A, and organization B's superior is the group. That is, organization B has two superiors, and the data to be processed is erroneous data. Therefore, in the process of storing the Child Id and its corresponding ParentId of each piece of data in a HashMap variable, it is necessary to determine whether there is duplicate data in the data to be processed that is the same as the historical organizational information data. If there is duplicate data in the data to be processed that is the same as the historical organizational information data, then the verification result indicates that there is abnormal data in the data to be processed.

[0053] It should be noted that the above process effectively verifies the scenario where an organization has multiple parents, greatly reducing interaction with the database and effectively improving data processing efficiency.

[0054] In one optional embodiment, during the process of recursively traversing the target data structure and filling the target variable with data from the target data structure, the recursive method traverses the target data structure to obtain the data identifier of each data item and the data identifier of the parent data corresponding to each data item. Then, the data identifier is used as the key, and the parent data identifier is used as the value. A key-value pair is then generated using the key and value, and stored in the target variable. The key-value pair represents the parent-child relationship between each data item and its corresponding parent data item.

[0055] Specifically, the tree structure is traversed recursively to obtain the data identifier (i.e., Child Id) of each data item in the tree structure and the data identifier (i.e., Parent Id) of the corresponding parent data item. The Child Id is used as the key and the Parent Id is used as the value. Key-value pairs are generated using the key and value, and the key-value pairs are stored in variables of type HashMap.

[0056] It should be noted that, in the above process, a one-to-one mapping between institutions and their parent institutions is established based on the uniqueness of the Parent ID. This allows us to determine whether there is any abnormal data in the data to be processed based on the mapping relationship, thus enabling effective verification of scenarios where an institution has multiple parents.

[0057] In one optional embodiment, during the process of filling data from the target data structure into the target variable, determining whether there is duplicate data in the data to be processed that is the same as historical institutional information data includes: during the process of filling data from the target data structure into the target variable, determining whether there is a key value in the data to be processed that is the same as historical institutional information data; if there is a key value in the data to be processed that is the same as historical institutional information data, then it is determined that there is duplicate data in the data to be processed that is the same as historical institutional information data.

[0058] Specifically, since each organization has only one parent organization, meaning there should be no duplicate keys, the process of filling the data in the tree structure into a HashMap variable checks if there are any duplicate keys in the data to be processed that are identical to historical organization information. If so, it is determined that there is duplicate data in the data to be processed, thus identifying erroneous data. Optionally, part of the judgment code is as follows:

[0059] if(!Map<String,String> In the variable .containsKey(childId)){

[0060] Map.putIfAbsent(childId, parentId);

[0061] }else{

[0062] "A branch office may have multiple superiors."

[0063] }

[0064] It should be noted that during the process of filling data from the tree structure into a HashMap variable, by checking whether there are duplicate key values ​​in the data to be processed that are the same as those in the historical organizational information data, it can be determined whether there is erroneous data in the data to be processed. If the key value is duplicated, it means that there is duplicate data, that is, an organization may have multiple superiors. At this point, the data verification is completed, effectively verifying the scenario that an organization has multiple parents, greatly reducing the interaction with the database, effectively improving data processing efficiency, and facilitating the maintenance of the subordinate relationships between organizations.

[0065] In one optional embodiment, after filtering out abnormal data from the data to be processed to obtain the target data, the subordinate relationships between multiple target institutions are determined based on the target data, and new subordinate relationships are generated; after generating new subordinate relationships, the institution information table associated with the target data structure is updated to maintain the subordinate relationships between multiple target institutions in the institution information table.

[0066] Specifically, after filtering out abnormal data from the data to be processed and obtaining the target data (i.e., the correct data), the subordinate relationships between multiple target organizations can be determined based on the correct data, new subordinate relationships can be generated, and after generating the new subordinate relationships, the tree-structured organization information table in the database can be updated to maintain the subordinate relationships between organizations in the organization information table. For example, a recursive method can be used to update the database in batches with the correct data.

[0067] Figure 4 This is a flowchart illustrating an optional hierarchical relationship between maintenance organizations according to an embodiment of the present invention, such as... Figure 4 As shown, the original data (i.e., the data to be processed) is validated. After the original data passes the validation (i.e., there is no abnormal data in the data to be processed or abnormal data has been filtered out), the database is updated. Optionally, if there is abnormal data in the original data, an exception can be thrown and the data can be filtered, and the hierarchical relationship can be maintained again.

[0068] It should be noted that, in the above process, the subordinate relationships between multiple target institutions in the institution information table were maintained, ensuring the accuracy of maintaining the subordinate relationships between institutions.

[0069] In one optional embodiment, after updating the organization information table associated with the target data structure, the data in the updated organization information table is sent to the target interface, and the subordinate relationship links between multiple target organizations are generated on the target interface using the data in the updated organization information table.

[0070] Specifically, the target interface can be a front-end interface. After updating the hierarchical organization information table, the back-end system sends the updated data from the organization information table to the front-end interface. The front-end interface then generates a hierarchy relationship chain between multiple target organizations, for example, generating a chain like... Figure 2 The hierarchy between the group and organization E is shown.

[0071] Therefore, the technical solution of this invention achieves the goal of reducing interaction with the database, saving system resources, and improving data processing efficiency. It also solves the technical problem of low data processing efficiency in the prior art, which uses data querying from the database every time to verify data in the process of maintaining the subordinate relationship between organizations.

[0072] Example 2

[0073] According to an embodiment of the present invention, an embodiment of a data processing apparatus is provided, wherein, Figure 5 This is a schematic diagram of an optional data processing apparatus according to an embodiment of the present invention, such as... Figure 5 As shown, the device includes: a receiving module 501, used to receive a target data processing request and call a target script file, wherein the target data processing request includes at least data to be processed, the data to be processed represents the subordinate relationship information between multiple target organizations, and the target script file includes at least target variables, the target variables being used to store the subordinate relationships between multiple target organizations; a verification module 502, used to perform data verification on the data to be processed through the target script file and obtain a verification result, wherein the verification result represents whether there is abnormal data in the data to be processed; and a processing module 503, used to filter out abnormal data from the data to be processed if the verification result represents abnormal data in the data to be processed, and obtain target data, wherein the target data is used to generate a subordinate relationship link between multiple target organizations.

[0074] It should be noted that the receiving module 501, the verification module 502 and the processing module 503 mentioned above correspond to steps S101 to S103 in the above embodiments. The examples and application scenarios implemented by the three modules and the corresponding steps are the same, but are not limited to the content disclosed in the above embodiment 1.

[0075] Optionally, the data processing device further includes: a first creation module, configured to create a first utility class in the script file before receiving the target data processing request and calling the target script file, and define a first static method and a recursive method in the first utility class; and a second creation module, configured to create target variables in the first static method to obtain the target script file, wherein the target variables include a parameter key and a parameter value, the parameter key is used to store the data identifier of the first data in the data to be processed, and the parameter value is used to store the data identifier of the parent data corresponding to the first data.

[0076] Optionally, the verification module includes: a filling module, used to traverse the target data structure recursively and fill the target variable with data from the target data structure, wherein the target data structure contains historical institution information data and data to be processed, and the historical institution information data represents the historical subordinate relationship information of multiple target institutions; a first judgment module, used to determine whether there is data in the data to be processed that is duplicated with the historical institution information data during the process of filling the target variable with data from the target data structure; and a first determination module, used to determine that if there is data in the data to be processed that is duplicated with the historical institution information data, the verification result indicates that there is abnormal data in the data to be processed.

[0077] Optionally, the filling module includes: an acquisition module, used to traverse the target data structure recursively to obtain the data identifier of each data item in the target data structure and the data identifier of the parent data corresponding to each data item; a second determination module, used to use the data identifier as the key value and the data identifier of the parent data as the value value; and a generation module, used to generate key-value pairs using the key value and the value value, and store the key-value pairs in the target variable, wherein the key-value pairs are used to represent the parent-child relationship between each data item and the parent data corresponding to each data item.

[0078] Optionally, the first judgment module includes: a second judgment module, used to determine whether there is a key value in the data to be processed that is duplicated with historical institutional information data during the process of filling the data in the target data structure into the target variable; and a third determination module, used to determine that there is data in the data to be processed that is duplicated with historical institutional information data if there is a key value in the data to be processed that is duplicated with historical institutional information data.

[0079] Optionally, the data processing device further includes: a fourth determining module, used to determine the subordinate relationships between multiple target institutions and generate new subordinate relationships based on the target data after filtering out abnormal data from the data to be processed and obtaining the target data; and an updating module, used to update the institution information table associated with the target data structure after generating the new subordinate relationships, so as to maintain the subordinate relationships between multiple target institutions in the institution information table.

[0080] Optionally, the data processing device further includes: a sending module, used to send the data in the updated organization information table to the target interface after updating the organization information table associated with the target data structure, and to generate a subordinate relationship link between multiple target organizations on the target interface using the data in the updated organization information table.

[0081] Example 3

[0082] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described data processing method at runtime.

[0083] Example 4

[0084] According to another aspect of the present invention, an electronic device is also provided, wherein, Figure 6 This is a schematic diagram of an optional electronic device according to an embodiment of the present invention, such as... Figure 6 As shown, the electronic device includes one or more processors; a memory for storing one or more programs, which, when executed by the one or more processors, enable the one or more processors to run the programs, wherein the programs are configured to execute the aforementioned data processing method during runtime. When the processor executes the program, it performs the following steps: receiving a target data processing request and calling a target script file, wherein the target data processing request includes at least data to be processed, the data to be processed representing the hierarchical relationship information between multiple target organizations, and the target script file includes at least target variables used to store the hierarchical relationships between multiple target organizations; performing data validation on the data to be processed using the target script file to obtain a validation result, wherein the validation result indicates whether there is abnormal data in the data to be processed; if the validation result indicates that there is abnormal data in the data to be processed, then filtering out the abnormal data from the data to be processed to obtain target data, wherein the target data is used to generate a hierarchical relationship link between multiple target organizations.

[0085] Optionally, when the processor executes the program, it also performs the following steps: before receiving the target data processing request and calling the target script file, it creates a first utility class in the script file and defines a first static method and a recursive method in the first utility class; it creates a target variable in the first static method to obtain the target script file, wherein the target variable includes a parameter key and a parameter value, the parameter key is used to store the data identifier of the first data in the data to be processed, and the parameter value is used to store the data identifier of the parent data corresponding to the first data.

[0086] Optionally, the processor also performs the following steps when executing the program: traversing the target data structure recursively and filling the target variable with data from the target data structure, wherein the target data structure contains historical organization information data and data to be processed, and the historical organization information data represents the historical subordinate relationship information of multiple target organizations; during the process of filling the target variable with data from the target data structure, it is determined whether there is data in the data to be processed that is duplicated with the historical organization information data; if there is data in the data to be processed that is duplicated with the historical organization information data, the verification result indicates that there is abnormal data in the data to be processed.

[0087] Optionally, when the processor executes the program, it also performs the following steps: traversing the target data structure recursively to obtain the data identifier of each piece of data in the target data structure and the data identifier of the parent data corresponding to each piece of data; using the data identifier as the key value and the data identifier of the parent data as the value value; generating key-value pairs using the key value and the value value, and storing the key-value pairs in the target variable, wherein the key-value pairs are used to represent the parent-child relationship between each piece of data and the parent data corresponding to each piece of data.

[0088] Optionally, when the processor executes the program, it also performs the following steps: during the process of filling the target variable with data from the target data structure, it determines whether there is a key value in the data to be processed that is duplicated with the historical organization information data; if there is a key value in the data to be processed that is duplicated with the historical organization information data, it is determined that there is data in the data to be processed that is duplicated with the historical organization information data.

[0089] Optionally, when the processor executes the program, it also performs the following steps: after filtering out abnormal data from the data to be processed and obtaining the target data, it determines the subordinate relationships between multiple target organizations based on the target data and generates new subordinate relationships; after generating new subordinate relationships, it updates the organization information table associated with the target data structure to maintain the subordinate relationships between multiple target organizations in the organization information table.

[0090] Optionally, when the processor executes the program, it also performs the following steps: after updating the organization information table associated with the target data structure, it sends the data in the updated organization information table to the target interface, and generates a subordinate relationship link between multiple target organizations in the target interface using the data in the updated organization information table.

[0091] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.

[0092] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0093] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0094] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0095] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0096] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0097] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0098] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A data processing method, characterized by, The method comprises the following steps: receiving a target data processing request, and calling a target script file, wherein the target data processing request at least comprises to-be-processed data, the to-be-processed data represents affiliation information between a plurality of target institutions, and the target script file at least comprises a target variable, the target variable is used for storing the affiliation information between the plurality of target institutions; performing data verification on the to-be-processed data through the target script file, and obtaining a verification result, wherein the verification result represents whether there is abnormal data in the to-be-processed data; if the verification result represents that there is abnormal data in the to-be-processed data, filtering out the abnormal data from the to-be-processed data, and obtaining target data, wherein the target data is used for generating affiliation links between the plurality of target institutions; wherein, before receiving a target data processing request and calling a target script file, the method further comprises: creating a first utility class in a script file, and defining a first static method and a recursive method in the first utility class; creating the target variable in the first static method, and obtaining the target script file, wherein the target variable comprises a parameter key and a parameter value, the parameter key is used for storing a data identifier of first data in the to-be-processed data, and the parameter value is used for storing a data identifier of parent data corresponding to the first data; wherein, performing data verification on the to-be-processed data through the target script file, and obtaining a verification result, comprises: iterating a target data structure through the recursive method, and obtaining a data identifier of each piece of data in the target data structure and a data identifier of parent data corresponding to each piece of data; wherein the target data structure comprises historical institution information data and the to-be-processed data, and the historical institution information data represents historical affiliation information associated with the plurality of target institutions; taking the data identifier as a key value, and taking the data identifier of the parent data as a value value; generating a key-value pair through the key value and the value value, and storing the key-value pair in the target variable, wherein the key-value pair is used to represent the parent-child relationship between each piece of data and the parent data corresponding to each piece of data; in the process of filling the data in the target data structure into the target variable, determining whether there is a key value that is repeated with the historical institution information data in the to-be-processed data; if there is a key value that is repeated with the historical institution information data in the to-be-processed data, it is determined that there is data that is repeated with the historical institution information data in the to-be-processed data; if there is data that is repeated with the historical institution information data in the to-be-processed data, it is determined that the verification result represents that there is abnormal data in the to-be-processed data.

2. The method of claim 1, wherein, after filtering out the abnormal data from the to-be-processed data and obtaining target data, the method further comprises: determining the affiliation between the plurality of target institutions according to the target data, and generating a new affiliation; After the new subordinate relationship is generated, an organization information table associated with the target data structure is updated to maintain the subordinate relationship among the plurality of target organizations in the organization information table.

3. The method of claim 2, wherein, After the organization information table associated with the target data structure is updated, the method further includes: sending data in the updated organization information table to a target interface and generating a subordinate relationship link among the plurality of target organizations in the target interface through the data in the updated organization information table.

4. A data processing apparatus, characterized by, comprises: a receiving module configured to receive a target data processing request, and invoke a target script file, wherein the target data processing request at least includes to-be-processed data, the to-be-processed data representing subordinate relationship information among a plurality of target organizations, and the target script file at least includes a target variable, the target variable being used to store the subordinate relationship among the plurality of target organizations; a checking module configured to perform data checking on the to-be-processed data through the target script file, and obtain a checking result, wherein the checking result represents whether there is abnormal data in the to-be-processed data; a processing module configured to filter out the abnormal data from the to-be-processed data to obtain target data if the checking result represents that there is the abnormal data in the to-be-processed data, wherein the target data is used to generate a subordinate relationship link among the plurality of target organizations; wherein the apparatus further comprises: a first creating module configured to create a first utility class in a script file and define a first static method and a recursive method in the first utility class before receiving a target data processing request and invoking a target script file; and a second creating module configured to create a target variable in the first static method to obtain the target script file, wherein the target variable includes a parameter key and a parameter value, the parameter key is used to store a data identifier of first data in to-be-processed data, and the parameter value is used to store a data identifier of parent data corresponding to the first data; the checking module comprises: a filling module configured to fill data in a target data structure to a target variable through a recursive method, wherein the target data structure includes historical organization information data and to-be-processed data, and the historical organization information data represents historical subordinate relationship information associated with the plurality of target organizations; a first judging module configured to judge whether there is data duplicated with the historical organization information data in the to-be-processed data in a process of filling the data in the target data structure to the target variable; and a first determining module configured to determine that the checking result represents that there is abnormal data in the to-be-processed data if there is data duplicated with the historical organization information data in the to-be-processed data. The filling module comprises: an obtaining module, configured to traverse the target data structure by a recursive method to obtain data identifiers of each piece of data in the target data structure and data identifiers of parent data corresponding to each piece of data; a second determining module, configured to take the data identifiers as key values and take the data identifiers of the parent data as value values; and a generating module, configured to generate key-value pairs by the key values and the value values and store the key-value pairs in a target variable, wherein the key-value pairs are used to represent parent-child relationships between each piece of data and the parent data corresponding to each piece of data. The first determining module comprises: a second determining module, configured to determine whether there is a key value duplicated with the historical institution information data in the to-be-processed data in a process of filling the data in the target data structure into the target variable; and a third determining module, configured to determine that there is data duplicated with the historical institution information data in the to-be-processed data if there is a key value duplicated with the historical institution information data in the to-be-processed data.

5. A computer readable storage medium, characterized in that, The computer readable storage medium stores a computer program, wherein the computer program is configured to execute the data processing method in any one of claims 1 to 3 when running.

6. An electronic device, comprising: The electronic device comprises one or more processors; The memory is configured to store one or more programs, and the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a program running program, wherein the program is configured to execute the data processing method in any one of claims 1 to 3 when running.

Citation Information

Patent Citations

  • Inter-organization affiliation maintenance method and device, computer equipment and storage medium

    CN112883123A

  • Form verification method and device

    CN113535322A