CN111311398A - Expense processing method and device - Google Patents

Expense processing method and device Download PDF

Info

Publication number
CN111311398A
CN111311398A CN202010146489.9A CN202010146489A CN111311398A CN 111311398 A CN111311398 A CN 111311398A CN 202010146489 A CN202010146489 A CN 202010146489A CN 111311398 A CN111311398 A CN 111311398A
Authority
CN
China
Prior art keywords
rule
preferential
child node
charging
node rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010146489.9A
Other languages
Chinese (zh)
Inventor
王前程
谭汉清
郑旭然
林朝文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010146489.9A priority Critical patent/CN111311398A/en
Publication of CN111311398A publication Critical patent/CN111311398A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Abstract

The invention provides a method and a device for processing fees, wherein the method comprises the following steps: acquiring charging information, wherein the charging information comprises a product type, a plurality of charging parameters and standard cost; obtaining a preference rule corresponding to the product type according to the product type, wherein the preference rule comprises a root node rule and a plurality of child node rules; the preferential rule corresponding to the product type is preset; obtaining a preferential parameter corresponding to each sub-node rule according to the plurality of charging parameters and the plurality of sub-node rules; wherein, each subnode rule corresponds to at least two charging parameters; obtaining a preferential parameter corresponding to the root node rule according to the preferential parameter corresponding to each child node rule and the root node rule; and calculating to obtain the actual cost according to the preferential parameters corresponding to the root node rule and the standard cost. The device is used for executing the method. The expense processing method and the expense processing device provided by the embodiment of the invention improve the flexibility of expense processing.

Description

