Resource processing method and device
By introducing real-time processing and non-real-time processing modes in resource processing, and using real-time processing intermediate tables and pre-configured processing dimensions to generate resource data tables, the problems of low resource processing efficiency and large data errors in the existing technology are solved, and the Efficient and accurate resource processing, and reduced operation and maintenance costs.
Patent Information
- Application Number
- CN202411178584.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-10-25
AI Technical Summary
Existing resource processing methods are inefficient, cannot meet the needs of large-scale data processing, are prone to errors, lead to large data errors, and require a large amount of human resources and high operation and maintenance costs.
Provide an automatic and efficient resource processing method. Through real-time processing and non-real-time processing modes, real-time processing intermediate tables and pre-configured processing dimensions are used to generate resource data tables to achieve data accuracy and flexibility and reduce operation and maintenance costs.
It improves the efficiency and accuracy of resource processing, reduces operation and maintenance costs, improves the flexibility and personalization of data tables through configurable processing dimensions, expands the scope of applications, and improves the adaptability of the method.
Smart Images

Figure CN118838899A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for resource processing. Background Art
[0002] Resource processing is indispensable in various business scenarios, such as scheduled cleanup of business data, preprocessing of business data, and scheduled detection of business data, which can be further visualized as the processing of expense data for financial business, such as revenue and expenditure summary, expense settlement, etc., or the processing of warehousing business data, such as scheduled query of inventory data, etc. Existing resource processing is usually achieved by offline manual data extraction and logical processing in Excel.
[0003] In the process of implementing the present invention, the inventors found that the prior art has the following problems:
[0004] Existing resource processing methods are inefficient and cannot meet the needs of large-scale data processing. Moreover, errors are prone to occur during the resource processing process, resulting in large data errors. In addition, a large amount of human resources is required, and the operation and maintenance costs are high. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method and device for resource processing, which realizes an automatic and efficient resource processing, which not only improves the efficiency and accuracy of resource processing and reduces operation and maintenance costs, but also improves the flexibility and personalization of generating data tables through configurable processing dimensions, thereby expanding the scope of application and improving the adaptability of the method.
[0006] To achieve the objective, according to one aspect of an embodiment of the present invention, a method for resource processing is provided, comprising:
[0007] In response to receiving the resource processing request, determining a corresponding processing mode;
[0008] When the processing mode is real-time processing, a resource data table is generated according to the real-time processing intermediate table;
[0009] In the case where the processing mode is non-real-time processing, the business data to be processed is obtained from the resource detail table according to the pre-configured processing dimension, and a resource data table is generated according to the business data to be processed.
[0010] Optionally, a resource data table is generated based on a real-time processing intermediate table, including: pulling a target list of data tables to be generated from the real-time processing intermediate table, the real-time processing intermediate table having the ability to process resource data details in real time; obtaining resource data based on the target list, checking whether the resource data is a positive value, and generating a resource data table if the resource data is a positive value.
[0011] Optionally, before pulling the target list of data tables to be generated from the real-time processing intermediate table, the method further includes: verifying the data content in the real-time processing intermediate table according to a preset verification strategy, and confirming that the verification passes.
[0012] Optionally, after obtaining the resource data according to the target list, the method further includes: obtaining target resource details and calculating standard resource data according to the target list; using the standard resource data to verify the resource data, and if the verification fails, using the standard resource data to replace the resource data, and updating the data in the target list according to the standard resource data.
[0013] Optionally, according to the pre-configured processing dimensions, the business data to be processed is obtained from the resource details table, including: according to the pre-configured processing dimensions, corresponding dimension fields are generated to form a dimension field string; and corresponding business data to be processed is obtained from the resource details table according to the order of each dimension field in the dimension field string.
[0014] Optionally, in the case where multiple processing dimensions are pre-configured, the business data to be processed is obtained from the resource details table, including: generating dimension fields of each processing dimension according to the pre-configured processing dimensions; assembling the dimension fields of each processing dimension into a corresponding dimension field string, and determining the corresponding data table identifier; according to the data table identifier, grouping the business data to be processed obtained from the resource details table according to each dimension field string to obtain the business data groups to be processed corresponding to each processing dimension, so as to generate the resource data table corresponding to each processing dimension.
[0015] Optionally, a resource data table is generated according to the business data to be processed, including: calculating resource data according to the business data to be processed; searching whether there is a resource data table with the same dimension as the processing dimension, and if the resource data table with the same dimension is found, adding the resource data to the resource data table with the same dimension, and using the resource data table with the same dimension as the final resource data table; if the resource data table with the same dimension is not found, creating a new resource data table, adding the resource data to the newly created resource data table, and obtaining a resource data table.
[0016] Optionally, the method further comprises: monitoring the execution process of generating the resource data table, and issuing an alarm prompt signal when abnormal data or abnormal steps are monitored.
[0017] According to a second aspect of an embodiment of the present invention, a device for resource processing is provided, including:
[0018] A mode determination module, configured to determine a corresponding processing mode in response to receiving a resource processing request;
[0019] A real-time processing module, used to generate a resource data table according to the real-time processing intermediate table when the processing mode is real-time processing;
[0020] The non-real-time processing module is used to obtain the business data to be processed from the resource detail table according to the pre-configured processing dimensions when the processing mode is non-real-time processing, and generate a resource data table according to the business data to be processed.
[0021] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for resource processing, including:
[0022] one or more processors;
[0023] a storage device for storing one or more programs,
[0024] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.
[0025] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0026] An embodiment of the invention has the following advantages or beneficial effects: by responding to receiving a resource processing request, the corresponding processing mode is determined; when the processing mode is real-time processing, a resource data table is generated according to the real-time processing intermediate table; when the processing mode is non-real-time processing, the business data to be processed is obtained from the resource detail table according to the pre-configured processing dimensions, and a technical solution of generating a resource data table according to the business data to be processed realizes an automatic and efficient resource processing, which not only improves the efficiency and accuracy of resource processing and reduces operation and maintenance costs, but also improves the flexibility and personalization of generating data tables through configurable processing dimensions, thereby expanding the scope of application and improving the adaptability of the method. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0028] Figure 1 is a schematic diagram of the main process of the resource processing method according to an embodiment of the present invention;
[0029] Figure 2 is a schematic diagram of a real-time processing flow of an embodiment of the present invention;
[0030] Figure 3 is a flowchart of non-real-time processing according to an embodiment of the present invention;
[0031] Figure 4 is a schematic diagram of main modules of a device for resource processing according to an embodiment of the present invention;
[0032] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0033] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0034] It should be noted that in the technical solution of the present invention, the collection / collection, update, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by national regulatory authorities. Necessary measures should be taken for user personal information to selectively block the use or access to personal information data to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. In addition, once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0035] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0036] Existing resource processing methods are inefficient and cannot meet the needs of large-scale data processing. Moreover, errors are prone to occur during the resource processing process, resulting in large data errors. In addition, a large amount of human resources is required, and the operation and maintenance costs are high, which cannot meet the actual application needs well.
[0037] In order to solve the above problems existing in the prior art, the present invention proposes a resource processing method, which provides resource processing in two modes: real-time processing and non-real-time processing. A real-time resource data table is generated by processing an intermediate table in real time. In the non-real-time processing scenario, a resource data table that meets the needs is generated according to the configured processing dimension. An automatic and efficient resource processing is realized, which not only improves the efficiency and accuracy of resource processing and reduces operation and maintenance costs, but also improves the flexibility and personalization of generating data tables through configurable processing dimensions, thereby expanding the scope of application and improving adaptability.
[0038] Figure 1 is a schematic diagram of the main process of the resource processing method according to an embodiment of the present invention, such as Figure 1 As shown, the resource processing method of the embodiment of the present invention includes the following steps S101 to S103.
[0039] Step S101: In response to receiving a resource processing request, determine a corresponding processing mode.
[0040] Specifically, the system receives a resource processing request, which is usually triggered by a scheduled task. Of course, the resource processing request can also be sent through a front-end page according to business needs. The embodiment of the present invention supports resource processing in different processing modes, and a processing mode can be set in advance as a default processing mode, or the required processing mode information can be encapsulated in the resource processing request. When the system receives a resource processing request, it determines the corresponding processing mode by parsing the resource processing request.
[0041] Step S102: when the processing mode is real-time processing, generate a resource data table according to the real-time processing intermediate table.
[0042] Specifically, the processing mode of the embodiment of the present invention includes a real-time processing mode. Considering that real-time processing requires efficient and fast data aggregation and integration, the embodiment of the present invention establishes a real-time processing intermediate table in the system. The real-time processing intermediate table can obtain all resource data details related to the system through a dedicated interactive interface. The operator or developer has clearly set the specific processing dimensions of the resource data table to be generated in the real-time processing intermediate table. For example, to generate the platform promotion activity expenses of Merchant A, the real-time processing intermediate table pulls the resource data details of the processing dimension from the resource detail table and superimposes the real-time resource data. When the processing mode is determined to be real-time processing, the system directly obtains the relevant data of the resource data table to be generated from the real-time processing intermediate table to generate a real-time resource data table.
[0043] According to one embodiment of the present invention, a resource data table is generated based on a real-time processing intermediate table, including: pulling a target list of data tables to be generated from the real-time processing intermediate table, the real-time processing intermediate table having the ability to process resource data details in real time; obtaining resource data based on the target list, checking whether the resource data is a positive value, and generating a resource data table if the resource data is a positive value.
[0044] Specifically, considering that resource processing is for different users, the demands of each user may be different. The commonly used multiple processing dimensions can be summarized in the real-time processing intermediate table. The system then pulls the target list corresponding to the processing dimension from the real-time processing intermediate table according to the dimension to be processed contained in the received resource processing request, which is equivalent to target data screening. Finally, the resource data of this resource processing is obtained according to the target list. It can be understood that in some business scenarios, there will be cases where the resource data is negative, such as for business services that merchants plan to participate in and have paid deposits, but fail to participate due to other factors, or apply in advance not to participate, and need to return the deposit. Therefore, after obtaining the resource data, it is necessary to check whether the resource data is positive. If it is positive, generate the corresponding real-time resource data table. If it is negative, there is no need to generate a real-time resource data table, and wait for the next resource processing to merge into other positive data tables of the merchant.
[0045] It can be understood that the resource processing of the embodiment of the present invention can be applied to the transaction settlement of financial services as well as the timed query of inventory data of warehousing services. The real-time processing intermediate table in the system can obtain the details of the in-and-out quantities of various inventory items through a dedicated interactive interface. The operator or developer clearly sets the specific processing dimension in the real-time processing intermediate table. For example, the in-and-out quantity of a certain brand of mobile phone products in the past month is generated. The real-time processing intermediate table pulls the corresponding in-and-out details from the resource detail table and performs real-time data superposition. Further, the system pulls the target list corresponding to the processing dimension from the real-time processing intermediate table according to the required processing dimension contained in the received resource processing request, which is equivalent to target data screening. For example, the required processing dimension is the in-and-out quantity of a certain brand A, B, and C model mobile phone products in the past week. Finally, according to the target list, the inventory data required for this time is obtained. It can be understood that in some business scenarios, there will be situations where the inventory data is negative, so after obtaining the resource data, it is necessary to check whether the resource data is positive. If it is positive, the corresponding real-time inventory data table is generated. If it is a negative value, there is no need to generate a real-time inventory data table, and the negative value result is fed back to the purchasing system in real time. According to another embodiment of the present invention, before pulling the target list of data tables to be generated from the real-time processing intermediate table, the method further includes: verifying the data content in the real-time processing intermediate table according to a preset verification strategy, and confirming that the verification passes.
[0046] Specifically, the real-time processing intermediate table of the embodiment of the present invention has the ability to store and aggregate data as well as the ability to verify data. Before pulling the target list of the data table to be generated from the real-time processing intermediate table, each detailed data (data name and data value) obtained from the real-time processing intermediate table is verified according to a preset verification strategy, such as a data format verification strategy, a data integrity verification strategy, etc., to determine whether the obtained detailed data is correct and has no abnormalities.
[0047] According to another embodiment of the present invention, after obtaining the resource data according to the target list, the method further includes: obtaining target resource details and calculating standard resource data according to the target list; using the standard resource data to verify the resource data, and if the verification fails, using the standard resource data to replace the resource data, and updating the data in the target list according to the standard resource data.
[0048] Specifically, the data in the real-time processing intermediate table is usually accurate, but there are inevitable special cases. For example, taking transaction settlement as an example, after obtaining the settlement amount, due to the instability of the system network, a delay occurs when forwarding the settlement amount to the subsystem responsible for generating the resource data table, resulting in a large time interval for the subsystem to receive data, and new settlement fees may be generated at this time; or, when obtaining detailed data in the real-time processing intermediate table, there is a delay in the detailed data. Therefore, in order to further ensure the accuracy of resource data, when the above-mentioned real-time processing intermediate table obtains resource details, the obtained resource details will be marked with the location identifier of the resource details in the real-time processing intermediate table. In this way, after obtaining resource data according to the target list, the specific location of the resource data to be checked in the resource detail table is determined according to the target list, and then the target resource details in the resource detail table are obtained to calculate the standard resource data.
[0049] Furthermore, the standard resource data obtained by the above calculation is used to check the resource data obtained by the real-time processing intermediate table. If the two are the same, it means that the verification is successful; if the two are different, it means that the verification fails. At this time, the standard resource data is used as the basis to replace the settlement amount, and the standard resource data is used to perform consistency check and update the data stored in the target list of the real-time processing intermediate table. If there is inconsistency, the data in the target list is updated to achieve data consistency and ensure the accuracy of subsequent resource processing.
[0050] Figure 2The flowchart of the real-time processing of the embodiment of the present invention is shown in FIG. The resource detail table accesses various resource details of the platform through the interactive interface, and the real-time processing intermediate table obtains the resource details to be processed from the resource detail table in real time and summarizes and superimposes them. The scheduled resource processing task triggers the real-time resource processing request. The system receives the real-time resource processing request and pulls the target list corresponding to the processing dimension from the real-time processing intermediate table according to the target processing dimension contained in the request to obtain resource data. Then, according to the target list, the target resource details are obtained from the resource detail table, the standard resource data is calculated, and the standard resource data is used to check the resource data obtained from the real-time processing intermediate table. If the two data are consistent and the check is passed, it is judged whether the resource data is a negative value. If it is a positive value, the corresponding real-time resource data table is generated; if it is a negative value, it is not necessary to generate the real-time resource data table. If the two data are inconsistent and the check is not passed, the standard resource data is used to check and update the data of the target list of the real-time processing intermediate table, and then the positive and negative values of the resource data are judged and processed according to the above method.
[0051] Step S103: when the processing mode is non-real-time processing, the business data to be processed is obtained from the resource detail table according to the pre-configured processing dimension, and a resource data table is generated according to the business data to be processed.
[0052] Specifically, the processing mode of the embodiment of the present invention also includes non-real-time processing, such as settling the expenses of the previous month at the beginning of the current month. In this business scenario, since the real-time requirement is not high, there is no need to establish a real-time processing intermediate table. According to the pre-configured processing dimension, the corresponding business data to be processed can be automatically obtained from the resource detail table according to the processing dimension, and the data can be summarized to generate a personalized resource data table.
[0053] According to one embodiment of the present invention, based on pre-configured processing dimensions, the business data to be processed is obtained from a resource detail table, including: generating corresponding dimension fields according to the pre-configured processing dimensions to form a dimension field string; and obtaining the corresponding business data to be processed from the resource detail table according to the order of each dimension field in the dimension field string.
[0054] Specifically, an embodiment of the present invention provides a configuration page for processing dimensions, and operations or R&D personnel can quickly and easily configure the required processing dimensions through a visualization page. The specific processing dimensions support the selection of existing dimensions, and can also create new personalized processing dimensions, such as merchant ID + activity ID in transaction settlement. In addition, the configuration page can also obtain the recipient of the resource data table, so that the subsequently generated resource data table can be pushed directly to the recipient. According to the processing dimensions received by the configuration page, the corresponding dimension fields are generated to form a dimension field string. The dimension field string not only reflects the components of the data table, but also includes the sequential relationship between the various components. Then, according to the dimension field string, the to-be-processed business data corresponding to each dimension field is obtained in order from the resource detail table.
[0055] According to another embodiment of the present invention, in the case where multiple processing dimensions are pre-configured, the business data to be processed is obtained from the resource details table, including: generating dimension fields of each processing dimension according to the pre-configured processing dimensions; assembling the dimension fields of each processing dimension into corresponding dimension field strings, and determining the corresponding data table identifier; according to the data table identifier, grouping the business data to be processed obtained from the resource details table according to each dimension field string to obtain the business data groups to be processed corresponding to each processing dimension, so as to generate the resource data table corresponding to each processing dimension.
[0056] Usually, in the face of different needs, multiple corresponding processing dimensions are configured. In the case of multiple processing dimensions, the dimension fields of each processing dimension are generated according to the pre-configured multiple processing dimensions, and the dimension fields of each processing dimension are assembled into corresponding dimension field strings, which are distinguished by assigning corresponding data table identifiers. For example, there are two settlement dimensions, one is the monthly settlement of merchant A's activity 1, and the other is the monthly settlement of merchant B's activity 2. Then the dimension field strings are nameA-S1 and nameB-S2 respectively. Correspondingly, the corresponding data table identifiers can be defined as A-1 and B-2.
[0057] Furthermore, the corresponding business data to be processed is obtained from the resource details table according to the dimension field string, and the business data to be processed of the same dimension field string is sequentially placed in a group, thereby realizing the grouping of the business data to be processed of multiple processing dimensions, so as to count and summarize the business data to be processed in each group and generate the resource data table corresponding to each processing dimension.
[0058] The flexibility of resource processing is ensured by configuring multiple processing dimensions in the embodiment of the present invention, and the embodiment of the present invention also provides a data table merging option in the configuration interface. When multiple processing dimensions are configured, upon receiving a data table merging request, the resource data tables corresponding to the specified processing dimensions can be merged to generate a master data table. For example, there are settlement dimensions: Merchant 1-Activity 1, and Merchant 1-Activity 2, then the resource data tables corresponding to these two settlement dimensions can be merged into Merchant 1-Activity 1+Activity 2, so that while counting each processing dimension, the total monthly settlement expenses of Merchant 1 in Activity 1 and Activity 2 can also be counted.
[0059] According to another embodiment of the present invention, a resource data table is generated according to the business data to be processed, including: calculating resource data according to the business data to be processed; searching whether there is a resource data table with the same dimension as the processing dimension, and if the resource data table with the same dimension is found, adding the resource data to the resource data table with the same dimension, and using the resource data table with the same dimension as the final resource data table; if the resource data table with the same dimension is not found, creating a new resource data table, adding the resource data to the newly created resource data table, and obtaining a resource data table.
[0060] Specifically, the resource data is statistically calculated based on the acquired business data to be processed. The resource processing business is a time-continuous data superposition operation. After obtaining the business data to be processed corresponding to the processing dimension, it is necessary to search the storage unit storing the resource data table to see whether there is a resource data table with the same dimension as the processing dimension. If there is a resource data table with the same dimension, the calculated resource data is added to the resource data table with the same dimension, and the resource data is superimposed to obtain the resource data of the current processing dimension, and this resource data table is used as the final resource data table. If the resource data table with the same dimension is not found, a corresponding resource data table is newly created, and the resource data is added to the newly created resource data table to obtain the corresponding resource data table.
[0061] Figure 3It is a flowchart of non-real-time processing of an embodiment of the present invention. Each resource detail table of the system is stored in the form of a sub-library and sub-table, and the processing dimension configuration page stores the configuration data in the processing dimension configuration table. The system pulls the configuration data from the processing dimension configuration table, generates the dimension field, and can also pull the required business data to be processed. Then assemble the dimension fields of each processing dimension into a corresponding dimension field string, and determine the corresponding data table identifier. According to the dimension field string, the various business data to be processed are orderly connected in the memory, and the processing dimensions are grouped to obtain the business data group to be processed required by the resource data table corresponding to each processing dimension. According to the grouping, the resource data under each processing dimension is counted separately, and then the storage unit storing the resource data table is searched to see whether there is a resource data table with the same dimension as the processing dimension. If there is, the resource data is added to the resource data table with the same dimension, and the resource data is superimposed and calculated to obtain the final resource data table; if not, a resource data table of the processing dimension is newly created, and the corresponding resource data is added to obtain the corresponding resource data table. If the upstream continues to send or sends non-real-time processing tasks in batches, the above execution process will be looped. When the upstream no longer sends non-real-time processing tasks, the non-real-time resource processing is completed.
[0062] According to an embodiment of the present invention, the method further comprises: monitoring the execution process of generating the resource data table, and issuing an alarm prompt signal when abnormal data or abnormal steps are monitored.
[0063] Specifically, in the process of generating the resource data table in the above-mentioned real-time processing mode or non-real-time processing mode, the system's monitoring module is responsible for monitoring the status of the entire process. When it monitors that abnormal resource data has been obtained, or abnormal resource data has been generated after superposition, or there are steps with abnormal return values, an alarm prompt message is sent to the operation or R&D personnel so that the background can detect the abnormality in time and quickly restore the normal execution process.
[0064] The embodiment of the present invention can generate a resource data table in real time through automated resource processing, thereby improving resource processing efficiency; by verifying the data of the real-time processing intermediate table and checking the resource data, the accuracy of real-time processing is guaranteed, and the automated calculation also reduces the data errors caused by human operation; at the same time, due to the improvement in efficiency, the labor cost will be reduced and the economic benefits will be improved; in addition, the processing dimensions are configured according to actual needs, so that the generation of the data table is more flexible and personalized, thereby expanding the application scope of the method and improving the adaptability.
[0065] Figure 4 FIG. 1 is a schematic diagram of the main modules of the device for resource processing according to an embodiment of the present invention. Figure 4As shown, the resource processing device 400 mainly includes a mode determination module 401, a real-time processing module 402 and a non-real-time processing module 403.
[0066] A mode determination module 401, configured to determine a corresponding processing mode in response to receiving a resource processing request;
[0067] A real-time processing module 402, used to generate a resource data table according to the real-time processing intermediate table when the processing mode is real-time processing;
[0068] The non-real-time processing module 403 is used to obtain the business data to be processed from the resource list according to the pre-configured processing dimensions when the processing mode is non-real-time processing, and generate a resource data table according to the business data to be processed.
[0069] According to one embodiment of the present invention, the real-time processing module 402 further includes: pulling a target list of data tables to be generated from the real-time processing intermediate table, the real-time processing intermediate table having the ability to process resource data details in real time; obtaining resource data according to the target list, checking whether the resource data is a positive value, and generating a resource data table when the resource data is a positive value.
[0070] According to another embodiment of the present invention, the resource processing device 400 also includes a verification module (not shown in the figure), which is used to: before pulling the target list of data tables to be generated from the real-time processing intermediate table, verify the data content in the real-time processing intermediate table according to a preset verification strategy, and confirm that the verification has passed.
[0071] According to another embodiment of the present invention, the resource processing device 400 also includes a result verification module (not shown in the figure), which is used to: after obtaining the resource data according to the target list, obtain the target resource details according to the target list and calculate the standard resource data; use the standard resource data to verify the resource data, if the verification fails, use the standard resource data to replace the resource data, and update the data in the target list according to the standard resource data.
[0072] According to another embodiment of the present invention, the non-real-time processing module 403 is further used to: generate corresponding dimension fields according to pre-configured processing dimensions to form a dimension field string; and obtain corresponding business data to be processed from the resource details table according to the order of each dimension field in the dimension field string.
[0073] According to another embodiment of the present invention, in the case where multiple processing dimensions are pre-configured, the non-real-time processing module 403 is also used to: generate dimension fields of each processing dimension according to the pre-configured processing dimensions; assemble the dimension fields of each processing dimension into corresponding dimension field strings, and determine the corresponding data table identifier; group the business data to be processed obtained from the resource detail table according to each dimension field string according to the data table identifier to obtain the business data groups to be processed corresponding to each processing dimension, so as to generate the resource data table corresponding to each processing dimension.
[0074] According to another embodiment of the present invention, the non-real-time processing module 403 is further used to: calculate resource data based on the business data to be processed; search whether there is a resource data table with the same dimension as the processing dimension, and if the resource data table with the same dimension is found, add the resource data to the resource data table with the same dimension, and use the resource data table with the same dimension as the final resource data table; if the resource data table with the same dimension is not found, create a new resource data table, add the resource data to the newly created resource data table, and obtain a resource data table.
[0075] According to another embodiment of the present invention, the resource processing device 400 further includes a monitoring module (not shown in the figure) for monitoring the execution process of generating the resource data table, and issuing an alarm prompt signal when abnormal data or abnormal steps are monitored.
[0076] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention can be applied.
[0077] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0078] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications, such as resource processing applications, etc., can be installed on terminal devices 501, 502, 503 (only as examples).
[0079] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0080] The server 505 may be a server that provides various services, such as a background management server (only an example) that provides support for resource processing performed by users using terminal devices 501, 502, and 503. The background management server may determine the corresponding processing mode in response to receiving a resource processing request; if the processing mode is real-time processing, generate a resource data table according to the real-time processing intermediate table; if the processing mode is non-real-time processing, obtain the business data to be processed from the resource list according to the pre-configured processing dimensions, generate a resource data table according to the business data to be processed, and feed back the processing results (such as the resource data table, etc. - only an example) to the terminal device.
[0081] It should be noted that the resource processing method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the resource processing device is generally set in the server 505 .
[0082] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0083] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. Figure 6 The terminal device or server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0084] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0085] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0086] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0087] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination thereof.
[0088] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0089] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be arranged in a processor, for example, it may be described as follows: a processor includes: a mode determination module, a real-time processing module and a non-real-time processing module.
[0090] The names of these modules do not, in some cases, constitute a limitation on the modules themselves. For example, the mode determination module can also be described as “a module for determining a corresponding processing mode in response to receiving a resource processing request”.
[0091] On the other hand, the present invention also provides a computer-readable medium, which may be included in the device described in the embodiment; or may exist independently without being assembled into the device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by the device, the device includes: determining the corresponding processing mode in response to receiving a resource processing request; generating a resource data table according to the real-time processing intermediate table when the processing mode is real-time processing; and obtaining the business data to be processed from the resource detail table according to the pre-configured processing dimension when the processing mode is non-real-time processing, and generating a resource data table according to the business data to be processed.
[0092] The technical solution according to the embodiment of the present invention has the following advantages or beneficial effects: by responding to receiving a resource processing request, a corresponding processing mode is determined; when the processing mode is real-time processing, a resource data table is generated according to a real-time processing intermediate table; when the processing mode is non-real-time processing, the business data to be processed is obtained from a resource detail table according to a pre-configured processing dimension, and a technical solution of generating a resource data table according to the business data to be processed realizes an automatic and efficient resource processing, which not only improves the efficiency and accuracy of resource processing and reduces operation and maintenance costs, but also improves the flexibility and personalization of generating data tables through configurable processing dimensions, thereby expanding the scope of application and improving the adaptability of the method.
[0093] The specific implementation methods described herein do not constitute limitations on the scope of protection of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included in the scope of protection of the present invention.
Claims
1. A method for resource processing, characterized in that: include: In response to receiving the resource processing request, determining a corresponding processing mode; When the processing mode is real-time processing, a resource data table is generated according to the real-time processing intermediate table; In the case where the processing mode is non-real-time processing, the business data to be processed is obtained from the resource detail table according to the pre-configured processing dimension, and a resource data table is generated according to the business data to be processed.
2. The method according to claim 1, characterized in that Generate resource data tables based on real-time processing intermediate tables, including: Pulling a target list of data tables to be generated from the real-time processing intermediate table, wherein the real-time processing intermediate table has the ability to process resource data details in real time; According to the target list, resource data is obtained, and it is checked whether the resource data is a positive value. If the resource data is a positive value, a resource data table is generated.
3. The method according to claim 2, characterized in that Before pulling the target list of data tables to be generated from the real-time processing intermediate table, the method further includes: According to the preset verification strategy, the data content in the real-time processing intermediate table is verified, and it is confirmed that the verification passes.
4. The method according to claim 2, characterized in that: After obtaining resource data according to the target list, the method further includes: According to the target list, obtain target resource details and calculate standard resource data; The resource data is checked using the standard resource data, and if the check fails, the resource data is replaced by the standard resource data, and the data in the target list is updated according to the standard resource data.
5. The method according to claim 1, characterized in that According to the pre-configured processing dimensions, the business data to be processed is obtained from the resource details table, including: Generate corresponding dimension fields according to the pre-configured processing dimensions to form a dimension field string; The corresponding business data to be processed is obtained from the resource detail table according to the order of each dimension field in the dimension field string.
6. The method according to claim 1, characterized in that When multiple processing dimensions are pre-configured, the business data to be processed is obtained from the resource detail table, including: Generate dimension fields for each processing dimension based on pre-configured processing dimensions; Assembling the dimension fields of each processing dimension into a corresponding dimension field string, and determining a corresponding data table identifier; According to the data table identifier, the business data to be processed obtained from the resource details table according to each of the dimension field strings are grouped to obtain the business data groups to be processed corresponding to each processing dimension, so as to generate a resource data table corresponding to each processing dimension.
7. The method according to claim 1, characterized in that Generate a resource data table according to the service data to be processed, including: Calculating resource data according to the business data to be processed; Find out whether there is a resource data table with the same dimension as the processing dimension, and if the resource data table with the same dimension is found, add the resource data to the resource data table with the same dimension, and use the resource data table with the same dimension as the final resource data table; If the resource data table with the same dimension is not found, a new resource data table is created, and the resource data is added to the new resource data table to obtain a resource data table.
8. The method according to claim 1, characterized in that The method further comprises: Monitor the execution process of generating the resource data table, and issue an alarm prompt signal when abnormal data or abnormal steps are monitored.
9. A resource processing device, characterized in that: include: A mode determination module, configured to determine a corresponding processing mode in response to receiving a resource processing request; A real-time processing module, used to generate a resource data table according to the real-time processing intermediate table when the processing mode is real-time processing; The non-real-time processing module is used to obtain the business data to be processed from the resource detail table according to the pre-configured processing dimensions when the processing mode is non-real-time processing, and generate a resource data table according to the business data to be processed.
10. A mobile electronic device terminal, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
11. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Real-time data processing method and device
CN106202081A
Data processing method and device, computer device and storage medium
CN109885624A
Business data verification method and device, computer equipment and storage medium
CN112800040A
Data processing method and device and electronic equipment
CN117591536A
Access control method and device
EP2854446A1
