Business data processing method and device, electronic equipment and storage medium
By batch acquiring and aggregating business data to form data units, storing them in a data pool, and generating a resource allocation list, the inefficiency and risk issues in large-scale business data processing are resolved, achieving efficient and stable data processing.
Patent Information
- Application Number
- CN202211322865.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-10-27
AI Technical Summary
Existing technologies suffer from time-consuming and inefficient processing of large-scale business data, and are prone to causing memory overflow and system crashes.
By acquiring business data in batches and summarizing it into data units according to preset rules, storing it in a data pool, and then extracting target data units that meet the filtering rules from the data pool to form data groups, a resource allocation list is finally generated.
It improves data processing efficiency, reduces data volume, avoids risks such as memory overflow and system crash, and simplifies the data processing process.
Smart Images

Figure CN115686842B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing, and further to the field of artificial intelligence technology, particularly to a business data processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] In existing technologies, before allocating resources, target business data needs to be extracted from the business data awaiting resource allocation. Then, a resource allocation list is created based on the target business data and its resource data. To save time and reduce workload, when creating the resource allocation list, business data with identical dimensions are grouped together, and all business data within the same group are allocated resources together. However, sometimes the volume of business data awaiting resource allocation is enormous, and the volume of the extracted target business data is also large. Extracting the target business data is not only time-consuming and inefficient, but also carries risks such as memory overflow and system crashes. Furthermore, the large volume of extracted target business data leads to excessively long grouping times, further increasing the risks of memory overflow and system crashes. Summary of the Invention
[0003] The purpose of this invention is to provide a business data processing method, apparatus, electronic device, and storage medium to solve the technical problems in the prior art, such as long processing time, low efficiency, and risks of memory overflow and system crashes caused by large data volumes.
[0004] The technical solution of the present invention is as follows: A business data processing method is provided, comprising:
[0005] Batch retrieve business data and all dimensions of the business data;
[0006] The business data is aggregated according to a preset rule to form at least one data unit, and the resource data of the data unit is obtained. The resource data of the data unit is the sum of the resource data of all business data contained in the data unit. The preset rule includes: each dimension of each business data in the same data unit is the same.
[0007] The data unit and its resource data are stored in the data pool;
[0008] Target data units that meet the filtering rules are obtained from the data pool. The obtained target data units are summarized according to the dimensions to form at least one data group. Resource data of the data group is obtained. Each dimension of each target data unit in the same data group is the same. The dimension of the target data unit is the same as the dimension of the business data contained in the target data unit.
[0009] A resource allocation list is generated based on the resource data of all the data groups, wherein the resource data of the data group is the sum of the resource data of all target data units contained in the data group.
[0010] As an optional implementation, the preset rule also includes: the batches of the business data in the same data unit are the same.
[0011] Furthermore, the business data is policy follow-up expense reimbursement data, and the preset rule also includes: the policy number of each business data in the same data unit is the same.
[0012] As an optional implementation, the preset rule further includes: the value of the resource data of each data unit is within a preset range.
[0013] As an optional implementation, the step of summarizing the acquired target data units according to the dimension to form at least one data group includes:
[0014] The target data unit is allocated to multiple threads for aggregation according to the allocation rules, wherein each thread forms at least one data group.
[0015] As an optional implementation, the allocation rule includes: all the target data units that are identical in each dimension are allocated to the same thread.
[0016] As an optional implementation, the allocation rule includes: distributing all the target data units equally among the multiple threads;
[0017] Accordingly, before generating the resource allocation list based on the resource data of each target data unit in all the data groups, the method further includes summarizing the data groups that have the same dimension, wherein the dimension of the data group is the same as the dimension of the target data unit contained in the data group.
[0018] Another technical solution of the present invention is as follows: A business data processing apparatus is provided, comprising:
[0019] The business data acquisition module is used to acquire business data in batches and all dimensions of the business data.
[0020] The data unit acquisition module is used to summarize the business data according to preset rules to form at least one data unit, and acquire the resource data of the data unit. The resource data of the data unit is the sum of the resource data of all business data contained in the data unit. The preset rules include: each dimension of each business data in the same data unit is the same.
[0021] A storage module is used to store the data unit and its resource data in a data pool;
[0022] The data group acquisition module is used to acquire target data units that meet the filtering rules from the data pool, summarize the acquired target data units according to the dimensions to form at least one data group, and acquire the resource data of the data group. In the same data group, each dimension of each target data unit is the same, and the dimension of the target data unit is the same as the dimension of the business data contained in the target data unit.
[0023] The resource allocation list generation module is used to generate a resource allocation list based on the resource data of all the data groups, wherein the resource data of the data group is the sum of the resource data of all target data units contained in the data group.
[0024] Another technical solution of the present invention is as follows: An electronic device is provided, including a processor and a memory coupled to the processor, the memory storing program instructions that can be executed by the processor; when the processor executes the program instructions stored in the memory, it implements the above-mentioned business data processing method.
[0025] Another technical solution of the present invention is as follows: a storage medium is provided, wherein program instructions are stored in the storage medium, and the program instructions are executed by a processor to implement the above-mentioned business data processing method.
[0026] The present invention discloses a business data processing method, apparatus, electronic device, and storage medium that batch acquires business data and all dimensions of the business data; summarizes the business data according to preset rules to form at least one data unit, and acquires the resource data of the data unit, wherein the resource data of the data unit is the sum of the resource data of all business data contained in the data unit, and the preset rules include: each dimension of each business data in the same data unit is the same; stores the data unit and the resource data of the data unit in a data pool; acquires target data units that meet the filtering rules from the data pool, summarizes the acquired target data units according to the dimensions to form at least one data group, and acquires the resource data of the data group, wherein the resource data of the data group is the same. Each dimension of the target data unit is identical, and the dimension of the target data unit is the same as the dimension of the business data contained in the target data unit. A resource allocation list is generated based on the resource data of all the data groups, wherein the resource data of the data group is the sum of the resource data of all the target data units contained in the data group. In this way, business data is first summarized into data units and stored in the data pool. A large amount of business data is summarized into smaller data units to be extracted. When extracting target business data, extraction is performed on a data unit basis, which improves efficiency. When creating the resource allocation list, the data units are summarized into groups, which shortens the time for summarizing and forming groups, improves efficiency, and avoids the risks of memory overflow, system crash, etc. caused by the large amount of extracted data. Attached Figure Description
[0027] Figure 1 This is a flowchart illustrating the business data processing method according to the first embodiment of the present invention.
[0028] Figure 2 This is a schematic diagram of the business data processing device according to the second embodiment of the present invention;
[0029] Figure 3 This is a schematic diagram of the structure of an electronic device according to the third embodiment of the present invention;
[0030] Figure 4 This is a schematic diagram of the structure of the storage medium according to the fourth embodiment of the present invention. Detailed Implementation
[0031] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0032] The terms "first," "second," and "third" used in this invention are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified. All directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of this invention are only used to explain the relative positional relationships and movements between components in a specific orientation (as shown in the figures). If the specific orientation changes, the directional indications also change accordingly. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0033] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0034] The business data processing method provided by this invention is applicable to policy follow-up expense reimbursement. Policy follow-up expenses for a single policy are typically distributed to the reimbursement system in multiple installments based on time points. Due to the large number of policies, each distribution of policy follow-up expenses to the reimbursement system is usually done in batches, meaning multiple policy follow-up expenses are distributed simultaneously each time, some of which may belong to the same policy. With a large number of policies, policy follow-up expense reimbursement data is characterized by its large quantity and high distribution frequency, easily leading to data backlog. This is especially true for online policy follow-up expense reimbursement data, which not only has a large quantity and high distribution frequency but also has a small individual amount. In a specific example, the amount of online policy follow-up expense reimbursement data is generally between 0.01 and 0.2 yuan, while the reimbursement amount for each agent is a fixed amount, generally between 1 million and 2 million yuan. Taking an average policy reimbursement amount of 0.1 yuan per transaction and an agent's reimbursement amount of 1.5 million yuan per transaction as an example, each time an agent submits a reimbursement, 15 million reimbursement records need to be retrieved. This data retrieval process is not only time-consuming but also carries risks such as memory overflow and system crashes. Due to the large volume of data and the long retrieval time, data occupancy also increases, potentially impacting the ability of several agents to process applications simultaneously.
[0035] The following uses a specific scenario of online insurance policy reimbursement as an example to explain a business data processing method provided in this application embodiment.
[0036] Figure 1 This is a flowchart illustrating the business data processing method of the first embodiment of the present invention. It should be noted that if substantially the same result is achieved, the business data processing method of the present invention does not necessarily follow the same approach. Figure 1 The illustrated process sequence is limited. For example... Figure 1 As shown, the business data processing method includes steps S101 to S105:
[0037] S101, Batch acquire business data and all dimensions of the business data.
[0038] In this embodiment, the business data refers to policy follow-up expense reimbursement data. Since policy follow-up expenses are typically distributed to the reimbursement system in batches, to avoid data omissions, each acquisition of policy follow-up expense reimbursement data and all dimensions of the data is performed on a batch basis, retrieving all policy follow-up expense reimbursement data and all dimensions within that batch. For example, the dimensions of policy follow-up expense reimbursement data include: company segment, channel, insurance type, and individual / group. The company segment can be further divided into Shenzhen, Guangzhou, Xiamen, Wuhan, and Changsha companies, etc. Channels can be divided into online and offline channels. Insurance types can be divided into medical insurance, accident insurance, and property insurance, etc. Individual / group can be divided into individuals and groups.
[0039] S102, the business data is aggregated according to preset rules to form at least one data unit, and the resource data of the data unit is obtained. The resource data of the data unit is the sum of the resource data of all business data contained in the data unit. The dimension of the data unit is the same as the dimension of the business data contained in the data unit. The preset rules include: each dimension of each business data in the same data unit is the same.
[0040] In this embodiment, the dimension of the data unit is the same as the dimension of the business data contained in the data unit. For example, if all the business data in a data unit has the following characteristics: company segment is Shenzhen company, channel segment is offline channel, insurance type is accident insurance, and group segment is individual, then the company segment of this data unit is Shenzhen company, channel segment is offline channel, insurance type is accident insurance, and group segment is individual.
[0041] In this embodiment, the resource data of the business data is the amount of the policy follow-up expense reimbursement data.
[0042] To reduce the amount of data and avoid risks such as long processing time, low efficiency, memory overflow, and system crashes caused by excessive data extraction each time, the business data is summarized into data units according to preset rules after acquisition. These data units are then used as the main body for subsequent extraction, which reduces the amount of data extracted, improves extraction efficiency, and avoids risks such as memory overflow and system crashes.
[0043] In an optional implementation, to further avoid data backlog, the preset rule further includes: the batches of each business data in the same data unit are the same. Here, batch is not a dimension. Accordingly, step S102 specifically includes: summarizing the business data according to the preset rule to form at least one data unit, and obtaining the resource data of the data unit, wherein the resource data of the data unit is the sum of the resource data of all business data contained in the data unit. The preset rule includes: each dimension of each business data in the same data unit is the same, and the batches of each business data in the same data unit are the same. When summarizing business data, the business data is processed in batches. All business data in a batch are first summarized into at least one data unit before processing the next batch of business data. Business data from different batches are not summarized into the same data unit. Business data is processed according to the order in which it is sent to the reimbursement system. After processing the business data sent earlier, the business data sent later is processed, thus avoiding data backlog. In a more specific implementation, to reduce the number of data units, business data in the same batch of business data with the same dimensions are located in the same data unit.
[0044] For example, the first batch of business data contains 300 data points. 60 data points have identical dimensions and are grouped into data unit 1; 120 data points have identical dimensions and are grouped into data unit 2; 45 data points have identical dimensions and are grouped into data unit 3; and 75 data points have identical dimensions and are grouped into data unit 4. After the first batch of business data is aggregated, data units 1, 2, 3, and 4 are stored in the data pool. When processing the second batch of business data, instead of aggregating it into data units 1, 2, 3, and 4, new data units are created. For example, the second batch of business data contains 100 data points. Ten of these data points have identical dimensions and are grouped into data unit 5; another ten have identical dimensions and are grouped into data unit 6; 40 have identical dimensions and are grouped into data unit 7; 20 have identical dimensions and are grouped into data unit 8; and so on. After the second batch of business data is grouped, the third batch is grouped, and so on.
[0045] More preferably, to control the resource data of a single data unit, the preset rule further includes: the policy number of each business data in the same data unit is the same. Here, the policy number is not a dimension. Accordingly, step S102 specifically includes: summarizing the business data according to the preset rule to form at least one data unit, and obtaining the resource data of the data unit, wherein the resource data of the data unit is the sum of the resource data of all business data contained in the data unit. The preset rule includes: each dimension of each business data in the same data unit is the same, the policy number of each business data in the same data unit is the same, and the batch of each business data in the same data unit is the same. In a more specific embodiment, to reduce the number of data units, business data with the same dimensions in the same batch of business data are located in the same data unit.
[0046] In another optional implementation, to further reduce the amount of data, the preset rule further includes: the value of the resource data of each data unit is within a preset range. Here, the value of the resource data is not a dimension. Accordingly, step S102 specifically includes: summarizing the business data according to the preset rule to form at least one data unit, and obtaining the resource data of the data unit, wherein the resource data of the data unit is the sum of the resource data of all business data contained in the data unit, and the preset rule includes: each dimension of each business data in the same data unit is the same, and the value of the resource data of each data unit is within a preset range.
[0047] In a specific embodiment, the preset range is 9 to 9.2, meaning that the total amount of policy follow-up expense reimbursement data contained in each data unit is greater than or equal to 9 yuan and less than 9.2 yuan. When the total amount of policy follow-up expense reimbursement data in a data unit is greater than or equal to 9 yuan, the data unit is considered complete. When aggregating business data, the business data is processed in batches. After processing the business data issued earlier, the business data issued later is processed.
[0048] For example, business data has four dimensions: company segment, channel, insurance type, and individual group. In Data Unit 1, the policy follow-up expense reimbursement data is aggregated with the following company segments: Shenzhen company, offline channel, accident insurance, and individual group. Data Unit 1 is considered complete when the total amount of policy follow-up expense reimbursement data included in Data Unit 1 is greater than or equal to 9 yuan. However, if the first batch still has policy follow-up expense reimbursement data with the following company segments: Shenzhen company, offline channel, accident insurance, and individual group not aggregated, then Data Unit 2 is created to aggregate the unaggregated policy follow-up expense reimbursement data with the following company segments: Shenzhen company, offline channel, accident insurance, and individual group. If the total amount of policy follow-up expense reimbursement data contained in data unit 2 is greater than or equal to 9 yuan, and there are still policy follow-up expense reimbursement data for companies in Shenzhen, offline channels, accident insurance, and individual groups that have not been aggregated in the first batch, then data unit 3 will be established to aggregate the unaggregated policy follow-up expense reimbursement data for companies in Shenzhen, offline channels, accident insurance, and individual groups into data unit 3, and so on. If all policy reimbursement data for the first batch of policies involving Shenzhen companies, offline channels, accident insurance, and individuals has been aggregated into Data Unit 3, but the total amount of the policy reimbursement data in Data Unit 3 is less than 9 yuan, then the processing of the second batch of business data begins. The policy reimbursement data for the second batch of policies involving Shenzhen companies, offline channels, accident insurance, and individuals will continue to be aggregated into Data Unit 3 until the total amount of the policy reimbursement data in Data Unit 3 is greater than or equal to 9 yuan. Data Unit 3 is then complete. Ensuring that the resource data values of each data unit are within a preset range effectively avoids the problem of a large number of data units and subsequent large extractions due to excessively small data unit amounts, and also effectively avoids the risks of memory overflow and system crashes during data unit formation due to excessively large data unit amounts.
[0049] S103, the data unit and its resource data are stored in the data pool.
[0050] In this embodiment, business data sent to the reimbursement system is processed in real time. The business data is aggregated into data units and stored in a data pool. This timely aggregation of large volumes of business data into smaller data units avoids data backlog and prevents risks such as long processing times, inefficiency, prolonged data occupation, memory overflow, and system crashes when reimbursement is needed later due to excessive data retrieval. When reimbursement is required later, data units are directly retrieved from the data pool, eliminating the need to retrieve small amounts of business data, thus improving convenience and efficiency.
[0051] In this embodiment, steps S101 to S103 are implemented in real time. That is, as soon as business data is sent to the reimbursement system, steps S101 to S103 are implemented immediately to process the business data into data units and store them in the data pool for retrieval. This effectively avoids risks such as data accumulation, memory overflow, and system crash, and also effectively improves the efficiency of subsequent work.
[0052] S104, obtain target data units that meet the filtering rules from the data pool, summarize the obtained target data units according to the dimensions to form at least one data group, and obtain the resource data of the data group, wherein each dimension of each target data unit in the same data group is the same, and the dimension of the data group is the same as the dimension of the target data units contained in the data group.
[0053] In this embodiment, the dimension of the data group is the same as the dimension of the target data units contained in the data group. For example, if all target data units in a data group have Shenzhen companies as their company segment, offline channels as their channel segment, accident insurance as their insurance type ...
[0054] In an optional implementation, to improve aggregation efficiency, the step of aggregating the acquired target data units according to the dimension to form at least one data group includes:
[0055] The target data unit is allocated to multiple threads for aggregation according to the allocation rules, wherein each thread forms at least one data group.
[0056] In this embodiment, the target data unit is assigned to multiple threads for aggregation. The multiple threads simultaneously aggregate the assigned target data and obtain the resource data of the data group, thereby improving the aggregation efficiency.
[0057] In a more specific implementation, the allocation rule includes: assigning all target data units that are identical in each dimension to the same thread. Correspondingly, the step of summarizing the acquired target data units according to the dimensions to form at least one data group specifically includes: allocating the target data units to multiple threads for summarization according to the allocation rule, wherein each thread forms one data group, and the allocation rule includes: assigning all target data units that are identical in each dimension to the same thread.
[0058] For example, there are four threads: Thread 1, Thread 2, Thread 3, and Thread 4, with 100 target data units. 20 of these target data units share the same dimension: Shenzhen company, offline channel, accident insurance, and individual group. These 20 target data units are all assigned to Thread 1. Another 25 target data units share the same dimension: Guangzhou company, offline channel, property insurance, and group. These 25 target data units are all assigned to Thread 2. Another 15 target data units share the same dimension: Changsha company, offline channel, medical insurance, and group. These 15 target data units are all assigned to Thread 3. Finally, 40 target data units share the same dimension: Shenzhen company, online channel, medical insurance, and group. These 40 target data units are all assigned to Thread 4. Since each thread forms only one data group, all target data units that are identical in every dimension are already located in the same data group. The dimensions of the data groups processed by each thread are not exactly the same. Because only data groups that are identical in every dimension can be aggregated together, there is no need to further aggregate them, making the process simpler.
[0059] In another, more specific implementation, the allocation rule includes: evenly distributing all the target data units to the plurality of threads. Correspondingly, the step of summarizing the acquired target data units according to the dimension to form at least one data group specifically includes: distributing the target data units to the plurality of threads for summarization according to the allocation rule, wherein each thread forms at least one data group, and the allocation rule includes: evenly distributing all the target data units to the plurality of threads. Evenly distributing all the target data units to the plurality of threads makes the data distribution more balanced and helps to keep the threads synchronized as much as possible.
[0060] For example, there are 4 threads: thread 1, thread 2, thread 3, and thread 4, and 100 target data units. These 100 target data units are evenly distributed among threads 1, 2, 3, and 4, with each thread processing 25 target data units.
[0061] Accordingly, before generating the resource allocation list based on the resource data of each target data unit in all the data groups, the method further includes summarizing the data groups that are identical in each dimension.
[0062] In this implementation, since the dimensions are not considered when allocating target data units to multiple threads, multiple threads (Thread 1, Thread 2, Thread 3, and Thread 4) may aggregate data groups with all dimensions being identical. For example, after aggregation, Thread 1 generates two data groups, Data Group 1 and Data Group 2. In Data Group 1, the company segment is Shenzhen Company, the channel is offline channel, the insurance type is accident insurance, and the group is individual. In Data Group 2, the company segment is Guangzhou Company, the channel is offline channel, the insurance type is property insurance, and the group is group. After aggregation, Thread 2 generates three data groups, Data Group 3, Data Group 4, and Data Group 5. In Data Group 3, the company segment is Shenzhen Company, the channel is offline channel, the insurance type is accident insurance, and the group is individual. In Data Group 4, the company segment is Guangzhou Company, the channel is offline channel, the insurance type is property insurance, and the group is group. In Data Group 5, the company segment is Changsha Company, the channel is offline channel, the insurance type is medical insurance, and the group is group. Thread 3 generated two data groups: Data Group 6 and Data Group 7. Data Group 6 has the following data segments: company (Guangzhou company), channel (offline channel), insurance type (property insurance), and group (group). Data Group 7 has the following data segments: company (Shenzhen company), channel (online channel), insurance type (medical insurance), and group (group). Thread 4 generated four data groups: Data Group 8, Data Group 9, Data Group 10, and Data Group 11. Data Group 8 has the following data segments: company (Shenzhen company), channel (offline channel), insurance type (accident insurance), and group (individual). Data Group 9 has the following data segments: company (Guangzhou company), channel (offline channel), insurance type (property insurance), and group (group). Data Group 10 has the following data segments: company (Changsha company), channel (offline channel), insurance type (medical insurance), and group (group). Data Group 11 has the following data segments: company (Shenzhen company), channel (online channel), insurance type (medical insurance), and group (group). In this context, data groups 1, 3, and 8 are identical in every dimension; data groups 2, 4, 6, and 9 are identical in every dimension; data groups 5 and 10 are identical in every dimension; and data groups 7 and 11 are identical in every dimension. Therefore, before generating the resource allocation list based on the resource data of each target data unit in all the data groups, the process further includes: consolidating data groups 1, 3, and 8 into one entity; consolidating data groups 2, 4, 6, and 9 into one entity; consolidating data groups 5 and 10 into one entity; and consolidating data groups 7 and 11 into one entity.
[0063] S105, Generate a resource allocation list based on the resource data of all the data groups, wherein the resource data of the data group is the sum of the resource data of all target data units contained in the data group.
[0064] In some optional embodiments, after forming the resource allocation list, the method further includes: obtaining multiple resource allocation lists, summarizing data groups in the multiple resource allocation lists that are identical in each dimension to form allocation units, wherein the resource data of each allocation unit is not greater than a second predetermined value, and the resource data of the allocation unit is the sum of the resource data of all data groups contained in the allocation unit.
[0065] In this embodiment, the resource allocation list is a reimbursement form. To reduce the number of reimbursement requests, after generating the reimbursement forms, the process further includes: acquiring multiple reimbursement forms, and summarizing data groups with identical dimensions from the multiple reimbursement forms to form allocation units. To avoid reimbursement amounts exceeding a limit, the reimbursement amount for each allocation unit is no greater than a second predetermined value. The amount of each allocation unit is equal to the total reimbursement amount of all data groups contained within the allocation unit. Reimbursement is processed based on the allocation unit.
[0066] In this embodiment, steps S104 to S105 are performed when data needs to be extracted to create a resource allocation list.
[0067] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0068] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0069] Figure 2 This is a schematic diagram of the business data processing apparatus according to the second embodiment of the present invention. This business data processing apparatus 20 corresponds one-to-one with the business data processing methods in the above embodiments. For example... Figure 2As shown, the business data processing device 20 includes a business data acquisition module 21, a data unit acquisition module 22, a storage module 23, a data group acquisition module 24, and a resource allocation list generation module 25. The business data acquisition module 21 is used to acquire business data and all dimensions of the business data in batches. The data unit acquisition module 22 is used to summarize the business data according to preset rules to form at least one data unit, and acquire the resource data of the data unit. The resource data of the data unit is the sum of the resource data of all business data contained in the data unit. The preset rules include that each dimension of each business data in the same data unit is the same. The storage module 23 is used to store the data unit and its resource data in a data pool. The data group acquisition module 24 is used to acquire target data units that meet the filtering rules from the data pool, summarize the acquired target data units according to the dimensions to form at least one data group, and acquire the resource data of the data group. Each dimension of each target data unit in the same data group is the same, and the dimension of the target data unit is the same as the dimension of the business data contained in the target data unit. The resource allocation list generation module 25 is used to generate a resource allocation list based on the resource data of all the data groups, wherein the resource data of the data group is the sum of the resource data of all target data units contained in the data group.
[0070] In an optional implementation, the preset rule in the data unit acquisition module 22 further includes: the batches of the business data in the same data unit are the same. More specifically, if the business data is policy follow-up expense reimbursement data, the preset rule further includes: the policy numbers of the business data in the same data unit are the same.
[0071] In another optional implementation, the preset rule in the data unit acquisition module 22 further includes: the value of the resource data of each data unit is within a preset range.
[0072] In an optional implementation, the data group acquisition module 24, in which the acquired target data units are summarized according to the dimension to form at least one data group, includes:
[0073] The target data unit is allocated to multiple threads for aggregation according to the allocation rules, wherein each thread forms at least one data group.
[0074] Furthermore, in an optional implementation, in the data group acquisition module 24, the allocation rule includes: allocating all the target data units that are identical in each dimension to the same thread.
[0075] Furthermore, in another optional implementation, in the data group acquisition module 24, the allocation rule includes: evenly distributing all the target data units to the plurality of threads;
[0076] Accordingly, before generating the resource allocation list based on the resource data of each target data unit in all the data groups, the method further includes summarizing the data groups that have the same dimension, wherein the dimension of the data group is the same as the dimension of the target data unit contained in the data group.
[0077] Figure 3 This is a schematic diagram of the structure of an electronic device according to the third embodiment of the present invention. Figure 3 As shown, the electronic device 30 includes a processor 31 and a memory 32 coupled to the processor 31. The memory 32 stores program instructions for implementing the service data processing method of any of the above embodiments. When the processor 31 executes the program instructions stored in the memory 32, it implements the steps of the service data processing method in the above embodiments. For example… Figure 1 The steps S101 to S105 shown, as well as other extensions and related steps of the method, are illustrated. Alternatively, when the processor 31 executes the program instructions stored in the memory 32, it implements the functions of each module / unit of the business data processing device in the above embodiments, for example... Figure 2 The functions of the business data acquisition module 21, data unit acquisition module 22, storage module 23, data group acquisition module 24, and resource allocation list generation module 25 are shown. To avoid repetition, they will not be described again here.
[0078] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the computer device, connecting various parts of the computer device via various interfaces and lines.
[0079] The memory can be used to store the computer programs and / or modules. The processor implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, video data, etc.).
[0080] The memory can be integrated into the processor or it can be set up separately from the processor.
[0081] See Figure 4 , Figure 4 This is a schematic diagram of the structure of a storage medium according to a fourth embodiment of the present invention. The storage medium 40 of this embodiment stores program instructions 41 capable of implementing all the above methods. When executed by a processor, the program instructions 41 implement the steps of the business data processing method in the above embodiments. For example… Figure 1 The steps S101 to S105 shown, as well as other extensions and related steps of the method, are illustrated. Alternatively, when the processor 31 executes the program instructions stored in the memory 32, it implements the functions of each module / unit of the business data processing device in the above embodiments, for example... Figure 2 The functions of the business data acquisition module 21, data unit acquisition module 22, storage module 23, data group acquisition module 24, and resource allocation list generation module 25 are shown. To avoid repetition, they will not be described again here.
[0082] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0083] In the embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.
[0084] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units described above can be implemented in hardware or as software functional units. The above are merely embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
[0085] The above description is merely an embodiment of the present invention. It should be noted that those skilled in the art can make improvements without departing from the inventive concept of the present invention, but these improvements all fall within the protection scope of the present invention.
Claims
1. A business data processing method, characterized in that, include: Batch retrieve business data and all dimensions of the business data; The business data is aggregated according to preset rules to form at least one data unit, and the resource data of the data unit is obtained. The resource data of the data unit is the sum of the resource data of all business data contained in the data unit. The preset rules include: each dimension of each business data in the same data unit is the same, and the value of the resource data of each data unit is within a preset range. The step of summarizing the business data according to preset rules to form at least one data unit includes: when the sum of the resource data of the business data contained in any data unit reaches the lower limit of the preset range, the data unit is formed; after the data unit is formed, if there is still business data that is the same as each dimension of the data unit and has not been summarized, a new data unit is created, and the unsummarized business data is summarized into the new data unit; after the current batch of business data is processed, if the sum of the resource data of the data unit being summarized has not reached the lower limit of the preset range, the business data in the next batch that is the same as each dimension of the data unit is summarized into the data unit, until the sum of the resource data of the data unit reaches the lower limit of the preset range; The data unit and its resource data are stored in the data pool; Target data units that meet the filtering rules are obtained from the data pool. The obtained target data units are summarized according to the dimensions to form at least one data group. Resource data of the data group is obtained. Each dimension of each target data unit in the same data group is the same. The dimension of the target data unit is the same as the dimension of the business data contained in the target data unit. A resource allocation list is generated based on the resource data of all the data groups, wherein the resource data of the data group is the sum of the resource data of all target data units contained in the data group.
2. The business data processing method as described in claim 1, characterized in that, The preset rule also includes: the batches of the business data in the same data unit are the same.
3. The business data processing method as described in claim 2, characterized in that, The business data is policy tracking expense reimbursement data, and the preset rule also includes: the policy number of each business data in the same data unit is the same.
4. The business data processing method according to claim 1, characterized in that, The step of summarizing the acquired target data units according to the dimension to form at least one data group includes: The target data unit is allocated to multiple threads for aggregation according to the allocation rules, wherein each thread forms at least one data group.
5. The business data processing method as described in claim 4, characterized in that, The allocation rule includes: all target data units that are identical in each dimension are allocated to the same thread.
6. The business data processing method as described in claim 4, characterized in that, The allocation rule includes: distributing all the target data units equally among the multiple threads; Accordingly, before generating the resource allocation list based on the resource data of each target data unit in all the data groups, the method further includes summarizing the data groups that have the same dimension, wherein the dimension of the data group is the same as the dimension of the target data unit contained in the data group.
7. A business data processing apparatus, the apparatus being used to implement the steps of the business data processing method as described in any one of claims 1-6, characterized in that, include: The business data acquisition module is used to acquire business data in batches and all dimensions of the business data. The data unit acquisition module is used to summarize the business data according to preset rules to form at least one data unit, and acquire the resource data of the data unit. The resource data of the data unit is the sum of the resource data of all business data contained in the data unit. The preset rules include: each dimension of each business data in the same data unit is the same. A storage module is used to store the data unit and its resource data in a data pool; The data group acquisition module is used to acquire target data units that meet the filtering rules from the data pool, summarize the acquired target data units according to the dimensions to form at least one data group, and acquire the resource data of the data group. In the same data group, each dimension of each target data unit is the same, and the dimension of the target data unit is the same as the dimension of the business data contained in the target data unit. The resource allocation list generation module is used to generate a resource allocation list based on the resource data of all the data groups, wherein the resource data of the data group is the sum of the resource data of all target data units contained in the data group.
8. An electronic device, characterized in that, The system includes a processor and a memory coupled to the processor, the memory storing program instructions executable by the processor; when the processor executes the program instructions stored in the memory, it implements the business data processing method as described in any one of claims 1 to 6.
9. A storage medium, characterized in that, The storage medium stores program instructions, which, when executed by a processor, implement the business data processing method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Social security finance and accounting management and control system
CN105243519A
Data aggregation processing device and method and storage medium
CN111949681A
