Data processing method, device and equipment for mechanism withdrawal and medium
By generating assembly templates of query statements and update statements, the organization automatically processes and merges data, solving the problems of cumbersome processes and low efficiency in the existing technology, and achieving real-time processing and resource saving.
Patent Information
- Application Number
- CN202410933400.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, the organization withdrawal and merger process is cumbersome, has low work efficiency, cannot guarantee real-time performance, and requires a lot of manpower and time resources.
By generating assembly templates of query statements and update statements, it can automatically complete the query and update of target business data, respond to organization withdrawal and merger processing instructions in real time, simplify the process, and increase the processing speed.
It achieves real-time and improved work efficiency in organization merger and acquisition processing, saves manpower and time resources, and reduces human writing errors.
Smart Images

Figure CN118779336A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment and medium for processing data for mergers and dissolutions of institutions. Background Art
[0002] With the development of the Internet, institutional mergers and closures often occur. Taking the banking system as an example, most banking business can be handled online. Therefore, banks will optimize and streamline their branch institutions based on the actual branch operations, and cancel and merge institutions with small business volumes in actual operations into other bank branches. In the process of institutional mergers and closures, data migration of canceled institutions has gradually become the primary issue that needs to be urgently addressed in the industry.
[0003] In the prior art, the merger and closure of institutions may occur at any time of any day. Therefore, in order to obtain the merger and closure plan of institutions in a timely manner, it is necessary to rely on manual regular checking of the merger and closure instructions, and then the relevant technical personnel send query instructions and migration operations according to the merger and closure plan indicated in the merger and closure instructions to complete the merger and closure process. Therefore, not only does it cause a waste of human resources and time resources, but it also cannot guarantee the real-time acquisition of the merger and closure instructions. In addition, due to the cumbersome process of the merger and closure process, the work efficiency is also relatively low. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, device, equipment and medium for institution merger and dissolution, which are used to solve the problems of complicated procedures and low work efficiency in the process of institution merger and dissolution in the prior art.
[0005] In a first aspect, the present application provides a data processing method for the merger and reorganization of an institution, the method comprising:
[0006] In response to the institution merger and dissolution processing instruction, read the institution identification of the revoked institution and the institution identification of the merged institution in the institution merger and dissolution processing instruction;
[0007] Generate a query statement based on the institution identification of the revoking institution and a preset query statement assembly template;
[0008] Based on the query statement, query the target business data corresponding to the revoked institution from the database storing the business data of each institution;
[0009] Generate an update statement based on the target business data, the organization identifier of the merged organization, and a preset update statement assembly template;
[0010] Based on the update statement, the value of the organization field in the target business data is updated to the organization identifier of the incorporated organization.
[0011] In a possible embodiment, the method of generating a query statement based on the organization identification of the revocation organization and a preset query statement assembly template includes:
[0012] Obtaining each group of merger and closure parameters from a preset merger and closure table; wherein the merger and closure table is configured based on a database storing business data of each institution, and each group of merger and closure parameters includes a table name and an institution field;
[0013] For any set of merger and revocation parameters, the institution identifier placeholder in the query statement assembly template is replaced with the institution identifier of the revoked institution, the table name placeholder in the query statement assembly template is replaced with the target table name in the merger and revocation parameters, and the institution field placeholder in the query statement assembly template is replaced with the target institution field in the merger and revocation parameters;
[0014] The query statement is generated based on the replaced query statement assembly template.
[0015] In a possible embodiment, based on the query statement, querying the target business data corresponding to the revoked institution from a database storing business data of each institution, the method includes:
[0016] Generate a query restriction statement based on the target value and the query restriction statement template; the target value is used to represent the upper limit of the quantity of target business data queried based on the query statement;
[0017] Based on the query statement and the query restriction statement, the target business data corresponding to the revoked institution is queried from a database storing the business data of each institution.
[0018] In a possible embodiment, each group of merge-removal parameters further includes a table primary key field, and the update statement is generated based on the target business data, the organization identifier of the merged organization, and a preset update statement assembly template, and the method includes:
[0019] Based on the query statement and the unmerge table, determine the table name, organization field, and table primary key field used to generate the update statement;
[0020] Replace the organization identifier placeholder in the update statement assembly template with the organization identifier of the incorporated organization, replace the table name placeholder in the update statement assembly template with the table name, replace the organization field placeholder in the update statement assembly template with the organization field, replace the table primary key field placeholder in the update statement assembly template with the table primary key field, and replace the table primary key field value placeholder in the update statement assembly template with the table primary key field value in the target business data;
[0021] The update statement is generated based on the replaced update statement assembly template.
[0022] In a possible embodiment, the method of updating the value of the organization field in the target business data to the organization identifier of the incorporated organization based on the update statement includes:
[0023] For any update statement, create an update transaction corresponding to the update statement;
[0024] In response to the initiation of the update transaction, locking the target business data corresponding to the update statement in the database;
[0025] Executing the update statement in the update transaction to update the value of the organization field in the locked target business data to the organization identifier of the merged organization;
[0026] Based on the commit strategy of the update transaction, it is determined that the update transaction is committed when a commit condition is met, and the target business data after the update is completed is unlocked from the database.
[0027] In a possible embodiment, the commit strategy based on the update transaction determines that the update transaction is committed when a commit condition is met, and the method includes:
[0028] If the submission strategy is single data submission, then after any target business data is updated, it is determined that the submission condition is met;
[0029] If the submission strategy is batch data submission, the submission condition is determined to be met after the target quantity of target business data corresponding to any query statement is updated, wherein the target quantity corresponding to any query statement is not greater than the quantity of target business data actually queried from the database based on any query statement.
[0030] In a possible embodiment, before generating the query statement, the method further includes:
[0031] Based on the organization identification of the merged organization, obtaining the organization information of the merged organization; the organization information includes organization resource information and / or organization operation information;
[0032] Based on the institution information, a feasibility assessment is performed on the institution information of the incorporated institution using a pre-trained assessment model, and the step of generating a query statement is executed after the assessment passes.
[0033] In a second aspect, the present application provides a data processing device for institution merger and dissolution, the device comprising:
[0034] A reading module, used to respond to the institution merger and revocation processing instruction, and read the institution identification of the revoked institution and the institution identification of the merged institution in the institution merger and revocation processing instruction;
[0035] A first generating module, configured to generate a query statement based on the institution identification of the revocation institution and a preset query statement assembly template;
[0036] A query module, used for querying the target business data corresponding to the revoked institution from a database storing the business data of each institution based on the query statement;
[0037] A second generation module, configured to generate an update statement based on the target business data, the organization identifier of the merged organization, and a preset update statement assembly template;
[0038] An update module is used to update the value of the organization field in the target business data to the organization identifier of the incorporated organization based on the update statement.
[0039] In a possible embodiment, the first generating module is specifically configured to:
[0040] Obtaining each group of merger and closure parameters from a preset merger and closure table; wherein the merger and closure table is configured based on a database storing business data of each institution, and each group of merger and closure parameters includes a table name and an institution field;
[0041] For any set of merger and revocation parameters, the institution identifier placeholder in the query statement assembly template is replaced with the institution identifier of the revoked institution, the table name placeholder in the query statement assembly template is replaced with the target table name in the merger and revocation parameters, and the institution field placeholder in the query statement assembly template is replaced with the target institution field in the merger and revocation parameters;
[0042] The query statement is generated based on the replaced query statement assembly template. .
[0043] In a possible embodiment, the query module is specifically used to:
[0044] Generate a query restriction statement based on the target value and the query restriction statement template; the target value is used to represent the upper limit of the quantity of target business data queried based on the query statement;
[0045] Based on the query statement and the query restriction statement, the target business data corresponding to the revoked institution is queried from a database storing the business data of each institution.
[0046] In a possible embodiment, each group of merging parameters further includes a table primary key field, and the second generating module is specifically configured to:
[0047] Based on the query statement and the unmerge table, determine the table name, organization field, and table primary key field used to generate the update statement;
[0048] Replace the organization identifier placeholder in the update statement assembly template with the organization identifier of the incorporated organization, replace the table name placeholder in the update statement assembly template with the table name, replace the organization field placeholder in the update statement assembly template with the organization field, replace the table primary key field placeholder in the update statement assembly template with the table primary key field, and replace the table primary key field value placeholder in the update statement assembly template with the table primary key field value in the target business data;
[0049] The update statement is generated based on the replaced update statement assembly template.
[0050] In a possible embodiment, the update module is specifically used to:
[0051] For any update statement, create an update transaction corresponding to the update statement;
[0052] In response to the initiation of the update transaction, locking the target business data corresponding to the update statement in the database;
[0053] Executing the update statement in the update transaction to update the value of the organization field in the locked target business data to the organization identifier of the merged organization;
[0054] Based on the commit strategy of the update transaction, it is determined that the update transaction is committed when a commit condition is met, and the target business data after the update is completed is unlocked from the database.
[0055] In a possible embodiment, the update module is specifically used to:
[0056] If the submission strategy is single data submission, then after any target business data is updated, it is determined that the submission condition is met;
[0057] If the submission strategy is batch data submission, the submission condition is determined to be met after the target quantity of target business data corresponding to any query statement is updated, wherein the target quantity corresponding to any query statement is not greater than the quantity of target business data actually queried from the database based on any query statement.
[0058] In a possible embodiment, before the first generating module generates the query statement, it is further used to:
[0059] Based on the organization identification of the merged organization, obtaining the organization information of the merged organization; the organization information includes organization resource information and / or organization operation information;
[0060] Based on the institution information, a feasibility assessment is performed on the institution information of the incorporated institution using a pre-trained assessment model, and the step of generating a query statement is executed after the assessment passes.
[0061] In a third aspect, the present application provides an electronic device, including:
[0062] A memory for storing program instructions;
[0063] The processor is used to call the program instructions stored in the memory, and execute the steps included in any one of the methods in the first aspect according to the obtained program instructions.
[0064] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes any one of the methods described in the first aspect.
[0065] In a fifth aspect, the present application provides a computer program product, comprising: a computer program code, when the computer program code is run on a computer, the computer executes any one of the methods described in the first aspect.
[0066] The beneficial effects of this application are as follows:
[0067] In an embodiment of the present application, in response to an institution merger and dissolution processing instruction, the institution identification of the revoked institution and the institution identification of the merged institution in the institution merger and dissolution processing instruction are read; based on the institution identification of the revoked institution and a preset query statement assembly template, a query statement is generated; based on the query statement, the target business data corresponding to the revoked institution is queried from a database storing the business data of each institution; based on the target business data, the institution identification of the merged institution and a preset update statement assembly template, an update statement is generated; based on the update statement, the value of the institution field in the target business data is updated to the institution identification of the merged institution. In this way, the institution merger and dissolution processing instruction is received and processed in real time, which ensures the real-time nature of the institution merger and dissolution. According to the query statement assembly template and the update statement assembly template, the query and update of the target business data are automatically completed. The process is simple and the processing speed is fast, which improves the overall work efficiency in the institution merger and dissolution processing process. At the same time, compared with the manual writing of query statements and update statements in the prior art, it is also beneficial to save human resources and time resources and reduce errors in human writing.
[0068] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 A schematic diagram of a possible application scenario provided for an embodiment of the present application;
[0070] Figure 2 A flowchart of a data processing method for the merger and reorganization of an organization provided in an embodiment of the present application;
[0071] Figure 3 A flowchart of a method for generating a query statement provided in an embodiment of the present application;
[0072] Figure 4 A flowchart of a method for generating an update statement provided in an embodiment of the present application;
[0073] Figure 5 A structural diagram of a data processing device for mechanism merging provided in an embodiment of the present application;
[0074] Figure 6 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0076] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
[0077] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description. It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0078] In the technical solution of this application, the acquisition, transmission, storage, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0079] Before introducing the data processing method for the merger and dissolution of an organization provided in the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced in detail below.
[0080] With the development of the Internet, institutional mergers and closures often occur. Taking the banking system as an example, most banking business can be handled online. Therefore, banks will optimize and streamline their branch institutions based on the actual branch operations, and cancel and merge institutions with small business volumes in actual operations into other bank branches. In the process of institutional mergers and closures, data migration of canceled institutions has gradually become the primary issue that needs to be urgently addressed in the industry.
[0081] In the prior art, the merger and closure of institutions may occur at any time of any day. Therefore, in order to obtain the merger and closure plan of institutions in a timely manner, it is necessary to rely on manual regular checking of the merger and closure instructions, and then the relevant technical personnel send query instructions and migration operations according to the merger and closure plan indicated in the merger and closure instructions to complete the merger and closure process. Therefore, not only does it cause a waste of human resources and time resources, but it also cannot guarantee the real-time acquisition of the merger and closure instructions. In addition, due to the cumbersome process of the merger and closure process, the work efficiency is also relatively low.
[0082] In view of this, in order to solve the problem of cumbersome procedures and low work efficiency in the process of organization merger and relocation in the prior art, the embodiment of the present application provides a data processing method, device, equipment and medium for organization merger and relocation. Some preferred embodiments of the present application are described below in conjunction with the drawings of the specification.
[0083] The following uses a banking system as an example to introduce the application scenarios of the embodiments of the present application.
[0084] See also Figure 1 , Figure 1 A possible application scenario schematic diagram provided for an embodiment of the present application includes a revocation mechanism 10, a server 20 and an incorporation mechanism 30.
[0085] The abolished institution 10 refers to an institution that will be closed, dissolved or merged into other institutions during the process of institutional restructuring, optimization or streamlining in order to prevent risks and improve its own operating efficiency.
[0086] Incorporation into an institution30 refers to the existing or newly established institution into which the functions, personnel, and resources of the abolished institution will be integrated during the process of institutional merger or dissolution.
[0087] The canceling institution 10 and the merging institution 30 can both be any outlet or any branch of a bank.
[0088] Server 20, in which an institution merger and reorganization management system for processing institution merger and reorganization tasks is deployed, server 20 may be a single server, a server cluster consisting of several servers, or a cloud computing center, which responds to institution merger and reorganization processing instructions, processes institution merger and reorganization tasks, and updates the value of the institution field in the target business data of the revoked institution 10 to the institution identifier of the merged institution 30.
[0089] It should be noted that Figure 1 It is only an example of an application scenario and does not constitute a limitation on the technical solution provided in the embodiments of the present application. A person skilled in the art may appreciate that, with the emergence of new application scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
[0090] The following is an example of institution merger and closure in a banking scenario, and the data processing method for institution merger and closure provided in an exemplary embodiment of the present application is described with reference to the accompanying drawings.
[0091] Please refer to Figure 2 , which is a flow chart of a data processing method for the merger and reorganization of an organization provided in an embodiment of the present application, and the method is applied to Figure 1 The organization withdrawal and merger management system deployed in the server 20 includes the following steps.
[0092] In step 201, in response to an institution merger and dissolution processing instruction, the institution identifier of the revoked institution and the institution identifier of the merged institution in the institution merger and dissolution processing instruction are read.
[0093] In specific implementation, the institution merger and closure management system can respond to institution merger and closure processing instructions initiated by other systems, such as the bank operation management system. When relevant technical personnel enter the institution merger and closure plan in the bank operation management system and the bank operation management system pushes it to the institution merger and closure management system when the merger and closure conditions are met, the institution merger and closure management system is automatically triggered to execute the data processing flow of the institution merger and closure, wherein the institution merger and closure instruction includes the institution identification of the revoked institution and the institution identification of the merged institution. A message subscription module can also be deployed in the institution merger and closure management system. After receiving the institution merger and closure processing instruction initiated by the bank operation management system, the institution merger and closure instruction can be immediately pushed to the relevant departments or responsible persons through the message subscription module to ensure that all relevant parties are aware of the merger and closure progress in a timely manner. The message subscription module can provide a variety of notification methods, including but not limited to email notifications, SMS reminders, instant message push, etc.
[0094] In this way, the organization merger and closure instructions are received and processed in real time, ensuring the real-time nature of the organization merger and closure.
[0095] In step 202, a query statement is generated based on the organization identification of the revoking organization and a preset query statement assembly template.
[0096] During the specific implementation, when technical personnel formulate the organization merger and closure plan, they need to evaluate the abolished organizations and the merged organizations. This process usually takes a long time. That is to say, when the actual organization merger and closure order is issued, the actual organization status of the merged organization may have changed. Therefore, in order to ensure the smooth progress of the merger and closure operation and the consistency and integrity of the data, before generating the query statement, the organization merger and closure management system can also conduct a feasibility assessment on the merged organization based on the merged organization identifier in the organization merger and closure order.
[0097] In specific implementation, the institutional information of the merged institution can be obtained based on the institutional identification of the merged institution; the institutional information includes institutional resource information and / or institutional operating information; among which, institutional resource information such as the financial resources (such as assets, liabilities, cash flow) and system resources (such as database capacity, storage space, network bandwidth, etc.) of the merged institution are sufficient to accommodate the withdrawn data and business load to prevent resource bottlenecks from causing system crashes or performance degradation, and institutional operating information such as information on the merged institution's business scope, customer base, compliance records, operating strategies, etc.
[0098] Then, based on the institution information, a pre-trained evaluation model is used to perform a feasibility evaluation on the institution information of the merged institution, and after the evaluation is passed, the step of generating a query statement is executed. The evaluation model can be pre-trained based on a machine learning model, which is not limited in this application.
[0099] For example, the pre-trained evaluation model can evaluate the input institution information and output the evaluation score. When the evaluation score reaches the preset score, the evaluation result is determined to be passed. When the evaluation score does not reach the preset score, an evaluation risk reminder can also be output at the same time as the evaluation score is output, for example, a reminder that the current merged institution has a merger risk, please confirm, and then, after receiving an instruction to continue the merger, the step of generating a query statement is executed, or, when confirming that no instruction to cancel the merger is received within the preset time, the step of generating a query statement is executed.
[0100] In this way, executing the step of generating query statements after evaluation is helpful to further ensure the smooth progress of the merging and unmerging operations and the consistency and integrity of the data.
[0101] During specific implementation, you can generate a query statement by following the steps below.
[0102] Please refer to Figure 3 , which is a flowchart of a method for generating a query statement provided in an embodiment of the present application, includes the following steps.
[0103] In step 301, each group of merging and unmerging parameters is obtained from a preset merging and unmerging table, wherein the merging and unmerging table is configured based on a database storing business data of each institution, and each group of merging and unmerging parameters includes a table name and an institution field.
[0104] Among them, the table name is a name used to uniquely identify a table. It can be a noun or noun phrase used to describe the content of the table, such as a customer information table, which is used to store basic customer information, such as name, address, contact information, account type, etc., and a transaction table, which is used to record all transaction history, including deposits, withdrawals, transfers, payments, etc. The institution field is one or more fields in a database table that are used to store relevant information about an institution, including but not limited to the institution identification. The institution field can be a single field, such as "Institution ID", or a group of fields that together describe the detailed information of an institution.
[0105] In specific implementation, the business data of each organization is stored in a distributed database. Therefore, the database tables in each database can be obtained, and then the merger table can be created based on the field information of the database table.
[0106] For example, statistics of each database show that there are 7 data tables, namely TABLE_A, TABLE_B, TABLE_C, TABLE_D, TABLE_E, TABLE_F and TABLE_G, among which the institution field corresponding to TABLE_A is a, the institution field corresponding to TABLE_B is b, the institution field corresponding to TABLE_C is c, the institution field corresponding to TABLE_D is d, the institution field corresponding to TABLE_E is e, the institution field corresponding to TABLE_F is f, and the institution field corresponding to TABLE_G is g. For example, the institution field corresponding to TABLE_A is a, which indicates that there is a specific field (column) in the database TABLE_A for storing institution-related data. This field is marked or named "a", for example, "a" is "institution ID". Therefore, the merger table 1 shown in Table 1 can be generated.
[0107] Table 1
[0108] Serial number Table name Institution Field 1 TABLE_A a 2 TABLE_B b 3 TABLE_C c 4 TABLE_D d 5 TABLE_E e 6 TABLE_F f 7 TABLE_G g
[0109] It can be seen from the above-mentioned Table 1 that there are 7 groups of merge and unmerge parameters, and each group of merge and unmerge parameters includes a table name and an institution field.
[0110] In step 302, for any set of merge parameters, the organization identifier placeholder in the query statement assembly template is replaced with the organization identifier of the revoked organization, the table name placeholder in the query statement assembly template is replaced with the target table name in the merge parameters, and the organization field placeholder in the query statement assembly template is replaced with the target organization field in the merge parameters.
[0111] During specific implementation, a query statement assembly template is used to dynamically construct a query statement. For example, taking a query statement assembly template with an SQL syntax structure as an example, the query statement assembly template may include query keywords and parameter placeholders with an SQL syntax structure, wherein query keywords include "SELECT", "FROM", and "WHERE", and parameter placeholders include table name placeholders, organization field placeholders, and organization identifier placeholders, that is, the query statement assembly template is "SELECT*FROM (table name placeholder) WHERE (organization field placeholder) = (organization identifier placeholder)", which is used to represent the selection of data from all columns of the specified table, but only returns those rows whose organization fields are equal to the given organization identifier.
[0112] Assume that the organization identifier of the revoked organization is 0001, and the target merge parameters are (table name: TABLE_A, organization field: a). Then according to the query statement assembly template "SELECT*FROM(table name placeholder)WHERE(organization field placeholder)=(organization identifier placeholder)", it can be seen that the organization identifier "0001" of the revoked organization can be replaced with the organization identifier placeholder in the query statement assembly template, "TABLE_A" can be replaced with the table name placeholder in the query statement assembly template, and "a" can be replaced with the organization field placeholder in the query statement assembly template. The query statement assembly template after replacement is "SELECT*FROM(TABLE_A)WHERE(a)=(0001)", which is used to represent the selection of data in all columns from the data table named TABLE_A, but only returns rows whose value in column a is equal to 0001.
[0113] In step 303, a query statement is generated based on the replaced query statement assembly template.
[0114] In specific implementation, the query statement assembly template after replacing any group of merging parameters can be determined as the query statement corresponding to this group of merging parameters, and each group of merging parameters can generate a corresponding query statement.
[0115] In this way, by utilizing the merger and revocation table, the revoked organization identifier, and the query statement assembly template, a query statement can be quickly generated. Compared with the manual writing of query statements in the prior art, this is conducive to saving human and time resources, reducing human writing errors, and the generation efficiency is high, thereby improving overall work efficiency.
[0116] In step 203, based on the query statement, the target business data corresponding to the revoked institution is queried from the database storing the business data of each institution.
[0117] In specific implementation, after generating a corresponding target query statement using any set of merger and revocation parameters, the target business data corresponding to the revoked institution can be queried from a database storing the business data of each institution based on the target query statement.
[0118] For example, still taking the merger and revocation table 1 shown in Table 1 as an example, the query statement 1 generated based on the first set of merger and revocation parameters can be used to query the target business data corresponding to the revoked institution from the database storing the business data of each institution, wherein the queried target business data are all rows in the data table named TABLE_A where the value in column a is equal to 0001.
[0119] In specific implementation, when querying business data using query statement 1, a query restriction statement can also be set to limit the upper limit of the number of target business data queried by query statement 1, and a query restriction statement can be generated based on the target value and the query restriction statement template; wherein the target value is used to represent the upper limit of the number of target business data queried based on the target query statement; the query restriction statement template can be a LIMIT variable, and then, based on query statement 1 and the query restriction statement, the target business data corresponding to the revoked institution is queried from the database storing the business data of each institution.
[0120] For example, the target value is 10000, the query restriction statement template is the LIMIT variable, and query statement 1 is "SELECT*FROM(TABLE_A)WHERE(a)=(0001)". You can use "SELECT*FROM(TABLE_A)WHERE(a)=(0001), LIMIT=10000" to query the target business data corresponding to the revoked institution from the database storing the business data of each institution. The queried target business data are all rows whose value in column a in the data table named TABLE_A is equal to 0001, and a maximum of 10,000 entries can be queried.
[0121] In specific implementation, the judgment condition for ending the query may be that the number of target business data queried during this query process is less than the target value.
[0122] For example, if there are 25,000 rows in a data table named TABLE_A whose value in column a is 0001, the query is completed after three queries, that is, 10,000 rows are found in the first query, 10,000 rows are found in the second query, and only 5,000 rows can be found in the third query, which is less than 10,000 rows, indicating that there is no need to execute the next query process.
[0123] For another example, when there are 20,000 rows in a data table named TABLE_A with a value of 0001 in column a, three queries are also required to end the query, that is, 10,000 rows are queried in the first time, and 10,000 rows are queried in the second time. Although all target business data has been queried at this time, the system is not sure whether the second query is completed. Therefore, a third query is required, that is, 0 rows are found in the third time to determine that there are less than 10,000 rows, and the query is ended.
[0124] In this way, the maximum number of records per query is set to control memory usage and optimize performance.
[0125] During specific implementation, the query can be performed in sequence according to the order of the query statements. When the query is completed using query statement 1, the query statement 2 corresponding to the second set of merger and revocation parameters and the query restriction statement can be continued to be used to query the target business data corresponding to the revoked agency from the database storing the business data of each agency, until the query statement 7 corresponding to the last set of merger and revocation parameters and the query restriction statement are used to query the target business data corresponding to the revoked agency from the database storing the business data of each agency, and the query is ended. It is also possible to first generate corresponding query statements based on each set of merger and revocation parameters, and then use each query statement in a parallel query manner to query the target business data corresponding to the revoked agency from the database storing the business data of each agency. The specific settings can be made by technical personnel according to needs, and this application does not limit this.
[0126] In step 204, an update statement is generated based on the target business data, the organization identification of the incorporated organization, and a preset update statement assembly template.
[0127] In specific implementation, each target business data may correspond to an update statement, and the update statement may be generated according to the following steps.
[0128] Please refer to Figure 4 , which is a flowchart of a method for generating an update statement provided in an embodiment of the present application, includes the following steps.
[0129] In step 401, based on the query statement and the unmerge table, the table name, organization field, and table primary key field used to generate the update statement are determined.
[0130] In specific implementation, each set of merge parameters in the merge table also includes the table primary key field, which is one or more columns in the database table that are used to uniquely identify each row of records in the table. The table primary key field not only helps to organize and retrieve data, but also plays a fundamental role in maintaining data consistency and integrity.
[0131] Assume that, in the merged table 1 shown in Table 1, the table primary key fields in the first group of merged parameters are (A1, A2), the table primary key fields in the second group of merged parameters are (B1, B2), the table primary key fields in the third group of merged parameters are (C1, C2), the table primary key fields in the fourth group of merged parameters are (D1, D2), the table primary key fields in the fifth group of merged parameters are (E1, E2), the table primary key fields in the sixth group of merged parameters are (F1, F2), and the table primary key fields in the seventh group of merged parameters are (G1, G2), then, the merged table 1 can also be as shown in Table 2.
[0132] Table 2
[0133]
[0134]
[0135] For example, if the query statement is query statement 1, it can be determined that the table name is TABLE_A and the organization field is a. Combined with the merged table, it can be known that the corresponding primary key fields of the table with the table name TABLE_A and the organization field a are A1 and A2.
[0136] In step 402, the organization identifier placeholder in the update statement assembly template is replaced with the organization identifier of the incorporated organization, the table name placeholder in the update statement assembly template is replaced with the table name, the organization field placeholder in the update statement assembly template is replaced with the organization field, the table primary key field placeholder in the update statement assembly template is replaced with the table primary key field, and the table primary key field value placeholder in the update statement assembly template is replaced with the table primary key field value in the target business data.
[0137] During specific implementation, an update statement assembly template is used to dynamically construct an update statement. For example, taking an update statement assembly template of an SQL syntax structure as an example, the update statement assembly template may include update keywords and parameter placeholders of an SQL syntax structure, wherein update keywords include "UPDATE", "SET", and "WHERE", and parameter placeholders include table name placeholders, organization field placeholders, organization identifier placeholders, table primary key field placeholders, and table primary key field value placeholders, that is, the update statement assembly template is "UPDATE (table name placeholder) SET (organization field placeholder) = (organization identifier placeholder)" WHERE (table primary key field placeholder) = (table primary key field value placeholder)", which is used to represent the organization field value of updating a record from a specified data table.
[0138] Assume that the target business data is the target business data queried by query statement 1, and the values of the table primary key fields are A1=XXX and A2=XXXX, and the organization ID of the merged organization is 0002. Therefore, use "0002" to replace the organization ID placeholder in the update statement assembly template, use "TABLE_A" to replace the table name placeholder in the update statement assembly template, use "a" to replace the organization field placeholder in the update statement assembly template, use "A1" to replace the first table primary key field placeholder in the update statement assembly template, and use "A2" to replace the organization ID placeholder in the update statement assembly template. Replace the second table primary key field placeholder in the update statement assembly template, use "XXX" to replace the first table primary key field value placeholder in the update statement assembly template, and use "XXXX" to replace the second table primary key field value placeholder in the update statement assembly template. The replaced update statement assembly template is "UPDATE(TABLE_A)SET(a)=(0002)" WHERE(A1)=(XXX)AND(A2)=(XXXX)", which indicates that the value on column a in the target business data will be updated to 0002.
[0139] In step 403, an update statement is generated based on the replaced update statement assembly template.
[0140] In specific implementation, the replaced update statement assembly template can be determined as the generated update statement. Each target business data can generate a corresponding query statement. For example, the above query statement 1 queries a total of 25,000 target business data. Each query can automatically generate an update statement for each target business data, generating a total of 25,000 update statements. Of course, when all 25,000 items are queried, each update statement can be generated in sequence, and this application does not limit this.
[0141] In this way, based on the target business data, the organization identification of the incorporated organization and the preset update statement assembly template, the update statement can be quickly composed and generated. Compared with the manual writing of update statements in the existing technology, it is beneficial to save human resources and time resources, reduce human writing errors, and the generation efficiency is high, which improves the overall work efficiency.
[0142] In step 205, based on the update statement, the value of the organization field in the target business data is updated to the organization identifier of the merged organization.
[0143] For any update statement, an update transaction corresponding to any update statement can be created before the update. Then, in response to the start of the update transaction, the target business data corresponding to the update statement in the database is locked; the update statement is executed in the update transaction to update the value of the institution field in the locked target business data to the institution identifier of the incorporated institution; based on the submission strategy of the update transaction, it is determined that the update transaction is submitted when the submission conditions are met, and the updated target business data is unlocked from the database.
[0144] In specific implementation, the creation of an update transaction ensures that a series of operations are executed as a whole. Once a transaction begins, update statements can be executed in the context of the transaction. This means that all update operations will be performed within the scope of the transaction. Locking ensures that no other transaction can modify the same data row before the transaction is completed. Update statements executed in a transaction will not immediately have a lasting effect on the database, but will be temporarily saved in the transaction buffer until the transaction is committed, at which point all changes performed in the transaction will be permanently saved to the database.
[0145] In specific implementation, the submission strategy of the update transaction can be single data submission or batch data submission. If it is single data submission, the submission condition is determined to be met after the update of any target business data is completed. If it is batch data submission, the submission condition is determined to be met after the target number of target business data corresponding to any query statement is updated, where the target number corresponding to any query statement is not greater than the number of target business data actually queried from the database based on any query statement.
[0146] Assume that query statement 1 retrieves 20,000 pieces of target business data, and 20,000 corresponding update statements can be generated. Take the example of using update statement 1 to execute the update task of target business data 1 in the created update transaction 1. If the submission strategy is single data submission, update transaction 1 can be submitted after the target business data 1 is updated.
[0147] In this way, the transaction submission strategy of single data submission can reduce the pressure on the database. This is because when a transaction involves updating multiple rows of data, the database may need to lock these rows until the transaction ends to ensure data consistency. Single data submission means only one row of data is locked at a time, which reduces the time other transactions wait for locks, thereby improving concurrency performance. At the same time, transaction processing consumes database resources, including CPU, memory, and disk I / O. Single data submission involves a small amount of data, so the required resources are relatively small, reducing the overall resource consumption of the system.
[0148] If the submission strategy is batch data submission, the target number can be any value not greater than 20,000. For example, if the target number is 500, the target business data 1 can be updated in update transaction 1. When the update is completed, it is determined whether the submission condition is met. If not, it is waited and not submitted. The target business data 2 can be updated in update transaction 2. When the update is completed, it is determined whether the submission condition is met. If not, it is waited and not submitted. And so on, the target business data 500 can be updated in update transaction 500. When the update is completed, it is determined whether the submission condition is met. If it is met, the above 500 update transactions execute the steps of submitting the transaction, and then continue to execute the update of target business data 501 in update transaction 501, until the next 500 target business data are updated, and then the update transaction is submitted.
[0149] In this way, multiple commit transactions can be packaged into one request, reducing the number of network round trips, saving network bandwidth and time.
[0150] In the embodiment of the present application, in response to the organization merger and dissolution processing instruction, the organization identification of the revoked organization and the organization identification of the merged organization in the organization merger and dissolution processing instruction are read; based on the organization identification of the revoked organization and the preset query statement assembly template, a query statement is generated; based on the query statement, the target business data corresponding to the revoked organization is queried from the database storing the business data of each organization; based on the target business data, the organization identification of the merged organization and the preset update statement assembly template, an update statement is generated; based on the update statement, the value of the organization field in the target business data is updated to the organization identification of the merged organization. In this way, the organization merger and dissolution processing instruction is received and processed in real time, which ensures the real-time nature of the organization merger and dissolution, and the query and update of the target business data are automatically completed according to the query statement assembly template and the update statement assembly template. The process is simple and the processing speed is fast, which improves the overall work efficiency in the organization merger and dissolution processing process. At the same time, compared with the manual writing of query statements and update statements in the prior art, it is also conducive to saving human resources and time resources and reducing errors in human writing.
[0151] Based on the same inventive concept, the present application embodiment provides a data processing device for the withdrawal and merger of mechanisms, please refer to Figure 5 , the device comprises:
[0152] A reading module 501 is used to respond to the institution merger and revocation processing instruction and read the institution identification of the revoked institution and the institution identification of the merged institution in the institution merger and revocation processing instruction;
[0153] A first generating module 502, configured to generate a query statement based on the organization identification of the revocation organization and a preset query statement assembly template;
[0154] A query module 503, for querying the target business data corresponding to the revoked institution from a database storing the business data of each institution based on the query statement;
[0155] A second generating module 504, configured to generate an update statement based on the target business data, the organization identifier of the merged organization, and a preset update statement assembly template;
[0156] The updating module 505 is used to update the value of the organization field in the target business data to the organization identifier of the incorporated organization based on the update statement.
[0157] In a possible embodiment, the first generating module 502 is specifically configured to:
[0158] Obtaining each group of merger and closure parameters from a preset merger and closure table; wherein the merger and closure table is configured based on a database storing business data of each institution, and each group of merger and closure parameters includes a table name and an institution field;
[0159] For any set of merger and revocation parameters, the institution identifier placeholder in the query statement assembly template is replaced with the institution identifier of the revoked institution, the table name placeholder in the query statement assembly template is replaced with the target table name in the merger and revocation parameters, and the institution field placeholder in the query statement assembly template is replaced with the target institution field in the merger and revocation parameters;
[0160] The query statement is generated based on the replaced query statement assembly template. .
[0161] In a possible embodiment, the query module 503 is specifically used to:
[0162] Generate a query restriction statement based on the target value and the query restriction statement template; the target value is used to represent the upper limit of the quantity of target business data queried based on the query statement;
[0163] Based on the query statement and the query restriction statement, the target business data corresponding to the revoked institution is queried from a database storing the business data of each institution.
[0164] In a possible embodiment, each group of merging parameters further includes a table primary key field, and the second generating module 504 is specifically configured to:
[0165] Based on the query statement and the unmerge table, determine the table name, organization field, and table primary key field used to generate the update statement;
[0166] Replace the organization identifier placeholder in the update statement assembly template with the organization identifier of the incorporated organization, replace the table name placeholder in the update statement assembly template with the table name, replace the organization field placeholder in the update statement assembly template with the organization field, replace the table primary key field placeholder in the update statement assembly template with the table primary key field, and replace the table primary key field value placeholder in the update statement assembly template with the table primary key field value in the target business data;
[0167] The update statement is generated based on the replaced update statement assembly template.
[0168] In a possible embodiment, the updating module 505 is specifically configured to:
[0169] For any update statement, create an update transaction corresponding to the update statement;
[0170] In response to the initiation of the update transaction, locking the target business data corresponding to the update statement in the database;
[0171] Executing the update statement in the update transaction to update the value of the organization field in the locked target business data to the organization identifier of the merged organization;
[0172] Based on the commit strategy of the update transaction, it is determined that the update transaction is committed when a commit condition is met, and the target business data after the update is completed is unlocked from the database.
[0173] In a possible embodiment, the updating module 505 is specifically configured to:
[0174] If the submission strategy is single data submission, then after any target business data is updated, it is determined that the submission condition is met;
[0175] If the submission strategy is batch data submission, the submission condition is determined to be met after the target quantity of target business data corresponding to any query statement is updated, wherein the target quantity corresponding to any query statement is not greater than the quantity of target business data actually queried from the database based on any query statement.
[0176] In a possible embodiment, before generating the query statement, the first generating module 502 is further configured to:
[0177] Based on the organization identification of the merged organization, obtaining the organization information of the merged organization; the organization information includes organization resource information and / or organization operation information;
[0178] Based on the institution information, a feasibility assessment is performed on the institution information of the incorporated institution using a pre-trained assessment model, and the step of generating a query statement is executed after the assessment passes.
[0179] Based on the same inventive concept, the embodiment of the present application provides an electronic device, which can realize the function of the data processing device discussed above. Please refer to Figure 6 , the device includes a memory 601 , one or more processors 602 , and a bus 603 .
[0180] The memory 601 is used to store computer programs executed by the processor 601. The memory 601 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.
[0181] The memory 601 may be a volatile memory, such as a random-access memory (RAM); the memory 601 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 601 may be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 601 may be a combination of the above memories.
[0182] The processor 602 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 602 is used to implement the data processing method for the mechanism merging in the above embodiment when calling the computer program stored in the memory 602 .
[0183] The specific connection medium between the memory 601 and the processor 602 is not limited in the embodiment of the present application. Figure 6 In the embodiment, the memory 601 and the processor 602 are connected via a bus 603. The bus 603 is connected to the processor 602 via a bus 603. Figure 6 The connections between other components are shown in bold lines, which are only for illustration and are not intended to be limiting. Bus 603 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0184] Based on the same inventive concept, the embodiment of the present application provides a computer-readable storage medium, and the computer program product includes: computer program code, when the computer program code is run on a computer, the computer executes any of the data processing methods for withdrawing and merging mechanisms discussed above. Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to that of the data processing method for withdrawing and merging mechanisms, the implementation of the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.
[0185] Based on the same inventive concept, the embodiment of the present application further provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes any of the data processing methods for the withdrawal and merger of institutions discussed above. Since the principle of solving the problem by the above computer program product is similar to that of the data processing method for the withdrawal and merger of institutions, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be repeated.
[0186] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0187] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0188] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0189] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of user-operated steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0190] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A data processing method for the merger and reorganization of an institution, characterized in that: The method comprises: In response to the institution merger and dissolution processing instruction, read the institution identification of the revoked institution and the institution identification of the merged institution in the institution merger and dissolution processing instruction; Generate a query statement based on the institution identification of the revoking institution and a preset query statement assembly template; Based on the query statement, query the target business data corresponding to the revoked institution from the database storing the business data of each institution; Generate an update statement based on the target business data, the organization identifier of the merged organization, and a preset update statement assembly template; Based on the update statement, the value of the organization field in the target business data is updated to the organization identifier of the incorporated organization.
2. The method according to claim 1, characterized in that The method of generating a query statement based on the organization identification of the revocation organization and a preset query statement assembly template comprises: Obtaining each group of merger and closure parameters from a preset merger and closure table; wherein the merger and closure table is configured based on a database storing business data of each institution, and each group of merger and closure parameters includes a table name and an institution field; For any set of merger and revocation parameters, the institution identifier placeholder in the query statement assembly template is replaced with the institution identifier of the revoked institution, the table name placeholder in the query statement assembly template is replaced with the target table name in the merger and revocation parameters, and the institution field placeholder in the query statement assembly template is replaced with the target institution field in the merger and revocation parameters; The query statement is generated based on the replaced query statement assembly template.
3. The method according to claim 1, characterized in that Based on the query statement, querying the target business data corresponding to the revoked institution from a database storing the business data of each institution, the method comprises: Generate a query restriction statement based on the target value and the query restriction statement template; the target value is used to represent the upper limit of the quantity of target business data queried based on the query statement; Based on the query statement and the query restriction statement, the target business data corresponding to the revoked institution is queried from a database storing the business data of each institution.
4. The method according to any one of claims 1 to 3, characterized in that: Each group of merge-removal parameters further includes a table primary key field, and the update statement is generated based on the target business data, the organization identifier of the merged organization, and a preset update statement assembly template. The method includes: Based on the query statement and the unmerge table, determine the table name, organization field, and table primary key field used to generate the update statement; Replace the organization identifier placeholder in the update statement assembly template with the organization identifier of the incorporated organization, replace the table name placeholder in the update statement assembly template with the table name, replace the organization field placeholder in the update statement assembly template with the organization field, replace the table primary key field placeholder in the update statement assembly template with the table primary key field, and replace the table primary key field value placeholder in the update statement assembly template with the table primary key field value in the target business data; The update statement is generated based on the replaced update statement assembly template.
5. The method according to claim 1, characterized in that The method of updating the value of the organization field in the target business data to the organization identifier of the incorporated organization based on the update statement comprises: For any update statement, create an update transaction corresponding to the update statement; In response to the initiation of the update transaction, locking the target business data corresponding to the update statement in the database; Executing the update statement in the update transaction to update the value of the organization field in the locked target business data to the organization identifier of the merged organization; Based on the commit strategy of the update transaction, it is determined that the update transaction is committed when a commit condition is met, and the target business data after the update is completed is unlocked from the database.
6. The method according to claim 5, characterized in that The commit strategy based on the update transaction determines that the update transaction is committed when a commit condition is met, and the method includes: If the submission strategy is single data submission, then after any target business data is updated, it is determined that the submission condition is met; If the submission strategy is batch data submission, the submission condition is determined to be met after the target quantity of target business data corresponding to any query statement is updated, wherein the target quantity corresponding to any query statement is not greater than the quantity of target business data actually queried from the database based on any query statement.
7. The method according to claim 1, characterized in that Before generating the query statement, the method further includes: Based on the organization identification of the merged organization, obtaining the organization information of the merged organization; the organization information includes organization resource information and / or organization operation information; Based on the institution information, a feasibility assessment is performed on the institution information of the incorporated institution using a pre-trained assessment model, and the step of generating a query statement is executed after the assessment passes.
8. A data processing device for the merger and closure of an institution, characterized in that: The device comprises: A reading module, used to respond to the institution merger and revocation processing instruction, and read the institution identification of the revoked institution and the institution identification of the merged institution in the institution merger and revocation processing instruction; A first generating module, configured to generate a query statement based on the institution identification of the revocation institution and a preset query statement assembly template; A query module, used for querying the target business data corresponding to the revoked institution from a database storing the business data of each institution based on the query statement; A second generation module, configured to generate an update statement based on the target business data, the organization identifier of the merged organization, and a preset update statement assembly template; An update module is used to update the value of the organization field in the target business data to the organization identifier of the incorporated organization based on the update statement.
9. The device according to claim 8, characterized in that The first generating module is specifically used for: Obtaining each group of merger and closure parameters from a preset merger and closure table; wherein the merger and closure table is configured based on a database storing business data of each institution, and each group of merger and closure parameters includes a table name and an institution field; For any set of merger and revocation parameters, the institution identifier placeholder in the query statement assembly template is replaced with the institution identifier of the revoked institution, the table name placeholder in the query statement assembly template is replaced with the target table name in the merger and revocation parameters, and the institution field placeholder in the query statement assembly template is replaced with the target institution field in the merger and revocation parameters; The query statement is generated based on the replaced query statement assembly template.
10. The device according to claim 8, characterized in that The query module is specifically used for: Generate a query restriction statement based on the target value and the query restriction statement template; the target value is used to represent the upper limit of the quantity of target business data queried based on the query statement; Based on the query statement and the query restriction statement, the target business data corresponding to the revoked institution is queried from a database storing the business data of each institution.
11. The device according to any one of claims 8 to 10, characterized in that: Each group of merge parameters further includes a table primary key field, and the second generating module is specifically used for: Based on the query statement and the unmerge table, determine the table name, organization field, and table primary key field used to generate the update statement; Replace the organization identifier placeholder in the update statement assembly template with the organization identifier of the incorporated organization, replace the table name placeholder in the update statement assembly template with the table name, replace the organization field placeholder in the update statement assembly template with the organization field, replace the table primary key field placeholder in the update statement assembly template with the table primary key field, and replace the table primary key field value placeholder in the update statement assembly template with the table primary key field value in the target business data; The update statement is generated based on the replaced update statement assembly template.
12. The device according to claim 8, characterized in that The update module is specifically used for: For any update statement, create an update transaction corresponding to the update statement; In response to the initiation of the update transaction, locking the target business data corresponding to the update statement in the database; Executing the update statement in the update transaction to update the value of the organization field in the locked target business data to the organization identifier of the merged organization; Based on the commit strategy of the update transaction, it is determined that the update transaction is committed when a commit condition is met, and the target business data after the update is completed is unlocked from the database.
13. The device according to claim 12, characterized in that The update module is specifically used for: If the submission strategy is single data submission, then after any target business data is updated, it is determined that the submission condition is met; If the submission strategy is batch data submission, the submission condition is determined to be met after the target quantity of target business data corresponding to any query statement is updated, wherein the target quantity corresponding to any query statement is not greater than the quantity of target business data actually queried from the database based on any query statement.
14. The device according to claim 8, characterized in that Before the first generating module generates the query statement, it is also used to: Based on the organization identification of the merged organization, obtaining the organization information of the merged organization; the organization information includes organization resource information and / or organization operation information; Based on the institution information, a feasibility assessment is performed on the institution information of the incorporated institution using a pre-trained assessment model, and the step of generating a query statement is executed after the assessment passes.
15. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps included in any one of claims 1-7 according to the obtained program instructions.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 7.
17. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is enabled to execute the method according to any one of claims 1 to 7.
