Business processing method, device and equipment based on tail difference information
By using the marked tail difference and preliminary settlement result information in the TA system to determine the target settlement result information, the problems of insufficient amount and low settlement efficiency caused by truncation accuracy in the TA system are solved, and more efficient settlement processing is achieved.
Patent Information
- Application Number
- CN202111592872.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2041-12-23
AI Technical Summary
In the prior art, when the TA system settles a large amount of data, the actual amount allocated to each customer is less than the standard amount due to truncation accuracy, and the settlement efficiency is low.
By obtaining the total business share and data information of the objects to be allocated in the sub-databases and sub-tables to be liquidated, and using the marked tail difference and preliminary liquidation result information, the target liquidation result information is determined, and multiple processes are processed in parallel to improve the accuracy of the allocated amount and the liquidation speed.
It improves the accuracy of the allocation amount for users to be allocated, greatly improves the settlement speed, and solves the problem of low settlement efficiency of the TA system.
Smart Images

Figure CN114255114B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data processing technology, and in particular to a business processing method, device and equipment based on tail difference information. Background Art
[0002] At present, with the vigorous development of asset management business, the business scenarios of product sales are becoming more and more diverse, and the amount of data is increasing. Therefore, a TA (Transfer Agent) system is needed to clear a large amount of data.
[0003] In the prior art, when a TA system clears a large amount of data, it usually distributes the total amount in full to each customer holding a product position based on the percentage of each customer's position.
[0004] However, in the existing technology, when the total amount is fully allocated to each customer holding a product position, part of the amount will be truncated due to truncation accuracy and then distributed to the customer, resulting in the actual amount allocated to each customer being less than the standard amount, and a lot of time is required in the data clearing process, which in turn leads to low clearing efficiency of the TA system. Summary of the Invention
[0005] The present application provides a business processing method, device and equipment based on tail difference information to solve the technical problem of low settlement efficiency of the TA system.
[0006] In a first aspect, the present application provides a business processing method based on tail difference information, comprising:
[0007] Acquire multiple sub-libraries and sub-tables of the business to be cleared sent by the processing device; wherein each of the sub-libraries and sub-tables to be cleared includes a total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated, and each piece of data information corresponds to a marked tail difference;
[0008] In response to a first trigger operation by the user, determining preliminary liquidation result information corresponding to each to-be-allocated object in each to-be-allocated sub-library and sub-table based on the total business share in the plurality of to-be-allocated sub-libraries and sub-tables and the data information corresponding to each to-be-allocated object;
[0009] Determine the target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-library and sub-table based on the mark tail difference corresponding to each piece of data information and the preliminary liquidation result information;
[0010] The target liquidation result information is sent to the processing device for display.
[0011] Furthermore, the data information corresponding to each object to be allocated includes the business sub-share of each object to be allocated in the total business share;
[0012] In response to the user's first trigger operation, preliminary liquidation result information corresponding to each to-be-allocated object in each to-be-allocated sub-database and sub-table is determined based on the total business share in the multiple to-be-allocated sub-databases and sub-tables and the data information corresponding to each to-be-allocated object, including:
[0013] In response to a first trigger operation by the user, a preset truncation accuracy is read from the memory;
[0014] According to each of the multiple processes, the business sub-share of each to-be-allocated object in the total business share in each sub-database and sub-table is processed in parallel to obtain the aggregated business sub-shares of the business sub-shares of the multiple to-be-allocated objects;
[0015] According to each of the multiple processes, the total business share in each sub-library and sub-table, the business sub-share of each object to be allocated in the total business share, the aggregated business sub-share of the business sub-shares of multiple objects to be allocated, and the truncation accuracy are processed in parallel to obtain preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated.
[0016] Furthermore, according to the mark tail difference corresponding to each piece of data information and the preliminary liquidation result information, target liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated is determined, including:
[0017] In response to a second trigger operation by the user, determining and displaying the mark tail difference corresponding to each piece of data information and the sum of the preliminary liquidation result information;
[0018] In response to the user's third trigger operation, the sum is determined to be target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-library and sub-table.
[0019] Furthermore, the method further comprises:
[0020] Sending an acquisition request to the processing device, where the acquisition request is used to instruct acquisition of the sub-library and sub-table of the business;
[0021] Receive multiple sub-libraries and sub-tables of the business sent by the processing device; wherein each of the sub-libraries and sub-tables includes a total business share, multiple objects to be allocated, and data information corresponding to each of the objects to be allocated;
[0022] According to each of the multiple processes, in parallel, determining the tail difference of each sub-library and sub-table based on the total business share in each sub-library and sub-table, the multiple objects to be allocated, and the data information corresponding to each object to be allocated;
[0023] According to each process in the multiple processes, in parallel, according to the preset truncation accuracy of each sub-library and sub-table, determine the mark tail difference corresponding to the data information in each sub-library and sub-table;
[0024] According to each process in the multiple processes, the tag tail difference is allocated to the data information corresponding to each of the to-be-allocated objects in each of the sub-library and sub-tables in parallel according to the sub-table tail difference of each of the sub-library and sub-tables.
[0025] Furthermore, according to each of the multiple processes, the sub-table tail difference of each sub-library and sub-table is determined in parallel based on the total business share in each sub-library and sub-table, the multiple objects to be allocated, and the data information corresponding to each object to be allocated, including:
[0026] According to each of the multiple processes, the truncation tail difference of each sub-library and sub-table is determined in parallel based on the total business share in each sub-library and sub-table, the multiple objects to be allocated, the data information corresponding to each object to be allocated, and the preset truncation accuracy;
[0027] Determine the aggregated tail difference of the plurality of sub-libraries and sub-tables according to the truncated tail difference of each sub-library and sub-table;
[0028] The sub-table tail difference of each sub-library and sub-table is determined according to the summary tail difference of the multiple sub-libraries and sub-tables and the number of the objects to be allocated.
[0029] Furthermore, according to the sub-table tail difference of each sub-library and sub-table, the tag tail difference is assigned to the data information corresponding to each of the objects to be assigned in each sub-library and sub-table, including:
[0030] Determine the target number of marked tail differences for each sub-library and sub-table based on the tail differences of each sub-library and sub-table and the preset truncation accuracy;
[0031] For each sub-library or sub-table, sort the data information corresponding to the objects to be assigned in the sub-library or sub-table according to a preset sorting method, and store the sorted data information corresponding to the objects to be assigned into a preset queue;
[0032] For each sub-library or sub-table, the data information in the preset queue corresponding to the sub-library or sub-table is read, and the mark tail difference is respectively allocated to the target amount of data information read.
[0033] In a second aspect, the present application provides a service processing device based on tail difference information, comprising:
[0034] an acquisition unit, configured to acquire a plurality of sub-libraries and sub-tables to be cleared of the business sent by the processing device; wherein each of the sub-libraries and sub-tables to be cleared includes a total business share, a plurality of objects to be allocated, and data information corresponding to each object to be allocated, and each piece of data information corresponds to a marked tail difference;
[0035] a first determining unit configured to, in response to a first trigger operation by a user, determine preliminary liquidation result information corresponding to each to-be-allocated object in each to-be-allocated sub-library and sub-table based on the total business share in the plurality of to-be-allocated sub-libraries and sub-tables and the data information corresponding to each to-be-allocated object;
[0036] A second determining unit is configured to determine target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-library and sub-table based on the mark tail difference corresponding to each piece of data information and the preliminary liquidation result information;
[0037] The display unit is used to send the target liquidation result information to the processing device for display.
[0038] Furthermore, the data information corresponding to each object to be allocated includes the business sub-share of each object to be allocated in the total business share;
[0039] The first determining unit includes:
[0040] A reading module, configured to read a preset truncation accuracy from a memory in response to a first trigger operation by a user;
[0041] A first processing module is configured to process, in parallel, the business sub-share of each to-be-allocated object in the total business share in each sub-library and sub-table according to each of the multiple processes, to obtain a summary of the business sub-shares of the multiple to-be-allocated objects;
[0042] The second processing module is used to process the total business share in each sub-library and sub-table, the business sub-share of each object to be allocated in the total business share, the aggregated business sub-share of the business sub-shares of multiple objects to be allocated, and the truncation accuracy in parallel according to each process in the multiple processes, and obtain preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated.
[0043] Furthermore, the second determining unit includes:
[0044] A first determining module is configured to determine and display the sum of the marked tail difference corresponding to each piece of data information and the preliminary liquidation result information in response to a second triggering operation of the user;
[0045] The second determining module is configured to determine, in response to a third triggering operation of the user, that the sum is target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-library and sub-table.
[0046] Furthermore, the device further comprises:
[0047] A sending unit, configured to send an acquisition request to the processing device, wherein the acquisition request is used to instruct acquisition of a sub-library and sub-table of a business;
[0048] a receiving unit, configured to receive a plurality of sub-libraries and sub-tables of the business sent by the processing device; wherein each of the sub-libraries and sub-tables includes a total share of the business, a plurality of objects to be allocated, and data information corresponding to each of the objects to be allocated;
[0049] a third determining unit configured to determine, based on each of the multiple processes, in parallel, the sub-table tail difference of each sub-database and sub-table based on the total business share in each sub-database and sub-table, the multiple objects to be allocated, and the data information corresponding to each object to be allocated;
[0050] A fourth determining unit is configured to determine, in parallel based on each of the multiple processes and according to a preset truncation accuracy of each sub-library and sub-table, a mark tail difference corresponding to the data information in each sub-library and sub-table;
[0051] The allocation unit is used to allocate the tag tail difference to the data information corresponding to each object to be allocated in each sub-library and sub-table in parallel according to the sub-table tail difference of each sub-library and sub-table according to each process in the multiple processes.
[0052] Furthermore, the third determining unit includes:
[0053] A third determination module is configured to determine, in parallel, based on each of the multiple processes, the total business share in each of the sub-libraries and sub-tables, the multiple objects to be allocated, the data information corresponding to each of the objects to be allocated, and a preset truncation accuracy, the truncation tail difference of each of the sub-libraries and sub-tables;
[0054] A fourth determining module is configured to determine the aggregated tail difference of the plurality of sub-libraries and sub-tables based on the truncated tail difference of each sub-library and sub-table;
[0055] The fifth determining module is configured to determine the sub-table tail difference of each sub-library and sub-table according to the aggregate tail difference of the multiple sub-libraries and sub-tables and the number of the objects to be allocated.
[0056] Furthermore, the allocation unit includes:
[0057] A sixth determination module is used to determine a target number of marked tail differences for each sub-library and sub-table based on the tail differences of each sub-library and sub-table and a preset truncation accuracy;
[0058] A sorting module is used to sort the data information corresponding to the objects to be allocated in each sub-library and sub-table according to a preset sorting method, and store the sorted data information corresponding to the objects to be allocated in a preset queue;
[0059] The allocation module is used to read the data information in the preset queue corresponding to each sub-library and sub-table, and allocate the mark tail difference to the target amount of data information read.
[0060] In a third aspect, the present application provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0061] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0062] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which implements the method described in the first aspect when executed by a processor.
[0063] The present application provides a business processing method, device and equipment based on tail difference information, which obtains multiple sub-libraries and sub-tables to be cleared of business sent by a processing device; wherein each sub-library and sub-table to be cleared includes a total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated, and each data information corresponds to a marked tail difference; in response to a first trigger operation of a user, according to the total business share in the multiple sub-libraries and sub-tables to be cleared, and the data information corresponding to each object to be allocated, the preliminary clearing result information corresponding to each object to be allocated in each sub-library and sub-table to be cleared is determined; according to the marked tail difference and preliminary clearing result information corresponding to each data information, the target clearing result information corresponding to each object to be allocated in each sub-library and sub-table to be cleared is determined; and each target clearing result information is sent to the processing device for display. In this solution, the multiple sub-libraries and sub-tables to be liquidated include the total business share, the objects to be allocated, and the data information, wherein the data information has been pre-assigned with the corresponding mark difference. In response to the user's first trigger operation, the total business share in the multiple sub-libraries and sub-tables to be liquidated and the data information corresponding to each object to be allocated can be processed to obtain the preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated, and then the preliminary liquidation result information corresponding to each object to be allocated and the mark difference corresponding to the data information of each object to be allocated are added to obtain the target liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated. Therefore, by obtaining the target liquidation result information corresponding to each object to be allocated from the pre-assigned mark difference, the accuracy of the allocation amount for the user to be allocated is improved. According to the first trigger operation received from the user, the sub-libraries and sub-tables to be liquidated can be automatically liquidated, which greatly improves the liquidation speed and solves the technical problem of low liquidation efficiency of the TA system. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0065] Figure 1 A flowchart of a business processing method based on tail difference information provided in an embodiment of the present application;
[0066] Figure 2 A flowchart of another business processing method based on tail difference information provided in an embodiment of the present application;
[0067] Figure 3 A schematic diagram of the structure of a business processing device based on tail difference information provided in an embodiment of the present application;
[0068] Figure 4 A schematic diagram of the structure of another business processing device based on tail difference information provided in an embodiment of the present application;
[0069] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0070] Figure 6 A block diagram of an electronic device provided in an embodiment of the present application.
[0071] The above drawings illustrate specific embodiments of the present disclosure, which will be described in more detail below. These drawings and textual descriptions are not intended to limit the scope of the present disclosure in any way, but rather to illustrate the concepts of the present disclosure to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0072] Exemplary embodiments are described in detail herein, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different drawings represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present disclosure.
[0073] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0074] In one example, with the vigorous development of asset management business, the business scenarios of product sales are becoming more and more diverse, and the amount of data is increasing. Therefore, a TA (Transfer Agent) system is needed to clear a large amount of data. In the existing technology, when the TA system clears a large amount of data, it usually distributes the total amount in full to each customer holding a product position according to the percentage of each customer's position. However, in the existing technology, when the total amount is fully distributed to each customer holding a product position, part of the amount will be truncated due to truncation accuracy and then distributed to the customer, resulting in the actual amount allocated to each customer being less than the standard amount, and a lot of time is required in the process of clearing data, which leads to low clearing efficiency of the TA system.
[0075] The present application provides a business processing method, device and equipment based on tail difference information, which aims to solve the above technical problems in the prior art.
[0076] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0077] Figure 1A flowchart of a business processing method based on tail difference information provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the method includes:
[0078] 101. Obtain multiple sub-libraries and sub-tables to be cleared for the business sent by the processing device; wherein each sub-library and sub-table to be cleared includes the total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated, and each piece of data information corresponds to a marked tail difference.
[0079] For example, the execution subject of this embodiment can be an electronic device, or a terminal device, or a service processing device or device based on tail difference information, or other devices or equipment that can execute this embodiment, without limitation. In this embodiment, the execution subject is described as an electronic device.
[0080] First, it is necessary to obtain multiple sub-libraries and sub-tables for the business sent by the processing device. Each sub-library and sub-table for clearing includes the total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated. Each piece of data information corresponds to a marked tail difference. The total business share represents the total amount of data that needs to be cleared from the user in the sub-library and sub-table for clearing. The multiple objects to be allocated refer to the objects to which the total business share is allocated. The data information corresponding to each object to be allocated includes the business sub-share of each object to be allocated within the total business share. In addition, each piece of data information corresponds to a marked tail difference, which is pre-determined by the electronic device based on the total business share and the multiple objects to be allocated.
[0081] 102. In response to the user's first trigger operation, preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated is determined based on the total business share in the multiple sub-libraries and sub-tables to be liquidated and the data information corresponding to each object to be allocated.
[0082] Exemplarily, when receiving the user's first trigger operation, in response to the user's first trigger operation, the electronic device can determine the preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated based on the total business share in multiple sub-libraries and sub-tables to be liquidated, and the business sub-share corresponding to each object to be allocated, wherein the first trigger operation can be a variety of operations such as clicking and double-clicking, which is not limited.
[0083] For example, the calculation formula for the preliminary settlement result information W (i.e., the amount of a single business) is: W = TRUNC (A*B / C, preset truncation precision), where the TRUNC function is used to truncate a date or number and return a specified value. Therefore, the decimal part of the number can be directly removed according to the TRUNC function and the truncation precision. A represents the single business share, and the single business share represents the business sub-share of each to-be-allocated object in the total business share. B represents the total business share, and C represents the aggregated business sub-share obtained based on the business sub-shares of multiple to-be-allocated objects. The preset truncation precision refers to the calculation of the obtained preliminary settlement result information to a preset number of digits after the decimal point. Therefore, according to W = TRUNC (A*B / C, preset truncation precision), the first settlement result information corresponding to each to-be-allocated object in each to-be-allocated sub-library and sub-table can be obtained, and then each first settlement result information is truncated according to the preset truncation precision to obtain the preliminary settlement result information corresponding to each to-be-allocated object in each to-be-allocated sub-library and sub-table after truncation. Therefore, this application is applicable to tail difference processing of arbitrary precision.
[0084] 103. Determine the target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-library and sub-table based on the mark tail difference and preliminary liquidation result information corresponding to each data information.
[0085] Exemplarily, based on the marked tail difference corresponding to each piece of data information and based on the preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated, the marked tail difference and the preliminary liquidation result information are added to obtain a total, and the total is determined to be the target liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated.
[0086] 104. Send the target liquidation result information to the processing device for display.
[0087] For example, after clearing multiple data information in each sub-library and sub-table to be cleared, the target clearing result information is obtained. The electronic device can send each target clearing result information to the processing device for display. Therefore, the processing device can send the sub-library and sub-table to be cleared stored in itself to the electronic device, which performs the clearing processing and finally receives the target clearing result information sent by the electronic device, which greatly reduces the processing pressure of the processing device.
[0088] In an embodiment of the present application, multiple sub-libraries and sub-tables of the business to be liquidated are obtained from a processing device; each sub-library and sub-table includes a total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated, and each data information corresponds to a marked tail difference. In response to a first trigger operation by a user, preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated is determined based on the total business share in the multiple sub-libraries and sub-tables to be liquidated and the data information corresponding to each object to be allocated. Based on the marked tail difference and preliminary liquidation result information corresponding to each data information, target liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated is determined. Each target liquidation result information is sent to the processing device for display. In this solution, the multiple sub-libraries and sub-tables to be liquidated include the total business share, the objects to be allocated, and the data information, wherein the data information has been pre-assigned with the corresponding mark difference. In response to the user's first trigger operation, the total business share in the multiple sub-libraries and sub-tables to be liquidated and the data information corresponding to each object to be allocated can be processed to obtain the preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated, and then the preliminary liquidation result information corresponding to each object to be allocated and the mark difference corresponding to the data information of each object to be allocated are added to obtain the target liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated. Therefore, by obtaining the target liquidation result information corresponding to each object to be allocated from the pre-assigned mark difference, the accuracy of the allocation amount for the user to be allocated is improved. According to the first trigger operation received from the user, the sub-libraries and sub-tables to be liquidated can be automatically liquidated, which greatly improves the liquidation speed and solves the technical problem of low liquidation efficiency of the TA system.
[0089] Figure 2 A flow chart of another business processing method based on tail difference information provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the method includes:
[0090] 201. Send an acquisition request to a processing device, where the acquisition request is used to instruct acquisition of sub-libraries and sub-tables of a business.
[0091] For example, when business needs to be cleared, the electronic device can send an acquisition request to the processing device. The acquisition request is used to instruct the acquisition of sub-libraries and sub-tables. When the processing device receives the acquisition request, it sends the sub-libraries and sub-tables corresponding to the acquisition request to the electronic device.
[0092] 202. Receive multiple sub-libraries and sub-tables of the business sent by the processing device; each sub-library and sub-table includes a total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated.
[0093] Exemplarily, the electronic device can receive and process multiple sub-libraries and sub-tables of the business sent by the processing device, wherein the business includes multiple business types, for example, business types include product total amount dividends, monetary product income distribution, and product total amount (asset) liquidation business, etc. Each sub-library and sub-table includes the total business share, multiple objects to be distributed, and data information corresponding to each object to be distributed, and the data information represents the business sub-share of each object to be distributed in the total business share.
[0094] 203. According to each process in the plurality of processes, the tail difference of each sub-library and sub-table is determined in parallel based on the total business share in each sub-library and sub-table, the plurality of objects to be allocated, and the data information corresponding to each object to be allocated.
[0095] In one example, according to each of the multiple processes, the sub-table tail difference of each sub-library and sub-table is determined in parallel based on the total business share in each sub-library and sub-table, multiple objects to be allocated, and data information corresponding to each object to be allocated, including: according to each of the multiple processes, in parallel based on the total business share in each sub-library and sub-table, multiple objects to be allocated, data information corresponding to each object to be allocated, and a preset truncation accuracy, determining the truncated tail difference of each sub-library and sub-table; determining the summary tail difference of multiple sub-libraries and sub-tables based on the truncated tail difference of each sub-library and sub-table; determining the sub-table tail difference of each sub-library and sub-table based on the summary tail difference of multiple sub-libraries and sub-tables and the number of objects to be allocated.
[0096] For example, the electronic device can, based on each of the multiple processes, concurrently determine the actual amount corresponding to the business sub-share of each object to be allocated based on the total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated in each sub-library and sub-table according to the business sub-share of each object to be allocated in the total business share, and perform truncation processing on the actual amount of each object to be allocated according to a preset truncation accuracy to obtain the truncation tail difference corresponding to each object to be allocated in each sub-library and sub-table. Then, the truncation tail differences corresponding to each object to be allocated in the multiple sub-libraries and sub-tables are added to determine the aggregated tail difference of the multiple sub-libraries and sub-tables. Finally, based on the aggregated tail differences of the multiple sub-libraries and sub-tables and the number of objects to be allocated aggregated in the multiple sub-libraries and sub-tables, the aggregated tail difference is divided by the number of aggregated objects to be allocated to obtain an average value, and the number of objects to be allocated in each sub-library and sub-table is multiplied by the average value to obtain the sub-table tail difference of each sub-library and sub-table.
[0097] For example, you can pre-configure a tail difference processing configuration table 1 and a tail difference marking allocation table 2. Table 1 represents the processing logic for each business, which is completed by configuring statistical SQL. Table 1 includes the configured TA code, business type, table name, summary sub-table share SQL ID, summary sub-table tail difference SQL ID, and sub-table tail difference marking SQL ID. Among them, the business type represents the type of business, for example, business types include: product total amount dividend, monetary product income distribution, and product total amount (asset) liquidation business, etc. The table name represents the name of the sub-library and sub-table related to the business, the summary sub-table share SQL ID represents the processing logic for calculating the total business share of each sub-library and sub-table, the summary sub-table tail difference SQL ID represents the processing logic for counting the truncated tail differences in each sub-library and sub-table, and the sub-table tail difference marking SQL ID represents the processing logic for counting whether multiple data information in each sub-library and sub-table need to be allocated with a marked tail difference. Table 2 includes the TA code, product code, business type, settlement date, summary share, number of records, number of tail difference shares, and sub-library and sub-table number. The product code represents the code of the product business, the business type represents the type of business, the settlement date represents the date on which the sub-library and sub-table will be settled, the summary share represents the total business share for each sub-library and sub-table, the number of records represents the number of users to be allocated in the sub-library and sub-table, the number of tail difference shares represents the number of marked tail difference shares to be allocated in the sub-library and sub-table, and the sub-library and sub-table number is used to distinguish between multiple sub-libraries and sub-tables. The specific configurations of Tail Difference Processing Configuration Table 1 and Marked Tail Difference Allocation Table 2 are shown in Tables 1 and 2 below.
[0098] Table 1
[0099]
[0100] Table 2
[0101]
[0102] When a new business needs to handle tail differences, you only need to configure multiple factors according to Table 1, add new configurations, and add the same input and output SQL, without the need for additional code development. After the new business is added, the new business is settled according to the processing logic of Table 1. For example, Table 1 and Table 2 are associated based on the business type and settlement date. After determining the business type of the new business, the total business share of each sub-database and sub-table of the new business is directly calculated according to the processing logic for calculating the total business share of each sub-database and sub-table represented by the summary sub-table share SQL ID corresponding to the business type in Table 1, to obtain the total business share of each sub-database and sub-table. The truncated tail difference of each sub-database and sub-table of the new business is calculated according to the processing logic for counting the truncated tail difference in each sub-database and sub-table represented by the summary sub-table tail difference SQL ID in Table 1 to obtain the truncated tail difference of each sub-database and sub-table. The data information in each sub-database and sub-table that needs to be allocated with the marked tail difference is determined according to the processing logic for counting whether multiple data information in each sub-database and sub-table needs to be allocated with the marked tail difference represented by the sub-table tail difference mark SQL ID. Finally, Table 2 can be generated. When the sub-database and sub-table are subsequently settled, the target settlement result information corresponding to each object to be allocated can be calculated based on the marked tail difference corresponding to the data information of each object to be allocated. Therefore, it is possible to concurrently assign mark tail differences to the data information in the sharded databases and tables, or to concurrently perform modulo operations on the fields based on the sharded databases and tables. For records that need to be assigned mark tail differences, the database batch submission mode is used to ensure processing performance and greatly improve processing speed.
[0103] 204. According to each process in the multiple processes, in parallel, according to the preset truncation accuracy of each sub-library and sub-table, determine the mark tail difference corresponding to the data information in each sub-library and sub-table.
[0104] For example, the preset truncation precision is four decimal places, and the corresponding tail difference unit is 0.0001. Therefore, the marked tail difference in this case is 0.0001. The electronic device can determine the tail difference unit corresponding to the data information in each sub-library and sub-table in parallel based on the preset truncation precision of each sub-library and sub-table for each of the multiple processes. Therefore, the marked tail difference corresponding to the data information in the sub-library and sub-table can be determined concurrently, ensuring processing performance and greatly improving processing speed.
[0105] 205. According to each process in the multiple processes, in parallel, according to the tail difference of each sub-library and sub-table, a mark tail difference is assigned to the data information corresponding to each object to be assigned in each sub-library and sub-table.
[0106] In one example, based on the tail difference of each sub-library and sub-table, a marking tail difference is assigned to the data information corresponding to each object to be allocated in each sub-library and sub-table, including: determining the target number of marking tail differences of each sub-library and sub-table based on the tail difference of each sub-library and sub-table and a preset truncation accuracy; for each sub-library and sub-table, sorting multiple data information corresponding to the objects to be allocated in the sub-library and sub-table according to a preset sorting method, and storing the sorted data information corresponding to the objects to be allocated into a preset queue; for each sub-library and sub-table, reading the data information in the preset queue corresponding to the sub-library and sub-table, and respectively assigning marking tail differences to the read target number of data information.
[0107] Exemplarily, the electronic device can determine the target number of data information in each sub-library and sub-table that needs to be assigned a marked tail difference based on the sub-table tail difference of each sub-library and sub-table and the preset truncation accuracy, and then for each sub-library and sub-table, sort the multiple data information corresponding to the objects to be assigned in the sub-library and sub-table according to a preset sorting method, where the sorting method includes arranging from large to small, etc., and store the sorted data information corresponding to the objects to be assigned into a preset queue. Finally, for each sub-library and sub-table, read the data information in the preset queue corresponding to the sub-library and sub-table, and assign the marked tail difference to the read target number of data information.
[0108] For example, the first step is to determine the target number of marked tail differences for each sub-library and sub-table based on the tail difference of each sub-library and sub-table and the preset truncation accuracy. The target number of marked tail differences is the conversion of the marked tail difference and the truncation accuracy. When the truncation accuracy of a sub-library and sub-table is four decimal places after the decimal point, the marked tail difference is 0.1, and there are 1200 records (which can refer to data information), the tail difference unit is 0.0001, the marked tail difference is also 0.0001, and the target number of marked tail differences = 0.1 / 0.0001 = 1000, which means that the first 1000 records of the sub-library and sub-table need to be allocated a marked tail difference. The second step is to sort the data information corresponding to the objects to be allocated in the sub-library and sub-table according to the arrangement from large to small, and store the sorted data information corresponding to the objects to be allocated in the preset queue, wherein the preset queue includes the data information pre-set to be read from the head node, and the data information stored by the head node is the largest data information. The third step is to read the data information in the preset queue corresponding to each shard database and table, and assign a mark tail difference to each of the first 1,000 data information read. This allows the mark tail difference to be assigned to the data information in each shard database and table concurrently, ensuring processing performance and greatly improving processing speed.
[0109] 206. Obtain multiple sub-libraries and sub-tables to be cleared for the business sent by the processing device; wherein each sub-library and sub-table to be cleared includes the total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated, and each data information corresponds to a marked tail difference.
[0110] For example, this step can be referred to Figure 1 Step 101 in the above description will not be repeated.
[0111] 207. In response to a first trigger operation by the user, read a preset truncation accuracy from the memory.
[0112] For example, when receiving the user's first trigger operation, the electronic device can read the preset truncation accuracy from the memory in response to the user's first trigger operation, wherein the first trigger operation can be a single-click, double-click, or other operations, and there is no limitation on this.
[0113] 208. The data information corresponding to each object to be allocated includes the business sub-share of each object to be allocated in the total business share; according to each process in the multiple processes, the business sub-share of each object to be allocated in each sub-database and sub-table in the total business share is processed in parallel to obtain the aggregated business sub-shares of the business sub-shares of the multiple objects to be allocated.
[0114] Exemplarily, the data information corresponding to each object to be allocated includes the business sub-share of each object to be allocated in the total business share. Therefore, the electronic device can process the business sub-share of each object to be allocated in each sub-library and sub-table in parallel according to each process in multiple processes, that is, add up the business sub-shares of multiple users to be allocated in each sub-library and sub-table to obtain the aggregated business sub-shares of the business sub-shares of multiple objects to be allocated in each sub-library and sub-table.
[0115] 209. According to each process in the multiple processes, the total business share of each sub-library and sub-table, the business sub-share of each object to be allocated in the total business share, the aggregated business sub-share of the business sub-shares of multiple objects to be allocated, and the truncation accuracy are processed in parallel to obtain preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated.
[0116] Exemplarily, based on a preset calculation formula, according to each process in multiple processes, the total business share in each sub-library and sub-table, the business sub-share of each object to be allocated in the total business share, the aggregated business sub-share of the business sub-shares of multiple objects to be allocated, and the truncation accuracy are processed in parallel to obtain preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated. The calculation formula is: W = TRUNC(A*B / C, preset truncation precision). The TRUNC function is used to truncate dates or numbers and return a specified value. Therefore, the decimal portion of the number can be directly removed using the TRUNC function. A represents a single business share, which represents the business sub-share of each to-be-allocated object within the total business share. B represents the total business share. C represents the aggregated business sub-share obtained based on the business sub-shares of multiple to-be-allocated objects. The preset truncation precision refers to rounding the obtained preliminary liquidation result information to a preset number of decimal places. Therefore, according to W = TRUNC(A*B / C, preset truncation precision), the first liquidation result information corresponding to each to-be-allocated object in each to-be-allocated sub-library and sub-table can be obtained. Then, each first liquidation result information is truncated according to the preset truncation precision to obtain the preliminary liquidation result information corresponding to each to-be-allocated object in each to-be-allocated sub-library and sub-table after truncation. Therefore, multiple preliminary liquidation result information in each sub-library and sub-table can be obtained concurrently, ensuring processing performance and greatly improving processing speed.
[0117] 210. In response to a second trigger operation by the user, determine and display the mark tail difference corresponding to each data information and the sum of the preliminary settlement result information.
[0118] Exemplarily, when receiving the user's second trigger operation, in response to the user's second trigger operation, the electronic device determines the sum of the mark tail difference corresponding to each data information and the preliminary settlement result information of the user to be assigned corresponding to each data information, wherein the second trigger operation can be a single-click, double-click, or other operations, and there is no restriction on this.
[0119] 211. In response to a third trigger operation by the user, determine the target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-database and sub-table.
[0120] Exemplarily, when receiving the user's third trigger operation, in response to the user's third trigger operation, the electronic device determines the target liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated, where the third trigger operation can be a single-click, double-click, or other operations, and there is no restriction on this.
[0121] 212. Send the target liquidation result information to the processing device for display.
[0122] For example, this step can be referred to Figure 1 Step 104 in the above step will not be described in detail.
[0123] In an embodiment of the present application, a request for obtaining a business sub-library or sub-table is sent to a processing device, the request for obtaining a business sub-library or sub-table. Multiple business sub-libraries or sub-tables sent by the processing device are received; each sub-library or sub-table includes a total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated. Based on each of the multiple processes, the sub-table tail difference of each sub-library or sub-table is determined in parallel based on the total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated in each sub-library or sub-table. Based on each of the multiple processes, the tag tail difference corresponding to the data information in each sub-library or sub-table is determined in parallel based on the preset truncation accuracy of each sub-library or sub-table; based on each of the multiple processes, the tag tail difference is assigned to the data information corresponding to each object to be allocated in each sub-library or sub-table in parallel based on the sub-table tail difference of each sub-library or sub-table. Multiple business sub-libraries or sub-tables to be cleared sent by the processing device are obtained; each sub-library or sub-table to be cleared includes a total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated, and each piece of data information has a tag tail difference. In response to a first user trigger operation, a preset truncation precision is read from memory. Data information corresponding to each to-be-allocated object includes the business sub-share of each to-be-allocated object within the total business share. Based on each of the multiple processes, the business sub-share of each to-be-allocated object within each sub-library and sub-table is processed in parallel to obtain a summary of the business sub-shares of the multiple to-be-allocated objects. Based on each of the multiple processes, the total business share of each sub-library and sub-table, the business sub-share of each to-be-allocated object within the total business share, the summary of the business sub-shares of the multiple to-be-allocated objects, and the truncation precision are processed in parallel to obtain preliminary settlement result information corresponding to each to-be-allocated object within each sub-library and sub-table to be settled. In response to a second user trigger operation, the sum of the marked tail difference and preliminary settlement result information corresponding to each data information is determined and displayed. Based on a third user trigger operation, the sum is determined to be the target settlement result information corresponding to each to-be-allocated object within each sub-library and sub-table to be settled. Each target settlement result information is sent to a processing device for display. Therefore, by obtaining the target settlement result information corresponding to each object to be allocated based on the pre-allocated mark tail difference, the accuracy of the allocation amount for the allocated user is improved. Then, based on the first trigger operation received from the user, the sub-database and sub-table to be settled can be automatically settled, which greatly improves the settlement speed and solves the technical problem of low settlement efficiency of the TA system.
[0124] Figure 3A schematic diagram of a business processing device based on tail difference information provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the device includes:
[0125] The acquisition unit 31 is used to acquire multiple sub-libraries and sub-tables to be cleared of the business sent by the processing device; wherein each sub-library and sub-table to be cleared includes the total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated, and each data information corresponds to a marked tail difference.
[0126] The first determining unit 32 is used to respond to the user's first trigger operation and determine the preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated based on the total business share in multiple sub-libraries and sub-tables to be liquidated and the data information corresponding to each object to be allocated.
[0127] The second determining unit 33 is configured to determine target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-library and sub-table according to the mark tail difference corresponding to each piece of data information and the preliminary liquidation result information.
[0128] The display unit 34 is used to send the target settlement result information to the processing device for display.
[0129] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.
[0130] Figure 4 A structural diagram of another business processing device based on tail difference information provided in an embodiment of the present application, Figure 3 Based on the embodiment shown, Figure 4 As shown, the data information corresponding to each object to be allocated includes the business sub-share of each object to be allocated in the total business share.
[0131] The first determining unit 32 includes:
[0132] The reading module 321 is configured to read the preset truncation accuracy from the memory in response to a first trigger operation by the user.
[0133] The first processing module 322 is used to process the business sub-share of each to-be-allocated object in each sub-library and sub-table in parallel according to each process in the multiple processes, and obtain the aggregated business sub-shares of the business sub-shares of the multiple to-be-allocated objects.
[0134] The second processing module 323 is used to process the total business share in each sub-library and sub-table, the business sub-share of each object to be allocated in the total business share, the aggregated business sub-share of the business sub-shares of multiple objects to be allocated, and the truncation accuracy in parallel according to each process in the multiple processes, and obtain preliminary liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated.
[0135] In one example, the second determining unit 33 includes:
[0136] The first determining module 331 is configured to determine and display the sum of the mark tail difference and the preliminary settlement result information corresponding to each piece of data information in response to the second triggering operation of the user.
[0137] The second determining module 332 is configured to determine, in response to a third triggering operation by the user, target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-library and sub-table.
[0138] In one example, the apparatus further includes:
[0139] The sending unit 41 is used to send an acquisition request to the processing device, where the acquisition request is used to instruct the acquisition of the sub-library and sub-table of the service.
[0140] The receiving unit 42 is used to receive multiple sub-libraries and sub-tables of the business sent by the processing device; wherein each sub-library and sub-table includes the total business share, multiple objects to be allocated, and data information corresponding to each object to be allocated.
[0141] The third determining unit 43 is used to determine the tail difference of each sub-library and sub-table in parallel according to each process in the multiple processes based on the total business share in each sub-library and sub-table, multiple objects to be allocated, and data information corresponding to each object to be allocated.
[0142] The fourth determining unit 44 is configured to determine, in parallel according to each of the multiple processes and according to the preset truncation accuracy of each sub-library or sub-table, the mark tail difference corresponding to the data information in each sub-library or sub-table.
[0143] The allocation unit 45 is used to allocate a mark tail difference to the data information corresponding to each object to be allocated in each sub-library and sub-table in parallel according to the sub-table tail difference of each sub-library and sub-table in each process of the multiple processes.
[0144] In one example, the third determining unit 43 includes:
[0145] The third determination module 431 is used to determine the truncation tail difference of each sub-library and sub-table in parallel according to each process in the multiple processes based on the total business share in each sub-library and sub-table, multiple objects to be allocated, data information corresponding to each object to be allocated, and a preset truncation accuracy.
[0146] The fourth determining module 432 is configured to determine the aggregated tail difference of multiple sub-libraries and sub-tables based on the truncated tail difference of each sub-library and sub-table.
[0147] The fifth determining module 433 is configured to determine the sub-table tail difference of each sub-library and sub-table according to the aggregate tail differences of the multiple sub-libraries and sub-tables and the number of objects to be allocated.
[0148] In one example, the allocation unit 45 includes:
[0149] The sixth determining module 451 is configured to determine a target number of marked tail differences for each sub-library and sub-table based on the tail differences of each sub-library and sub-table and a preset truncation accuracy.
[0150] The sorting module 452 is used to sort the data information corresponding to the objects to be allocated in each sub-library and sub-table according to a preset sorting method, and store the sorted data information corresponding to the objects to be allocated in a preset queue.
[0151] The allocation module 453 is used to read the data information in the preset queue corresponding to each sub-library or sub-table, and allocate the mark tail difference to the target amount of data information read.
[0152] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.
[0153] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the electronic device includes: a memory 51 and a processor 52.
[0154] The memory 51 stores computer programs that can be executed on the processor 52 .
[0155] The processor 52 is configured to execute the method provided in the above embodiments.
[0156] The electronic device further includes a receiver 53 and a transmitter 54. The receiver 53 is used to receive instructions and data sent by an external device, and the transmitter 54 is used to send instructions and data to the external device.
[0157] Figure 6This is a block diagram of an electronic device provided in an embodiment of the present application. The electronic device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0158] Apparatus 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0159] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 602 may include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
[0160] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0161] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 600.
[0162] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0163] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), which is configured to receive external audio signals when the device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0164] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0165] The sensor assembly 614 includes one or more sensors for providing various aspects of the status assessment of the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600. The sensor assembly 614 can also detect changes in the position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and temperature changes of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0166] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0167] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described method.
[0168] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by the processor 620 of the apparatus 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0169] An embodiment of the present application also provides a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method provided in the above embodiment.
[0170] An embodiment of the present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium, and at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0171] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0172] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A business processing method based on tail difference information, characterized in that: include: Acquire multiple sub-libraries and sub-tables for services sent by the processing device; wherein each sub-library and sub-table for services to be cleared includes a total service share, multiple objects to be allocated, and data information corresponding to each object to be allocated, each piece of data information corresponding to a tag tail difference; and the data information corresponding to each object to be allocated includes a service sub-share of each object to be allocated in the total service share; In response to a first trigger operation by the user, a preset truncation accuracy is read from the memory; According to each of the multiple processes, the business sub-share of each to-be-allocated object in the total business share in each sub-database and sub-table is processed in parallel to obtain the aggregated business sub-shares of the business sub-shares of the multiple to-be-allocated objects; According to each of the multiple processes, the total business share in each sub-library and sub-table, the business sub-share of each to-be-allocated object in the total business share, the aggregated business sub-share of the business sub-shares of multiple to-be-allocated objects, and the truncation accuracy are processed in parallel to obtain preliminary liquidation result information corresponding to each to-be-allocated object in each to-be-allocated sub-library and sub-table; Determining, based on the sum of the mark tail difference corresponding to each piece of data information and the preliminary liquidation result information, the sum as the target liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated; The target liquidation result information is sent to the processing device for display.
2. The method according to claim 1, characterized in that Determining, based on the sum of the mark tail difference corresponding to each piece of data information and the preliminary liquidation result information, the sum as the target liquidation result information corresponding to each object to be allocated in each sub-library and sub-table to be liquidated, including: In response to a second trigger operation by the user, determining and displaying the mark tail difference corresponding to each piece of data information and the sum of the preliminary liquidation result information; In response to the user's third trigger operation, the sum is determined to be target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-library and sub-table.
3. The method according to claim 1 or 2, characterized in that The method further comprises: Sending an acquisition request to the processing device, where the acquisition request is used to instruct acquisition of the sub-library and sub-table of the business; Receive multiple sub-libraries and sub-tables of the business sent by the processing device; wherein each of the sub-libraries and sub-tables includes a total business share, multiple objects to be allocated, and data information corresponding to each of the objects to be allocated; According to each of the multiple processes, in parallel, determining the tail difference of each sub-library and sub-table based on the total business share in each sub-library and sub-table, the multiple objects to be allocated, and the data information corresponding to each object to be allocated; According to each process in the multiple processes, in parallel, according to the preset truncation accuracy of each sub-library and sub-table, determine the mark tail difference corresponding to the data information in each sub-library and sub-table; According to each process in the multiple processes, the tag tail difference is allocated to the data information corresponding to each of the to-be-allocated objects in each of the sub-library and sub-tables in parallel according to the sub-table tail difference of each of the sub-library and sub-tables.
4. The method according to claim 3, characterized in that According to each of the multiple processes, the sub-table tail difference of each sub-library and sub-table is determined in parallel based on the total business share in each sub-library and sub-table, the multiple objects to be allocated, and the data information corresponding to each object to be allocated, including: According to each of the multiple processes, the truncation tail difference of each sub-library and sub-table is determined in parallel based on the total business share in each sub-library and sub-table, the multiple objects to be allocated, the data information corresponding to each object to be allocated, and the preset truncation accuracy; Determine the aggregated tail difference of the plurality of sub-libraries and sub-tables according to the truncated tail difference of each sub-library and sub-table; The sub-table tail difference of each sub-library and sub-table is determined according to the summary tail difference of the multiple sub-libraries and sub-tables and the number of the objects to be allocated.
5. The method according to claim 3, characterized in that According to the sub-table tail difference of each sub-library and sub-table, the tag tail difference is assigned to the data information corresponding to each of the objects to be assigned in each sub-library and sub-table, including: Determine the target number of marked tail differences for each sub-library and sub-table based on the tail differences of each sub-library and sub-table and the preset truncation accuracy; For each sub-library or sub-table, sort the data information corresponding to the objects to be assigned in the sub-library or sub-table according to a preset sorting method, and store the sorted data information corresponding to the objects to be assigned into a preset queue; For each sub-library or sub-table, the data information in the preset queue corresponding to the sub-library or sub-table is read, and the mark tail difference is respectively allocated to the target amount of data information read.
6. A business processing device based on tail difference information, characterized in that: include: an acquisition unit, configured to acquire multiple sub-libraries and sub-tables of services to be cleared sent by a processing device; wherein each sub-library and sub-table to be cleared includes a total service share, multiple objects to be allocated, and data information corresponding to each object to be allocated, each piece of data information corresponding to a tag tail difference; and the data information corresponding to each object to be allocated includes a service sub-share of each object to be allocated in the total service share; A reading module, configured to read a preset truncation accuracy from a memory in response to a first trigger operation by a user; A first processing module is configured to process, in parallel, the business sub-share of each to-be-allocated object in the total business share in each sub-library and sub-table according to each of the multiple processes, to obtain a summary of the business sub-shares of the multiple to-be-allocated objects; The second processing module is configured to process, in parallel, the total business share in each sub-library and sub-table, the business sub-share of each to-be-allocated object in the total business share, the aggregated business sub-share of the business sub-shares of multiple to-be-allocated objects, and the truncation accuracy, based on each of the multiple processes, to obtain preliminary liquidation result information corresponding to each to-be-allocated object in each to-be-allocated sub-library and sub-table; A second determining unit is configured to determine, based on the sum of the mark tail difference corresponding to each piece of data information and the preliminary liquidation result information, the sum as the target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-library and sub-table; The display unit is used to send the target liquidation result information to the processing device for display.
7. The device according to claim 6, characterized in that The second determining unit includes: A first determining module is configured to determine and display the sum of the marked tail difference corresponding to each piece of data information and the preliminary liquidation result information in response to a second triggering operation of the user; The second determining module is configured to determine, in response to a third triggering operation of the user, that the sum is target liquidation result information corresponding to each to-be-allocated object in each to-be-liquidated sub-library and sub-table.
8. The device according to claim 6, characterized in that The device further comprises: A sending unit, configured to send an acquisition request to the processing device, wherein the acquisition request is used to instruct acquisition of a sub-library and sub-table of a business; a receiving unit, configured to receive a plurality of sub-libraries and sub-tables of the business sent by the processing device; wherein each of the sub-libraries and sub-tables includes a total share of the business, a plurality of objects to be allocated, and data information corresponding to each of the objects to be allocated; a third determining unit configured to determine, based on each of the multiple processes, in parallel, the sub-table tail difference of each sub-database and sub-table based on the total business share in each sub-database and sub-table, the multiple objects to be allocated, and the data information corresponding to each object to be allocated; A fourth determining unit is configured to determine, in parallel based on each of the multiple processes and according to a preset truncation accuracy of each sub-library and sub-table, a mark tail difference corresponding to the data information in each sub-library and sub-table; The allocation unit is used to allocate the tag tail difference to the data information corresponding to each object to be allocated in each sub-library and sub-table in parallel according to the sub-table tail difference of each sub-library and sub-table according to each process in the multiple processes.
9. The device according to claim 8, characterized in that The third determining unit includes: A third determination module is configured to determine, in parallel, based on each of the multiple processes, the total business share in each of the sub-libraries and sub-tables, the multiple objects to be allocated, the data information corresponding to each of the objects to be allocated, and a preset truncation accuracy, the truncation tail difference of each of the sub-libraries and sub-tables; A fourth determining module is configured to determine the aggregated tail difference of the plurality of sub-libraries and sub-tables based on the truncated tail difference of each sub-library and sub-table; The fifth determining module is configured to determine the sub-table tail difference of each sub-library and sub-table according to the aggregate tail difference of the multiple sub-libraries and sub-tables and the number of the objects to be allocated.
10. The device according to claim 8, characterized in that The distribution unit includes: A sixth determination module is used to determine a target number of marked tail differences for each sub-library and sub-table based on the tail differences of each sub-library and sub-table and a preset truncation accuracy; A sorting module is used to sort the data information corresponding to the objects to be allocated in each sub-library and sub-table according to a preset sorting method, and store the sorted data information corresponding to the objects to be allocated in a preset queue; The allocation module is used to read the data information in the preset queue corresponding to each sub-library and sub-table, and allocate the mark tail difference to the target amount of data information read.
11. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.
13. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 5 when executed by a processor.
Citation Information
Patent Citations
Fund transaction settlement method, device and equipment as well as computer readable storage medium
CN107993151A
Profit distribution method and device and computer equipment
CN110020954A