Expense processing method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a cost processing method and device.
Background
With the deepening of the domestic financial reform, the degree of financial marketization is continuously improved, and the channels for providing services by banks are diversified and expanded.
In the prior art, after a bank calculates standard cost of a certain service, the preferential cost is usually reduced through fixed amount, fixed proportion and the like, and the preferential mode is single and not flexible enough. Once the cost preferential mode is changed, the preferential calculation mode needs to be modified again, and the method cannot adapt to the rapid popularization of diversified expansion services nowadays.
Disclosure of Invention
In view of the problems in the prior art, embodiments of the present invention provide a method and an apparatus for processing costs, which can at least partially solve the problems in the prior art.
In one aspect, the present invention provides a method for processing fees, including:
acquiring charging information, wherein the charging information comprises a product type, a plurality of charging parameters and standard cost;
obtaining a preference rule corresponding to the product type according to the product type, wherein the preference rule comprises a root node rule and a plurality of child node rules; the preferential rule corresponding to the product type is preset;
obtaining a preferential parameter corresponding to each sub-node rule according to the plurality of charging parameters and the plurality of sub-node rules; wherein, each subnode rule corresponds to at least two charging parameters;
obtaining a preferential parameter corresponding to the root node rule according to the preferential parameter corresponding to each child node rule and the root node rule;
and calculating to obtain the actual cost according to the preferential parameters corresponding to the root node rule and the standard cost.
In another aspect, the present invention provides a device for processing fees, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring charging information, and the charging information comprises a product type, a plurality of charging parameters and standard cost;
a first obtaining unit, configured to obtain, according to the product type, a benefit rule corresponding to the product type, where the benefit rule includes a root node rule and a plurality of child node rules; the preferential rule corresponding to the product type is preset;
a second obtaining unit, configured to obtain, according to the multiple charging parameters and the multiple child node rules, a discount parameter corresponding to each child node rule; wherein, each subnode rule corresponds to at least two charging parameters;
a third obtaining unit, configured to obtain, according to the privilege parameters corresponding to each child node rule and the root node rule, the privilege parameters corresponding to the root node rule;
and the calculating unit is used for calculating and obtaining the actual cost according to the discount parameters corresponding to the root node rule and the standard cost.
In another aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for processing the fee according to any of the above embodiments.
In a further aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for processing a fee according to any one of the embodiments.
The method and the device for processing the cost can acquire the charging information, obtain the preferential rules corresponding to the product types according to the product types, wherein the preferential rules comprise a root node rule and a plurality of sub-node rules, obtain the preferential parameters corresponding to each sub-node rule according to a plurality of charging parameters and a plurality of sub-node rules, obtain the preferential parameters corresponding to the root node rule according to the preferential parameters corresponding to each sub-node rule and the root node rule, calculate and obtain the actual cost according to the preferential parameters corresponding to the root node rule and the standard cost, realize the flexible configuration and the free combination of the cost preferential by the preferential rules comprising the root node rule and the plurality of sub-node rules, and improve the flexibility of the cost processing.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a schematic diagram of a fee processing system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a fee processing system according to another embodiment of the present invention;
FIG. 3 is a flow chart illustrating a method for processing fees according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a tree structure of a preference rule according to an embodiment of the present invention.
FIG. 5 is a flow chart illustrating a method for processing fees according to another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a fee processing device according to an embodiment of the present invention.
FIG. 7 is a schematic structural diagram of a fee processing device according to another embodiment of the present invention.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
In order to facilitate understanding of the technical solutions provided in the present application, the following briefly describes the research background of the technical solutions in the present application. Along with the deepening of the domestic financial reform, the degree of financial marketization is continuously improved, the market competition is intensified, non-bank financial institutions participate in the banking competition, and along with the continuous progress of the technology, the channels for providing services by banks are diversified and expanded, and the industry homogenization competition is intensified day by day. In the process of getting customers, living customers and sticking customers, the service cost is an important influence factor. Banks want to attract different customers through differentiated services, and customers also want to be able to obtain personalized services according to the characteristics of their own rights and interests. While providing differentiated services, banks have different service fees, and different services have different service fee offers, so that a calculation method of service fees which can adapt to changes of service products and has high flexibility is required.
Fig. 1 is a schematic structural diagram of a system for processing fees according to an embodiment of the present invention, and as shown in fig. 1, the system for processing fees according to an embodiment of the present invention includes a transaction terminal 1 and a server 2, and the transaction terminal 1 and the server 2 are communicatively connected. The transaction terminal 1 sends a transaction request to the server 2, the transaction request includes transaction information including but not limited to information such as product type, customer account number, transaction amount, transaction opponent, usage, etc. The server 2 receives the transaction request, processes the transaction request, can extract transaction elements and judges whether the cost needs to be calculated according to the product type. If the fee needs to be calculated, the server can calculate the standard fee according to the transaction amount and the rate corresponding to the product type, obtain the charging parameter from the extracted transaction element, execute the fee processing method provided by the embodiment of the invention and obtain the actual fee. Wherein, whether the product type needs to be charged or not is preset; the transaction terminal 1 includes, but is not limited to, a terminal device such as a smart phone, a tablet computer, a desktop computer, and a notebook computer.
Fig. 2 is a schematic structural diagram of a system for processing fees according to another embodiment of the present invention, and as shown in fig. 2, the system for processing fees according to an embodiment of the present invention includes a transaction terminal 21, a service server 22 and a charging server 23, and the service server 22 is in communication connection with the transaction terminal 21 and the charging server 23, respectively. The transaction terminal 21 sends a transaction request to the service server 22, the transaction request includes transaction information including, but not limited to, information of product type, customer account number, transaction amount, transaction opponent, usage, and the like. The service server 22 receives the transaction request, processes the transaction request, can extract the transaction element and determine whether the fee needs to be calculated according to the product type. If the calculation of the fee is determined to be needed, the service server 22 sends the extracted transaction element and the product type to the charging server 23 with the transaction element and the product type in a charging request. After receiving the charging request, the charging server 23 may calculate the standard fee according to the transaction amount and the rate corresponding to the product type, obtain the charging parameter from the transaction element, execute the processing method of the fee provided by the embodiment of the present invention, and obtain the actual fee.
Fig. 3 is a schematic flow chart of a method for processing fees according to an embodiment of the present invention, and as shown in fig. 3, the method for processing fees according to the embodiment of the present invention includes:
s301, obtaining charging information, wherein the charging information comprises a product type, a plurality of charging parameters and standard cost;
specifically, the server may obtain billing information, which is used to calculate the charges, and the billing information may include a product type, a plurality of billing parameters, and a standard charge. The product types are preset, such as transfer remittance, short message notification cost and the like, and each product type corresponds to one preferential rule; the charging parameters are obtained from transaction elements, wherein the transaction elements comprise but are not limited to information such as a transaction area number, a transaction website number, a card number or an account number, a transaction amount, a transaction channel, a customer star level, a transaction date, a card or account number interest type, a belonged city circle, a marketing date, a transaction currency, an agreement and the like; the standard fee is the normal fee of the product corresponding to the product type, and can be obtained by calculating the product of the transaction amount and the rate corresponding to the product type.
S302, obtaining a preference rule according to the product type, wherein the preference rule comprises a root node rule and a plurality of child node rules; the preferential rule corresponding to the product type is preset;
specifically, after obtaining the charging information, the server may obtain, from a database, a benefit rule corresponding to the product type according to the product type, where the benefit rule includes a root node rule and a plurality of child node rules. The preferential rule corresponding to the product type is preset and is set according to actual needs, and the embodiment of the invention is not limited.
For example, fig. 4 is a schematic diagram of a tree structure of a benefit rule provided in an embodiment of the present invention, and if fig. 4 shows that the benefit rule includes a root node rule and a plurality of child node rules, each child node rule may include a plurality of benefit conditions. Each child node rule can set a unique corresponding preferential number.
S303, obtaining a discount parameter corresponding to each sub-node rule according to the plurality of charging parameters and the plurality of sub-node rules; wherein, each subnode rule corresponds to at least two charging parameters;
specifically, after obtaining the offer rule, the server may obtain, according to the plurality of charging parameters and the plurality of child node rules, an offer parameter corresponding to each child node rule, where the offer parameter is an offer rate or an offer amount. Each child node rule corresponds to at least two charging parameters, and the child node rules are set according to actual needs.
S304, obtaining a discount parameter corresponding to the root node rule according to the discount parameter corresponding to each child node rule and the root node rule;
specifically, after obtaining the benefit parameter corresponding to each child node rule, the server may obtain the benefit parameter corresponding to the root node rule according to the benefit parameter corresponding to each child node rule and the root node rule. Wherein the root node rule is preset.
For example, the root node rule is: and discount benefits of the benefit parameters corresponding to the sub-node rules are obtained, namely the benefit parameters corresponding to the sub-node rules are the benefit rates, and the product result of the benefit rates of the sub-nodes is calculated to be used as the benefit parameters corresponding to the root node rule. If the root node rule corresponds to two child node rules, the server obtains that the preferential rate corresponding to one child node rule is 80%, and the preferential rate corresponding to the other child node rule is 70%, then the preferential rate of the root node is 70% x 80% — 56%.
For example, the root node rule is: and acquiring the maximum value of the preferential parameters corresponding to each child node rule as the preferential parameters corresponding to the root node rule. If the root node rule corresponds to two child node rules, the server obtains that the preferential rate corresponding to one child node rule is 80%, and the preferential rate corresponding to the other child node rule is 70%, then the preferential parameter corresponding to the root node rule is 80%.
For example, the root node rule is: and acquiring the minimum value of the preferential parameters corresponding to each child node rule as the preferential parameters corresponding to the root node rule. If the root node rule corresponds to two child node rules, the server obtains that the preferential rate corresponding to one child node rule is 80%, and the preferential rate corresponding to the other child node rule is 70%, then the preferential parameter corresponding to the root node rule is 70%.
For example, the root node rule is: and acquiring the preferential parameters corresponding to the child node rule with the highest priority in the child node rules as the preferential parameters corresponding to the root node rule. Wherein each child node rule corresponds to a priority. If the root node rule corresponds to two child node rules, the server obtains the preferential rate corresponding to the child node rule A to be 80% and the preferential rate corresponding to the child node rule B to be 70%, the server compares the priority corresponding to the child node rule A with the priority corresponding to the child node rule B, and if the priority corresponding to the child node rule A is higher than the priority corresponding to the child node rule B, the preferential parameter corresponding to the root node rule is 80%.
S305, calculating to obtain actual cost according to the preferential parameters corresponding to the root node rule and the standard cost.
Specifically, after obtaining the benefit parameter corresponding to the root node rule, the server may calculate to obtain the actual cost according to the benefit parameter corresponding to the root node rule and the standard cost. If the preferential parameters corresponding to the root node rule are preferential rates, calculating 1 to subtract the preferential rates corresponding to the root node rule to obtain actual rates, multiplying the standard rates by the actual rates, and taking the result of the multiplication as the actual rates. And if the amount preferential parameter of the root node is the preferential amount, calculating the difference value of the standard cost minus the preferential amount of the root node, and taking the difference value as the actual cost.
The cost processing method provided by the embodiment of the invention can acquire the charging information, obtain the preferential rules corresponding to the product types according to the product types, wherein the preferential rules comprise a root node rule and a plurality of sub-node rules, obtain the preferential parameters corresponding to each sub-node rule according to a plurality of charging parameters and a plurality of sub-node rules, obtain the preferential parameters corresponding to the root node rule according to the preferential parameters corresponding to each sub-node rule and the root node rule, calculate and obtain the actual cost according to the preferential parameters corresponding to the root node rule and the standard cost, realize the flexible configuration and the free combination of cost preferential by the preferential rules comprising the root node rule and the plurality of sub-node rules, and improve the flexibility of cost processing.
Fig. 5 is a flowchart of a method for processing a fee according to another embodiment of the present invention, and as shown in fig. 5, on the basis of the foregoing embodiments, further, the obtaining a benefit parameter corresponding to each child node rule according to the plurality of charging parameters and the plurality of child node rules includes:
s3031, obtaining the charging parameters corresponding to the sub-node rules from the plurality of charging parameters;
specifically, each child node rule has a corresponding charging parameter, the server queries whether the charging parameter corresponding to the child node rule exists from the plurality of charging parameters according to the charging parameter corresponding to the child node rule, and if so, obtains the charging parameter corresponding to the child node rule from the plurality of charging parameters. If not, the child node rule is not used.
S3032, obtaining the preferential parameters corresponding to the sub-node rules according to the charging parameters corresponding to the sub-node rules and the sub-node rules.
Specifically, after obtaining the charging parameter corresponding to the child node rule, the server determines which preferential condition that the charging parameter corresponding to the child node rule satisfies the child node rule, and uses the preferential parameter corresponding to the preferential condition that the charging parameter corresponding to the child node rule satisfies as the preferential parameter corresponding to the child node rule. The sub-node rule comprises a plurality of preference conditions, and each preference condition corresponds to one preference parameter. The preferential condition is set according to the charging parameter corresponding to the child node rule and according to actual needs, and the embodiment of the invention is not limited.
For example, the child node rule C corresponds to two charging parameters of a transaction amount and a transaction currency, and includes the following six preferential conditions:
(1) the trade currency is RMB and the trade amount is in the range of 0-5000;
(2) the transaction currency is RMB and the transaction amount range is [5000 + 10000 ];
(3) the trade currency is RMB and the trade amount range is [10000,99999999999999999 ];
(4) the transaction currency is U.S. dollars and the transaction amount ranges from [0-5000 ];
(5) the transaction currency is dollar and the transaction amount ranges from [5000 + 10000 ];
(6) the transaction currency is U.S. dollars and the transaction amount ranges [10000,99999999999999999 ];
the preferential rate corresponding to the preferential condition (1) is 100%, the preferential rate corresponding to the preferential condition (2) is 50%, the preferential rate corresponding to the preferential condition (3) is 70%, the preferential amount corresponding to the preferential condition (4) is $ 5, the preferential rate corresponding to the preferential condition (5) is 70%, and the preferential rate corresponding to the preferential condition (6) is 90%.
For example, the child node rule D corresponds to two charging parameters, namely a transaction channel and a client star level, and includes the following preferential conditions:
(1) the transaction channel is counter and the client star level is 1 star;
(2) the transaction channel is counter and the client star level is 2 stars;
(3) the transaction channel is counter and the client star level is 3 stars;
(4) the transaction channel is a self-service terminal and the client star level is 1 star;
(5) the transaction channel is a self-service terminal and the client star level is 2 stars;
(6) the transaction channel is a self-service terminal and the client star level is 3 stars;
(7) the transaction channel is online banking and the client star level is 1 star;
(8) the transaction channel is online banking and the client star level is 2 stars;
(9) the transaction channel is online banking and the client star level is 3 stars;
the preferential rate corresponding to the preferential condition (1) is 10%, the preferential rate corresponding to the preferential condition (2) is 30%, the preferential rate corresponding to the preferential condition (3) is 50%, the preferential rate corresponding to the preferential condition (4) is 15%, the preferential rate corresponding to the preferential condition (5) is 35%, the preferential rate corresponding to the preferential condition (6) is 55%, the preferential rate corresponding to the preferential condition (7) is 30%, the preferential rate corresponding to the preferential condition (5) is 70%, and the preferential rate corresponding to the preferential condition (6) is 100%.
The change of the sub-node rules is realized by increasing or decreasing the preferential conditions included in the sub-node rules and the combination change of the preferential conditions, so that the modification of the preferential rules is convenient and flexible. The adjustment of the preferential parameters corresponding to the preferential conditions can affect the preferential parameters corresponding to the root node rule, and the adjustment of the preferential parameters corresponding to the whole root node rule is realized through the adjustment of the preferential parameters of a certain preferential condition of the child node rule.
On the basis of the above embodiments, further, the offer parameter is a discount rate or a discount amount. The preferential rate can be expressed in percentage, and the preferential amount is the absolute amount of the charge deduction.
On the basis of the foregoing embodiments, further, the calculating to obtain the actual cost according to the preferential parameter corresponding to the root node rule and the standard cost includes:
calculating the product of the difference value obtained by subtracting the preferential rate from 1 and the standard cost as the actual cost; or
And calculating the difference between the standard cost and the discount amount to be used as the actual cost.
Specifically, when the benefit parameter corresponding to the root node rule is a benefit rate, the server may calculate 1 minus the benefit rate corresponding to the root node rule to obtain an actual rate, multiply the actual rate by the standard cost, and use a result of the multiplication as the actual cost. When the offer parameter corresponding to the root node rule is an offer amount, the server may calculate a difference between the standard cost and the offer amount, and take a result of the subtraction as the actual cost.
For example, the standard fee is 100, and if the server obtains the preferential rate of the root node as 50%, the actual fee is 100x (1-50%) -50. If the server obtains the benefit amount of twenty-four nodes as 10, the actual cost is 100-10-90.
The following describes a specific embodiment of the implementation of the cost processing method provided by the embodiment of the present invention.
The customer tee conducts online bank transfer through the smart phone, the smart phone sends a transaction request to the server, the transaction request comprises transfer remittance, transfer-out of an account, transfer-in of the account and transaction amount, and the transfer remittance is of a product type. After the server receives the transaction request, the client star rating of the client ZusanIII can be obtained according to the inquiry of the transferred account, the transaction channel can be obtained as online banking due to the fact that the ZusanIII passes through the online banking transfer, and the currency of the transfer transaction can be determined according to the type of the transferred account. The server can obtain the standard rate corresponding to the transfer remittance according to the transfer remittance inquiry, and then multiply the standard rate by the transfer amount to obtain the standard charge q corresponding to the transfer remittance.
The server can use the client star level, the transaction channel, the transaction currency and the transaction amount as charging parameters, and the server obtains the four charging parameters, transfers money and standard fees as charging information. The server can inquire and obtain a preferential rule corresponding to the transfer remittance from a database according to the transfer remittance, wherein the preferential rule comprises a root node rule X, a child node rule C and a child node rule D. Assuming that the transaction amount is 10000, the server can judge that the transaction currency and the transaction amount satisfy the preferential condition (2) of the sub-node rule C according to the fact that the transaction currency is RMB and the transfer amount is 10000, and obtain 50% of preferential rate corresponding to the preferential condition (2) of the sub-node rule C as preferential parameters corresponding to the sub-node rule C. Assuming that the star level of the client is 2 stars, the server can judge that the transaction channel and the star level of the client meet the preferential condition (9) of the child node rule D according to the fact that the transaction channel is online banking and the star level of the client is 2 stars, and obtain 70% of preferential rate corresponding to the preferential condition (9) of the child node rule D as the preferential parameter corresponding to the child node rule D. If the root node rule X is the discount of the preferential parameters corresponding to each child node rule, the server calculates the product of 50% of the preferential parameters corresponding to the child node rule C and 70% of the preferential parameters corresponding to the child node rule D as the preferential parameters corresponding to the root node rule X, and the result is 35%. And the server calculates the difference value of subtracting 35% of the preferential parameters corresponding to the root node rule X from 1 to obtain the actual rate of 65%, and the actual cost of the transfer is 0.65 q.
Fig. 6 is a schematic structural diagram of a device for processing fees according to an embodiment of the present invention, and as shown in fig. 6, the device for processing fees according to an embodiment of the present invention includes an obtaining unit 601, a first obtaining unit 602, a second obtaining unit 603, a third obtaining unit 604, and a calculating unit 605, where:
the obtaining unit 601 is configured to obtain charging information, where the charging information includes a product type, a plurality of charging parameters, and a standard charge; the first obtaining unit 602 is configured to obtain, according to the product type, a benefit rule corresponding to the product type, where the benefit rule includes a root node rule and a plurality of child node rules; the preferential rule corresponding to the product type is preset; the second obtaining unit 603 is configured to obtain, according to the multiple charging parameters and the multiple child node rules, a benefit parameter corresponding to each child node rule; wherein, each subnode rule corresponds to at least two charging parameters; the third obtaining unit 604 is configured to obtain, according to the preferential parameters corresponding to the child node rules and the root node rule, the preferential parameters corresponding to the root node rule; the calculating unit 605 is configured to calculate and obtain the actual cost according to the discount parameter corresponding to the root node rule and the standard cost.
Specifically, the acquisition unit 601 may acquire billing information used to calculate the charge, which may include a product type, a plurality of billing parameters, and a standard charge. The product types are preset, such as transfer remittance, short message notification cost and the like, and each product type corresponds to one preferential rule; the charging parameters are obtained from transaction elements, wherein the transaction elements comprise but are not limited to information such as a transaction area number, a transaction website number, a card number or an account number, a transaction amount, a transaction channel, a customer star level, a transaction date, a card or account number interest type, a belonged city circle, a marketing date, a transaction currency, an agreement and the like; the standard fee is the normal fee of the product corresponding to the product type, and can be obtained by calculating the product of the transaction amount and the rate corresponding to the product type.
After obtaining the charging information, the first obtaining unit 602 may obtain, according to the product type, a benefit rule corresponding to the product type from a database, where the benefit rule includes a root node rule and a plurality of child node rules. The preferential rule corresponding to the product type is preset and is set according to actual needs, and the embodiment of the invention is not limited.
After obtaining the benefit rule, the second obtaining unit 603 may obtain, according to the plurality of charging parameters and the plurality of child node rules, a benefit parameter corresponding to each child node rule, where the benefit parameter is a benefit rate or a benefit amount. Each child node rule corresponds to at least two charging parameters, and the child node rules are set according to actual needs.
After obtaining the benefit parameter corresponding to each child node rule, the third obtaining unit 604 may obtain the benefit parameter corresponding to the root node rule according to the benefit parameter corresponding to each child node rule and the root node rule. Wherein the root node rule is preset.
After obtaining the benefit parameter corresponding to the root node rule, the calculating unit 605 may calculate and obtain the actual cost according to the benefit parameter corresponding to the root node rule and the standard cost. If the preferential parameters corresponding to the root node rule are preferential rates, calculating 1 to subtract the preferential rates corresponding to the root node rule to obtain actual rates, multiplying the standard rates by the actual rates, and taking the result of the multiplication as the actual rates. And if the amount preferential parameter of the root node is the preferential amount, calculating the difference value of the standard cost minus the preferential amount of the root node, and taking the difference value as the actual cost.
The expense processing device provided by the embodiment of the invention can obtain the charging information, obtain the preferential rules corresponding to the product types according to the product types, wherein the preferential rules comprise a root node rule and a plurality of sub-node rules, obtain the preferential parameters corresponding to each sub-node rule according to a plurality of charging parameters and a plurality of sub-node rules, obtain the preferential parameters corresponding to the root node rule according to the preferential parameters corresponding to each sub-node rule and the root node rule, calculate and obtain the actual expense according to the preferential parameters corresponding to the root node rule and the standard expense, realize the flexible configuration and the free combination of expense preferential through the preferential rules comprising the root node rule and the plurality of sub-node rules, and improve the flexibility of expense processing.
Fig. 7 is a schematic structural diagram of a fee processing apparatus according to another embodiment of the present invention, and as shown in fig. 7, on the basis of the above embodiments, further, the second obtaining unit 602 includes a first obtaining sub-unit 6021 and a second obtaining sub-unit 6022, where:
the first obtaining subunit 6021 is configured to obtain a charging parameter corresponding to the child node rule from the plurality of charging parameters; the second obtaining subunit 6022 is configured to obtain, according to the charging parameter corresponding to the child node rule and the child node rule, a benefit parameter corresponding to the child node rule.
Specifically, each child node rule has a corresponding charging parameter, the first obtaining child unit 6021 queries whether a charging parameter corresponding to the child node rule exists from the plurality of charging parameters according to the charging parameter corresponding to the child node rule, and if so, obtains the charging parameter corresponding to the child node rule from the plurality of charging parameters. If not, the child node rule is not used.
After obtaining the charging parameter corresponding to the child node rule, the second obtaining subunit 6022 judges which preferential condition that the charging parameter corresponding to the child node rule satisfies the child node rule, and uses the preferential parameter corresponding to the preferential condition that the charging parameter corresponding to the child node rule satisfies as the preferential parameter corresponding to the child node rule. The sub-node rule comprises a plurality of preference conditions, and each preference condition corresponds to one preference parameter. The preferential condition is set according to the charging parameter corresponding to the child node rule and according to actual needs, and the embodiment of the invention is not limited.
On the basis of the above embodiments, further, the offer parameter is a discount rate or a discount amount. The preferential rate can be expressed in percentage, and the preferential amount is the absolute amount of the charge deduction.
On the basis of the foregoing embodiments, further, the calculating unit 605 is specifically configured to:
calculating the product of the difference value obtained by subtracting the preferential rate from 1 and the standard cost as the actual cost; or
And calculating the difference between the standard cost and the discount amount to be used as the actual cost.
Specifically, when the benefit parameter corresponding to the root node rule is a benefit rate, the calculating unit 605 may calculate 1 minus the benefit rate corresponding to the root node rule to obtain an actual rate, multiply the actual rate by the standard cost, and use the result of the multiplication as the actual cost. When the offer parameter corresponding to the root node rule is an offer amount, the calculation unit 605 may calculate a difference between the standard cost and the offer amount, and use the result of the subtraction as the actual cost.
The embodiment of the expense processing device provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the embodiment are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 8, the electronic device may include: a processor (processor)801, a communication Interface (Communications Interface)802, a memory (memory)803 and a communication bus 804, wherein the processor 801, the communication Interface 802 and the memory 803 complete communication with each other through the communication bus 804. The processor 801 may call logic instructions in the memory 803 to perform the following method: acquiring charging information, wherein the charging information comprises a product type, a plurality of charging parameters and standard cost; obtaining a preference rule corresponding to the product type according to the product type, wherein the preference rule comprises a root node rule and a plurality of child node rules; the preferential rule corresponding to the product type is preset; obtaining a preferential parameter corresponding to each sub-node rule according to the plurality of charging parameters and the plurality of sub-node rules; wherein, each subnode rule corresponds to at least two charging parameters; obtaining a preferential parameter corresponding to the root node rule according to the preferential parameter corresponding to each child node rule and the root node rule; and calculating to obtain the actual cost according to the preferential parameters corresponding to the root node rule and the standard cost.
In addition, the logic instructions in the memory 803 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: acquiring charging information, wherein the charging information comprises a product type, a plurality of charging parameters and standard cost; obtaining a preference rule corresponding to the product type according to the product type, wherein the preference rule comprises a root node rule and a plurality of child node rules; the preferential rule corresponding to the product type is preset; obtaining a preferential parameter corresponding to each sub-node rule according to the plurality of charging parameters and the plurality of sub-node rules; wherein, each subnode rule corresponds to at least two charging parameters; obtaining a preferential parameter corresponding to the root node rule according to the preferential parameter corresponding to each child node rule and the root node rule; and calculating to obtain the actual cost according to the preferential parameters corresponding to the root node rule and the standard cost.
The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: acquiring charging information, wherein the charging information comprises a product type, a plurality of charging parameters and standard cost; obtaining a preference rule corresponding to the product type according to the product type, wherein the preference rule comprises a root node rule and a plurality of child node rules; the preferential rule corresponding to the product type is preset; obtaining a preferential parameter corresponding to each sub-node rule according to the plurality of charging parameters and the plurality of sub-node rules; wherein, each subnode rule corresponds to at least two charging parameters; obtaining a preferential parameter corresponding to the root node rule according to the preferential parameter corresponding to each child node rule and the root node rule; and calculating to obtain the actual cost according to the preferential parameters corresponding to the root node rule and the standard cost.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for processing a fee, comprising:
acquiring charging information, wherein the charging information comprises a product type, a plurality of charging parameters and standard cost;
obtaining a preference rule corresponding to the product type according to the product type, wherein the preference rule comprises a root node rule and a plurality of child node rules; the preferential rule corresponding to the product type is preset;
obtaining a preferential parameter corresponding to each sub-node rule according to the plurality of charging parameters and the plurality of sub-node rules; wherein, each subnode rule corresponds to at least two charging parameters;
obtaining a preferential parameter corresponding to the root node rule according to the preferential parameter corresponding to each child node rule and the root node rule;
and calculating to obtain the actual cost according to the preferential parameters corresponding to the root node rule and the standard cost.
2. The method according to claim 1, wherein the obtaining, according to the plurality of charging parameters and the plurality of child node rules, a benefit parameter corresponding to each child node rule comprises:
obtaining a charging parameter corresponding to the child node rule from the plurality of charging parameters;
and obtaining the preferential parameters corresponding to the child node rules according to the charging parameters corresponding to the child node rules and the child node rules.
3. The method of claim 1 or 2, wherein the offer parameter is an offer rate or an offer amount.
4. The method of claim 3, wherein the calculating the actual cost according to the preferential parameters corresponding to the root node rule and the standard cost comprises:
calculating the product of the difference value obtained by subtracting the preferential rate from 1 and the standard cost as the actual cost; or
And calculating the difference between the standard cost and the discount amount to be used as the actual cost.
5. An apparatus for processing a fee, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring charging information, and the charging information comprises a product type, a plurality of charging parameters and standard cost;
a first obtaining unit, configured to obtain, according to the product type, a benefit rule corresponding to the product type, where the benefit rule includes a root node rule and a plurality of child node rules; the preferential rule corresponding to the product type is preset;
a second obtaining unit, configured to obtain, according to the multiple charging parameters and the multiple child node rules, a discount parameter corresponding to each child node rule; wherein, each subnode rule corresponds to at least two charging parameters;
a third obtaining unit, configured to obtain, according to the privilege parameters corresponding to each child node rule and the root node rule, the privilege parameters corresponding to the root node rule;
and the calculating unit is used for calculating and obtaining the actual cost according to the discount parameters corresponding to the root node rule and the standard cost.
6. The apparatus of claim 5, wherein the second obtaining unit comprises:
a first obtaining subunit, configured to obtain, from the multiple charging parameters, a charging parameter corresponding to the child node rule;
and the second obtaining subunit is configured to obtain, according to the charging parameter corresponding to the child node rule and the child node rule, a benefit parameter corresponding to the child node rule.
7. The apparatus of claim 5 or 6, wherein the offer parameter is an offer rate or an offer amount.
8. The apparatus according to claim 7, wherein the computing unit is specifically configured to:
calculating the product of the difference value obtained by subtracting the preferential rate from 1 and the standard cost as the actual cost; or
And calculating the difference between the standard cost and the discount amount to be used as the actual cost.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202010146489.9A 2020-03-05 2020-03-05 Expense processing method and device Pending CN111311398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010146489.9A CN111311398A (en) 2020-03-05 2020-03-05 Expense processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010146489.9A CN111311398A (en) 2020-03-05 2020-03-05 Expense processing method and device

