Data settlement method, device, computer equipment, storage medium and program product
By obtaining the target settlement parameters of the target business, judging and reconstructing the settlement method, the problem of low computational efficiency of target business products in the financial market is solved, and efficient settlement data reuse and resource data acquisition are achieved.
Patent Information
- Application Number
- CN202210757356.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2042-06-30
AI Technical Summary
In traditional technology, the carry-over calculation of target business products in the financial market has problems such as discontinuous dates and date callbacks, resulting in invalid settlement data, low reuse rate of settlement data, and low efficiency in the carry-over calculation process.
By obtaining the target settlement parameters of the target business, we judge whether the initial settlement method matches the target business. If it does not match, a new settlement method will be reconstructed based on the target settlement parameters, and the new settlement method will be used for settlement, and resource data and resource change data will be obtained.
It improves the efficiency of settlement data reuse rate and carry-over calculation, avoids the failure of early settlement data, and reduces the cost of repeated preparation of settlement data.
Smart Images

Figure CN114998017B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a data settlement method, apparatus, computer equipment, storage medium, and program product. Background Art
[0002] In the financial market, various financial products must calculate daily resource data and resource change data (profit and loss data) to meet risk control requirements, and regularly carry forward resource data and resource change data for each product. Simultaneously, the test system can be used to carry forward and calculate the resource data and resource change data for the target business product at the forecast date.
[0003] Traditionally, the test system performs carry-forward processing on target business products in date order. However, due to issues such as date discontinuities, date callbacks, or changes in target business market data, carry-forward calculations for target business products often suffer. This can cause previous settlement data to become invalid during the carry-forward calculation process, resulting in low settlement data reuse rates and inefficient acquisition of settlement data during the carry-forward calculation process. Summary of the Invention
[0004] Based on this, it is necessary to provide a data settlement method, device, computer equipment, storage medium and program product that can improve the efficiency of obtaining settlement data in response to the above technical problems.
[0005] In a first aspect, the present application provides a data settlement method. The method comprises:
[0006] Obtain the target settlement parameters of the target business and the initial settlement method of the target business; if the initial settlement method does not match the target business, reconstruct a new settlement method based on the target settlement parameters of the target business; settle the target business based on the target settlement parameters and the new settlement method to obtain a settlement result; the settlement result includes resource data and resource change data of the target business.
[0007] In one embodiment, the method further includes: obtaining an identifier of the initial settlement method; and determining whether the initial settlement method matches the target service according to the identifier of the initial settlement method.
[0008] In one embodiment, whether the initial settlement method matches the target business is determined based on the identifier of the initial settlement method, including: if the identifier of the initial settlement method is a first value, determining that the initial settlement method matches the target business; if the identifier of the initial settlement method is a second value, determining that the initial settlement method does not match the target business.
[0009] In one embodiment, the method further includes: replacing the initial settlement method with the new settlement method, and changing the identifier from the second value to the first value.
[0010] In one embodiment, reconstructing a new settlement method according to the target settlement parameters of the target business includes: performing multi-dimensional calls on the initial settlement formula according to the target settlement parameters to obtain the new settlement method.
[0011] In one embodiment, obtaining target settlement parameters of a target business and an initial settlement method of the target business includes: obtaining a business identifier of the target business; determining the target settlement parameters of the target business from a settlement parameter database based on the business identifier; and determining the initial settlement method from a settlement method database based on the business identifier.
[0012] In one embodiment, the target settlement parameters include current settlement data, market data values, and transaction element values. Determining the target settlement parameters of the target business from a settlement parameter database based on the business identifier includes: calling a business management table, and querying the current settlement data corresponding to the target business from the business management table based on the business identifier; obtaining market data and transaction elements from a business matching database based on the business identifier; and obtaining the market data value and the transaction element value from a parameter management database based on the business identifier, the market data, and the transaction element.
[0013] In one embodiment, the method further includes: if the initial settlement method matches the target business, settling the target business according to the settlement parameters and the initial settlement method to obtain the settlement result.
[0014] In a second aspect, the present application also provides a test data acquisition method, the method comprising:
[0015] Obtain target settlement parameters of the target test task and the initial settlement method of the target test task; if the initial settlement method does not match the target test task, reconstruct a new settlement method for the target test task based on the target settlement parameters and the initial settlement method; settle the target test task based on the target settlement parameters and the new settlement method, and obtain test data of the target product corresponding to the target test task, wherein the test data is used to perform product testing in the test task corresponding to the preset date of the target product.
[0016] In a third aspect, the present application further provides a data settlement device. The device includes:
[0017] A first acquisition module is used to obtain target settlement parameters of a target business and an initial settlement method of the target business;
[0018] A first constructing module is configured to reconstruct a new settlement method according to a target settlement parameter of the target business if the initial settlement method does not match the target business;
[0019] The first settlement module is used to settle the target business according to the target settlement parameters and the new settlement method to obtain a settlement result; the settlement result includes resource data and resource change data of the target business.
[0020] In one embodiment, the apparatus further comprises:
[0021] The second acquisition module is configured to acquire an identifier of the initial settlement method; and determine whether the initial settlement method matches the target service according to the identifier of the initial settlement method.
[0022] In one embodiment, the second acquisition module is specifically used to: if the identifier of the initial settlement method is a first value, determine that the initial settlement method matches the target business; if the identifier of the initial settlement method is a second value, determine that the initial settlement method does not match the target business.
[0023] In one embodiment, the apparatus further comprises:
[0024] The changing module is used to adopt the new settlement method to replace the initial settlement method, and change the identifier from the second value to the first value.
[0025] In one embodiment, the first construction module is specifically used to: perform multi-dimensional calls on the initial settlement formula according to the target settlement parameters to obtain the new settlement method.
[0026] In one embodiment, the first acquisition module is specifically used to: obtain the service identifier of the target service; determine the target settlement parameters of the target service from the settlement parameter database according to the service identifier; and determine the initial settlement method from the settlement method database according to the service identifier.
[0027] In one embodiment, the target settlement parameters include current settlement data, market data values, and transaction element values. The first acquisition module is specifically used to: call the business management table, and query the current settlement data corresponding to the target business from the business management table according to the business identifier; obtain market data and transaction elements from the business matching database according to the business identifier; and obtain the market data value and the transaction element value from the parameter management database according to the business identifier, the market data, and the transaction element.
[0028] In one embodiment, the apparatus further comprises:
[0029] The second settlement module is configured to settle the target business according to the settlement parameters and the initial settlement method if the initial settlement method matches the target business, and obtain the settlement result.
[0030] In a fourth aspect, the present application further provides a test data acquisition device, the device comprising:
[0031] An acquisition module, configured to acquire target settlement parameters of a target test task and an initial settlement method of the target test task;
[0032] A construction module, configured to reconstruct a new settlement method for the target test task according to the target settlement parameters and the initial settlement method if the initial settlement method does not match the target test task;
[0033] A settlement module is used to settle the target test task according to the target settlement parameters and the new settlement method, and obtain the test data of the target product corresponding to the target test task, wherein the test data is used to perform product testing in the test task corresponding to the preset date of the target product.
[0034] In a fifth aspect, the present application also provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in any one of the first aspects are implemented, or when the processor executes the computer program, the steps of the method described in the second aspect are implemented.
[0035] In a sixth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any one of the first aspects above, or, when executed by a processor, implements the steps of the method described in the second aspect above.
[0036] In the seventh aspect, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the method described in any one of the first aspects above, or when the computer program is executed by a processor, it implements the steps of the method described in the second aspect above.
[0037] The above-mentioned data settlement method, apparatus, computer equipment, storage medium and program product obtain the target settlement parameters of the target business and the initial settlement method of the target business, and reconstruct a new settlement method based on the settlement parameters of the target business when the initial settlement method does not match the target business; thereby, the target business can be settled according to the settlement parameters and the new settlement method to obtain a settlement result; wherein the settlement result includes the resource data and resource change data of the target business. Since it can be determined in advance whether the initial settlement method matches the target business, and when it is determined that the initial settlement method does not match the target business, a new settlement method is reconstructed based on the settlement parameters of the target business; therefore, the target business can be effectively settled based on the new settlement method. The reconstructed new settlement method can fully consider the date issues or data changes that exist in the settlement process of the target business. The settlement process executed based on the new settlement method will not invalidate the previous settlement data, and its settlement data reuse rate is high, so the process of carrying forward calculation to obtain settlement results is efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 1 is a flow chart of a data settlement method according to an embodiment;
[0039] Figure 2 Schematic diagram of a matching judgment process in one embodiment;
[0040] Figure 3 A schematic diagram of a process for obtaining target settlement parameters and an initial settlement method in one embodiment;
[0041] Figure 4 A schematic diagram of a process for determining target settlement parameters in one embodiment;
[0042] Figure 5 A schematic diagram of the structure of a product settlement device in one embodiment;
[0043] Figure 6 A schematic diagram of identification judgment logic in one embodiment;
[0044] Figure 7 Schematic diagram of a flow chart of a test data acquisition method in one embodiment;
[0045] Figure 8 A structural block diagram of a data settlement device in one embodiment;
[0046] Figure 9 A structural block diagram of a test data acquisition device in one embodiment;
[0047] Figure 10 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0049] In the financial market, various financial products (such as foreign exchange, bonds, derivatives, and commodities) require daily calculation of resource data and resource change data (profit and loss data) to meet risk control requirements. This data and resource change data for each product must be carried forward regularly. Furthermore, the test system can be used to carry forward and calculate the resource data and resource change data for the target business product as of the forecast date.
[0050] Traditionally, testing systems carry forward target business products in date order. However, the conventional calculation method is to carry forward target business products sequentially. However, in testing systems, date discontinuities, date callbacks, the need to skip multiple dates, and the use of different interest rates and exchange rates for different products to achieve simultaneous testing of multiple scenarios often occur. This can prevent the target business product's resource data and resource change data from being carried forward properly, rendering previously used settlement data invalid. This results in low settlement data reuse rates, high costs for repeated preparation of settlement data, and low efficiency in the carryforward calculation process.
[0051] In view of this, an embodiment of the present application provides a data settlement method to solve the problems of invalidation of settlement data used in the early stage, low reuse rate of settlement data, high cost of repeated preparation of settlement data, and low efficiency of the carry-forward calculation process.
[0052] In one embodiment, Figure 1 As shown, a data settlement method is provided. The embodiment of the present application takes the application of this method to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Optionally, the test system can be integrated with the terminal, and the data settlement method is executed through the terminal to settle the target business and obtain the resource data and resource change data of the target business. Among them, the terminal can be but not limited to various personal computers, laptops, smart phones, tablet computers, etc., and the server can be implemented as an independent server or a server cluster composed of multiple servers. In the embodiment of the present application, the method includes the following steps:
[0053] Step 101: Obtain target settlement parameters of a target business and an initial settlement method for the target business.
[0054] The target business refers to a business that settles resource data and resource change data for a target product within a preset date range. Taking the financial market as an example, various financial products that can be settled include foreign exchange, bonds, financial derivatives, or financial commodities. The target product is any of these financial products. Of course, there are many different types of financial products, and any financial product that requires settlement of resource data and resource change data can be a target product. This embodiment of the application does not specifically limit this.
[0055] Specifically, the settlement of the target business needs to be based on the target settlement parameters of the target business, wherein the settlement parameters corresponding to each type of product may include the settlement date range of the target product, the start time and end time of the target product settlement, the type of target product, the value of the target product, the organization to which the target product belongs, etc., and the organization to which it belongs may be, for example, a head office or a branch office. The target settlement parameters of the target business may be one or more of these settlement parameters. The settlement processing of the target business may be based on the business formula corresponding to the target product. Optionally, the business formula for the settlement processing corresponding to each product may be stored in a business formula database. When it is necessary to settle the target product corresponding to the target business, the target business formula corresponding to the target business may be obtained from the business formula database and used as the initial settlement method. In other words, the initial settlement method of the target business is the target business formula of the target business initially obtained during the settlement processing. Optionally, the business formula corresponding to each target product stored in the business formula database may be implemented through a program, in the form of a mathematical formula, a mathematical model, etc., which is not specifically limited here.
[0056] Step 102: If the initial settlement method does not match the target business, a new settlement method is reconstructed according to the target settlement parameters of the target business.
[0057] Among them, what is stored in the business formula database may be a business formula for calculating the resource data and resource change data of the product on the same day, or what is stored is a business formula that has been reconstructed in the historical calculation process and is used to carry forward the calculation of the target business within a certain date range to obtain the resource data and resource change data of a preset date. In the embodiment of the present application, the carry-forward calculation is mainly performed on the target business within a certain date range. Therefore, when the initial settlement method obtained is a business formula for calculating the resource data and resource change data of the product on the same day, it is determined that the initial settlement method does not match the target business. Optionally, the business formula corresponding to each product in the business formula database can identify different values, and the identification value of the business formula corresponding to the initial settlement method can be obtained. By judging whether the identification value is a preset identification value, it is determined whether the initial settlement method matches the target business, and when it is judged that the identification value is a preset identification value, it is determined that the initial settlement method matches the target business. Optionally, since the settlement processing of the target business is based on the target settlement parameters of the target business and the initial settlement method, specifically, the initial settlement method uses the target settlement parameters to perform calculations to obtain the calculation results of the target business. Therefore, after obtaining the initial settlement method, it is also possible to determine whether the initial settlement method corresponds to the target settlement parameters to determine whether the initial settlement method matches the target business, and when it is determined that the initial settlement method corresponds to the target settlement parameters, it is determined that the initial settlement method matches the target business.
[0058] If the initial settlement method does not match the target business, a new settlement method is reconstructed based on the target business's settlement parameters. This new settlement method can be used to carry forward the target business within a certain date range to obtain resource data and resource change data for the preset date. Optionally, a new settlement method corresponding to the target business can be reconstructed based on the initial settlement method and the target settlement parameters.
[0059] Step 103: settle the target business according to the target settlement parameters and the new settlement method to obtain a settlement result; the settlement result includes resource data and resource change data of the target business.
[0060] Among them, based on the reconstructed new settlement method and the target settlement parameters, the target business can be settled to obtain the settlement result of the target product corresponding to the target business. The settlement result includes the resource data and resource change data of the target business. Optionally, the resource data of the target business can be the position data of the target business, and the resource change data can be the profit and loss data of the target business. The resource data can represent the quantity or amount of the target business, and the resource change data can represent the increase (amount) or decrease (amount) of the resource data of the target business from the initial date to the current date. For example, the target business settles the target product within the range from the first date to the second date. Based on the reconstructed new calculation method, the position data and profit and loss data of the target product on the second date are obtained. According to the obtained data, it can be used as test data to further perform corresponding business tests on the product.
[0061] The above-mentioned data settlement method obtains the target settlement parameters of the target business and the initial settlement method of the target business, and reconstructs a new settlement method based on the settlement parameters of the target business when the initial settlement method does not match the target business. Thus, the target business can be settled according to the settlement parameters and the new settlement method to obtain a settlement result; wherein the settlement result includes the resource data and resource change data of the target business. Since it can be determined in advance whether the initial settlement method matches the target business, and when it is determined that the initial settlement method does not match the target business, a new settlement method is reconstructed based on the settlement parameters of the target business; therefore, the target business can be effectively settled based on the new settlement method. The reconstructed new settlement method can fully consider the date issues or data changes that exist in the settlement process of the target business. The settlement process executed based on the new settlement method will not invalidate the previous settlement data, and its settlement data reuse rate is high, so the efficiency of the carry-forward calculation to obtain the settlement result is high.
[0062] In one embodiment, Figure 2 As shown, it shows a flow chart of a matching judgment provided by an embodiment of the present application. The data settlement method also includes:
[0063] Step 201: Obtain the identifier of the initial settlement method.
[0064] Step 202: Determine whether the initial settlement method matches the target service according to the identifier of the initial settlement method.
[0065] As mentioned above, optionally, a business formula corresponding to the target business can be obtained from a business formula database as the initial settlement method. Accordingly, the business formula database also includes an identifier corresponding to each business formula. Therefore, the identifier of the obtained initial settlement method is the identifier of the business formula. Based on the identifier of the initial settlement method, it can be determined whether the initial settlement method matches the target business.
[0066] Optionally, whether the initial settlement method matches the target business can be determined by judging whether the identifier of the initial settlement method is the first preset value or the second preset value. For example, when the identifier of the initial settlement method is the first preset value, it is determined that the initial settlement method matches the target business; when the identifier of the initial settlement method is the second preset value, it is determined that the initial settlement method does not match the target business.
[0067] Optionally, the business formula database only stores the identifiers of the newly reconstructed business formulas corresponding to each product during the historical calculation process. Therefore, it is possible to determine whether the initial settlement method contains the corresponding identifier. If so, the initial settlement method is determined to match the target business; if not, the initial settlement method is determined to not match the target business.
[0068] In the embodiment of the present application, whether the initial settlement method matches the target business is determined by identifying the initial settlement method, so that the matching judgment can be made accurately and quickly, thereby improving the settlement efficiency and accuracy of the target business.
[0069] The following describes the process of determining whether the initial settlement method matches the target business based on the identification value.
[0070] In one embodiment, the determination of whether the initial settlement method matches the target business is based on the identifier of the initial settlement method, including: if the identifier of the initial settlement method is a first value, determining that the initial settlement method matches the target business; if the identifier of the initial settlement method is a second value, determining that the initial settlement method does not match the target business.
[0071] Specifically, the identifier of the initial settlement method can be a circular identifier. When its corresponding identifier is the preset first value, the initial settlement method can be directly used to settle the target business. When the identifier of the initial settlement method is the second value, it means that the initial settlement method is used to calculate the resource data and resource change data of the target business on a single day during the historical operation of the test system. It is not a new settlement method for the target business reconstructed based on the target settlement parameters in the historical calculation process, that is, it cannot be used for the settlement of the target business within a certain date range. Therefore, it is determined that the initial settlement method does not match the target business, so as to further reconstruct the new settlement method corresponding to the target business based on the initial settlement method and the target settlement parameters. Optionally, the first value can be 1 and the second value can be 0; or, the first value can also be 0 and the second value can be 1; or, the first value can be true and the second value can be false, etc., which are not limited in the embodiments of the present application.
[0072] Based on this, it can be seen that the so-called initial settlement method refers to the settlement method for the target business that is first obtained after the target business is determined. When the initial settlement method matches the target business, it indicates that the initial settlement method is a newly constructed settlement method. When the initial settlement method does not match the target business, a new settlement method should be directly constructed. Therefore, the settlement method used to settle the target business is always a newly constructed one.
[0073] In one embodiment, the method further includes: replacing the initial settlement method with the new settlement method, and changing the identifier from the second value to the first value.
[0074] Among them, after the new settlement method is reconstructed, the new settlement method is used to settle the target business to obtain the settlement result. Optionally, when the initial settlement method does not match the target business, the identifier of the initial settlement method is the second value. After the new settlement method is reconstructed, the new calculation method can replace the initial settlement method and use the second value identifier, and replace the initial settlement method and store it in the business formula database. The next time the target business is settled based on the target settlement parameters, the new settlement method identified as the first value is directly called as the initial settlement method. At this time, it can be directly determined that the identifier of the obtained initial settlement method is the first value, which matches the target business, and can be directly used to settle the target business. For example, illustratively, the first value can be 1 and the second value can be 0. After the initial settlement method identified as 0 is reconstructed to obtain a new settlement method, 1 is used to identify the new settlement method.
[0075] In one embodiment, reconstructing a new settlement method according to the target settlement parameters of the target business includes: performing multi-dimensional calls on the initial settlement formula according to the target settlement parameters to obtain the new settlement method.
[0076] Optionally, based on the target settlement parameters and the initial settlement formula, a software program can be rewritten to match the settlement position data and profit and loss data of the target business, and the rewritten software program can be used as the new settlement method. During the construction process, the initial settlement parameters are called in a multi-dimensional loop based on multiple different parameters within the target settlement parameters, thereby achieving flexible carry-forwarding of the target business under different parameters. For example, if the target settlement parameters include a date range and an affiliated institution, the initial settlement formula will be called multiple times when reconstructing with the date range as the primary parameter, and will be called multiple times when reconstructing with the affiliated institution as the primary parameter. After these multi-dimensional calls, the software program for the new settlement method is obtained.
[0077] For example, if the target business is to transfer the position data and profit and loss data of a single bond from 20220401 to 20220430, then the software program rewritten by this calculation can be applied to all subsequent scenarios of cross-date transfer of single bonds. When used again, you can directly call the rewritten software program.
[0078] In this embodiment of the application, the target settlement parameter may include a date. Therefore, taking into account situations such as date discontinuity, date callbacks, and the need to skip multiple dates, a new settlement method is constructed based on the target settlement parameter and the initial settlement formula. The target business is settled based on this new settlement method. If date discontinuity or date callbacks occur during the settlement process, settlement can continue without wasting previous test data, being affected by dates, and eliminating the need to repeatedly prepare test data. This effectively improves settlement efficiency.
[0079] As mentioned above, it is necessary to determine whether the initial settlement method matches the target business based on the target settlement parameters of the target business and the initial settlement method of the target business. The following describes the process of obtaining the target settlement parameters and initial settlement method of the target business.
[0080] In one embodiment, Figure 3 As shown, it shows a flow chart of obtaining target settlement parameters and initial settlement method provided by an embodiment of the present application. Obtaining target settlement parameters of a target business and the initial settlement method of the target business includes:
[0081] Step 301: Obtain the service identifier of the target service.
[0082] Different businesses are associated with corresponding business identifiers, and the test system can use these business identifiers to determine which product the business corresponds to. Furthermore, different financial products are associated with corresponding asset numbers in the test system. Therefore, the business identifier of the target business can optionally be the asset number corresponding to the target product. For example, if the business identifier of the target business is 42666, this business identifier can be used to identify the bond that needs to be settled, thereby obtaining the bond's resource data and resource change data for the preset date.
[0083] Optionally, the test system may include a product management database that contains all products in the test system and their corresponding asset numbers. Products are stored by category. Therefore, after determining the target business, the asset number corresponding to the target product can be determined from the product management database and used as the business identifier for the target business.
[0084] Step 302: Determine the target settlement parameters of the target service from a settlement parameter database according to the service identifier.
[0085] The test system also includes a settlement parameter database. The settlement parameter database stores a list of settlement parameters used for settlement of different businesses, along with the business identifiers corresponding to each business. Therefore, multiple settlement parameters corresponding to a target business can be retrieved from the settlement parameter database based on the business identifier corresponding to the target business, and the retrieved multiple settlement parameters can be used as target settlement parameters. Optionally, the settlement parameters corresponding to different businesses may include, for example, date range parameters, denomination parameters, procedure parameters, institution parameters, transaction quantity parameters, exchange rate parameters, or interest rate parameters. The target settlement parameter can be a single one or multiple of these, depending on the actual circumstances of the target business, and is not specifically defined here.
[0086] Please refer to Figure 4 , which shows a schematic diagram of a process for determining target settlement parameters provided by an embodiment of the present application. The target settlement parameters include current settlement data, market data values, and transaction element values. The target settlement parameters of the target business are determined from the settlement parameter database based on the business identifier, including:
[0087] Step 401: call the business management table and query the current settlement data corresponding to the target business from the business management table according to the business identifier.
[0088] Specifically, the target settlement parameters include current settlement data, market data values, and transaction element values. Current settlement data includes current resource data and current resource change data. For example, in the target business described above, where the target product needs to be settled from a first date to a second date to obtain resource data and resource change data for the second date, the acquired current resource data and resource change data are the resource data and resource change data for the target product as of the first date. By acquiring this current settlement data and using the determined settlement method, settlement is performed for the target business.
[0089] The business management table stores the current settlement data and asset number for each product. Therefore, after determining the business ID, the business management table can be called to determine the current settlement data for the target product from the business management table based on the business ID. This is the current settlement data for the target business.
[0090] Optionally, the service management table may be stored in a service system for user use, or the service management table may be directly stored in the test system.
[0091] Step 402: Obtain market data and transaction elements from a business matching database based on the business identifier.
[0092] Specifically, the settlement parameter database may also include a business matching database, which stores the asset ID, market data, and transaction elements for each business-related product. Market data may include, for example, historical exchange rate parameters or interest rate parameters for the business-related product. Transaction elements may include, for example, date range parameters, denomination parameters, procedure parameters, institution parameters, or transaction quantity parameters. Based on the business identifier, the market data and transaction elements corresponding to the target product are retrieved from the business matching database.
[0093] Step 403: Acquire the market data value and the transaction element value from a parameter management database according to the service identifier, the market data and the transaction element.
[0094] Among them, the market data and transaction elements obtained above are parameters for settling the target business. In order to perform specific settlement calculations based on the settlement method and obtain asset data and asset change data, it is necessary to obtain the specific values of the market data and the transaction elements, that is, the market data value and the transaction element value.
[0095] Optionally, the settlement parameter database may further include a parameter management database, which stores the specific values of parameters corresponding to each business and the business identifiers corresponding to each business. Therefore, based on the business identifier, the market data, and the transaction elements, the market data values corresponding to the market data and the transaction element values corresponding to the transaction elements are retrieved from the data management database. Thus, settlement can be performed for the target business based on the current settlement data, market data values, transaction element values, and the newly reconstructed settlement method (or initial settlement method), obtaining resource data and resource change data corresponding to the target business.
[0096] Step 303: Determine the initial settlement method from the settlement method database according to the service identifier.
[0097] The test system also includes a settlement method database. This database stores the business formulas corresponding to different products and the asset numbers associated with each product. In other words, this database is the business formula database mentioned above. Therefore, after determining the business identifier of the target business, which is the asset number of the target product, the initial settlement method corresponding to the target business can be determined from the settlement method database based on this business identifier. The initial settlement method can then be determined to match the target business.
[0098] In the embodiment of the present application, the target settlement parameters and the initial settlement method can be quickly and accurately determined through the service identifier of the target service, providing a basis for subsequent improvement of settlement efficiency.
[0099] In one embodiment, the method further includes: if the initial settlement method matches the target business, settling the target business according to the settlement parameters and the initial settlement method to obtain the settlement result.
[0100] Among them, if the initial settlement method matches the target business, it means that the initial settlement method is a new settlement method that has been reconstructed for the target task in the historical settlement process. Therefore, its corresponding identifier is the first value. Based on the identifier, it can be determined that the initial settlement method matches the target business. Then, the target business can be settled directly according to the settlement parameters and the initial settlement method to obtain the settlement result.
[0101] In the embodiment of the present application, if the initial settlement method matches the target business, the target business can be settled directly according to the settlement parameters and the initial settlement method to obtain the settlement result. This improves the efficiency of determining the settlement method, eliminates the need to repeatedly construct new settlement methods, and improves settlement efficiency.
[0102] In one embodiment, a product settlement method is provided, which can be based on Figure 5The product settlement device shown is implemented using a software program. The product settlement device includes a product management module, a parameter management module, and a flexible carry-over module. The product management module includes a product asset library and a product matching module. The parameter management module includes a product and parameter matching module, a classification parameter acquisition module, and a cycle identification module. The flexible carry-over module includes a parameter input module, a business formula module, a calculation module, and an identification determination module. The carry-over calculation process for the target product using this product settlement method is as follows.
[0103] First, identify the target product and obtain its asset number from the product asset library. Using the product matching module, based on the asset number, access the business management table in the business system and retrieve the current position and profit / loss data for the target product from this table. The product asset library stores various product categories. The product matching module locates available data within the product asset library based on its current status, according to testing requirements. Furthermore, different products may require different parameters for carry-forward calculations, including but not limited to: ① Dates, such as the start and end dates for the carry-forward of the target product; ② Market data, such as exchange rates or interest rates for each product; and ③ Transaction elements, such as the face value, procedure, institution, and transaction quantity of each product. Therefore, the product matching module retrieves the date, market data, or transaction element parameters required for the carry-forward calculation for the target product as target settlement parameters. The classification parameter acquisition module retrieves the specific values corresponding to each target settlement parameter from the parameter management table to obtain the target settlement parameter values. The parameter input module retrieves the target settlement parameter values based on the target product, forms a parameter list for the calculation module, and inputs these target settlement parameter values into the value calculation module. Furthermore, based on the target product, the business formula module is used to obtain the target business formula for carrying forward calculations for the target product. The business formula for calculating position data and profit and loss data for each product under production conditions, sequential dates, fixed institutions, and other parameters is fixed. The business formula module can obtain the target business formula corresponding to the target product. At the same time, each business formula has a corresponding cycle identifier, and the cycle identifier module can be used to obtain the cycle identifier corresponding to the target business formula. Please refer to Figure 6, which shows a schematic diagram of an identification judgment logic provided by an embodiment of the present application. The identification judgment module determines whether the loop identification corresponding to the target business formula is 1. If it is 1, the calculation module is used to directly carry forward the target product based on the target business formula and the target settlement parameters. If the loop identification is 0, the calculation module is used to rewrite a new business formula for carrying forward the target product based on the target business formula and the target settlement parameters. After the rewriting is completed, the new business formula is used to replace the target business formula, and the loop identification of the target business formula is set to 1. During the rewriting process, the calculation module uses the parameter management module to perform parameter parsing based on the target settlement parameters and the target business formula, according to the products and test targets required by the business test, and converts the test targets into parameters that can be brought into the calculation module. The settlement procedure of the position profit and loss that meets the business needs is rewritten, and the target business formula is called in a multi-dimensional loop according to each target settlement parameter. Flexible carry-forward calculations under scenarios such as simulation across multiple dates and multiple institutions are realized, and the rewritten settlement procedure and applicable scenarios are saved to obtain the position data and profit and loss data of the target product under the target settlement data. For products whose settlement procedures have been rewritten, the loop flag is set to 1. For example, if the target product is test data for bond number 42695, and the target settlement parameters are a start date of April 1, 2022, and an end date of April 30, 2022, along with institutional parameters, the rewritten calculation procedure can be applied to all subsequent cross-date carryforward scenarios for this bond. This rewritten procedure can be used to obtain position data and profit and loss data for the target product as of April 30, 2022.
[0104] In the business testing environment related to various products in the financial market, it is necessary to obtain the test data of each product on the forecast date in order to perform the test tasks for the business related to the product based on the test data. Specifically, the test data can be the position profit and loss data of the product, that is, it is necessary to settle the product according to the test task to obtain the position profit and loss data of the product in order to further perform the test task. Among them, usually, in the business testing process of the financial market, various financial products need to calculate the daily position profit and loss every day in accordance with the requirements of risk control. The conventional calculation method is to carry forward the sequential dates of a certain product. However, in the test environment, there are often situations where the dates are discontinuous, the dates are called back, multiple dates need to be skipped, and different products use different interest rates and exchange rates to achieve multi-scenario synchronous testing. This will cause the product's position profit and loss data to be unable to be carried forward normally, resulting in the invalidation of the test data used in the early stage, resulting in a low test data reuse rate and a high cost of repeatedly preparing test data. In order to solve the above problems, an embodiment of the present application provides a test data acquisition method, which identifies the position profit and loss carry-forward procedures of various products, takes the date, exchange rate, amount and other parameters of the product currently to be carried forward as variables, and rewrites the position profit and loss carry-forward procedure for calculating the product through the business formula related to the product, so that all products can achieve personalized settlement position profit and loss data, which not only meets the simulation of production operation scenarios, but also ensures the validity of all test data when various parameters of products are flexible and changeable in the test environment.
[0105] In one embodiment, Figure 7 As shown, a test data acquisition method is provided, the method comprising:
[0106] Step 701: Obtain target settlement parameters of a target test task and an initial settlement method of the target test task.
[0107] The target testing task requires obtaining test data for a target product on a preset date. This test data may include position data and profit and loss data for the target product. Optionally, the target product may be any product such as foreign exchange, bonds, financial derivatives, or financial commodities.
[0108] For different products, obtaining their corresponding position data and profit and loss data requires settlement based on the parameters related to the product, and different types of products have different corresponding settlement parameters. Therefore, for the target test task, it is necessary to obtain the target settlement parameters related to the target product corresponding to the target test task. Optionally, the target settlement parameters include the start time and end time of the target product settlement, the type of target product, the value of the target product, the organization to which the target product belongs, etc., and the organization to which the target product belongs is, for example, a head office or a branch. At the same time, calculating the test data of different products requires calculation based on different business formulas. Therefore, the initial settlement method of the target test task is the business formula corresponding to the target product. Optionally, the business formula corresponding to each target product stored in the business formula database can be implemented through a program, in the form of a mathematical formula, a mathematical model, etc.
[0109] Step 702: If the initial settlement method does not match the target test task, a new settlement method for the target test task is reconstructed according to the target settlement parameters and the initial settlement method.
[0110] Among them, optionally, the business formula database may store business formulas for calculating the position data and profit and loss data of the product on the same day, or the business formulas stored are business formulas that have been reconstructed in the historical calculation process and are used to carry forward the calculation within a certain date range for the target product included in the target test task to obtain the test data of a preset date. In the embodiment of the present application, the carry-forward calculation is mainly performed within a certain date range for the target test task. Therefore, when the initial settlement method obtained is a business formula for calculating the position data and profit and loss data of the product on the same day, it is determined that the initial settlement method does not match the target test task. Optionally, the business formula corresponding to each product in the business formula database can identify different values, and the identification value of the business formula corresponding to the initial settlement method can be obtained. By judging whether the identification value is a preset identification value, it is determined whether the initial settlement method matches the target test task, and when it is judged that the identification value is a preset identification value, it is determined that the initial settlement method matches the target test task.
[0111] If the initial settlement method does not match the target test task, a new settlement method will be reconstructed based on the target settlement parameters of the target test task. The new settlement method obtained can be used to carry forward the target business within a certain date range to obtain test data for the preset date.
[0112] Step 703: settle the target test task according to the target settlement parameters and the new settlement method to obtain test data of the target product corresponding to the target test task, wherein the test data is used to perform product testing in the test task corresponding to the preset date of the target product.
[0113] Among them, based on the reconstructed new settlement method and the target settlement parameters, the target test task can be settled and the test data of the target product corresponding to the target test task can be obtained. The test data includes the position data and profit and loss data of the target test task. The obtained test data is the test data corresponding to the target product on the preset date obtained based on the new settlement method. Therefore, the obtained test data can be further applied to the subsequent test tasks corresponding to the preset date of the target product to perform product testing. For example, the target test task is to settle the bond product with the usage number 42695 and obtain the position data and profit and loss data of the bond product. The current business system has already carried forward the known position data and profit and loss data of the bond product on the current date. The current date is 20220401, and the next test date in the test plan is 20220430. Therefore, the position and profit and loss of the bond product need to be carried forward to the test date 20220430. First, obtain the target settlement parameters corresponding to the target test task, that is, the target solution parameters required for calculating the position profit and loss data of the bond product, such as the current date and test date, the source of the position data and profit and loss data on the current date, the face value, the institution and other parameters. Since only the date is a variable in this test, the date is extracted as the variable. If the initial settlement method does not match the target test task, a new settlement method for the target test task is reconstructed according to the target settlement parameters and the initial settlement method; the target test task is settled according to the target settlement parameters and the new settlement method, and the test data of the bond product on the test date 20220430 is obtained, so as to further conduct product testing in the test task corresponding to the preset date based on the test data.
[0114] The test data acquisition method provided in the embodiment of the present application can select appropriate parameters and data for testing according to the needs of the target product of the test system, and carry forward customized test data (position data and profit and loss data) as needed, thereby improving the data reuse rate of the test environment, reducing the time for repeated data preparation, and improving test efficiency. By identifying the business formula of the target product, taking the parameters of the target product that currently needs to be carried forward as variables, and rewriting the position data and profit and loss data carry-forward program through the business formula, a personalized carry-forward position profit and loss settlement program can be achieved for all products, which not only meets the simulation of production operation scenarios, but also ensures the validity of all test data when parameters such as product types and date ranges are flexible and changeable in the test environment, while meeting the needs of multiple test scenarios.
[0115] In one embodiment, the method further includes: obtaining an identifier of the initial settlement method; and determining whether the initial settlement method matches the target test task according to the identifier of the initial settlement method.
[0116] In one embodiment, whether the initial settlement method matches the target test task is determined based on the identifier of the initial settlement method, including: if the identifier of the initial settlement method is a first value, then determining that the initial settlement method matches the target test task; if the identifier of the initial settlement method is a second value, then determining that the initial settlement method does not match the target test task.
[0117] In one embodiment, the method further includes: replacing the initial settlement method with the new settlement method, and changing the identifier from the second value to the first value.
[0118] In one embodiment, a new settlement method for the target test task is reconstructed according to the target settlement parameters of the target test task, including: performing multi-dimensional calls on the initial settlement formula according to the target settlement parameters to obtain the new settlement method.
[0119] In one embodiment, obtaining the target settlement parameters of the target test task and the initial settlement method of the target test task includes: obtaining the business identifier of the target test task; determining the target settlement parameters of the target test task from a settlement parameter database based on the business identifier; and determining the initial settlement method from a settlement method database based on the business identifier.
[0120] In one embodiment, the target settlement parameters include current settlement data, market data values, and transaction element values. Determining the target settlement parameters of the target test task from the settlement parameter database according to the business identifier includes: calling the business management table, and querying the current settlement data corresponding to the target test task from the business management table according to the business identifier; obtaining market data and transaction elements from the business matching database according to the business identifier; and obtaining the market data value and the transaction element value from the parameter management database according to the business identifier, the market data, and the transaction element.
[0121] In one embodiment, the method further includes: if the initial settlement method matches the target test task, settling the target test task according to the settlement parameters and the initial settlement method to obtain the test data.
[0122] The implementation solution provided by the test data acquisition method to solve the problem is similar to the implementation solution recorded in the above-mentioned data settlement method. Therefore, for the specific limitations of the test data acquisition method in the embodiment of the present application, please refer to the limitations of the data settlement method above, and will not be repeated here.
[0123] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0124] Based on the same inventive concept, the embodiments of the present application further provide a data settlement device for implementing the aforementioned data settlement method. The implementation solution provided by the device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations in one or more data settlement device embodiments provided below can be found in the above-mentioned limitations on the data settlement method and will not be repeated here.
[0125] In one embodiment, Figure 8 As shown, a data settlement device is provided, the data settlement device 800 includes: a first acquisition module 801, a first construction module 802 and a first settlement module 803, wherein:
[0126] The first acquisition module 801 is used to obtain target settlement parameters of a target business and an initial settlement method of the target business;
[0127] A first constructing module 802 is configured to reconstruct a new settlement method according to target settlement parameters of the target business if the initial settlement method does not match the target business;
[0128] The first settlement module 803 is configured to settle the target business according to the target settlement parameters and the new settlement method to obtain a settlement result; the settlement result includes resource data and resource change data of the target business.
[0129] In one embodiment, the device further includes: a second acquisition module, configured to acquire an identifier of the initial settlement method; and determine whether the initial settlement method matches the target service according to the identifier of the initial settlement method.
[0130] In one embodiment, the second acquisition module is specifically used to: if the identifier of the initial settlement method is a first value, determine that the initial settlement method matches the target business; if the identifier of the initial settlement method is a second value, determine that the initial settlement method does not match the target business.
[0131] In one embodiment, the device further includes: a changing module, configured to adopt the new settlement method to replace the initial settlement method, and change the identifier from the second value to the first value.
[0132] In one embodiment, the first construction module 802 is specifically configured to: perform multi-dimensional calls on the initial settlement formula according to the target settlement parameters to obtain the new settlement method.
[0133] In one embodiment, the first acquisition module 801 is specifically used to: obtain the service identifier of the target service; determine the target settlement parameters of the target service from the settlement parameter database according to the service identifier; and determine the initial settlement method from the settlement method database according to the service identifier.
[0134] In one embodiment, the target settlement parameters include current settlement data, market data values, and transaction element values. The first acquisition module 801 is specifically used to: call the business management table, and query the current settlement data corresponding to the target business from the business management table according to the business identifier; obtain market data and transaction elements from the business matching database according to the business identifier; and obtain the market data value and the transaction element value from the parameter management database according to the business identifier, the market data, and the transaction element.
[0135] In one embodiment, the device further includes: a second settlement module, configured to settle the target business according to the settlement parameters and the initial settlement method to obtain the settlement result if the initial settlement method matches the target business.
[0136] In one embodiment, Figure 9 As shown, a test data acquisition device is provided. The test data acquisition device 900 includes: an acquisition module 901, a construction module 902 and a settlement module 903, wherein:
[0137] An acquisition module 901 is configured to acquire target settlement parameters of a target test task and an initial settlement method of the target test task;
[0138] A construction module 902 is configured to reconstruct a new settlement method for the target test task based on the target settlement parameters and the initial settlement method if the initial settlement method does not match the target test task;
[0139] Settlement module 903 is used to settle the target test task according to the target settlement parameters and the new settlement method, and obtain the test data of the target product corresponding to the target test task, wherein the test data is used to perform product testing in the test task corresponding to the preset date of the target product.
[0140] In one embodiment, the apparatus further comprises:
[0141] The matching judgment module is used to obtain the identifier of the initial settlement method; and determine whether the initial settlement method matches the target test task according to the identifier of the initial settlement method.
[0142] In one embodiment, the matching judgment module is specifically used to: if the identifier of the initial settlement method is a first value, determine that the initial settlement method matches the target test task; if the identifier of the initial settlement method is a second value, determine that the initial settlement method does not match the target test task.
[0143] In one embodiment, the device further includes: an identification changing module, configured to adopt the new settlement method to replace the initial settlement method, and change the identification from the second value to the first value.
[0144] In one embodiment, the construction module 902 is specifically used to: perform multi-dimensional calls on the initial settlement formula according to the target settlement parameters to obtain the new settlement method.
[0145] In one embodiment, the acquisition module 901 is specifically used to: obtain the business identifier of the target test task; determine the target settlement parameters of the target test task from the settlement parameter database according to the business identifier; and determine the initial settlement method from the settlement method database according to the business identifier.
[0146] In one embodiment, the target settlement parameters include current settlement data, market data values, and transaction element values. The acquisition module 901 is specifically used to: call the business management table, and query the current settlement data corresponding to the target test task from the business management table according to the business identifier; obtain market data and transaction elements from the business matching database according to the business identifier; and obtain the market data value and the transaction element value from the parameter management database according to the business identifier, the market data, and the transaction element.
[0147] In one embodiment, the device further includes: a second settlement module, configured to settle the target test task according to the settlement parameters and the initial settlement method if the initial settlement method matches the target test task, and obtain the test data.
[0148] Each module in the above-mentioned data settlement device or test data acquisition device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor of the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0149] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 10 As shown. The computer device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store data settlement data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements a data settlement method.
[0150] Those skilled in the art will understand that Figure 10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0151] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0152] Obtain the target settlement parameters of the target business and the initial settlement method of the target business; if the initial settlement method does not match the target business, reconstruct a new settlement method based on the target settlement parameters of the target business; settle the target business based on the target settlement parameters and the new settlement method to obtain a settlement result; the settlement result includes resource data and resource change data of the target business.
[0153] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: obtaining an identifier of the initial settlement method; and determining whether the initial settlement method matches the target service according to the identifier of the initial settlement method.
[0154] In one embodiment, when the processor executes the computer program, it also implements the following steps: if the identifier of the initial settlement method is a first value, it is determined that the initial settlement method matches the target business; if the identifier of the initial settlement method is a second value, it is determined that the initial settlement method does not match the target business.
[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: adopting the new settlement method to replace the initial settlement method, and changing the identifier from the second value to the first value.
[0156] In one embodiment, when the processor executes the computer program, it further implements the following steps: based on the target settlement parameters, the initial settlement formula is called in multiple dimensions to obtain the new settlement method.
[0157] In one embodiment, when the processor executes the computer program, it further implements the following steps: obtaining a service identifier of the target service; determining a target settlement parameter of the target service from a settlement parameter database based on the service identifier; and determining the initial settlement method from a settlement method database based on the service identifier.
[0158] In one embodiment, the target settlement parameters include current settlement data, market data values, and transaction element values. When the processor executes the computer program, it further implements the following steps: calling a business management table, and querying the current settlement data corresponding to the target business from the business management table based on the business identifier; obtaining market data and transaction elements from a business matching database based on the business identifier; and obtaining the market data value and the transaction element value from a parameter management database based on the business identifier, the market data, and the transaction element.
[0159] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: if the initial settlement method matches the target business, the target business is settled according to the settlement parameters and the initial settlement method to obtain the settlement result.
[0160] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0161] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0162] It should be noted that the methods and devices determined in the embodiments of the present application can be used in the settlement processing of products in the financial field, and can also be used in any field other than the financial field. The application fields of the methods and devices for data settlement provided in the embodiments of the present application are not limited.
[0163] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0164] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0165] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A data settlement method, characterized in that: The method comprises: Obtaining target settlement parameters of a target business and an initial settlement method for the target business; If the initial settlement method does not match the target business, reconstructing a new settlement method based on the target settlement parameters of the target business; performing settlement on the target business according to the target settlement parameters and the new settlement method to obtain a settlement result; the settlement result includes resource data and resource change data of the target business; The target settlement parameters include current settlement data, market data values, and transaction element values. The target settlement parameters of the target business and the initial settlement method of the target business are obtained, including: Obtaining a service identifier of the target service; Calling a business management table, and querying the current settlement data corresponding to the target business from the business management table according to the business identifier; Obtaining market data and transaction elements from a business matching database according to the business identifier; Acquire the market data value and the transaction element value from a parameter management database according to the service identifier, the market data and the transaction element; The initial settlement method is determined from a settlement method database according to the service identifier, wherein the settlement method database stores a correspondence between the service identifier and the initial settlement method.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining an identifier of the initial settlement method; Determine whether the initial settlement method matches the target service according to the identifier of the initial settlement method.
3. The method according to claim 2, characterized in that The determining, according to the identifier of the initial settlement method, whether the initial settlement method matches the target service includes: If the identifier of the initial settlement method is the first value, determining that the initial settlement method matches the target service; If the identifier of the initial settlement method is the second value, it is determined that the initial settlement method does not match the target service.
4. The method according to claim 3, characterized in that The method further comprises: The new settlement method is adopted to replace the initial settlement method, and the identifier is changed from the second value to the first value.
5. The method according to any one of claims 1 to 4, characterized in that The reconstructing of a new settlement method according to the target settlement parameters of the target business includes: According to the target settlement parameters, the initial settlement formula is called in multiple dimensions to obtain the new settlement method.
6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: If the initial settlement method matches the target business, the target business is settled according to the settlement parameters and the initial settlement method to obtain the settlement result.
7. A test data acquisition method, characterized in that: The method comprises: Obtain target settlement parameters of a target test task and an initial settlement method of the target test task; If the initial settlement method does not match the target test task, reconstructing a new settlement method for the target test task based on the target settlement parameters and the initial settlement method; Settling the target test task according to the target settlement parameter and the new settlement method to obtain test data of the target product corresponding to the target test task, wherein the test data is used to perform product testing in the test task corresponding to the preset date of the target product; The target settlement parameters include current settlement data, market data values, and transaction element values. The target settlement parameters of the target test task and the initial settlement method of the target test task are obtained, including: Obtaining the service identifier of the target test task; Calling a business management table, and querying the current settlement data corresponding to the target test task from the business management table according to the business identifier; Obtaining market data and transaction elements from a business matching database according to the business identifier; Acquire the market data value and the transaction element value from a parameter management database according to the service identifier, the market data and the transaction element; The initial settlement method is determined from a settlement method database according to the service identifier, wherein the settlement method database stores a correspondence between the service identifier and the initial settlement method.
8. A data settlement device, characterized in that: The device comprises: A first acquisition module is used to acquire target settlement parameters of a target business and an initial settlement method of the target business; A first constructing module is configured to reconstruct a new settlement method according to a target settlement parameter of the target business if the initial settlement method does not match the target business; a first settlement module, configured to settle the target business according to the target settlement parameters and the new settlement method, and obtain a settlement result; the settlement result includes resource data and resource change data of the target business; The target settlement parameters include current settlement data, market data values, and transaction element values. The first acquisition module is specifically used to obtain the business identifier of the target business; call the business management table, and query the current settlement data corresponding to the target business from the business management table based on the business identifier; obtain market data and transaction elements from a business matching database based on the business identifier; obtain the market data value and the transaction element value from a parameter management database based on the business identifier, the market data, and the transaction elements; and determine the initial settlement method from a settlement method database based on the business identifier, where the settlement method database stores the correspondence between the business identifier and the initial settlement method.
9. A test data acquisition device, characterized in that: The device comprises: An acquisition module, configured to acquire target settlement parameters of a target test task and an initial settlement method of the target test task; A construction module, configured to reconstruct a new settlement method for the target test task according to the target settlement parameters and the initial settlement method if the initial settlement method does not match the target test task; a settlement module, configured to settle the target test task according to the target settlement parameter and the new settlement method, and obtain test data of the target product corresponding to the target test task, wherein the test data is used to perform product testing in the test task corresponding to the preset date of the target product; The target settlement parameters include current settlement data, market data values, and transaction element values. The acquisition module is specifically used to obtain the business identifier of the target test task; call the business management table, and query the current settlement data corresponding to the target test task from the business management table according to the business identifier; obtain market data and transaction elements from the business matching database according to the business identifier; obtain the market data value and the transaction element value from the parameter management database according to the business identifier, the market data, and the transaction elements; determine the initial settlement method from the settlement method database according to the business identifier, and the settlement method database stores the correspondence between the business identifier and the initial settlement method.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented; or when the processor executes the computer program, the steps of the method according to claim 7 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented; or when the computer program is executed by a processor, the steps of the method according to claim 7 are implemented.
12. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented; or when the computer program is executed by a processor, the steps of the method according to claim 7 are implemented.
Citation Information
Patent Citations
Settlement data processing method, apparatus, computer device, and storage medium
CN109410069A
Business processing method, device and equipment
CN113516558A