Clearing method and device and storage medium
By breaking down the liquidation details into sub-liquidation orders and performing liquidation in stages, the problems of lengthy and inefficient liquidation paths in the existing technology are solved, and an efficient and flexible liquidation process is achieved.
Patent Information
- Application Number
- CN202510859803.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-24
- Publication Date
- 2025-09-23
AI Technical Summary
In the existing technology, the single clearing rule based on a fixed settlement cycle leads to a lengthy and inefficient clearing path, and lacks flexibility and an effective exception handling mechanism.
The settlement details sheet is decomposed into multiple sub-settlement details sheets, and the target billing details are generated according to the pre-designed billing process. The sub-task settlement sheet is generated through the first settlement operation, and then the parent task settlement sheet is generated according to the settlement type summary to reduce invalid judgments.
Through phased liquidation, the liquidation path is simplified, the liquidation efficiency is improved, the number of invalid judgments is reduced, and the flexibility and reliability of liquidation are enhanced.
Smart Images

Figure CN120689155A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology and can be applied to the financial and medical fields, and in particular to a clearing method, device, and storage medium. Background Art
[0002] With the development of communication technology, electronic transactions are becoming increasingly common. To ensure the settlement efficiency of electronic transactions, employing a precise and efficient clearing method has become crucial for successful transaction settlement. Related clearing methods utilize a fixed settlement cycle, employing a single clearing rule to uniformly settle all clearing details within that cycle to achieve transaction settlement. However, due to the large number of clearing details, this single clearing rule requires a separate judgment of various billing rules and clearing types for each clearing item. This results in numerous invalid judgments during the clearing process for each clearing item, leading to an excessively lengthy clearing path. The large number of clearing details combined with the lengthy clearing path results in very low clearing efficiency, or even ineffective clearing. Summary of the Invention
[0003] The present invention provides a clearing method, device, and storage medium to at least address the problem of low clearing efficiency in related technologies. The technical solution of the present invention is as follows:
[0004] According to a first aspect of an embodiment of the present invention, a liquidation method is provided, which includes: decomposing a liquidation detail sheet into multiple sub-liquidation detail sheets; billing each sub-liquidation detail sheet according to a pre-designed billing process, and generating a target billing detail corresponding to each sub-liquidation detail sheet; performing a first liquidation operation on each target billing detail to generate at least one sub-task liquidation sheet for each target billing detail; the first liquidation operation includes summarizing the billing detail items of the same billing rule; performing a second liquidation operation on each sub-task liquidation sheet, and summarizing the operation results after the second liquidation operation to obtain a parent task liquidation sheet; the second liquidation operation includes summarizing the sub-task liquidation sheets of the same liquidation type.
[0005] In the above implementation, a first settlement operation is performed on each target billing detail to generate a first billing rule detail and / or a subtask settlement sheet for each billing detail item in each target billing detail; and the first billing rule details for each billing detail item are summarized to generate a subtask settlement sheet. A second settlement operation is performed on each subtask settlement sheet to generate a second billing rule detail for each subtask settlement sheet, and the second billing rule details for each subtask settlement sheet are summarized to generate a parent task settlement sheet.
[0006] As an implementation method, each sub-liquidation detail sheet is charged according to the pre-designed charging process, and the target billing details corresponding to each sub-liquidation detail sheet are generated respectively, including: determining the first liquidation type corresponding to each liquidation detail item of each sub-liquidation detail sheet; determining that the first liquidation type is the principal of separation of income and expenditure, and not generating a billing detail item for the first liquidation detail item corresponding to the first liquidation type; determining that the first liquidation type is the system billing method, and selecting the target billing rule that matches the billing rule information of the corresponding second liquidation detail item; billing according to the target Generate billing items for the second clearing item based on the target billing method indicated by the rule. Determine the first clearing type as the clearing agreement billing method. If the clearing agreement billing method is based on reconciliation files, obtain the clearing detail handling fee for the third clearing item and generate the second billing item for the third clearing item based on the clearing detail handling fee. If the clearing agreement billing method is based on billing files, do not generate billing items for the fourth clearing item. Determine the generated billing item as the target billing item for the corresponding sub-clearing item.
[0007] As another implementation method, a first settlement operation is performed on each target billing detail to generate at least one sub-task settlement order for each target billing detail, including: determining the second settlement type of each billing detail item in each target billing detail; summarizing the settlement principal of the first target billing detail items whose second settlement type is separation of income and expenditure in all target billing details, and generating a first sub-task settlement order based on the settlement principal of the first target billing detail items; and / or, summarizing the settlement items and settlement fees of the second target billing detail items whose second settlement type is the system billing method in any target billing detail, and generating a second sub-task settlement order based on the settlement items and settlement fees of the second target billing detail items; and / or, summarizing the settlement details of the third target billing detail items whose second settlement type is the reconciliation billing method in any target billing detail. Items and liquidation fees, and generate a third sub-task liquidation sheet based on the liquidation details and liquidation fees of the summarized third target billing details; and / or, summarize the liquidation principal and liquidation fees of the fourth target billing details in any target billing details whose second liquidation type is the single billing method in the system billing method, and generate a fourth sub-task liquidation sheet based on the first billing rule details that summarize the liquidated principal and liquidation fees of the fourth target billing details; and / or, summarize the transaction amount and number of transactions of the fifth target billing details in any target billing details whose second liquidation type is the aggregate billing method in the system billing method, and perform billing according to the summarized transaction amount and number of transactions. If billing is successful, generate a fifth sub-task liquidation sheet based on the second billing rule details that summarize the transaction amount and number of transactions of the fifth target billing details.
[0008] As another implementation method, the method also includes: determining the billing details for any target and generating the fourth subtask settlement sheet and the fifth subtask settlement sheet at the same time; generating the sixth subtask settlement sheet based on the first billing rule details of the fourth subtask settlement sheet and the second billing rule details of the fifth subtask settlement sheet.
[0009] As another implementation method, a second liquidation operation is performed on each subtask liquidation order, and the operation results after the second liquidation operation are summarized to obtain a parent task liquidation order, including: determining the third liquidation type of each subtask liquidation order; summarizing the subtask liquidation principal of the first target subtask liquidation order whose third liquidation type is separation of income and expenditure in all subtask liquidation orders to complete the liquidation of the first target subtask liquidation order; and / or, summarizing the billing details of the second target subtask liquidation order whose third liquidation type is system billing method in all subtask liquidation orders, and generating the first parent task liquidation order based on the summarized billing details of the second target subtask liquidation order; and / or, summarizing the billing details of the third target subtask liquidation order whose third liquidation type is reconciliation billing method in all subtask liquidation orders, and generating the first parent task liquidation order based on the summarized billing details of the second target subtask liquidation order. The second parent task settlement order is generated by summarizing the billing details of the task settlement order; and / or, summarizing the settlement principal and settlement fee of the fourth target subtask settlement order whose third settlement type is the single billing method in the system billing method in all subtask settlement orders, and generating the third parent task settlement order according to the third billing rule details of the settlement principal and settlement fee of the summarized fourth target subtask settlement order; and / or, summarizing the transaction amount and number of transactions of the fifth target subtask settlement order whose third settlement type is the aggregate billing method in the system billing method in all subtask settlement orders, and billing according to the transaction amount and number of transactions of the summarized fifth target subtask settlement order. If the billing is successful, generating the fourth parent task settlement order according to the fourth billing rule details of the transaction amount and number of transactions of the summarized fifth target subtask settlement order.
[0010] As another implementation method, the method also includes: determining to simultaneously generate a third parent task settlement sheet and a fourth parent task settlement sheet; generating a fifth parent task settlement sheet based on the third billing rule details of the third parent task settlement sheet and the fourth billing rule details of the fourth parent task settlement sheet.
[0011] As another implementation, determining the first settlement type corresponding to each settlement item of each sub-settlement detail sheet includes: for any sub-settlement detail sheet, selecting a target settlement channel that matches the sub-settlement detail sheet; selecting a target settlement agreement corresponding to each settlement item for each settlement item of the sub-settlement detail sheet from multiple settlement agreements of the target settlement channel; and determining the settlement type of the target settlement agreement as the first settlement type of the corresponding settlement item.
[0012] As another implementation, the method further includes: issuing a first exception message if the target clearing channel is not selected, or issuing a second exception message if the target clearing agreement is not selected.
[0013] According to a second aspect of an embodiment of the present invention, a clearing device is provided, which includes: a decomposition unit for decomposing a clearing detail sheet into multiple sub-clearing detail sheets; a generation unit for billing each sub-clearing detail sheet according to a pre-designed billing process, and generating a target billing detail corresponding to each sub-clearing detail sheet; a first clearing unit for performing a first clearing operation on each target billing detail, and generating at least one sub-task clearing sheet for each target billing detail; a second clearing unit for performing a second clearing operation on each sub-task clearing sheet, and summarizing the operation results after the second clearing operation to obtain a parent task clearing sheet.
[0014] According to a third aspect of an embodiment of the present invention, a clearing device is provided, wherein the device is configured to execute the clearing method according to the first aspect and any possible implementation manner thereof.
[0015] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which instructions are stored. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform a liquidation method such as the first aspect and any possible implementation thereof.
[0016] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, which includes computer instructions. When the computer instructions are run on an electronic device, the electronic device executes the liquidation method of the above-mentioned first aspect and any possible implementation thereof.
[0017] The technical solution provided by the embodiments of the present invention brings at least the following beneficial effects: the same billing rule in each clearing list is divided into the same sub-task clearing list, so that during the clearing process of the sub-task clearing list, the corresponding billing rule associated with each sub-task clearing list is directly used to clear the corresponding sub-task clearing list. The billing rules in this clearing process are directly associated and located, eliminating the need to compare and determine the billing rules one by one, thus reducing the repeated determination of invalid billing rules. At the same time, sub-task clearing lists of the same clearing type are used as parent task clearing lists, and the clearing rules of the same clearing type are directly used to aggregate and clear the sub-task clearing lists in the parent task clearing list, eliminating the need to compare and determine the clearing type one by one, thus reducing the repeated determination of invalid clearing types. Based on this, by dividing a clearing list containing a large amount of data into multiple sub-clearing lists with moderate amounts of data, generating sub-task clearing lists corresponding to the sub-clearing lists, and then performing a first-stage clearing on each sub-task clearing list, multiple sub-task clearing lists of the same list type are then uniformly cleared according to the clearing type. The above-mentioned phased liquidation method based on parent and child task liquidation orders reduces the amount of liquidation data, simplifies the liquidation path, and thus improves liquidation efficiency.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0020] Figure 1 is a schematic diagram of a clearing system according to an exemplary embodiment;
[0021] Figure 2 is a flow chart showing a liquidation method according to an exemplary embodiment;
[0022] Figure 3 is a block diagram of a clearing device according to an exemplary embodiment;
[0023] Figure 4 The figure is a schematic diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0024] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0025] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0026] Before introducing the liquidation method provided in the embodiment of the present application in detail, a brief introduction to the application scenarios and implementation environment involved in the embodiment of the present application is first given.
[0027] First, a brief introduction to the application scenarios involved in this application is given.
[0028] With the development of communication technology, electronic transactions are becoming increasingly common. To ensure the settlement efficiency of electronic transactions, employing a precise and efficient clearing method has become crucial for successful transaction settlement. Related clearing methods utilize a fixed settlement cycle, employing a single clearing rule to uniformly settle all clearing details within that cycle to achieve transaction settlement. However, due to the large number of clearing details, this single clearing rule requires a separate judgment of various billing rules and clearing types for each clearing item. This results in numerous invalid judgments during the clearing process for each clearing item, leading to an excessively lengthy clearing path. The large number of clearing details combined with the lengthy clearing path results in very low clearing efficiency, or even ineffective clearing.
[0029] Relevant clearing systems typically employ a single clearing model, unable to flexibly adapt to the needs of diverse clearing agreements and billing rules. This results in low clearing efficiency and is prone to billing errors. Furthermore, existing systems lack effective exception handling mechanisms for billing failures or clearing anomalies, further impacting clearing reliability and efficiency.
[0030] In response to the above problems, the present application proposes a liquidation method, which decomposes a liquidation detail sheet into multiple sub-liquidation detail sheets, and places the liquidation details in each sub-liquidation detail sheet according to the pre-designed billing process, and obtains the target billing details corresponding to each sub-liquidation detail sheet. Furthermore, the target billing details of a single sub-liquidation detail sheet are liquidated to obtain one or more sub-task liquidation sheets of each sub-liquidation detail sheet, so that the same billing rules in each liquidation detail sheet are divided into the same sub-task liquidation sheet, so that in the liquidation process of the sub-task liquidation sheet, the corresponding billing rules associated with each sub-task liquidation sheet are directly used to liquidate the corresponding sub-task liquidation sheet. The billing rules in the liquidation process are directly associated and located, and there is no need to compare and determine the billing rules one by one, thereby reducing the repeated determination of invalid billing rules. At the same time, the sub-task liquidation sheet of the same liquidation type is used as the parent task liquidation sheet, and the liquidation rules of the same liquidation type are directly used to summarize and liquidate the sub-task liquidation sheets in the parent task liquidation sheet, without the need to compare and determine the liquidation type one by one, thereby reducing the repeated determination of invalid liquidation types.
[0031] Next, the implementation architecture involved in this application is briefly introduced below.
[0032] Figure 1 Schematic diagram of a clearing system 10 provided by the present disclosure. Figure 1 As shown, the clearing system 10 includes a server 101 and a client 102. The server 101 and the client 102 can be connected via a wired network or a wireless network.
[0033] In some embodiments, the user end 102 may be a terminal device.
[0034] The server 101 stores the clearing details of the financial transaction process or the medical service transaction process. The server 101 divides the clearing details including a large amount of data into multiple sub-clearing details with a moderate amount of data, and generates sub-task clearing lists corresponding to the sub-clearing details. Then, the server 101 performs the first phase of clearing for each sub-task clearing list, and then performs unified clearing for multiple sub-task clearing lists of the same list type according to the clearing type. After the clearing is completed, the server 101 sends the clearing results to the user terminal 102 for user review. In this way, the parent clearing task in the relevant clearing method is split into multiple sub-clearing tasks, and the clearing type of each sub-clearing task is determined; for sub-clearing tasks of different clearing types, different billing methods are used to bill the sub-clearing tasks, and different billing review rules are used to review the billing results of the sub-clearing tasks.
[0035] In some embodiments, server 101 includes or is connected to a database, and detailed lists for different fields are stored in the database in a categorized manner. For example, detailed lists for financial transactions are stored in a first database, while detailed lists for medical service transactions are stored in a second database. Client 102 can access the corresponding detailed list database through server 101.
[0036] In other embodiments, the server 101 may be a single server, or a server cluster consisting of multiple servers. In some implementations, the server cluster may also be a distributed cluster. This application does not limit the specific implementation of the server 101.
[0037] The terminal device may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook computer, cellular phone, personal digital assistant (PDA), augmented reality (AR) or virtual reality (VR) device, etc., which can install and use content community applications (such as Kuaishou). The present disclosure does not impose any special restrictions on the specific form of the terminal device. It can interact with the user through one or more methods such as keyboard, touchpad, touch screen, remote control, voice interaction or handwriting device.
[0038] The server 101 can be connected to at least one mobile device. Furthermore, this application does not limit the number and type of terminal devices.
[0039] The liquidation method provided in the embodiment of the present application can be applied to the aforementioned Figure 1 For ease of understanding, the following describes the clearing method provided by this application in detail with reference to the accompanying drawings.
[0040] Figure 2 is a flow chart showing a liquidation method according to an exemplary embodiment. Figure 2 As shown, the liquidation method includes the following steps.
[0041] S21, decomposing the liquidation detail sheet into multiple sub-liquidation detail sheets.
[0042] S22: each sub-clearing detail sheet is charged according to the pre-designed charging process, and target charging details corresponding to each sub-clearing detail sheet are generated.
[0043] S23: Perform a first settlement operation on each target billing detail to generate at least one subtask settlement sheet for each target billing detail.
[0044] The first clearing operation includes summarizing the billing details of the same billing rule.
[0045] In the above implementation steps, a first settlement operation is performed on each target billing detail to generate the first billing rule details and / or subtask settlement sheet for each billing detail item in each target billing detail; and the first billing rule details for each billing detail item are summarized to generate a subtask settlement sheet.
[0046] Through this implementation step, the target billing details of a single sub-clearing detail sheet are cleared to obtain one or more sub-task clearing sheets of each sub-clearing detail sheet, so that the same billing rules in each clearing detail sheet are divided into the same sub-task clearing sheet, so that in the clearing process of the sub-task clearing sheet, the corresponding billing rules associated with each sub-task clearing sheet can be directly used to clear the corresponding sub-task clearing sheet. The billing rules in the clearing process are directly linked and located, and there is no need to compare and determine the billing rules one by one, thereby reducing the repeated determination of invalid billing rules.
[0047] S24, performing a second liquidation operation on each subtask liquidation sheet, and summarizing the operation results after the second liquidation operation to obtain a parent task liquidation sheet.
[0048] The second liquidation operation includes summarizing the subtask liquidation orders of the same liquidation type.
[0049] In the above implementation steps, the second settlement operation is performed on each subtask settlement order to generate the second billing rule details of each subtask settlement order, and the second billing rule details of each subtask settlement order are summarized to generate the parent task settlement order.
[0050] Through this implementation step, the sub-task liquidation order of the same liquidation type is used as the parent task liquidation order, and the liquidation rules of the same liquidation type are used to directly summarize and settle the sub-task liquidation orders in the parent task liquidation order. There is no need to compare and determine the liquidation type one by one, which reduces the repeated determination of invalid liquidation types.
[0051] Through the above implementation, a large amount of data in a settlement detail sheet is divided into multiple sub-settlement detail sheets with moderate amounts of data. Sub-task settlement sheets corresponding to the sub-settlement detail sheets are then generated. A first-stage settlement is then performed on each sub-task settlement sheet. Then, based on the settlement type, multiple sub-task settlement sheets of the same list type are settled uniformly. This phased settlement approach, based on parent and sub-task settlement sheets, reduces the amount of settlement data, simplifies the settlement process, and thus improves settlement efficiency.
[0052] As an implementation method, the target billing details are generated in the above S22 and are specifically implemented through the following implementation steps.
[0053] First, determine the first settlement type corresponding to each settlement item in each settlement detail sheet;
[0054] In some embodiments, the first settlement type is determined by the target settlement channel determined by the channel indication information in the sub-settlement details sheet.
[0055] Specifically, for any sub-clearing detail order, a target clearing channel matching the sub-clearing detail order is selected, and from multiple clearing agreements of the target clearing channel, target clearing agreements corresponding to each clearing detail item of each sub-clearing detail order are screened out; and the clearing type of the target clearing agreement is determined to be the first clearing type of the corresponding clearing detail item.
[0056] As an embodiment, if the target clearing channel is not selected, a first abnormality message is issued to facilitate rapid location of the first abnormality. If the target clearing protocol is not selected, a second abnormality message is issued to facilitate rapid location of the second abnormality.
[0057] Second, the first settlement type is determined to be a principal with separated income and expenditure, and no billing item is generated for the first settlement item corresponding to the first settlement type.
[0058] Third, the first settlement type is determined to be a system billing method, and a target billing rule that matches the billing rule information of the corresponding second settlement detail item is selected.
[0059] If no clearing agreement is matched, the default system billing method will be used.
[0060] Correspondingly, if the target charging rule that matches the charging rule information of the settlement detail item is not selected, a third abnormality message is issued to facilitate rapid location of the third abnormality.
[0061] Fourthly, according to the target billing method indicated by the target billing rule, a billing detail item of the second settlement detail item is generated.
[0062] In some embodiments, when the target billing method is a consolidated billing method, the cost handling fee and income handling fee in the settlement detail item are adjusted to zero, and a billing detail item is generated. When the target billing method is a single billing method, billing is performed according to the conventional billing method, and if billing is determined to be successful, billing details for the corresponding settlement detail item are generated.
[0063] Fifth, determine that the first settlement type is the settlement agreement billing method. If the settlement agreement billing method is billing based on reconciliation files, obtain the settlement detail fee of the third settlement detail item, and generate the second billing detail item of the third settlement detail item based on the settlement detail fee. If the settlement agreement billing method is billing based on billing files, do not generate the billing detail item of the fourth settlement detail item.
[0064] Sixth, the billing details generated in the above steps are all determined as the details of the target billing details of the corresponding sub-clearing details sheet.
[0065] As an implementation manner, the first liquidation operation is performed in the above S23, and the specific implementation steps of the first liquidation operation are as follows.
[0066] First, determine the second settlement type of each billing detail item in each target billing detail.
[0067] Secondly, the settlement principals of the first target billing details whose second settlement type is separation of income and expenditure in all target billing details are summarized, and a first subtask settlement order is generated based on the settlement principals of the summarized first target billing details.
[0068] Third, summarize the settlement details and settlement fees of the second target billing details whose second settlement type is the system billing method in any target billing details, and generate a second subtask settlement order based on the summary of the settlement details and settlement fees of the second target billing details.
[0069] Fourth, the settlement details and settlement fees of the third target billing details in any target billing details whose second settlement type is the reconciliation billing method are summarized, and a third subtask settlement order is generated based on the settlement details and settlement fees of the summarized third target billing details.
[0070] Fifth, summarize the settlement principal and settlement fee of the fourth target billing detail item whose second settlement type is the single billing method in the system billing method in any target billing detail, and generate the fourth sub-task settlement order based on the first billing rule details of the settlement principal and settlement fee of the fourth target billing detail item.
[0071] Sixth, summarize the transaction amount and number of transactions of the fifth target billing detail item in the second settlement type of the system billing method in any target billing detail, and perform billing according to the summarized transaction amount and number of transactions. When the transaction amount and number of transactions of the fifth target billing detail item are successfully billed, generate the fifth sub-task settlement order according to the second billing rule details that summarize the transaction amount and number of transactions of the fifth target billing detail item.
[0072] In the case where the transaction amount and the number of transactions of the fifth target billing item fail to be charged, a fourth abnormality message is sent to facilitate rapid location of the fourth abnormality.
[0073] As an implementation method, in order to further improve the settlement efficiency, the billing details for any target are determined, and the fourth subtask settlement sheet and the fifth subtask settlement sheet are generated at the same time; the sixth subtask settlement sheet is generated according to the first billing rule details of the fourth subtask settlement sheet and the second billing rule details of the fifth subtask settlement sheet.
[0074] As an implementation manner, a second liquidation operation is performed in the above S24, and specific implementation steps of the second liquidation operation are as follows.
[0075] First, determine the third settlement type of each subtask settlement order.
[0076] Second, the subtask liquidation principals of the first target subtask liquidation orders with the third liquidation type of separation of income and expenditure in all subtask liquidation orders are summarized to complete the liquidation of the first target subtask liquidation order.
[0077] Third, summarize the billing details of the second target subtask settlement orders whose third settlement type is the system billing method in all subtask settlement orders, and generate the first parent task settlement order based on the summarized billing details of the second target subtask settlement orders.
[0078] Fourth, summarize the billing details of the third target subtask settlement orders whose third settlement type is the reconciliation billing method in all subtask settlement orders, and generate the second parent task settlement order based on the summarized billing details of the third target subtask settlement orders.
[0079] Fifth, summarize the liquidation principal and liquidation fee of the fourth target subtask liquidation order whose third liquidation type is the single billing method in the system billing method in all subtask liquidation orders, and generate the third parent task liquidation order based on the third billing rule details of the liquidation principal and liquidation fee of the summarized fourth target subtask liquidation order.
[0080] Sixth, summarize the transaction amounts and transaction quantities of the fifth target subtask settlement orders whose third settlement type is the summary billing method in the system billing method in all subtask settlement orders, and perform billing according to the transaction amounts and transaction quantities of the summarized fifth target subtask settlement orders. If the billing is successful, generate the fourth parent task settlement order based on the fourth billing rule details that summarize the transaction amounts and transaction quantities of the fifth target subtask settlement orders.
[0081] When the transaction amount and the number of transactions of the fifth target subtask settlement order fail, a fifth abnormality message is sent to facilitate rapid location of the fifth abnormality.
[0082] In order to further improve the settlement efficiency, it is determined that the third parent task settlement order and the fourth parent task settlement order are generated at the same time; the fifth parent task settlement order is generated according to the third billing rule details of the third parent task settlement order and the fourth billing rule details of the fourth parent task settlement order.
[0083] In order to realize the above functions, the clearing device includes hardware structures and / or software modules corresponding to the execution of each function. It should be easy for those skilled in the art to realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0084] The present disclosure also provides a Figure 3 The clearing device shown includes: a decomposition unit 301, a generation unit 302, a first clearing unit 303 and a second clearing unit 304.
[0085] A decomposition unit 301 is used to decompose a settlement detail sheet into multiple sub-settlement detail sheets;
[0086] Generating unit 302, configured to charge each sub-clearing detail sheet according to a pre-designed charging process, and generate target charging details corresponding to each sub-clearing detail sheet;
[0087] A first settlement unit 303 is configured to perform a first settlement operation on each target billing detail to generate at least one subtask settlement sheet for each target billing detail;
[0088] The second liquidation unit 304 is configured to perform a second liquidation operation on each subtask liquidation form and aggregate the results of the second liquidation operation to obtain a parent task liquidation form.
[0089] As an implementation mode, the generation unit 302 is specifically used to: determine the first settlement type corresponding to each settlement item of each sub-settlement detail sheet respectively; determine that the first settlement type is the principal of separated income and expenditure, and do not generate a billing detail item for the first settlement detail item corresponding to the first settlement type; determine that the first settlement type is the system billing method, and select a target billing rule that matches the billing rule information of the corresponding second settlement detail item; generate the billing detail item of the second settlement detail item according to the target billing method indicated by the target billing rule; determine that the first settlement type is the settlement agreement billing method, if the settlement agreement billing method is billing based on reconciliation files, obtain the settlement detail fee of the third settlement detail item, and generate the second billing detail item of the third settlement detail item based on the settlement detail fee; if the settlement agreement billing method is billing based on billing files, do not generate the billing detail item of the fourth settlement detail item; determine the generated billing detail item as the detail item of the target billing detail of the corresponding sub-settlement detail sheet.
[0090] As another embodiment, the first settlement unit 303 is specifically used to: determine the second settlement type of each billing item in each target billing detail; summarize the settlement principal of the first target billing item whose second settlement type is separation of income and expenditure in all target billing details, and generate a first subtask settlement order based on the summary of the settlement principal of the first target billing item; and / or, summarize the settlement items and settlement fees of the second target billing item whose second settlement type is the system billing method in any target billing detail, and generate a second subtask settlement order based on the summary of the settlement items and settlement fees of the second target billing item; and / or, summarize the settlement items and settlement fees of the third target billing item whose second settlement type is the reconciliation billing method in any target billing detail, and generate a second subtask settlement order based on the summary of the settlement items and settlement fees of the third target billing item. The settlement items and settlement fees of the target billing details are used to generate a third sub-task settlement order; and / or, the settlement principal and settlement fees of the fourth target billing details whose second settlement type is the single billing method in the system billing method in any target billing details are summarized, and a fourth sub-task settlement order is generated according to the first billing rule details that summarize the settlement principal and settlement fees of the fourth target billing details; and / or, the transaction amount and number of transactions of the fifth target billing details whose second settlement type is the aggregate billing method in the system billing method in any target billing details are summarized, and billing is performed according to the summarized transaction amount and number of transactions. If the billing is successful, a fifth sub-task settlement order is generated according to the second billing rule details that summarize the transaction amount and number of transactions of the fifth target billing details.
[0091] As another implementation method, the first settlement unit 303 is specifically used to: determine the billing details for any target, and simultaneously generate the fourth subtask settlement sheet and the fifth subtask settlement sheet; generate the sixth subtask settlement sheet based on the first billing rule details of the fourth subtask settlement sheet and the second billing rule details of the fifth subtask settlement sheet.
[0092] As another embodiment, the second liquidation unit 304 is specifically used to: determine the third liquidation type of each subtask liquidation order; summarize the subtask liquidation principal of the first target subtask liquidation order whose third liquidation type is separation of income and expenditure in all subtask liquidation orders to complete the liquidation of the first target subtask liquidation order; and / or, summarize the billing details of the second target subtask liquidation order whose third liquidation type is system billing method in all subtask liquidation orders, and generate the first parent task liquidation order based on the summarized billing details of the second target subtask liquidation order; and / or, summarize the billing details of the third target subtask liquidation order whose third liquidation type is reconciliation billing method in all subtask liquidation orders, and generate the second parent task liquidation order based on the summarized billing details of the third target subtask liquidation order. Parent task liquidation order; and / or, summarizing the liquidation principal and liquidation fee of the fourth target subtask liquidation order whose third liquidation type is the single billing method in the system billing method in all subtask liquidation orders, and generating a third parent task liquidation order based on the third billing rule details of the liquidation principal and liquidation fee of the summarized fourth target subtask liquidation order; and / or, summarizing the transaction amount and number of transactions of the fifth target subtask liquidation order whose third liquidation type is the aggregate billing method in the system billing method in all subtask liquidation orders, and billing according to the transaction amount and number of transactions of the summarized fifth target subtask liquidation order. If the billing is successful, generating a fourth parent task liquidation order based on the fourth billing rule details of the transaction amount and number of transactions of the summarized fifth target subtask liquidation order.
[0093] As another implementation method, the second settlement unit 304 is specifically used to: determine the simultaneous generation of the third parent task settlement form and the fourth parent task settlement form; generate the fifth parent task settlement form according to the third billing rule details of the third parent task settlement form and the fourth billing rule details of the fourth parent task settlement form.
[0094] As another embodiment, the generation unit 302 is specifically configured to: for any sub-clearing detail order, select a target clearing channel that matches the sub-clearing detail order; filter out target clearing agreements corresponding to each clearing item of the sub-clearing detail order from multiple clearing agreements of the target clearing channel; and determine the clearing type of the target clearing agreement as the first clearing type of the corresponding clearing item.
[0095] As another embodiment, the generating unit 302 is specifically configured to: issue a first exception message if the target clearing channel is not selected, or issue a second exception message if the target clearing agreement is not selected.
[0096] Regarding the device in the above embodiment, the specific manner in which each unit module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0097] Figure 4 This is a schematic diagram of an electronic device provided by this application. Figure 4 The electronic device 50 may include at least one processor 501 and a memory 503 for storing processor-executable instructions. The processor 501 is configured to execute instructions in the memory 503 to implement the liquidation method in the following embodiments.
[0098] In addition, the electronic device 50 may further include a communication bus 502 , at least one communication interface 504 , an input device 506 , and an output device 505 .
[0099] The processor 501 may be a central processing unit (CPU), a microprocessor unit, an ASIC, or one or more integrated circuits for controlling the execution of the program of the present application.
[0100] The communication bus 502 may include a pathway for transmitting information between the aforementioned components.
[0101] The communication interface 504 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.
[0102] The input device 506 is used to receive input signals and the output device 505 is used to output signals.
[0103] The memory 503 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be independent and connected to the processing unit via a bus. The memory may also be integrated with the processing unit.
[0104] The memory 503 is used to store instructions for executing the solution of the present application, and the execution is controlled by the processor 501. The processor 501 is used to execute the instructions stored in the memory 503, thereby realizing the functions of the method of the present application.
[0105] In a specific implementation, as an embodiment, the processor 501 may include one or more CPUs, such as Figure 4 CPU0 and CPU1 in.
[0106] In a specific implementation, as an embodiment, the electronic device 50 may include multiple processors, such as Figure 4 1 and 507. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0107] The electronic equipment Figure 4 The system includes a processor 501 and a memory 503 for storing instructions executable by the processor 501. The processor 501 is configured to execute the instructions to implement the liquidation method according to any of the above possible implementations. The same technical effects can be achieved, and thus, to avoid repetition, details are omitted here.
[0108] The present application also provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor of a clearing device or electronic device, the clearing device or electronic device can perform the clearing method described in any of the possible implementations described above. The same technical effects can be achieved, and to avoid repetition, they are not described here.
[0109] The present application also provides a computer program product including a computer program or instructions, wherein the computer program or instructions are executed by a processor as a liquidation method according to any of the above possible implementations. The same technical effects can be achieved, and to avoid repetition, they are not described here.
[0110] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0111] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A liquidation method, characterized in that: The method comprises: Split the liquidation detail sheet into multiple sub-liquidation detail sheets; According to the pre-designed billing process, each sub-clearing detail sheet is billed, and target billing details corresponding to each sub-clearing detail sheet are generated respectively; Performing a first settlement operation on each target billing detail to generate at least one subtask settlement sheet for each target billing detail; the first settlement operation includes aggregating billing detail items of the same billing rule; A second liquidation operation is performed on each subtask liquidation form, and the results of the second liquidation operation are summarized to obtain a parent task liquidation form; the second liquidation operation includes summarizing the subtask liquidation forms of the same liquidation type.
2. The liquidation method according to claim 1, characterized in that: According to the pre-designed billing process, each sub-clearing detail sheet is billed, and target billing details corresponding to each sub-clearing detail sheet are generated respectively, including: Determining the first settlement type corresponding to each settlement detail item of each settlement detail sub-sheet; Determining that the first settlement type is a principal with separated income and expenditure, and not generating a billing item for a first settlement item corresponding to the first settlement type; Determining that the first settlement type is a system billing method, selecting a target billing rule that matches the billing rule information of the corresponding second settlement detail item; and generating a billing detail item for the second settlement detail item according to the target billing method indicated by the target billing rule; Determining that the first settlement type is a settlement agreement billing method, if the settlement agreement billing method is billing based on a reconciliation file, obtaining a settlement detail fee for a third settlement detail item, and generating a second billing detail item for the third settlement detail item based on the settlement detail fee; if the settlement agreement billing method is billing based on a billing file, not generating a billing detail item for the fourth settlement detail item; The generated billing detail item is determined as the detail item of the target billing detail of the corresponding sub-clearing detail sheet.
3. The liquidation method according to claim 1, characterized in that: The performing of the first settlement operation on each target billing detail to generate at least one subtask settlement sheet for each target billing detail includes: determining a second settlement type for each billing detail item in each of the target billing details; Summarizing the settlement principals of the first target billing details whose second settlement type is separation of income and expenditure in all the target billing details, and generating a first subtask settlement order based on the summarized settlement principals of the first target billing details; and / or, summarizing the settlement details and settlement fees of the second target billing details in any one of the target billing details, where the second settlement type is the system billing method, and generating a second subtask settlement order based on the summarizing the settlement details and settlement fees of the second target billing details; and / or, summarizing the settlement details and settlement fees of the third target billing details in which the second settlement type is the reconciliation billing method in any of the target billing details, and generating a third subtask settlement order based on the summarizing the settlement details and settlement fees of the third target billing details; and / or, summarizing the liquidation principal and liquidation fee of a fourth target billing detail item in which the second liquidation type is a single billing method in the system billing method in any of the target billing details, and generating a fourth subtask liquidation order based on the first billing rule details summarizing the liquidated principal and the liquidation fee of the fourth target billing detail item; And / or, summarize the transaction amount and number of transactions of the fifth target billing detail item in which the second settlement type is the summarized billing method in the system billing method in any of the target billing details, and perform billing according to the summarized transaction amount and number of transactions. If the billing is successful, generate a fifth sub-task settlement sheet based on the second billing rule details that summarize the transaction amount and number of transactions of the fifth target billing detail item.
4. The liquidation method according to claim 3, characterized in that: The method further comprises: Determine for any of the target billing details, and simultaneously generate the fourth subtask settlement sheet and the fifth subtask settlement sheet; A sixth subtask settlement form is generated according to the first billing rule details of the fourth subtask settlement form and the second billing rule details of the fifth subtask settlement form.
5. The liquidation method according to any one of claims 1 to 4, characterized in that: The step of performing the second liquidation operation on each subtask liquidation sheet and aggregating the results of the second liquidation operation to obtain a parent task liquidation sheet includes: determining a third settlement type for each of the subtask settlement orders; Aggregating the subtask liquidation principals of the first target subtask liquidation orders whose third liquidation type is separation of income and expenditure in all the subtask liquidation orders, so as to complete the liquidation of the first target subtask liquidation order; and / or, summarizing the billing details of the second target subtask settlement orders whose third settlement type is the system billing method in all the subtask settlement orders, and generating the first parent task settlement order based on the summarized billing details of the second target subtask settlement orders; and / or, summarizing the billing details of the third target subtask settlement orders whose third settlement type is the reconciliation billing method in all the subtask settlement orders, and generating a second parent task settlement order based on the summarized billing details of the third target subtask settlement orders; and / or, summarizing the liquidation principals and liquidation fees of the fourth target subtask liquidation orders whose third liquidation type is the single billing method in the system billing method in all the subtask liquidation orders, and generating a third parent task liquidation order based on the summarized third billing rule details of the liquidation principals and liquidation fees of the fourth target subtask liquidation orders; And / or, summarize the transaction amounts and transaction numbers of the fifth target subtask settlement orders whose third settlement type in all the subtask settlement orders is the summarized billing method in the system billing method, and perform billing according to the transaction amounts and transaction numbers of the summarized fifth target subtask settlement orders. If the billing is successful, generate the fourth parent task settlement order based on the fourth billing rule details that summarize the transaction amounts and transaction numbers of the fifth target subtask settlement orders.
6. The liquidation method according to claim 5, characterized in that: The method further comprises: Determine to simultaneously generate the third parent task liquidation sheet and the fourth parent task liquidation sheet; A fifth parent task settlement sheet is generated according to the third billing rule details of the third parent task settlement sheet and the fourth billing rule details of the fourth parent task settlement sheet.
7. The liquidation method according to claim 2, characterized in that: The determining of the first settlement type corresponding to each settlement item of each settlement detail sub-sheet includes: For any sub-clearing detail sheet, a target clearing channel matching the sub-clearing detail sheet is selected, and target clearing agreements corresponding to each clearing detail item of the sub-clearing detail sheet are selected from multiple clearing agreements of the target clearing channel; The liquidation type of the target liquidation agreement is determined to be the first liquidation type corresponding to the liquidation detail item.
8. The liquidation method according to claim 7, characterized in that: The method further comprises: If the target clearing channel is not selected, a first exception message is issued, or, if the target clearing protocol is not selected, a second exception message is issued.
9. A clearing device, characterized in that: The device comprises: Decomposition unit, used to decompose a liquidation detail sheet into multiple sub-liquidation detail sheets; A generating unit, configured to charge each sub-clearing detail sheet according to a pre-designed charging process, and to generate target charging details corresponding to each sub-clearing detail sheet; a first settlement unit, configured to perform a first settlement operation on each target billing detail and generate at least one subtask settlement sheet for each target billing detail; The second liquidation unit is configured to perform a second liquidation operation on each subtask liquidation sheet, and summarize the operation results after the second liquidation operation to obtain a parent task liquidation sheet.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the settlement method according to any one of claims 1 to 8.