Publications (1)

Publication Number Publication Date
CN111311398A true CN111311398A (en) 2020-06-19

Family

ID=71145335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010146489.9A Pending CN111311398A (en) 2020-03-05 2020-03-05 Expense processing method and device

Country Status (1)

Country Link
CN (1) CN111311398A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113706216A (en) * 2021-09-03 2021-11-26 神州数码融信软件有限公司 Novel differentiated charging calculation method
CN116050956A (en) * 2022-06-17 2023-05-02 南京云次方信息技术有限公司 Cross-border E-commerce logistics freight calculation system
CN117788057A (en) * 2024-02-27 2024-03-29 浙江恒中养老产业发展有限公司 Patch issuing and using method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113706216A (en) * 2021-09-03 2021-11-26 神州数码融信软件有限公司 Novel differentiated charging calculation method
CN116050956A (en) * 2022-06-17 2023-05-02 南京云次方信息技术有限公司 Cross-border E-commerce logistics freight calculation system
CN116050956B (en) * 2022-06-17 2023-09-26 南京云次方信息技术有限公司 Cross-border E-commerce logistics freight calculation system
CN117788057A (en) * 2024-02-27 2024-03-29 浙江恒中养老产业发展有限公司 Patch issuing and using method and device

Similar Documents

Publication Publication Date Title
CN111311398A (en) Expense processing method and device
CN107358524B (en) Method for leveling funds among multiple account management lines in same currency
CN110033252A (en) A kind of channel of disbursement recommended method and device
CN110827138A (en) Push information determining method and device
CN111080342A (en) Resource allocation method and device, storage medium and electronic device
CN111709777A (en) Payment mode recommendation method, system, terminal device and storage medium
CN110991744B (en) Transaction limit setting method and system
CN112288412A (en) Block chain-based digital legal note management method and device
CN106557921A (en) On-line payment method and device
WO2019151702A1 (en) Method for providing payment-integrated savings service using big data-based intangible savings plan electronic payment
CN111258750A (en) Data volume processing method and system, and quota allocation method and system
KR101765088B1 (en) Marketing system and method by separation of product group
CN102346904A (en) Borrowing and lending method and system
CN112035681B (en) Method and device for determining credit card rate information based on knowledge graph
CN110275769A (en) Business data processing method and its equipment, storage medium, application server
WO2021174903A1 (en) Resource conversion data processing method and apparatus, and computer device and storage medium
KR20190019384A (en) Multi-level marketing member consignment method and system performing the same
CN112308583A (en) Medical platform management method and system based on virtual integration
CN111427956A (en) Digital asset clearing method and device based on block chain
Hariyanti et al. Conceptual Model for Adoption of Mobile Banking Technology in Savings and Loans Cooperatives
CN114429341B (en) Grouped payment method, device and equipment
CN112862482B (en) Internet-based joint membership card management system and method
CN114331691A (en) Method and device for determining final charging according to differentiated pricing
CN114240658A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN111145013A (en) Repayment data adjusting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination