Object processing method and device, equipment, storage medium and program product
By obtaining the type and region information of sub-objects and calculating differentiated incremental parameters, the problem of low accuracy in incremental processing in existing technologies is solved, enabling refined and dynamic object processing and improving processing accuracy and efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA CONSTRUCTION BANK
- Filing Date
- 2025-12-30
- Publication Date
- 2026-04-10
AI Technical Summary
In existing technologies, the accuracy of incremental processing is low due to changes in the source type of business objects, making it impossible to achieve refined and dynamic object processing.
By obtaining the type and region information of the sub-objects, the first parameter of differentiation is determined, the increment of each sub-object in the first time period is calculated, and data that has not completed the increment processing is filtered out by the identifier, and finally the second increment of the first object is determined.
It achieves refined and dynamic object processing, improves the accuracy and efficiency of incremental processing, and ensures the accuracy of the first increment of the sub-object and the reliability of the second increment of the first object.
Smart Images

Figure CN121836626A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to an object processing method, apparatus, device, storage medium, and program product. Background Technology
[0002] In multi-stage, multi-participant business processes, periodic status quantification and result feedback for business objects under supervision have become a common requirement. In order to improve user satisfaction, it is necessary to perform refined incremental processing on these business objects.
[0003] In related technologies, a unified incremental parameter method is generally used for incremental processing of objects. That is, based on the unified incremental parameter, the increment generated by the business object within a preset time period is calculated, and then the object processing operation is completed.
[0004] However, during the above process, the source type of the business object may change, and the incremental parameters corresponding to business objects of different source types may be different, resulting in low accuracy of incremental processing of the object. Summary of the Invention
[0005] This application provides an object processing method, apparatus, device, storage medium, and program product to solve the technical problem of low accuracy in incremental processing of objects.
[0006] In a first aspect, embodiments of this application provide an object processing method, including:
[0007] Obtain the type of each sub-object in the first object, the region information of each sub-object, and the value of the first object corresponding to each sub-object in each first time period of the preset period;
[0008] Based on the type and region information of each first time period and each sub-object, the first parameter corresponding to each sub-object in each first time period is determined. The first parameter is used to determine the increment of the object value of the sub-object in the first time period.
[0009] Based on the multiple first object values and multiple first parameters corresponding to each sub-object in the first time period, the first increment generated by each sub-object in each first time period is determined, and each sub-object is marked to obtain multiple first identifiers. The first identifiers are used to indicate that the sub-object has not completed the increment processing in the first time period.
[0010] Based on the multiple first increments and multiple first identifiers corresponding to each sub-object, determine the second increment generated by the first object within a preset period.
[0011] In one possible implementation, for any first time period of a sub-object, the first object value corresponding to each sub-object in each first time period of a preset period is obtained, including:
[0012] Retrieve the object value of the child object in the first time period;
[0013] If the object value of the child object does not change during the first time period, then the object value of the child object will be determined as the first object value corresponding to the first time period.
[0014] If the value of a child object changes during the first time period, then the value of the child object at the last moment of the first time period will be determined as the value of the first time period.
[0015] In one possible implementation, for any target sub-object, based on the first time period, the type of each sub-object, and the region information, the first parameter corresponding to each sub-object in each first time period is determined, including:
[0016] Obtain the parameter table, which includes the type of at least one sub-object and the first parameter of the type of each sub-object in multiple time periods;
[0017] Based on the type of the target sub-object, multiple first time periods, and regional information, match the first parameter corresponding to the target sub-object in multiple first time periods in the parameter table.
[0018] In one possible implementation, for any given sub-object, the first increment generated by each sub-object within each first time period is determined based on multiple first object values for multiple first time periods corresponding to each sub-object, and multiple first parameters, including:
[0019] Determine whether a target time exists among multiple first time periods. The target time is the incremental time of the sub-objects that have been determined among the multiple first time periods.
[0020] When no target time exists in multiple first time periods, the first increment is determined based on multiple first object values and multiple first parameters corresponding to the multiple first time periods;
[0021] When a target time exists in multiple first time periods, the first increment is determined based on the target time, multiple first object values corresponding to the multiple first time periods, and multiple first parameters.
[0022] In one possible implementation, determining the first increment based on the target time, multiple first object values corresponding to multiple first time periods, and multiple first parameters includes:
[0023] Determine the first duration following the target time among multiple first time periods;
[0024] The first increment is determined based on at least one first object value corresponding to the first duration of the sub-object and the first parameter corresponding to at least one first object value.
[0025] In one possible implementation, after determining the first increment generated by each sub-object within each first time period, the method includes:
[0026] The first increment generated by each sub-object in each first time period is verified to obtain the verification result;
[0027] When the verification result is that the verification is passed, the status of each sub-object is marked as the incremental normal status, and the preset database is updated. The preset database is used to store the first increment generated by each sub-object in each first time period.
[0028] When the verification result is that the verification fails, the abnormal information of the first increment generated by each sub-object in each first time period is recorded and saved.
[0029] In one possible implementation, determining the second increment generated by the first object within a preset period based on multiple first increments and multiple first identifiers corresponding to each sub-object includes:
[0030] Get the state of each child object;
[0031] When the state of each sub-object is the normal incremental state, the sum of the multiple first increments corresponding to each sub-object is determined as the second increment based on multiple first identifiers.
[0032] Secondly, embodiments of this application provide an object processing apparatus, including: an acquisition module, a first determination module, a second determination module, and a processing module, wherein...
[0033] The acquisition module is used to acquire the type of each sub-object in the first object, the area information of each sub-object, and the value of the first object corresponding to each sub-object in each first time period of the preset period;
[0034] The first determining module is used to determine the first parameter corresponding to each sub-object in each first time period based on the type and region information of each first time period and each sub-object. The first parameter is used to determine the increment of the object value of the sub-object in the first time period.
[0035] The second determining module is used to determine the first increment generated by each sub-object in each first time period based on the multiple first object values and multiple first parameters corresponding to each sub-object, and to mark each sub-object to obtain multiple first identifiers. The first identifiers are used to indicate that the sub-object has not completed the increment processing in the first time period.
[0036] The processing module is used to determine the second increment generated by the first object within a preset period based on the multiple first increments and multiple first identifiers corresponding to each sub-object.
[0037] In one possible implementation, the acquisition module is specifically used for:
[0038] Retrieve the object value of the child object in the first time period;
[0039] If the object value of the child object does not change during the first time period, then the object value of the child object will be determined as the first object value corresponding to the first time period.
[0040] If the value of a child object changes during the first time period, then the value of the child object at the last moment of the first time period will be determined as the value of the first time period.
[0041] In one possible implementation, the first determining module is specifically used for:
[0042] Obtain the parameter table, which includes the type of at least one sub-object and the first parameter of the type of each sub-object in multiple time periods;
[0043] Based on the type of the target sub-object, multiple first time periods, and regional information, match the first parameter corresponding to the target sub-object in multiple first time periods in the parameter table.
[0044] In one possible implementation, the second determining module is specifically used for:
[0045] Determine whether a target time exists among multiple first time periods. The target time is the incremental time of the sub-objects that have been determined among the multiple first time periods.
[0046] When no target time exists in multiple first time periods, the first increment is determined based on multiple first object values and multiple first parameters corresponding to the multiple first time periods;
[0047] When a target time exists in multiple first time periods, the first increment is determined based on the target time, multiple first object values corresponding to the multiple first time periods, and multiple first parameters.
[0048] In one possible implementation, the second determining module is specifically used for:
[0049] Determine the first duration following the target time among multiple first time periods;
[0050] The first increment is determined based on at least one first object value corresponding to the first duration of the sub-object and the first parameter corresponding to at least one first object value.
[0051] In one possible implementation, the apparatus further includes a verification module, wherein:
[0052] The first increment generated by each sub-object in each first time period is verified to obtain the verification result;
[0053] When the verification result is that the verification is passed, the status of each sub-object is marked as the incremental normal status, and the preset database is updated. The preset database is used to store the first increment generated by each sub-object in each first time period.
[0054] When the verification result is that the verification fails, the abnormal information of the first increment generated by each sub-object in each first time period is recorded and saved.
[0055] In one possible implementation, the processing module is further configured to:
[0056] Get the state of each child object;
[0057] When the state of each sub-object is the normal incremental state, the sum of the multiple first increments corresponding to each sub-object is determined as the second increment based on multiple first identifiers.
[0058] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0059] The memory stores instructions that the computer executes;
[0060] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0061] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0062] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0063] The object processing method, apparatus, device, storage medium, and program product provided in this application embodiment obtain the type of each sub-object in a first object, the region information of each sub-object, and the first object value corresponding to each sub-object in each first time period of a preset period; determine the first parameter corresponding to each sub-object in each first time period based on each first time period, the type and region information of each sub-object, the first parameter being used to determine the increment of the object value of the sub-object in the first time period; determine the first increment generated by each sub-object in each first time period based on multiple first object values and multiple first parameters corresponding to multiple first time periods of each sub-object, and mark each sub-object to obtain multiple first identifiers, the first identifiers being used to indicate that the sub-object has not completed the increment processing in the first time period; determine the second increment generated by the first object in the preset period based on multiple first increments and multiple first identifiers corresponding to each sub-object. In the above method, the electronic device can perform incremental calculations by adapting differentiated first parameters to different types and regions of sub-objects within the first object, as well as different first time periods within the cycle. Furthermore, invalid data that has not completed incremental processing is filtered out by the first identifier. This solves the problem of inaccurate processing results caused by the use of uniform incremental parameters in the prior art. It can achieve refined and dynamic object processing, improve processing accuracy without additional complex calculation processes, ensure the accuracy of the first increment of each sub-object, and guarantee the reliability of the second increment of the first object, thereby improving the accuracy of incremental processing of objects. Attached Figure Description
[0064] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0065] Figure 1 This application provides an illustration of the application scenario.
[0066] Figure 2 A schematic diagram illustrating the process of an object processing method provided in this application;
[0067] Figure 3 A schematic diagram of the verification processing method for the first increment provided in this application;
[0068] Figure 4 A schematic diagram illustrating the process of determining the second increment provided in this application;
[0069] Figure 5 A schematic diagram of the object processing system provided in this application;
[0070] Figure 6 A schematic diagram of the user registration module, sub-object update module, and parameter acquisition module provided for this application;
[0071] Figure 7 A schematic diagram of the first incremental service module provided for this application;
[0072] Figure 8 A schematic diagram of the second incremental business module and the second incremental transfer deposit module provided for this application;
[0073] Figure 9 A schematic diagram of the second incremental storage module for canceling users provided in this application;
[0074] Figure 10 A schematic diagram illustrating another object processing method provided in this application;
[0075] Figure 11 A schematic diagram illustrating another object processing method provided in this application;
[0076] Figure 12 A schematic diagram of the structure of an object processing device provided in this application;
[0077] Figure 13 A schematic diagram of the structure of the electronic device provided in this application.
[0078] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0079] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0080] The collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0081] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, they do not mean that the applicant has used or necessarily used the solution.
[0082] Figure 1 The application scenario diagram provided in this application is as follows: Figure 1 As shown, this includes electronic devices and terminal devices.
[0083] Electronic devices and terminal devices can communicate with each other. The terminal device can send object data to be processed to the electronic device. After receiving the object data, the electronic device processes the object data and sends the processing result to the terminal device.
[0084] Among them, electronic devices can be servers, computers, or other devices with data processing capabilities, and terminal devices can be servers, computers, or other devices. Furthermore, electronic devices and terminal devices can be the same device, which can acquire object data to be processed during its own operation and perform relevant processing based on the object data.
[0085] As can be seen from the above scenarios, existing technologies generally use a unified incremental parameter approach for incremental object processing. That is, based on the unified incremental parameter, the increment generated by the business object within a preset time period is calculated to complete the object processing operation. However, in this process, the source type of the business object may change, and the incremental parameters corresponding to different source types of business objects may be different, resulting in low accuracy in incremental object processing.
[0086] The object processing method, apparatus, device, storage medium, and program product provided in this application obtain the type of each sub-object in a first object, the area information of each sub-object, and the first object value corresponding to each sub-object in each first time period of a preset period. Then, based on each first time period, the type and area information of each sub-object, the first parameter corresponding to each sub-object is determined. Combining multiple first object values and multiple first parameters in each first time period, the first increment generated by each sub-object in each first time period is determined. Each sub-object is then marked to obtain multiple first identifiers. Finally, the second increment generated by the first object in the preset period is obtained by summarizing the results. In the above method, the electronic device can perform incremental calculations by adapting differentiated first parameters to different types and regions of sub-objects within the first object, as well as different first time periods within the cycle. Simultaneously, invalid data that has not completed incremental processing is filtered out using a first identifier. This solves the problem of inaccurate processing results caused by using uniform incremental parameters in existing technologies, enabling refined and dynamic object processing. Furthermore, by performing time-segmented and sub-type-based aggregation calculations on the entire cycle's incremental data through structured steps, processing accuracy is improved without additional complex calculation processes. This ensures both the accuracy of the first incremental data for each sub-object and the reliability of the second incremental data for the first object, improving the efficiency and manageability of large-scale object processing. In addition, this method can flexibly adapt to the diverse needs of sub-object types, regional attributes, and processing strategies, enhancing the system's adaptability and the accuracy of processing results. By introducing a marking and filtering mechanism, the controllability and reliability of the data processing process are further ensured, guaranteeing high efficiency and stability while improving processing accuracy.
[0087] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0088] Figure 2 A schematic diagram of an object processing method provided in this application is shown below. Figure 2 As shown, the method includes:
[0089] S201. Obtain the type of each sub-object in the first object, the area information of each sub-object, and the value of the first object corresponding to each sub-object in each first time period of the preset period.
[0090] The execution subject in this application embodiment can be an electronic device or an object processing device disposed in an electronic device. The object processing device can be implemented by software or by a combination of software and hardware. The electronic device can be a terminal device or a server.
[0091] The first object can be the business object that needs to perform incremental calculations. It is used to carry out the unified management and result aggregation of multiple sub-objects. That is, the first object is the subject of incremental processing. The first object usually includes multiple components with independent attributes, namely sub-objects.
[0092] For example, the first object can be the business object that user A needs to monitor, that is, the electronic device needs to summarize and calculate the total changes of the business object during the management period.
[0093] Sub-objects can be objects within the first object that require separate incremental processing. In other words, sub-objects can refer to independent business units belonging to the first object. Each sub-object has a different source attribute, and its state changes will affect the overall incremental processing of the first object.
[0094] For example, a sub-object can be data of different types or from different sources under the first object of user A. That is, the first object can be the object data that needs to be monitored by project A. Project A includes multiple sub-projects, namely sub-project B and sub-project C. That is, the sub-object can be the object data of sub-project B, or it can be the object data of sub-project C.
[0095] The type of a sub-object is used to distinguish the origin of each sub-object in the first object. In other words, the type of a sub-object can be used to indicate the business characteristics of each sub-object. In this way, the electronic device can provide data support for matching the corresponding incremental parameters for each sub-object based on the type of the sub-object.
[0096] For example, if the first object includes sub-object A and sub-object B, where sub-object A is of type A and sub-object B is of type B, then the electronic device needs to perform incremental processing on sub-object A and sub-object B separately, thereby completing the incremental processing of the first object.
[0097] Regional information can be the geographical scope or management zone to which each sub-object belongs, used to distinguish the differentiated attributes of the same type of sub-object in different regional dimensions, and to provide data support for electronic devices to match exclusive incremental parameters in combination with regional dimensions.
[0098] For example, if the first object includes sub-object A and sub-object B, where sub-object A belongs to region A and sub-object B belongs to region B, then when the electronic device processes the data, it must not only consider the type of the sub-objects, but also combine their respective region information to match and apply the valid specific parameter rules of region A or region B, so as to ensure that the incremental calculation results meet the personalized business requirements of each region.
[0099] The preset period can be a pre-set time period for incremental processing of the first object. The preset period is used to indicate the total duration of incremental processing from start to end. That is, the electronic device can determine the preset period by setting a fixed duration. For example, the preset period for the first incremental processing of the first object can be 1 month, 3 months, etc.
[0100] The first time period can be a time period within a preset cycle. Continuous first time periods can be arranged in sequence to form a preset cycle. Electronic devices can determine the first time period based on the changes of each sub-object in the first object. For example, the first time period can be 1 day, 1 month, etc.
[0101] For example, if sub-object A of the first object changes to sub-object B within a preset period, the first time period A of sub-object A can be determined based on the unchanged start and end times of sub-object A, and the first time period B of sub-object B can be determined based on the unchanged start and end times of sub-object B. Thus, the preset period can be the total duration composed of the sequentially ordered first time periods A and B. For instance, if the first time period A of sub-object A is from January 1st to January 15th, and the first time period B of sub-object B is from January 16th to January 31st, then the preset period is from January 1st to January 31st.
[0102] The first object value can be the specific value of the sub-object after incremental processing within the corresponding first time period. That is, the first object value is used to represent the increment obtained by the sub-object under supervision in the corresponding time period. For example, if the first time period of sub-object A is from January 1 to January 2, then the first object value is the increment value of sub-object A in these two days.
[0103] In some embodiments, the electronic device can obtain this information by reading a metadata configuration file or database table structure bound to the first object. Specifically, when the first object is created or initialized, the business category of each of its sub-objects is recorded in an associated attribute mapping table. For example, the system can query this mapping table to find the correspondence between the identifiers of the sub-objects and their categories, thereby determining the type of each sub-object.
[0104] For example, the first object includes three sub-objects, namely sub-object A, sub-object B and sub-object C. Sub-object A is identified by identifier A. By querying the corresponding relationship in the mapping table, we can find that the type corresponding to identifier A is type A. Therefore, we can determine that the type of sub-object A is type A, that is, the source of sub-object A is associated with type A.
[0105] In some embodiments, the electronic device may obtain the first object value corresponding to each first time period of a preset period for each sub-object based on the following implementation: for any first time period of the sub-object; obtain the object value of the sub-object in the first time period; if the object value of the sub-object does not change during the first time period, then determine the object value of the sub-object as the first object value corresponding to the first time period; if the object value of the sub-object changes during the first time period, then determine the object value of the sub-object at the last moment of the first time period as the object value of the first time period.
[0106] In some embodiments, electronic devices can obtain records of all state changes of sub-objects within a first time period by interfacing with a recording system or database. For example, for user A's first object, the device can determine its inventory status during a specific time period (the first time period) by retrieving all deposit and transfer details. This determines the value of each sub-object in the corresponding first time period.
[0107] In some embodiments, if the object value of a sub-object does not change during the first time period, the object value of the sub-object is determined as the first object value corresponding to the first time period. This can be understood as follows: when the electronic device detects that the state of the sub-object is stable during the first time period, no complex processing is required, and the constant value during the time period is directly used as the representative value of the time period, i.e., the first object value.
[0108] For example, if the sub-objects of user A's first object do not change within a day (first time period), that is, the object value remains unchanged, then the starting object value of that day (which is also equal to the ending object value) can be directly recorded as the first object value of that day (first time period).
[0109] In some embodiments, if the object value of a sub-object changes during the first time period, the object value of the sub-object at the last moment of the first time period is determined as the object value of the first time period. This can be understood as follows: when the state of a sub-object fluctuates during the first time period, the final stable state value at the end of the first time period can be used as the summative quantitative value of the entire time period, i.e., the first object value.
[0110] For example, if the sub-objects of user A's first object undergo multiple changes within a day (first time period) (e.g., deposits, transfers, etc.), meaning the object value keeps changing, then the final object value at the end of the day can be taken as the first object value for that day (first time period).
[0111] S202. Determine the first parameter corresponding to each sub-object in each first time period based on the type of each first time period and each sub-object.
[0112] The first parameter is used to determine the increment of the sub-object's value in the first time period. Specifically, the first parameter can be a calculated coefficient related to time and the type of the sub-object, which can be used to quantify the proportion of the increment generated by the sub-object's value within the corresponding first time period. Furthermore, the value of the first parameter determines the magnitude of the increment that a unit object value can generate or derive within a given time period.
[0113] In some embodiments, the electronic device may determine the first parameter corresponding to each sub-object in each first time period based on the type of each first time period and each sub-object in the following implementation: for any target sub-object; obtain a parameter table; and match the first parameter corresponding to the target sub-object in multiple first time periods in the parameter table according to the type and region information of each first time period and each sub-object.
[0114] The parameter table includes the type of at least one sub-object, and the first parameter of the type of each sub-object in multiple time periods.
[0115] The parameter table can be a configuration table that stores the correspondence between different calculation rules and applicable conditions. Its core function is to establish a mapping from the type and time conditions of sub-objects to specific parameter values. This table typically contains multiple entries, each specifying the parameter values that should be used for a specific type of sub-object within a specific time period, ensuring that the data is searchable, matchable, and traceable.
[0116] For example, a parameter table can be a rule configuration table, where each record defines a calculation parameter that applies uniformly to all sub-objects that match a certain category identifier within a certain effective time interval.
[0117] The target sub-object can be the sub-object that is currently undergoing incremental processing.
[0118] In some embodiments, electronic devices can obtain parameter tables by loading pre-configured configuration files, accessing a centralized rule configuration database, or calling a remote rule service interface. This parameter table, as core configuration data of the system, is typically maintained and updated by the management backend. For example, when an electronic device starts a processing task, it reads currently valid parameter rules from a specified database table and caches them in memory for subsequent rapid matching. The maintenance of this table may be independent of the business data processing flow, allowing technicians to dynamically adjust parameters (e.g., modify coefficient values for a specific time period) without interrupting business operations.
[0119] In some embodiments, the electronic device can determine the corresponding first parameter based on the type of the target sub-object, its associated regional information, and multiple first time periods. That is, the electronic device can perform a composite query on the parameter table for the type and regional information of the target sub-object corresponding to each first time period to obtain the parameter that matches the type and regional information of the target sub-object within the corresponding time period, and determine it as the first parameter.
[0120] Optionally, the first parameter corresponding to the target sub-object can remain unchanged, that is, the type and region information of the target sub-object do not change within the first time period, and the first time period is within the time period corresponding to the first parameter. In this case, the target sub-object may correspond to one first time period and one first parameter. Alternatively, the first parameter corresponding to the target sub-object may change, that is, the type and / or region information of the target sub-object changes within the time period, and it may correspond to multiple first time periods, that is, the parameter values corresponding to each first time period are different. In this case, the target sub-object may correspond to multiple first time periods and multiple first parameters.
[0121] For example, if the type (type A) and region information (location B) of the target sub-object remain unchanged during the first time period (e.g., January 1 to January 31), and the applicable type is type A and the applicable region is location B during the time period corresponding to the first parameter A (January 1 to March 1), then the first parameter of the target sub-object is the first parameter A.
[0122] For example, if the type (type A) and region information (location B) of the target sub-object remain unchanged within the time period (e.g., January 1 to February 15), and the parameter table includes a first parameter A and a first parameter B, where the time period corresponding to the first parameter A is January 1 to January 31, the applicable type is type A, and the applicable region is location B, and the time period corresponding to the first parameter B is February 1 to February 31, the applicable type is type A, and the applicable region is location B, then by matching each parameter in the parameter table, it can be obtained that the first parameter corresponding to the target sub-object within the first time period (i.e., January 1 to January 31) is the first parameter A, and the first parameter corresponding to the target sub-object within the first time period (i.e., February 1 to February 15) is the first parameter B.
[0123] If the type and / or region information of the target sub-object changes during this period, the corresponding first parameter may also change. It is necessary to configure the correspondence between the type, region information, time period and the first parameter in the parameter table according to the actual application requirements to ensure that the first parameter of each first time period is accurately matched.
[0124] S203. Based on the multiple first object values and multiple first parameters corresponding to each sub-object in each first time period, determine the first increment generated by each sub-object in each first time period, and mark each sub-object to obtain multiple first identifiers.
[0125] The first identifier is used to indicate that the sub-object has not completed incremental processing within the first time period.
[0126] The first increment is used to characterize the quantitative change result of a single sub-object within a first time period, based on the state value (first object value) and applicable rules (first parameter) of that time period. That is, the first increment is the basic calculation unit that constitutes the total change of the entire preset period, and each first increment corresponds to the calculation result of one and only one first time period.
[0127] In some embodiments, the electronic device may determine the first increment generated by each sub-object in each first time period based on multiple first object values and multiple first parameters corresponding to multiple first time periods, according to the following implementation: for any sub-object; determine whether there is a target time in the multiple first time periods; when there is no target time in the multiple first time periods, determine the first increment based on the multiple first object values and multiple first parameters corresponding to the multiple first time periods; when there is a target time in the multiple first time periods, determine the first increment based on the target time, the multiple first object values and multiple first parameters corresponding to the multiple first time periods.
[0128] The target time is the time when the increment of the sub-object has been determined in multiple first time periods.
[0129] The target time is used to identify the time node of the historical processing progress of a sub-object. That is, the target time is the end time of the time period corresponding to the last successful completion of incremental calculation for this sub-object.
[0130] This can be understood as the target time being the starting time of the new round of first increment calculation. In this way, it can be ensured that the first increment is calculated only for the period that occurs after the last processing, thereby achieving an efficient increment processing mechanism.
[0131] In some embodiments, an electronic device can determine the target time by querying a persistent state record associated with a sub-object. Specifically, each sub-object maintains a state record in the system, which includes a dedicated field for tracking its processing progress; for example, the dedicated field could be the last calculated time node.
[0132] The specific process is as follows: The electronic device reads the value of this field; if the field value is null (NULL) or a specific initial value, it is determined that the target time does not exist, indicating that the sub-object has not yet undergone any incremental calculation; if the field value is a specific date and timestamp (e.g., January 1st), it is determined that the target time exists, and this timestamp is the value of the target time. This mechanism is the logical basis for the system to implement incremental processing and avoid full recalculation.
[0133] In some embodiments, determining that the target time does not exist means that an initial incremental calculation needs to be performed on the sub-object within the current preset period. The electronic device treats the entire first time period contained within the preset period as the scope to be calculated.
[0134] The processing flow is as follows: Each time period is traversed chronologically, and for each period, a calculation operation is performed independently—the pre-prepared first object value and first parameter for that period are obtained, and then substituted into a preset incremental calculation function to obtain the first increment for that period. This process produces an independent result for each time period, ultimately outputting a list of first increments that corresponds one-to-one with the time period sequence. This method ensures that even without historical processing records, the initial incremental data for the entire cycle can be constructed completely and accurately.
[0135] In some embodiments, the electronic device may determine a first increment based on a target time, multiple first object values corresponding to multiple first time periods, and multiple first parameters, by: determining a first duration after the target time among multiple first time periods; and determining the first increment based on at least one first object value corresponding to the first duration of the sub-object and a first parameter corresponding to at least one first object value.
[0136] The first duration can be a processing time period consisting of multiple consecutive first time segments. That is, the first duration can be the complete set of all first time segments covered from after the target time (excluding that time) until the end of the current preset cycle. The first duration defines the range of all newly added time segments in the current processing task that need to be calculated for the first increment of the sub-object.
[0137] In some embodiments, after determining that a target time exists, the electronic device determines a first duration through a time range filtering operation. The specific steps are: determining the start and end dates of the current preset period; listing all first time periods arranged chronologically within the period; and filtering out all time periods whose start times are later than the target time from the list. This set of filtered, continuous time periods constitutes the first duration to be processed. This step precisely defines the new working scope of this incremental calculation.
[0138] For example, the sub-object corresponds to three first time periods: first time period A (January 1 to January 7), first time period B (January 8 to January 14), and first time period C (January 14 to January 20). If the increment of the sub-object has been determined within the first time period A, then the target time is 24:00 on January 7. In this way, the first duration can be determined based on the first time period B and the first time period C, that is, the first duration can be the duration (number of days) between January 8 and January 20.
[0139] In some embodiments, for each first time period within a first duration, the electronic device obtains the first object value of the sub-object for that specific time period, and a first parameter specifically for that time period obtained through matching; this logarithm is then input into an incremental calculation formula to calculate the first increment of the sub-object within that single time period. This operation is repeated by traversing all time periods within the first duration, thereby generating a corresponding first increment for each new time period. The set of these calculation results represents all the new first increments generated by the sub-object in the current processing cycle, and they will be included in subsequent summaries along with previously calculated increments.
[0140] For example, if the first object value of a sub-object is A, the first duration is B, and the first parameter is C, then the first increment of the sub-object can be A×B×C. The specific value of the first parameter needs to be calculated based on actual needs. For example, if the first parameter is measured in years, then the value of the first parameter needs to be calculated based on the number of days in a year.
[0141] In some embodiments, after completing the first incremental calculation for each sub-object corresponding to the first time period, the electronic device may perform marking processing based on the incremental calculation process and results of each sub-object in the first time period.
[0142] If it is determined that the first incremental calculation is completed but the second incremental calculation process has not been participated in, it is determined to be completed; if it is determined that the first incremental calculation is completed and the second incremental calculation process has been participated in, it is determined to be incomplete. Subsequently, the electronic device generates a first identifier for each sub-object in the corresponding first time period based on the determination result (for example, 0 indicates incomplete, 1 indicates completed, and the identifier format can be flexibly configured).
[0143] In this way, the electronic device associates and stores this first identifier with the sub-object identifier, the first time period, and the corresponding first incremental value. This mechanism associates each first incremental result with a traceable marker representing its processing status, thus providing a direct and reliable basis for subsequent steps to filter and summarize valid incremental data based on the identifier.
[0144] S204. Based on the multiple first increments corresponding to each sub-object, determine the second increment generated by the first object within a preset period.
[0145] The second increment is used to characterize the total quantitative change of the first object within its corresponding preset period, obtained by summing the first increments generated by all its sub-objects in all first time periods of that period. In other words, the second increment is the final output of the first object's processing flow within that preset period, reflecting the net change in its overall state from the beginning to the end of the period.
[0146] For example, the second increment could be the total change of user A's first object within a certain settlement period, which is the sum of the changes (first increment) of each of its independent units (sub-objects) within a preset period.
[0147] In some embodiments, the electronic device can acquire all sub-objects belonging to the current first object, and for each sub-object, read the first increment generated by it within the current preset period (the first increment has been calculated and stored in step S203). Furthermore, the electronic device sums the multiple first increments of each sub-object within the preset period to obtain the contribution value of that sub-object to the overall result; then, it sums the contribution values of all sub-objects again. This cumulative sum can be determined as the second increment generated by the first object within the preset period.
[0148] In this way, the results of scattered, fine-grained calculations by sub-object and by time period can be efficiently, accurately and without omission integrated into a single value representing the overall periodic change, completing the closed loop from calculation to aggregation.
[0149] In some embodiments, to address the technical problems of low efficiency and inability to support high concurrency requirements in the prior art when processing incremental calculations of large-scale business objects, this application introduces a multi-threaded sharding parallel processing mechanism in some embodiments of the above method.
[0150] Specifically, when the electronic device determines the first increment generated by each sub-object within each first time period (step S203), or determines the second increment generated by the first object within a preset period (step S204), tasks involving large-scale data computation can be divided into multiple parallel-executable subtasks using a sharding strategy. For example, hash sharding can be performed based on the type of each sub-object to distribute the computation tasks relatively evenly across multiple threads, or time sharding can be performed based on the time attributes of the first time period to isolate computation tasks from different time periods.
[0151] In this way, by applying the above-mentioned sharding processing method, the massive quantum object computing tasks that originally required single-threaded serial processing can be transformed into parallel tasks executed simultaneously by multiple threads. This significantly improves the throughput and overall processing efficiency of the computing tasks, enabling the system to reduce processing time from hours to minutes in large-scale data scenarios. Furthermore, the sharding strategy effectively avoids single-point resource overload, optimizes system resource utilization, and reduces transaction conflicts caused by overlapping data ranges, thereby stably and efficiently supporting the incremental processing needs of high-concurrency, large-volume business objects.
[0152] The object processing method, apparatus, device, storage medium, and program product provided in this application obtain the type of each sub-object in a first object, the area information of each sub-object, and the first object value corresponding to each sub-object in each first time period of a preset period. Then, based on each first time period, the type and area information of each sub-object, the first parameter corresponding to each sub-object is determined. Combining multiple first object values and multiple first parameters in each first time period, the first increment generated by each sub-object in each first time period is determined. Each sub-object is then marked to obtain multiple first identifiers. Finally, the second increment generated by the first object in the preset period is obtained by summarizing the results. In the above method, the electronic device can perform incremental calculations by adapting differentiated first parameters to different types and regions of sub-objects within the first object, as well as different first time periods within the cycle. Simultaneously, invalid data that has not completed incremental processing is filtered out using a first identifier. This solves the problem of inaccurate processing results caused by using uniform incremental parameters in existing technologies, enabling refined and dynamic object processing. Furthermore, by performing time-segmented and sub-type-based aggregation calculations on the entire cycle's incremental data through structured steps, processing accuracy is improved without additional complex calculation processes. This ensures both the accuracy of the first incremental data for each sub-object and the reliability of the second incremental data for the first object, improving the efficiency and manageability of large-scale object processing. In addition, this method can flexibly adapt to the diverse needs of sub-object types, regional attributes, and processing strategies, enhancing the system's adaptability and the accuracy of processing results. By introducing a marking and filtering mechanism, the controllability and reliability of the data processing process are further ensured, guaranteeing high efficiency and stability while improving processing accuracy.
[0153] Figure 3 A schematic diagram of the first incremental verification processing method provided in this application is shown below. Figure 3 As shown, in this embodiment... Figure 2 Based on the embodiments, a method for verifying the first increment of an electronic device after determining the first increment generated by each sub-object in each first time period is described in detail. The method includes:
[0154] S301. Perform verification processing on the first increment generated by each sub-object in each first time period to obtain the verification result.
[0155] The verification result is used to characterize the judgment result after checking the consistency, rationality, or compliance of the calculated first incremental set. That is, the verification result is used to indicate whether the verified incremental data meets the preset rules, thereby determining the subsequent data storage and state transition path.
[0156] For example, the verification result can be either verification passed or verification failed. Verification passed indicates that the first incremental data is normal, while verification failed indicates that the first incremental data is abnormal.
[0157] In some embodiments, the electronic device may perform checks of the following types on a set of first increments (e.g., the first increments of all first time periods within a preset period for a target sub-object): data integrity verification (e.g., checking for missing time periods), logical consistency verification (e.g., checking whether the sum of consecutive first increments of the same sub-object is within a reasonable error range compared to the total estimated based on its first and last state values), and threshold reasonableness verification (e.g., checking whether a single first increment exceeds a reasonable boundary set based on historical data or business rules). The electronic device can integrate these verification rules to obtain verification results, ensuring the accuracy of the increment data calculation and providing a data foundation for the subsequent calculation of the second increment.
[0158] S302. When the verification result is that the verification passed, mark the status of each sub-object as the incremental normal state and update the preset database.
[0159] The preset database stores the first increment generated by each sub-object within each first time period. For example, the preset database includes two sub-objects, sub-object A and sub-object B. The first increment of sub-object A in the first time period A is B, and the first increment of sub-object B in the first time period B is C.
[0160] In some embodiments, when the verification result is successful, the electronic device sequentially performs status marking and data persistence operations. Specifically, a specific field in the status management record of the relevant sub-object is updated to an incremental normal status. This marker indicates that the incremental data of the sub-object in this period has been confirmed as valid and can be used by all subsequent aggregation or settlement processes. Furthermore, these first incremental data that have passed verification are completely written to or updated to a preset business data table through transactional operations. This table can serve as a data source for storing all valid incremental results.
[0161] S303. When the verification result is that the verification fails, the abnormal information of the first increment generated by each sub-object in each first time period shall be recorded and saved.
[0162] In some embodiments, when the verification result is a failure, the electronic device generates a structured exception record, which details key information such as the identifier of the exception's sub-object, the occurrence period, the specific verification rule type that triggered it, and related exception data values. This record is saved to a separate exception log storage area, achieving physical isolation from normal business data. Furthermore, the corresponding incremental exception data is not written to the formal business data table, and the status of the relevant sub-object is not updated to normal. This mechanism, while ensuring the cleanliness of the core data source, fully preserves the root cause of the problem, providing a traceable basis for subsequent problem localization and data repair.
[0163] The object processing method, apparatus, device, storage medium, and program product provided in this application automatically verify the first increment of each calculated sub-object within each first time period, and perform differentiated data state management and storage operations based on the verification results. In this method, the electronic device can effectively identify abnormal data by performing real-time review of batch incremental results, avoiding the problem of erroneous data flowing into subsequent aggregation stages and affecting the overall result due to the lack of verification mechanisms in traditional incremental processing. Furthermore, by marking the verified incremental data as normal and persistently storing it, while structurally recording and isolating the abnormal information that fails verification, the reliability and traceability of the incremental data are ensured. Based on ensuring the accuracy and reliability of the incremental calculation results, this provides a solid data guarantee for the accurate aggregation of the overall increment of the first object in the subsequent process.
[0164] Based on any of the above embodiments, the following, in conjunction with Figure 4 The method for determining the second increment is explained in detail.
[0165] Figure 4 A schematic diagram illustrating the process of determining the second increment provided in this application. Please refer to [link / reference needed]. Figure 4 The method may include:
[0166] S401, Get the state of each sub-object.
[0167] The state of a sub-object can be either an incremental normal state or an incremental abnormal state. The incremental normal state indicates that the first increment of the sub-object was calculated correctly in the corresponding first time period, while the incremental abnormal state indicates that the first increment of the sub-object was calculated incorrectly in the corresponding first time period.
[0168] S402. When the state of each sub-object is the incremental normal state, the sum of the multiple first increments corresponding to each sub-object is determined as the second increment based on multiple first identifiers.
[0169] Specifically, if the first increment of a sub-object has anomalies such as parameter mismatch or missing data, it will be marked as an increment anomaly and excluded from the summary range to avoid abnormal data affecting the overall result. For valid sub-objects, the electronic device extracts the first increment of all first time periods within a preset period from its increment details, and removes increment data that exceeds the preset period (e.g., increments of the sub-object before January 1st or after January 31st), ensuring that the time range of the increment data is completely aligned with the preset period.
[0170] In some embodiments, the electronic device can filter out sub-objects that have completed incremental processing within a corresponding first time period based on multiple first identifiers, and remove sub-objects whose first identifiers indicate that incremental processing has not been completed. Specifically, by traversing all sub-objects under the first object, for each sub-object, the first identifier corresponding to each first time period within the current preset period is retrieved to form the identifier set of the sub-object.
[0171] Furthermore, the electronic device needs to perform consistency verification logic on the set of identifiers. That is, if and only if the processing status indicated by each first identifier in the identifier set of the sub-object is completed (for example, the first identifier is 1), the sub-object can be determined to meet the filtering conditions and included in the list of valid sub-objects to be summarized.
[0172] In this way, the electronic device can accurately and efficiently distinguish from the quantum objects that all incremental calculations have been verified to be valid, thus providing a clear and unambiguous operational basis for subsequent summarization of only reliable results, ensuring the high quality and high reliability of the second incremental calculation basis data.
[0173] The electronic device accumulates the first increment of all valid sub-objects within a preset period to obtain the second increment of the first object. If there is an increment that is split across time periods (for example, the first time period crosses the boundary of the preset period), it is calculated according to the proportion of the increment within the preset period and then included in the summary.
[0174] After the second increment calculation is completed, the electronic device performs a second verification on the second increment result, checking the consistency between the number of sub-objects summarized and the sum of the increments of each sub-object with the second increment. After the verification is passed, the second increment, sub-object increment details, summary time and other information are archived to the first object increment record. At the same time, the summary result is pushed to the technical personnel to support subsequent business analysis and decision-making.
[0175] The object processing method, apparatus, device, storage medium, and program product provided in this application determine the second increment of the first object by acquiring the status of each sub-object, filtering out sub-objects with normal status, and summarizing their first increments within a preset period in conjunction with a first identifier. In this method, the electronic device can effectively exclude sub-objects and their increment data marked as having abnormal increment status due to calculation errors or data anomalies by verifying the status identifier, ensuring the accuracy and reliability of the data basis for summarization. Furthermore, by filtering sub-objects according to the first identifier, the first increment of each sub-object is limited to a time range aligned with the preset period, and increments generated across period periods are proportionally converted, accurately calibrating the time attribution of increment data and effectively eliminating summarization deviations caused by invalid data contamination or period misalignment. This method, through a dual verification mechanism of status and time, improves the accuracy and business consistency of the second increment calculation results, providing high-quality data assurance for subsequent analysis, decision-making, and record archiving based on these results.
[0176] Below, through Figure 5 The object processing system of this application will be described in detail.
[0177] Figure 5 A schematic diagram of the object processing system provided in this application. Please refer to [link / reference]. Figure 5 The object processing system includes a business processing layer and an object processing layer. The business processing layer is responsible for initiating incremental business and processing business layer data, while the object processing layer is responsible for the core logic processing of incremental calculation. The responsibilities of each layer are decoupled from each other. In addition, the object processing layer provides standardized service interfaces for the business processing layer of the business supervision module to call, ensuring efficient collaboration between business initiation and core calculation.
[0178] Specifically, the business processing layer includes a parameter acquisition module, a first incremental business module, a second incremental business module, a second incremental transfer and deposit module, and a second incremental deposit module for canceled users. The object processing layer includes a parameter recording module, a user registration module, a sub-object update module, a first incremental calculation module, a second incremental settlement module, and a second incremental processing module for canceled users.
[0179] Below, in conjunction with Figure 6 This application provides a detailed description of its user registration module, sub-object update module, and parameter acquisition module.
[0180] Figure 6 A schematic diagram of the user registration module, sub-object update module, and parameter retrieval module provided in this application. Please refer to [link / reference]. Figure 6 The specific process is as follows:
[0181] The user registration module is the foundation for subsequent processing in the object processing layer. When the business processing layer completes the opening operation of the user (i.e., sub-account) that needs to be supervised, this module is called synchronously to initiate a user registration request.
[0182] The specific process is as follows: After receiving the request, the user registration module performs sub-account registration processing, completes the creation of sub-account information and the association binding with the supervision account; after the registration operation is completed, the object processing layer will return the processing result to the business processing layer, clarifying the corresponding basic accounting unit for subsequent incremental calculation, and ensuring the one-to-one correspondence between the supervision account and the interest-bearing sub-account.
[0183] The sub-object update module is the source of the second incremental calculation value for the special account. That is, when the sub-objects of the special account change daily (first time period), the object processing layer maintains and updates the sub-objects of the special account. For example, if there are multiple changes within a day (first time period), the latest valid sub-object record can be maintained. This sub-object update module is triggered by the status change event (e.g., deposit, transfer and other business processes) in the business processing layer.
[0184] The specific process is as follows: The business processing layer receives requests related to changes in the first object value of the special account sub-object (e.g., successful deposit into the special account, successful transfer out of the special account, etc.), manages the information on changes in the first object value of the sub-object, and sends a request to the object processing layer to maintain and update the object value of the special account sub-object. The object processing layer updates the first object value and the first parameter of the special account sub-object according to the request, and returns the processing result to the business processing layer after the update is completed.
[0185] The parameter acquisition module is the primary source of parameters for incremental calculation of sub-objects. This module can be triggered by a background scheduled task. The business processing layer obtains the required parameters from the external parameter management center daily and updates them to the parameter configuration table (parameter table) of the object processing layer for use in subsequent incremental calculations based on the first time period.
[0186] This module dynamically acquires and updates calculation parameters through scheduled tasks. The specific process is as follows: After the scheduled task is triggered, the business processing layer retrieves the latest parameter data from the parameter configuration center via an external interface; upon successful retrieval, the business processing layer sends a parameter update request to the object processing layer; after receiving the request, the object processing layer performs a parameter maintenance and update operation, synchronizing the latest parameters to its internal parameter configuration table; after the update operation is completed, the object processing layer returns a processing completion confirmation message to the business processing layer.
[0187] Below, in conjunction with Figure 7 The first incremental service module of this application will be described in detail.
[0188] Figure 7 A schematic diagram of the first incremental service module provided in this application. Please refer to [link / reference]. Figure 7 ,
[0189] The business processing layer completes the task by triggering multiple steps through scheduled tasks, including the first incremental calculation and the subsequent update of sub-object information. The first incremental calculation is processed in task slices, and the data source for the calculation is the detailed record of the object values of the maintained sub-objects. For the detailed record of object values, the first increment of the sub-object is calculated according to the corresponding first parameter. After the calculation, the information of the sub-object is updated.
[0190] The specific process is as follows: This process fully includes two stages: incremental calculation and information update, both triggered by a scheduled task. In the incremental calculation stage: the scheduled task initiates the first incremental calculation task to the business processing layer; the business processing layer then sends a first incremental calculation request containing the incremental date (first time period) to the object processing layer; after the object processing layer completes the incremental calculation by calling its first incremental calculation function, it returns the result to the business processing layer, which then reports the status to the scheduled task. Subsequently, the information synchronization process begins: the scheduled task initiates a sub-object information update task; the business processing layer sends a query request (including the corresponding time period) to the object processing layer, which queries the first incremental calculation result for the corresponding time period (date); after obtaining the result, it returns it to the business processing layer, which executes the sub-object information update operation, synchronizing the calculation result to the information ledger of the first object and its sub-objects, and reports the status to the scheduled task, thus completing the entire process from calculation to status synchronization.
[0191] Below, in conjunction with Figure 8 This application provides a detailed description of the second incremental business module and the second incremental transfer and deposit module.
[0192] Figure 8 A schematic diagram of the second incremental service module and the second incremental transfer deposit module provided for this application. Please refer to [link / reference]. Figure 8 The business processing layer completes the process by triggering multiple steps through scheduled tasks, including the second incremental settlement and the subsequent transfer and storage of the second incremental amount. The business processing layer matches the time of each first time period; if it falls on a preset settlement date, the second incremental settlement is triggered. The settlement range is from the previous settlement date to the current settlement date for the first object. The settlement data source is the calculation result record of the first incremental amount for the first object, accumulating the details of the first incremental amount for the first object according to the time range. After settlement, the settlement increment (second incremental amount) of the first object is transferred to the existing stock status.
[0193] The specific process is as follows: In the second incremental settlement process: the scheduled task scheduler initiates a settlement processing task and sends the task instruction to the business processing layer; after receiving the task, the business processing layer sends a settlement processing request to the object processing layer, and synchronously transmits parameters such as the settlement period and settlement date; the object processing layer calls the incremental calculation function to generate a settlement statement (second incremental) based on the first incremental data summary within the preset period; the object processing layer returns the settlement statement result to the business processing layer, and at the same time, the business processing layer reports the task execution status to the scheduled task scheduler, completing the closed loop of settlement processing.
[0194] After interest settlement is completed, the scheduled task scheduler initiates a task to update the total information of the first object, and sends the instruction to the business processing layer. The business processing layer sends a settlement statement query request to the object processing layer, passing in the settlement date to obtain the corresponding settlement result. After obtaining the settlement result, the business processing layer executes the first object update operation, synchronizing the settlement data (second increment) to the total information of the first object. After the business processing layer completes the update, it reports the update status to the object processing layer, and the object processing layer then synchronizes the task completion status to the scheduled task scheduler.
[0195] In the second incremental transfer deposit process after settlement: the business processing layer initiates the second incremental transfer deposit request and passes the settlement date to the object processing layer; the object processing layer calls the function to update settlement details and transfer identifier, maintains the settlement details data and marks the transfer status; after the object processing layer returns the processing result to the business processing layer, the business processing layer executes the incremental deposit processing of the first object, completes the actual deposit operation of the settlement resource amount, and closes the entire settlement and transfer process.
[0196] Below, in conjunction with Figure 9 This application provides a detailed description of the second incremental storage module for canceling users.
[0197] Figure 9 A schematic diagram of the second incremental deposit module for deregistering users provided in this application. Please refer to [link / reference]. Figure 9 For scenarios where sub-objects are unassociated, deregistered, and settled (incremental deposit of deregistered users), the business processing layer needs to settle and deposit the second increment. For a specific sub-object, the second increment generated between the previous settlement date and the day before the current operation date is finally settled. After settlement, the increment is transferred. The confirmation and attribution logic for the transferred increment is executed according to the general rules for actual increment processing of sub-objects.
[0198] The specific process is as follows: In the incremental settlement process of account cancellation: When the business processing layer performs the cancellation operation, it first initiates a cancellation settlement request and passes the special account information to the object processing layer; the object processing layer calls the internal cancellation settlement function to calculate the second incremental amount to be settled for the first object up to the cancellation node; after the object processing layer completes the cancellation settlement, it returns the settlement result to the business processing layer to prepare for the subsequent incremental transfer.
[0199] During the transfer and deposit process: After receiving the cancellation settlement result, the business processing layer initiates an incremental transfer and settlement details update request to the object processing layer; after receiving the request, the object processing layer performs settlement details update and transfer identification operations; after the object processing layer returns the processing result to the business processing layer, the business processing layer performs incremental deposit processing, completes the actual accounting operation of the cancellation settlement resource amount, and finally closes the entire process of incremental calculation and settlement in the special account cancellation scenario.
[0200] Below, in conjunction with Figure 10 This application provides a detailed description of the object processing procedure.
[0201] Figure 10 A schematic diagram illustrating another object processing method provided in this application. Please refer to [link / reference]. Figure 10 The business processing layer initiates an incremental calculation and settlement object processing request. Based on the input target date (first time period) parameter, the object processing layer uses multi-threaded sharding technology to calculate the second increment for each state segment of the sub-objects requiring the first increment. Successfully processed sub-objects record this first increment, while those that fail record the reason for failure for subsequent problem localization and investigation. The specific process is as follows:
[0202] After the business processing layer initiates a calculation request (S1001), the object processing layer adds a distributed lock using the calculation serial number as the key to ensure the uniqueness of task execution (S1002). It checks whether the total number of households (first objects) to be calculated this time is greater than zero (S1003). If yes, the status is initialized to "in execution" in the task table (S1004). If not, the total number of calculations, the number of successes, and the number of failures are all set to zero in the task table (S1005). The process enters the parallel computing stage: the number of shards to be processed is set, and the shard batches are iterated (S1006). The first object to be processed within each shard is queried (filtering conditions are: incremental calculation required, household status is normal, the last processing date field of the first object is empty or earlier than the current calculation date) (S1007). Start an independent thread for each shard (S1008). Iterate through the households in the shard within the thread (S1009). Perform incremental calculation for each sub-object. Determine if the end date of the last incremental calculation for the household is empty (S1010). If yes, set the start date of this calculation as the date of the minimum object value of the sub-object, i.e., the current calculation date (S1011). If no, set the start date of this calculation as the last calculation date plus 1 (S1012). Obtain the first object value record of the sub-object in each first time period from the start date to the current calculation date (S1013). Calculate the first increment corresponding to each sub-object based on the first object value, the first parameter, and the first duration (S1014). Update the incremental details of the household (S1015). Update the cumulative value of the household's increment (S1016). Update the last processing date of the household to the current calculation date (S1017). Determine if any exceptions occur during the calculation process (S1018). If an exception occurs, record the failure details (S1019) and count the failures (S1020), then iterate to the next sub-task. If successful, increment the success count (S1021) and iterate to the next sub-task. After all sub-task threads have finished executing, summarize the success records and total number of failures for each sub-task (S1022), record the total number of incremental calculations, the total number of success records, and the total number of failures (S1023), batch update the last processing day status of all successful sub-objects (S1024), update the task status to "completed" (S1025), and finally return the result containing the total number of calculations, the number of successes, and the number of failures (S1026).
[0203] The entire process achieves efficient and reliable large-scale incremental batch processing through core mechanisms such as distributed locks to ensure consistency, sharding and multi-threading to achieve parallelism, and incremental filtering to avoid full computation.
[0204] Below, in conjunction with Figure 11 This application provides a detailed description of the object processing procedure.
[0205] Figure 11 A schematic diagram illustrating another object processing method provided in this application. Please refer to [link / reference]. Figure 11 The business processing layer initiates an incremental calculation and settlement object processing request. Based on the input settlement date, the object processing layer employs multi-threaded sharding technology to aggregate the first calculated but unsettled increments for each state segment of the households requiring settlement. Each thread processes each household individually. If a settlement calculation error occurs, the error message is recorded, and processing continues for the next household until all households within the current shard have been calculated. The specific process is as follows:
[0206] After the business processing layer initiates a settlement request (S1101), it checks whether there is a corresponding calculation record that has been completed on the settlement date (S1102). If not, it issues an error message, indicating that there is no settlement record on the settlement date (S1103). If so, it checks whether there is a settlement task in progress on the settlement date (S1104). If there is a task in progress, it generates an error message, indicating that there is a settlement task in transit on the settlement date (S1105). If there is no task in progress, the object processing layer adds a distributed lock with the settlement serial number as the key to ensure the uniqueness of the task (S1106) and initializes the status to "in progress" in the settlement task table (S1107). It sets the number of shards to be processed and iterates through the shard batches (S1108), querying the sub-accounts that need to be settled within each shard (the filtering conditions are: the sub-account needs to be settled, the sub-account status is normal, the sub-account's last settlement date field is empty or less than the current settlement date) (S1109). A separate thread is started for each shard (S1110). Within the thread, it iterates through the households in its shard (S1111). For each sub-object, it queries all first incremental records whose calculation date is less than or equal to the current settlement date and whose settlement flag is unsettled (S1112). Based on the query results, the settlement details are saved (S1113), the settlement detail sub-items are updated (S1114), and the cumulative settlement value of the sub-object is updated (S1115). It is then determined whether any settlement anomalies have occurred (S1116). If an anomaly occurs, the settlement failure details are recorded (S1117), the shard failure count is incremented (S1118), and the process iterates to the next household. If there are no abnormalities, the sharding success count is incremented (S1119), and the next sharding is iterated; after all sharding threads have finished executing, the total number of global successes and failures is summarized (S1120), the total number of settlements, the total number of successes, and the total number of failures are recorded (S1121), the last settlement date of successful settlements is updated to the current settlement date in batches (S1122), and the status of the settlement task table is updated to completed (S1123). Finally, the result containing the number of settlement sub-objects, all success flags, the number of successes, and the number of failures is returned (S1124).
[0207] The object processing method, apparatus, device, storage medium, and program product provided in this application separate incremental calculation and settlement steps, with the incremental calculation result serving as the basis for settlement. This satisfies the combined requirements of daily incremental calculation and periodic settlement, and the execution cycle can be flexibly configured according to different scenarios. Furthermore, it can support various information objects of the first object, and can classify and apply different calculation parameter processing methods according to different sub-object types. At the same time, the calculation parameters can also be set and adjusted at different times to meet the needs of diverse business scenarios. Moreover, the core incremental calculation processing and settlement processing logic can be encapsulated in the object processing component to maintain the stability of the core logic. The business processing layer is responsible for adapting and flexibly initiating changes in the business. The core logic adopts multi-threaded sharding processing, which can adapt to large data volume processing scenarios.
[0208] Figure 12 This application provides a schematic diagram of the structure of an object processing device, as shown below. Figure 12 As shown, the object processing device 10 provided in this embodiment includes: an acquisition module 11, a first determination module 12, a second determination module 13, and a processing module 14, wherein,
[0209] The acquisition module 11 is used to acquire the type of each sub-object in the first object, the area information of each sub-object, and the value of the first object corresponding to each sub-object in each first time period of the preset period;
[0210] The first determining module 12 is used to determine the first parameter corresponding to each sub-object in each first time period based on the type and region information of each first time period and each sub-object. The first parameter is used to determine the increment of the object value of the sub-object in the first time period.
[0211] The second determining module 13 is used to determine the first increment generated by each sub-object in each first time period based on the multiple first object values and multiple first parameters corresponding to each sub-object, and to mark each sub-object to obtain multiple first identifiers. The first identifiers are used to indicate that the sub-object has not completed the increment processing in the first time period.
[0212] Processing module 14 is used to determine the second increment generated by the first object within a preset period based on multiple first increments and multiple first identifiers corresponding to each sub-object.
[0213] The object processing apparatus provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0214] In one possible implementation, the acquisition module 11 is specifically used for:
[0215] Retrieve the object value of the child object in the first time period;
[0216] If the object value of the child object does not change during the first time period, then the object value of the child object will be determined as the first object value corresponding to the first time period.
[0217] If the value of a child object changes during the first time period, then the value of the child object at the last moment of the first time period will be determined as the value of the first time period.
[0218] In one possible implementation, the first determining module 12 is specifically used for:
[0219] Obtain the parameter table, which includes the type of at least one sub-object and the first parameter of the type of each sub-object in multiple time periods;
[0220] Based on the type of the target sub-object, multiple first time periods, and regional information, match the first parameter corresponding to the target sub-object in multiple first time periods in the parameter table.
[0221] In one possible implementation, the second determining module 13 is specifically used for:
[0222] Determine whether a target time exists among multiple first time periods. The target time is the incremental time of the sub-objects that have been determined among the multiple first time periods.
[0223] When no target time exists in multiple first time periods, the first increment is determined based on multiple first object values and multiple first parameters corresponding to the multiple first time periods;
[0224] When a target time exists in multiple first time periods, the first increment is determined based on the target time, multiple first object values corresponding to the multiple first time periods, and multiple first parameters.
[0225] In one possible implementation, the second determining module 13 is specifically used for:
[0226] Determine the first duration following the target time among multiple first time periods;
[0227] The first increment is determined based on at least one first object value corresponding to the first duration of the sub-object and the first parameter corresponding to at least one first object value.
[0228] In one possible implementation, the apparatus further includes a verification module, wherein:
[0229] The first increment generated by each sub-object in each first time period is verified to obtain the verification result;
[0230] When the verification result is that the verification is passed, the status of each sub-object is marked as the incremental normal status, and the preset database is updated. The preset database is used to store the first increment generated by each sub-object in each first time period.
[0231] When the verification result is that the verification fails, the abnormal information of the first increment generated by each sub-object in each first time period is recorded and saved.
[0232] In one possible implementation, the processing module 14 is further configured to:
[0233] Get the state of each child object;
[0234] When the state of each sub-object is the normal incremental state, the sum of the multiple first increments corresponding to each sub-object is determined as the second increment based on multiple first identifiers.
[0235] The object processing device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0236] Figure 13 A schematic diagram of the structure of the electronic device provided in this application. Figure 13 As shown, the electronic device 20 provided in this embodiment includes at least one processor 21 and a memory 22. Optionally, the electronic device 20 further includes a communication component 23. The processor 21, memory 22, and communication component 23 are connected via a bus.
[0237] In the specific implementation process, at least one processor 21 executes computer execution instructions stored in memory 22, causing at least one processor 21 to perform the above-described method.
[0238] The specific implementation process of processor 21 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0239] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0240] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0241] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0242] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0243] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0244] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0245] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0246] The division of units is merely a logical functional division; 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 indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0247] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0248] In addition, 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.
[0249] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0250] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0251] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. An object processing method characterized by comprising: The method comprises: acquiring the type of each sub-object in the first object, the area information of each sub-object, and the first object value corresponding to each first time period in a preset period for each sub-object; determining the first parameter corresponding to each first time period for each sub-object according to the first time period, the type of each sub-object, and the area information, the first parameter being used to determine the increment of the object value of the sub-object in the first time period; determining the first increment generated by each sub-object in each first time period according to the first object value corresponding to each first time period for each sub-object and the first parameter, and marking each sub-object to obtain a plurality of first marks, the first mark being used to indicate that the sub-object has not completed the increment processing in the first time period; determining the second increment generated by the first object in the preset period according to the first increment corresponding to each sub-object and the first mark.
2. The method of claim 1, wherein, for any one first time period of the sub-object; acquiring the first object value corresponding to each first time period in a preset period for each sub-object, comprising: acquiring the object value of the sub-object in the first time period; if the object value of the sub-object has not changed in the first time period, determining the object value of the sub-object as the first object value corresponding to the first time period; if the object value of the sub-object has changed in the first time period, determining the object value of the sub-object at the last time in the first time period as the object value of the first time period.
3. The method of claim 1, wherein, for any one target sub-object; determining the first parameter corresponding to each first time period for each sub-object according to the first time period, the type of each sub-object, and the area information, comprising: acquiring a parameter table, the parameter table comprising the type of at least one sub-object and the first parameter of the type of each sub-object in a plurality of time periods; matching the first parameter corresponding to the plurality of first time periods for the target sub-object in the parameter table according to the type of the target sub-object, the plurality of first time periods, and the area information.
4. The method of claim 1, wherein, for any one sub-object; determining the first increment generated by each sub-object in each first time period according to the first object value corresponding to each first time period for each sub-object and the first parameter, comprising: determining whether there is a target time in the plurality of first time periods, the target time being the time in the plurality of first time periods at which the increment of the sub-object has been determined; when there is no target time in the plurality of first time periods, determining the first increment according to the first object value corresponding to the plurality of first time periods and the first parameter; when there is the target time in the plurality of first time periods, determining the first increment according to the target time, the first object value corresponding to the plurality of first time periods, and the first parameter.
5. The method of claim 4, wherein, determining the first increment according to the target time, the first object value corresponding to the plurality of first time periods, and the first parameter, comprising: determining the first time length after the target time in the plurality of first time periods; determine the first increment according to at least one first object value of the sub-object corresponding to a first time length, and a first parameter corresponding to the at least one first object value.
6. The method of claim 1, wherein, After determining the first increment generated by each sub-object in each first time period, the method comprises: verifying the first increment generated by each sub-object in each first time period to obtain a verification result; when the verification result is a verification pass, marking the state of each sub-object as an increment normal state, and updating a preset database, the preset database being used to store the first increment generated by each sub-object in each first time period; when the verification result is a verification fail, recording and saving abnormal information of the first increment generated by each sub-object in each first time period.
7. The method of claim 6, wherein, determine a second increment generated by the first object in the preset period according to the multiple first increments and the multiple first identifiers of each sub-object, comprising: obtain the state of each sub-object; when the state of each sub-object is an increment normal state, determine the sum of the multiple first increments of each sub-object as the second increment according to the multiple first identifiers.
8. An object processing apparatus characterized by comprising: comprise: an obtaining module, a first determining module, a second determining module, a third determining module, and a first processing module, wherein the obtaining module is configured to obtain the type of each sub-object in a first object, the area information of each sub-object, and the first object value corresponding to each first time period of each sub-object in a preset period; the first determining module is configured to determine the first parameter corresponding to each sub-object in each first time period according to the each first time period, the type of each sub-object, and the area information, the first parameter being used to determine the increment of the object value of the sub-object in the first time period; the second determining module is configured to determine the first increment generated by each sub-object in each first time period according to the multiple first object values of each sub-object corresponding to the multiple first time periods, and the multiple first parameters, and mark each sub-object to obtain multiple first identifiers, the first identifier being used to indicate that the sub-object has not completed the increment processing in the first time period; the processing module is configured to determine the second increment generated by the first object in the preset period according to the multiple first increments and the multiple first identifiers of each sub-object.
9. An electronic device, comprising: comprise: a memory, a processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the processor executes the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the method according to any one of claims 1-7.
11. A computer program product, characterised in that, comprise a computer program, which is executed by the processor to implement the method according to any one of claims 1-7.