Settlement method and device, computer device and storage medium for realizing settlement factor with flexible configuration
By configuring settlement factors in a distributed cache and utilizing the dynamic configuration of logical tables, logical conditions, and logical relationships, the problem of insufficient flexibility in the existing settlement factor encapsulation method is solved, thereby achieving flexibility and performance improvement in the business logic processing of settlement factors.
Patent Information
- Application Number
- CN202111638531.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2041-12-29
AI Technical Summary
The existing encapsulation methods for settlement factors lack flexibility and are difficult to meet the diverse and complex settlement business needs, resulting in high processing difficulty and limited performance.
By pre-storing the configuration information of multiple settlement factors in a distributed cache, the configuration information of the target settlement factor is obtained according to the settlement type selected by the user, and dynamic configuration is achieved through logical tables, logical conditions, and logical relationships, thus realizing flexible configuration of settlement factors.
It improves the flexibility of settlement factor business logic processing, reduces processing difficulty, and enhances the flexibility and performance of factor configuration.
Smart Images

Figure CN114297213B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of information processing, and in particular to a settlement method and device for realizing flexible settlement factors, a computer device and a storage medium. BACKGROUND
[0002] The settlement factor, i.e. the settlement condition, is one of the elements constituting the settlement rule. The settlement factor is encapsulated by logical processing and data processing of different data according to the characteristics of the settlement business scenario. Therefore, the diversity and complexity of the settlement business scenario determine the difficulty and performance of the settlement factor business logic processing.
[0003] The existing settlement factor encapsulation modes in the market mainly include three modes of factor element table, database function and pure code encapsulation.
[0004] The factor element table mode (factor wide table) is to sort out the settlement factor logic in the early stage of settlement and constitute a settlement factor element table. The disadvantage is that the supplement of the factor needs the intervention of the R&D personnel and the factor flexibility is insufficient.
[0005] The database function mode is to encapsulate the related settlement factor logic by using the database function. The disadvantage is that the factor performance is limited by the database performance.
[0006] The pure code encapsulation mode is to develop and encapsulate the code according to the logic of different factors by the R&D personnel. The disadvantage is that the supplement of the factor needs the intervention of the R&D personnel and the factor configuration flexibility is insufficient. SUMMARY
[0007] The present application provides a settlement method and device for realizing flexible settlement factors, a computer device and a storage medium, which improves the flexibility of the settlement factor business logic processing and reduces the difficulty of the settlement factor business logic processing.
[0008] In a first aspect, the present application provides a settlement method for realizing flexible settlement factors, which comprises the following steps:
[0009] obtaining the configuration information of the target settlement factor matched with the settlement type selected by the user from the distributed cache, and confirming all the logical table information in the configuration information of the target settlement factor, wherein the configuration information of at least one settlement factor is cached in the distributed cache;
[0010] obtaining the archive information corresponding to all the logical table information from the distributed cache and confirming the logical condition corresponding to the logical table from the configuration information of the target settlement factor;
[0011] filtering the archive information corresponding to the logical condition according to the logical condition to obtain target archive information;
[0012] confirming a logical relationship from the configuration information of the target settlement factor, and associating all the target archive information according to the logical relationship to obtain a corresponding output result.
[0013] In a second aspect, the embodiments of the present application further provide a settlement device capable of flexibly configuring a settlement factor, which comprises:
[0014] a logical table confirming unit configured to acquire configuration information of a target settlement factor matched with a settlement type selected by a user from a distributed cache, and confirm all logical table information in the configuration information of the target settlement factor, wherein the distributed cache caches configuration information of at least one settlement factor;
[0015] a logical condition confirming unit configured to acquire archive information corresponding to all the logical table information from the distributed cache, and confirm a logical condition corresponding to the logical table from the configuration information of the target settlement factor;
[0016] a first filtering unit configured to filter the archive information corresponding to the logical condition according to the logical condition to obtain target archive information;
[0017] a result output unit configured to confirm a logical relationship from the configuration information of the target settlement factor, and associate all the target archive information according to the logical relationship to obtain a corresponding output result.
[0018] In a third aspect, the embodiments of the present application further provide a computer device, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the above method when executing the computer program.
[0019] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and the computer program can implement the above method when executed by a processor.
[0020] The embodiment of the present application provides a settlement method, device, computer equipment and storage medium for realizing settlement factors which can be flexibly configured. The method comprises the following steps: obtaining configuration information of a target settlement factor matched with a settlement type selected by a user from a distributed cache, and confirming all logical table information in the configuration information of the target settlement factor, wherein the distributed cache stores configuration information of at least one settlement factor; obtaining archive information corresponding to all the logical table information from the distributed cache, and confirming a logical condition corresponding to the logical table from the configuration information of the target settlement factor; filtering the archive information corresponding to the logical condition according to the logical condition to obtain target archive information; confirming a logical relationship from the configuration information of the target settlement factor, and associating all the target archive information according to the logical relationship to obtain a corresponding output result. The embodiment of the present application pre-stores configuration information of multiple settlement factors in a distributed cache, and can confirm configuration information of a target settlement factor according to a settlement type selected by a user, so as to enter a settlement process. In the settlement process, archive information corresponding to a logical table is obtained through the logical table, and the archive information is screened according to a logical condition. The logical condition is set by a user, and the target archive information obtained by different logical conditions is also different, and the output result obtained according to the logical relationship is also different, so that the configuration information of the settlement factor which can be flexibly configured is realized, and the processing difficulty of the settlement factor business logic is reduced. BRIEF DESCRIPTION OF DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0022] Figure 1 is a flowchart of the settlement method for realizing settlement factors which can be flexibly configured provided by the embodiment of the present application;
[0023] Figure 2 is a configuration information diagram of a settlement factor of the settlement method for realizing settlement factors which can be flexibly configured provided by the embodiment of the present application;
[0024] Figure 3 is a structure diagram of a distributed cache of the settlement method for realizing settlement factors which can be flexibly configured provided by the embodiment of the present application;
[0025] Figure 4 is a schematic block diagram of the settlement device for realizing settlement factors which can be flexibly configured provided by the embodiment of the present application;
[0026] Figure 5 is a schematic block diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0027] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0028] It should be understood that, when used in the specification and the appended claims, the terms "comprise" and "include" indicate the presence of the described features, integers, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, operations, elements, components, and / or groups thereof.
[0029] It should also be understood that the terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and the appended claims of the present application, the singular forms "a", "an" and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should be further understood that the term "and / or" used in the specification and the appended claims of the present application means any combination of one or more of the associated listed items and all possible combinations thereof, and includes these combinations.
[0030] Please refer to Figure 1 , Figure 1 is a flowchart of a settlement method for realizing a flexible settlement factor provided by an embodiment of the present application. The settlement method for realizing a flexible settlement factor of the embodiment of the present application is applied to any computer device. As shown in Figure 1 , the method comprises steps S110-S140.
[0031] S110, obtaining configuration information of a target settlement factor matched with a settlement type selected by a user from a distributed cache, and confirming all logical table information in the configuration information of the target settlement factor, wherein the distributed cache caches configuration information of at least one settlement factor.
[0032] In the embodiment of the present application, as shown in Figure 2 and Figure 3 , Figure 2 is the content contained in the configuration information of the settlement factor, which is a logical table, a logical condition, a logical relationship and a logical result respectively, Figure 3is the content stored in the distributed cache, including basic configuration, archive information, settlement rule and configuration information of settlement factor, wherein the logical table generally contains logical table name and archive information name, as shown in the following table:
[0033] Table 1 Product Settlement Table
[0034] Logical table 1
[0035] Table 2 Settlement Proportion Table
[0036] Logical table 2
[0037] In the distributed cache, there are archive information with archive information name of product settlement table and settlement ratio table, as shown in the following table:
[0038]
[0039] Product settlement table
[0040]
[0041]
[0042] Settlement ratio table
[0043] As shown in the product settlement table and the settlement ratio table, the product settlement table includes product code, account subject, expense item ID and settlement amount of settlement subject, and the settlement ratio table contains account subject and settlement ratio of settlement subject.
[0044] The logical condition can include multiple sub-logical conditions, for example, for each logical table, there can be a corresponding logical condition for filtering the archive information corresponding to the logical table, and it is worth mentioning that it is not mandatory to set a sub-logical condition for each logical table, and it is not mandatory to set only one sub-logical condition for a logical table. The user can modify the logical condition through the front-end interface, and the modification methods include but are not limited to directly inputting the logical condition or selecting from the provided menu. The logical relationship mainly includes the association relationship between different settlement subjects and the settlement formula, for example, account subject = account subject output result, account subject output result = settlement amount * settlement ratio, and the logical result is the final calculation result obtained according to the above logical relationship, which is used to output the result to present to the user.
[0045] In addition, the user can add or delete the configuration information and the archive information of the settlement factor in the distributed cache through the front-end interface, and meanwhile, the user can modify and save the configuration information and the archive information of the settlement factor stored in the distributed cache through the front-end interface, for example, the user can modify the logical condition and the logical relationship in the front-end interface. After the user completes the addition, the deletion or the modification of the configuration information of the settlement factor, the user can select the settlement type which needs to be settled, for example, settlement fee accounting, and the configuration information of the settlement factor corresponding to the settlement fee accounting is stored in the distributed cache and is taken as the configuration information of the target settlement factor. Before the computer invokes the method provided by the embodiment of the present application, the user can modify the logical condition and the logical relationship to configure the configuration information of the settlement factor, and after the user confirms that the calculation can be performed, the computer invokes the method provided by the embodiment of the present application to perform the calculation.
[0046] S120, obtaining the archive information corresponding to all the logical table information from the distributed cache and confirming the logical condition corresponding to the logical table from the configuration information of the target settlement factor.
[0047] In the embodiment of the present application, if the configuration information of the target settlement factor contains the content mentioned in the foregoing, the archive information can be confirmed according to the content contained in the logical table 1 and the logical table 2, as shown in the logical table 1 and the logical table 2, the corresponding archive information is the product settlement table and the settlement proportion table respectively. The logical condition contains two sub-logical conditions, and both of them are matched with the logical table 1, and the logical table 2 has no logical condition, so the two sub-logical conditions are product code=(the code input or selected by the user) and column collection subject=(the number input or selected by the user) respectively, for example, product code=A1 and column collection subject=A13.
[0048] S130, filtering the archive information corresponding to the logical condition according to the logical condition to obtain the target archive information.
[0049] In the embodiment of the present application, as shown in the product settlement table and the settlement proportion table, the sub-logical conditions are product code=A1 and column collection subject=A13 respectively, so the target archive information can be generated by removing the settlement subjects in the product settlement table which are not involved in the sub-logical conditions, as shown in the following table:
[0050] Product Code Accounting Item Charge Item ID Settlement Amount A1 A13 1003 31232
[0051] The target archive information is not related to the logical condition of the settlement proportion table in the configuration information of the target settlement factor, so the settlement proportion table is not processed, and the settlement proportion table is directly taken as the target archive information.
[0052] S140, confirming a logical relationship from the configuration information of the target settlement factor, and associating all the target archive information according to the logical relationship to obtain a corresponding output result.
[0053] In the embodiment of the present application, the logical relationship is: account subject = account subject output result, and account subject output result = settlement amount * settlement ratio. According to the target archive information, it can be known that the account subject is A13, the settlement amount is 31232, and the settlement ratio corresponding to A13 is 0.4 according to the settlement ratio table. Therefore, the logical relationship is: A13 = account subject output result, and account subject output result = 31232 * 0.4. After settlement, A13 = 12492.8 can be obtained. Therefore, 12492.8 is output as the output result.
[0054] In some embodiments, for example, in the present embodiment, the settlement method for flexibly configuring the settlement factor can further include the following steps: obtaining a settlement subject selected by a user, and taking the settlement subject selected by the user as a new logical condition; storing the new logical condition in the configuration information of the target settlement factor to cover the logical condition to complete the update of the configuration information of the target settlement factor.
[0055] The step S130 can further include the following steps: confirming the settlement subject selected by the user according to the logical condition; and confirming the settlement subject selected by the user in the archive information corresponding to the logical table to generate the target archive information.
[0056] In the embodiment of the present application, the user can reconfigure the configuration information of the settlement factor, for example, add a new logical condition, after the output result of the configuration information of a target settlement factor is obtained, or before the configuration information of the target settlement factor is confirmed, to filter the archive information. When calculating the output result of the configuration information of the target settlement factor, the settlement subject selected by the user can be confirmed according to the logical condition, and the archive information can be filtered according to the selected settlement subject.
[0057] In some embodiments, for example, in the present embodiment, the settlement method for flexibly configuring the settlement factor can further include the following steps: obtaining a settlement subject selected by a user, and taking the settlement subject selected by the user as a new logical condition; storing the new logical condition in the configuration information of the target settlement factor to cover the logical condition to complete the update of the configuration information of the target settlement factor.
[0058] The step S140 can further include the following steps: associating the settlement subject involved in the settlement subject relationship formula in all the target archive information according to the settlement subject relationship formula; and confirming the numerical value of the settlement subject involved in the settlement subject relationship formula in all the target archive information according to the settlement formula to obtain the output result.
[0059] In the embodiment of the present application, the settlement subject relationship formula is used to associate different settlement subjects, including but not limited to different settlement subjects in the same archive information and settlement subjects in different archive information. The user can also modify the logical relationship to reconfigure the configuration information of the settlement factor, so as to use it in different scenarios. When calculating, the settlement subjects participating in the calculation and the relationship between the settlement subjects participating in the calculation can be confirmed according to the settlement subject relationship formula, and finally the output result is calculated according to the settlement formula.
[0060] In some embodiments, such as the present embodiment, the settlement method for flexibly configuring the settlement factor can further include the following steps: obtaining the logical table input by the user and the archive information corresponding to the logical table; storing the logical table in the configuration information of the target settlement factor and storing the archive information in the distributed cache to complete the update of the configuration information of the target settlement factor.
[0061] In the embodiment of the present application, in addition to modifying the logical condition and the logical relationship in the configuration information of the settlement factor, the user can also add a logical table and the archive information matching the logical table to the distributed cache.
[0062] In some embodiments, such as the present embodiment, the settlement method for flexibly configuring the settlement factor can further include the following steps: obtaining the configuration information of the settlement factor to be added and the archive information to be added input by the user, associating the archive information to be added with the logical table in the configuration information of the settlement factor to be added; and storing the configuration information of the settlement factor to be added and the archive information to be added in the distributed cache.
[0063] In the embodiment of the present application, in addition to modifying the configuration information of the settlement factor in the distributed cache, the user can also add or delete the configuration information of the settlement factor. When adding, the configuration information of the settlement factor and the archive information matching the logical table in the configuration information of the settlement factor need to be stored in the distributed cache.
[0064] Figure 4 is a schematic block diagram of a settlement device 100 for flexibly configuring a settlement factor provided by the embodiment of the present application. As shown in Figure 4As shown, corresponding to the above settlement method of flexibly configuring settlement factors, the present application also provides a settlement device 100 for implementing the settlement method of flexibly configuring settlement factors. The settlement device 100 for implementing the settlement method of flexibly configuring settlement factors comprises units for executing the above settlement method of flexibly configuring settlement factors. Specifically, please refer to Figure 4 The settlement device 100 for implementing the settlement method of flexibly configuring settlement factors comprises a logical table confirmation unit 110, a logical condition confirmation unit 120, a first filtering unit 130 and a result output unit 140.
[0065] The logical table confirmation unit 110 is configured to acquire configuration information of a target settlement factor matched with a settlement type selected by a user from a distributed cache, and confirm all logical table information in the configuration information of the target settlement factor, wherein the distributed cache caches configuration information of at least one settlement factor; the logical condition confirmation unit 120 is configured to acquire archive information corresponding to all the logical table information from the distributed cache and confirm a logical condition corresponding to the logical table from the configuration information of the target settlement factor; the first filtering unit 130 is configured to filter the archive information corresponding to the logical condition according to the logical condition to obtain target archive information; and the result output unit 140 is configured to confirm a logical relationship from the configuration information of the target settlement factor, and associate all the target archive information according to the logical relationship to obtain a corresponding output result.
[0066] Another embodiment of the present application also provides a settlement device for implementing the settlement method of flexibly configuring settlement factors. The settlement device for implementing the settlement method of flexibly configuring settlement factors in the present embodiment is based on the above-mentioned embodiment and additionally comprises a first acquisition unit and a first update unit.
[0067] The first acquisition unit is configured to acquire a settlement subject selected by a user, and take the settlement subject selected by the user as a new logical condition; and the first update unit is configured to store the new logical condition in the configuration information of the target settlement factor to cover the logical condition, so as to complete the update of the configuration information of the target settlement factor.
[0068] In some embodiments, for example, the first filtering unit 130 in the present embodiment comprises a first confirmation unit and a first generation unit.
[0069] The first confirmation unit is configured to confirm the settlement subject selected by the user according to the logical condition; and the first generation unit is configured to confirm the settlement subject selected by the user in the archive information corresponding to the logical table to generate the target archive information.
[0070] Another embodiment of the present application also provides a settlement device capable of flexibly configuring a settlement factor.
[0071] The second obtaining unit is configured to obtain the settlement subject relational expression and the settlement formula selected by the user, and store the settlement subject relational expression and the settlement formula as new logical relations.
[0072] In some embodiments, for example, the result output unit 140 includes a first association unit and a first calculation unit.
[0073] The first association unit is configured to associate the settlement subjects involved in the settlement subject relational expression in all the target archive information according to the settlement subject relational expression.
[0074] Another embodiment of the present application also provides a settlement device capable of flexibly configuring a settlement factor.
[0075] The third obtaining unit is configured to obtain the logical table input by the user and the archive information corresponding to the logical table.
[0076] Another embodiment of the present application also provides a settlement device capable of flexibly configuring a settlement factor.
[0077] The fourth obtaining unit is configured to obtain the configuration information of the settlement factor to be added and the archive information to be added input by the user, and associate the archive information to be added with the logical table in the configuration information of the settlement factor to be added.
[0078] It should be noted that the above-mentioned implementation of the settlement device and the specific implementation process of each unit can be flexibly configured with a settlement factor, which can be referred to the corresponding description in the foregoing method embodiments. For the convenience and brevity of description, it will not be repeated here.
[0079] The above-mentioned implementation of the settlement device with a settlement factor can be realized in the form of a computer program, which can run on a computer device as shown in the figure. Figure 5
[0080] Please refer to Figure 5 , Figure 5 is a schematic block diagram of a computer device provided by an embodiment of the present application. Please refer to Figure 5 The computer device 500 includes a processor 502, a memory and an interface 507 connected through a system bus 501, wherein the memory can include a non-volatile storage medium 503 and an internal memory 504.
[0081] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, can make the processor 502 execute a settlement method with a settlement factor that can be flexibly configured.
[0082] The processor 502 is configured to provide computing and control capabilities to support the operation of the entire computer device 500.
[0083] The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503. The computer program 5032, when executed by the processor 502, can make the processor 502 execute any embodiment of the above-mentioned settlement method with a settlement factor that can be flexibly configured.
[0084] The interface 505 is configured to communicate with other devices. Those skilled in the art can understand that the structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device 500 to which the scheme of the present application is applied. The specific computer device 500 can include more or less components than those shown in the figure, or combine certain components, or have a different component arrangement. Figure 5
[0085] The processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
[0086] According to the settlement type selected by the user, configuration information of a target settlement factor matched with the settlement type in the distributed cache is acquired, and all logical table information in the configuration information of the target settlement factor is confirmed, wherein the distributed cache caches configuration information of at least one settlement factor;
[0087] Archive information corresponding to all the logical table information is acquired from the distributed cache, and a logical condition corresponding to the logical table is confirmed from the configuration information of the target settlement factor;
[0088] According to the logical condition, archive information corresponding to the logical condition is filtered to obtain target archive information;
[0089] A logical relationship is confirmed from the configuration information of the target settlement factor, and all the target archive information is associated according to the logical relationship to obtain a corresponding output result.
[0090] In an embodiment, the processor 502 further implements the following steps:
[0091] The settlement subject selected by the user is acquired, and the settlement subject selected by the user is taken as a new logical condition;
[0092] The new logical condition is stored in the configuration information of the target settlement factor to cover the logical condition, so as to complete the update of the configuration information of the target settlement factor.
[0093] In an embodiment, when the processor 502 implements the step of filtering the archive information corresponding to the logical condition according to the logical condition to obtain target archive information, the following steps are specifically implemented:
[0094] The settlement subject selected by the user is confirmed according to the logical condition;
[0095] The settlement subject selected by the user is confirmed in the archive information corresponding to the logical table to generate the target archive information.
[0096] In an embodiment, the processor 502 further implements the following steps:
[0097] The settlement subject relationship and the settlement formula selected by the user are acquired, and the settlement subject relationship and the settlement formula are taken as a new logical relationship;
[0098] The new logical relationship is stored in the configuration information of the target settlement factor to cover the logical relationship, so as to complete the update of the configuration information of the target settlement factor.
[0099] In an embodiment, the processor 502 implements the following steps when implementing the step of associating all the target archive information according to the logical relationship to obtain a corresponding output result:
[0100] associating the settlement subjects involved in the settlement subject relationship formula in all the target archive information according to the settlement subject relationship formula;
[0101] confirming the numerical values of the settlement subjects involved in the settlement subject relationship formula in all the target archive information according to the settlement formula to obtain the output result.
[0102] In an embodiment, the processor 502 further implements the following steps:
[0103] obtaining a logical table input by the user and archive information corresponding to the logical table;
[0104] storing the logical table into the configuration information of the target settlement factor and storing the archive information into the distributed cache to complete the update of the configuration information of the target settlement factor.
[0105] In an embodiment, the processor 502 further implements the following steps:
[0106] obtaining configuration information of a settlement factor to be added and archive information to be added input by the user, and associating the archive information to be added with a logical table in the configuration information of the settlement factor to be added;
[0107] storing the configuration information of the settlement factor to be added and the archive information to be added into the distributed cache.
[0108] It should be understood that, in the embodiments of the present application, the processor 502 can be a central processing unit (CPU), and the processor 502 can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0109] Those skilled in the art can understand that all or part of the processes in the method of the above-mentioned embodiments can be completed by instructing the relevant hardware by a computer program. The computer program can be stored in a storage medium, which is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to realize the process steps of the above-mentioned embodiments of the method.
[0110] Therefore, the application further provides a storage medium. The storage medium can be a computer readable storage medium. The storage medium stores a computer program. The computer program realizes any one of the above-mentioned embodiments of the settlement method of the flexible settlement factor when executed by a processor.
[0111] The storage medium can be a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various computer readable storage media that can store program codes.
[0112] Those skilled in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in general terms in the above description. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the application.
[0113] In several embodiments provided by the application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and actual implementation can have another division manner. For example, a plurality of units or components can be combined or integrated into another system, or some features can be omitted or not executed.
[0114] The steps in the method of the embodiments of the application can be adjusted, combined and deleted in sequence according to actual needs. The units in the device of the embodiments of the application can be combined, divided and deleted according to actual needs. In addition, each functional unit in each embodiment of the application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.
[0115] The integrated unit, if realized in the form of a software function unit and sold or used as an independent product, can be stored in a storage medium. Based on such understanding, the technical solutions of the present application essentially or say the part of the prior art that contributes to the present application, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device to execute all or part of the steps of the method described in the various embodiments of the present application.
[0116] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0117] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, the modifications and variations of the present application also belong to the scope of the claims of the present application and its equivalent technologies, and the present application also intends to include these modifications and variations.
[0118] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A settlement method that enables flexible configuration of settlement factors, characterized in that, The method includes: According to the settlement type selected by the user, the configuration information of the target settlement factor that matches the settlement type is obtained from the distributed cache, and all logical table information in the configuration information of the target settlement factor is confirmed. The distributed cache caches the configuration information of at least one settlement factor. Obtain the archive information corresponding to all the logical table information from the distributed cache and confirm the logical conditions corresponding to the logical table from the configuration information of the target settlement factor; The file information corresponding to the logical conditions is filtered according to the logical conditions to obtain the target file information; The logical relationships are identified from the configuration information of the target settlement factors, and all the target file information is associated according to the logical relationships to obtain the corresponding output results; Obtain the configuration information and file information of the settlement factor to be added input by the user, and associate the file information to be added with the logical table in the configuration information of the settlement factor to be added; The configuration information of the settlement factor to be added and the file information to be added are stored in the distributed cache.
2. The settlement method for implementing flexibly configurable settlement factors as described in claim 1, characterized in that, The method further includes: Obtain the settlement account selected by the user, and use the settlement account selected by the user as a new logical condition; The newly added logical condition is stored in the configuration information of the target settlement factor to overwrite the logical condition, thereby completing the update of the configuration information of the target settlement factor.
3. The settlement method for flexibly configuring settlement factors as described in claim 2, characterized in that, The step of filtering the file information corresponding to the logical conditions to obtain the target file information includes: The settlement subject selected by the user is confirmed based on the aforementioned logical conditions; The user's selected settlement subject is confirmed in the file information corresponding to the logical table to generate the target file information.
4. The settlement method for flexibly configuring settlement factors as described in claim 2, characterized in that, The method further includes: Obtain the settlement account relationship and settlement formula selected by the user, and use the settlement account relationship and settlement formula as a new logical relationship; The newly added logical relationship is stored in the configuration information of the target settlement factor to overwrite the logical relationship, thereby completing the update of the configuration information of the target settlement factor.
5. The settlement method for implementing flexibly configurable settlement factors as described in claim 4, characterized in that, The step of associating all the target file information according to the logical relationship to obtain the corresponding output results includes: Based on the settlement account relationship, the settlement accounts involved in the settlement account relationship are associated in all the target file information; The output result is obtained by confirming the values of the settlement accounts involved in the settlement account relationship in all the target file information according to the settlement formula.
6. The settlement method for implementing flexibly configurable settlement factors as described in claim 1, characterized in that, The method further includes: Obtain the logical table input by the user and the file information corresponding to the logical table; The logical table is stored in the configuration information of the target settlement factor, and the file information is stored in the distributed cache to complete the update of the configuration information of the target settlement factor.
7. A settlement device for flexibly configuring settlement factors, characterized in that, The device includes: The logical table confirmation unit is used to obtain the configuration information of the target settlement factor that matches the settlement type in the distributed cache according to the settlement type selected by the user, and confirm all logical table information in the configuration information of the target settlement factor, wherein the distributed cache caches the configuration information of at least one settlement factor. The logical condition confirmation unit is used to obtain the file information corresponding to all the logical table information from the distributed cache and to confirm the logical conditions corresponding to the logical table from the configuration information of the target settlement factor. The first filtering unit is used to filter the file information corresponding to the logical conditions according to the logical conditions to obtain the target file information; The result output unit is used to confirm the logical relationship from the configuration information of the target settlement factor, and associate all the target file information according to the logical relationship to obtain the corresponding output result; The fourth acquisition unit is used to acquire the configuration information and file information of the settlement factor to be added input by the user, and associate the file information to be added with the logical table in the configuration information of the settlement factor to be added; The first adding unit is used to store the configuration information of the settlement factor to be added and the file information to be added into the distributed cache.
8. A computer device, characterized in that, The computer device includes a memory and a processor connected to the memory; the memory is used to store a computer program; the processor is used to run the computer program stored in the memory to perform the steps of the method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, can implement the steps of the method as described in any one of claims 1-6 on a computer device.
Citation Information
Patent Citations
Inventory state calculation method and device, equipment and medium
CN109784795A