CN111311215A - E-commerce platform settlement method and device, storage medium and settlement equipment - Google Patents
E-commerce platform settlement method and device, storage medium and settlement equipment Download PDFInfo
- Publication number
- CN111311215A CN111311215A CN201811510499.5A CN201811510499A CN111311215A CN 111311215 A CN111311215 A CN 111311215A CN 201811510499 A CN201811510499 A CN 201811510499A CN 111311215 A CN111311215 A CN 111311215A
- Authority
- CN
- China
- Prior art keywords
- amount
- settlement
- type
- service
- fund
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
- G06Q20/102—Bill distribution or payments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Marketing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a method and a device for E-commerce platform settlement, a storage medium and settlement equipment. The method comprises the following steps: acquiring a plurality of money interactive records, wherein the money interactive records comprise a fee type; determining a capital direction and a business direction corresponding to each amount interaction record according to the expense types, wherein the capital direction is used for expressing the expense flow direction of the expense types on the E-commerce platform, and the business direction is the expense flow direction defined for the expense types according to business requirements; and calculating the settlement amount according to the fund direction and the service direction of each amount interactive record aiming at each amount interactive record related to the type to be settled. By adopting the technical scheme, the embodiment of the invention simplifies the design logic of settlement amount, can calculate the settlement amount corresponding to different settlement types, and can realize the flexible decoupling of the calculation of the settlement amount and the business layer through the fund direction and the business direction recorded by the amount interaction.
Description
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a settlement method, a settlement device, a storage medium and settlement equipment for an e-commerce platform.
Background
The various amounts of interaction between the merchant, operating on the e-commerce platform, and the consumer are typically implemented through a payment system provided by the e-commerce platform. The consumer actually interacts with the e-commerce platform for the amount, which is then settled with the merchant. The opportunity for the e-commerce platform to settle with the merchant can be regular or when other agreed conditions are met.
The settlement function of the e-commerce platform is an important function which is indispensable in the operation process of the e-commerce. The settlement system of the e-commerce platform can support calculation of multiple settlement types (settlementType), and the calculation mode of the amount of the settlement list corresponding to each settlement type is different, wherein the settlement type can be understood as the type of settlement of the amount of the merchant by the e-commerce platform. The settlement list corresponding to any settlement type comprises a settlement amount settletmentaccount, a paymentaccount and a difference adjustment amount (modifyAmount), and the amounts of the types form the constituent items of the settlement list. The settlement amount can be understood as the amount of money which is actually required to be settled for the merchant by the E-commerce platform; the amount due can be understood as the amount that the e-commerce platform needs to pay the merchant; the amount receivable can be understood as the amount which needs to be charged to the merchant by the e-commerce platform; the difference adjustment amount can be understood as the difference adjustment value that is required for the calculated settlement amount according to the actual situation. The above various types of money can be used for displaying, and the power supplier platform and the merchant can inquire account statistical data besides controlling money transfer.
In the prior art, before calculating various settlement amounts, it is necessary to set one or more settlement types for each amount interaction record between the e-commerce platform and the merchant, and store one or more derived amount interaction records in a database. And when settlement is carried out, acquiring a plurality of money interactive records with the same settlement type from the database according to the settlement type, and calculating the settlement money according to the corresponding money calculation mode.
However, in the course of the research conducted by the present invention, the inventors found that the prior art has the following drawbacks: various settlement types are determined according to the service requirements of the e-commerce platform, for example, according to the service requirements, refund amount, insurance amount and the like may also need to be calculated, and then corresponding settlement types and amount calculation formulas are designed according to the service requirements. With the service enrichment of the e-commerce platform, the settlement types are increased gradually. This results in the need for ever increasing settlement type logic code in settlement systems, making library table designs more complex and bulky. In addition, the logic codes of various settlement types are not completely independent, but are composed on the basis of some core computing logics and personalized computing logics. When a new settlement type is added, the core calculation logic may need to be adjusted, which is not favorable for the horizontal expansion of the settlement system.
Disclosure of Invention
The embodiment of the invention provides a method and a device for E-commerce platform settlement, a storage medium and settlement equipment, which are used for optimizing the existing E-commerce platform settlement scheme and simplifying the settlement design logic.
In a first aspect, an embodiment of the present invention provides an e-commerce platform settlement method, including:
acquiring a plurality of money interactive records, wherein the money interactive records comprise a fee type;
determining a fund direction and a service direction corresponding to each amount interaction record according to the charge type, wherein the fund direction is used for representing the charge flow direction of the charge type on the E-commerce platform, and the service direction is the charge flow direction defined for the charge type according to the service requirement;
and calculating settlement amount according to the fund direction and the service direction of each amount interactive record aiming at each amount interactive record related to the type to be settled.
In a second aspect, an embodiment of the present invention provides an e-commerce platform settlement apparatus, including:
the amount interaction record acquisition module is used for acquiring a plurality of amount interaction records, wherein the amount interaction records comprise the expense types;
the interactive direction determining module is used for determining a fund direction and a business direction corresponding to each amount interactive record according to the charge type, wherein the fund direction is used for representing the charge flow direction of the charge type on the e-commerce platform, and the business direction is the charge flow direction defined for the charge type according to the business requirement;
and the settlement amount calculation module is used for calculating the settlement amount according to the fund direction and the service direction of each amount interaction record aiming at each amount interaction record related to the type to be settled.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the e-commerce platform settlement method provided by the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a settlement apparatus, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the e-commerce platform settlement method according to an embodiment of the present invention.
According to the settlement scheme of the e-commerce platform provided by the embodiment of the invention, when the e-commerce platform settles with a merchant in a settlement period, a plurality of amount interaction records are obtained, wherein the amount interaction records comprise a fee type, then a fund direction and a service direction corresponding to each amount interaction record are determined according to the fee type, wherein the fund direction is used for expressing the fee flowing direction of the fee type on the e-commerce platform, the service direction is the fee flowing direction defined for the fee type according to service requirements, and finally, the settlement amount is calculated according to the fund direction and the service direction of each amount interaction record related to the type to be settled. By adopting the technical means, the existing e-commerce platform settlement scheme is optimized, the design logic of settlement amount is simplified, the calculation of the settlement amount can be carried out corresponding to various different settlement types, the flexible decoupling of the calculation of the settlement amount and a service layer can be realized by determining the fund direction and the service direction of the interactive record of the amount, and the calculation cost of the settlement amount is reduced.
Drawings
Fig. 1 is a schematic flow chart of a settlement method for an e-commerce platform according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another e-commerce platform settlement method according to an embodiment of the present invention;
fig. 3 is a block diagram of a settlement apparatus for e-commerce platform according to an embodiment of the present invention;
fig. 4 is a block diagram of a settlement device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
In the related art, the settlement mode of the e-commerce platform is as follows: firstly, before calculating the settlement amount, setting a corresponding settlement type for each amount interaction record in the amount settlement detail, and storing the amount settlement detail with the set settlement type in a database; secondly, when the E-commerce platform settlement needs to be carried out on a certain type to be settled in a settlement period, obtaining settlement details of the amount corresponding to the type to be settled and stored in a database according to the type to be settled, and selecting a calculation mode corresponding to the type to be settled to calculate the settlement amount; and finally, after the settlement amount is calculated, storing related data composition items (such as the receivable amount, the payable amount and the difference adjustment amount) which are related to the settlement amount and need to be displayed in a database according to business requirements. When calculating the settlement amount corresponding to each settlement type, the calculation formula corresponding to the settlement type needs to be matched according to the settlement type, and the calculation formula corresponding to each settlement type needs to be defined by combining the service direction defined by the service layer and the fee type in the settlement detail, so that the calculation mode of the settlement amount corresponding to each settlement type is highly coupled with the service layer, and when the service requirement corresponding to the service layer changes, the calculation cost of the settlement amount is easily increased. Based on the above considerations, the following e-commerce platform settlement scheme is now provided.
Fig. 1 is a schematic flow chart of an e-commerce platform settlement method provided in an embodiment of the present invention, which may be performed by an e-commerce platform settlement apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a settlement device. As shown in fig. 1, the method includes:
In the embodiment of the invention, a plurality of money amount interaction records between the e-commerce platform and the merchant are obtained, wherein each money amount interaction record not only comprises an interaction money amount, but also comprises a fee type, and the fee type can be understood as a money amount fee type corresponding to each money amount interaction. Exemplary types of fees may include types of orders, refunds, points for deductions, and points for refunds. It should be noted that the fee types included in each amount interaction record in the plurality of amount interaction records may be the same or different, and the types of the fee types related to the plurality of amount interaction records may be one or more.
And 102, determining the fund direction and the service direction corresponding to each amount interaction record according to the fee type.
The fund direction is used for expressing the charge flow direction of the charge type on the E-commerce platform, and the business direction is the charge flow direction defined for the charge type according to the business requirement.
In the embodiment of the present invention, the fund direction may be understood as a fee flow direction for indicating a fee type on the e-commerce platform, that is, a flow direction of an interactive amount corresponding to the fee type, where the fund direction may include a direction due and a direction due when the interactive amount corresponding to the fee type is an amount of the merchant charged by the e-commerce platform, the fund direction corresponding to the fee type may be determined as the direction due; when the interactive amount corresponding to the fee type is the amount paid to the merchant by the e-commerce platform, the fund direction corresponding to the fee type can be determined as the direction to be paid. The service direction may be understood as a charge flowing direction defined for the charge type according to the service requirement, that is, a flowing direction of the interaction amount corresponding to the charge type according to the service requirement, where the service direction may include a direction due, and a difference adjustment direction. Illustratively, according to the service requirement, the interaction amount corresponding to a certain fee type can be determined as the fee that the e-commerce platform should charge the merchant, that is, the service direction corresponding to the fee type is defined as the direction to be charged; according to the business requirement, determining the interactive amount corresponding to a certain expense type as the expense which should be paid to the merchant by the E-commerce platform, namely defining the business direction corresponding to the expense type as the direction to be paid; similarly, according to the service requirement, the interaction amount corresponding to some fee types is determined as the fee for the balanced transaction of the e-commerce platform and the merchant, that is, when the e-commerce platform does not need to pay the merchant nor charge the merchant, the service direction corresponding to the fee type can be defined as the difference adjustment direction.
The capital direction can be understood as being strictly defined according to the actual flow direction of the cost type on the e-commerce platform and cannot be changed along with the change of the service requirement, and the service direction can be understood as being flexibly configured and defined according to the flow direction of the cost type of the requirement of each service platform and can be changed along with the change of the service requirement. When the service requirement changes, the charge flow direction for the charge type needs to be defined again according to the new service requirement.
Optionally, the fee type, the fund direction, and the service direction are respectively recorded in the mapping relationship table as table entries. It can be understood that the cost type, the fund direction and the business direction are respectively recorded in the table entry, and a mapping relation table among the cost type, the fund direction and the business direction is generated. Illustratively, determining the fund direction and the business direction corresponding to each amount interaction record according to the fee type comprises the following steps: and for each expense type related to the plurality of amount interaction records, searching the fund direction and the service direction corresponding to each expense type in the mapping relation table to serve as the fund direction and the service direction corresponding to the amount interaction record comprising the expense type.
Optionally, before calculating the settlement amount, the amount settlement details including the multiple amount interaction records need to be saved. When the amount settlement details are stored, an interface saveSettlementDetails () for storing the amount settlement details can be provided for the outside through the settlement system, and the interface can support the storage of a plurality of amount settlement details at one time. When the amount settlement detail needs to be saved, the amount settlement detail to be saved can be transmitted through the interface, and each amount interaction record in the amount settlement detail to be saved can comprise a corresponding settlement type, a corresponding expense type and a corresponding settlement amount. The fund direction and the business direction corresponding to each amount interaction record in the amount settlement particulars to be stored can be determined according to the preset corresponding relation and the expense type of the expense type, the fund direction and the business direction can be added into the corresponding amount interaction record, and the amount interaction record in which the corresponding fund direction and the business direction are stored is stored in the database. Before determining the fund direction and the business direction corresponding to each amount interaction record, whether each expense type related to the amount settlement detail to be saved exists or not can be searched in the corresponding relation among the preset expense type, the fund direction and the business direction, if the expense type does not exist, an error is prompted, and if the expense type does not exist, the fund direction and the business direction corresponding to each amount interaction record are determined directly based on the corresponding relation table and the expense type.
And 103, calculating settlement amount according to the fund direction and the business direction of each amount interactive record aiming at each amount interactive record related to the type to be settled.
In the embodiment of the invention, each amount interaction record not only comprises the interaction amount and the expense type, but also comprises the settlement type, wherein the settlement type can be understood as the type of the amount settlement of the merchant by the e-commerce platform, and the settlement type in each amount interaction record can be the same or different. Illustratively, the settlement types may include current class settlement and underwriting class settlement.
For example, the settlement periods corresponding to different settlement types may be different, and therefore, the settlement amount may be calculated for each interactive record of the amount related to the same settlement type within a certain settlement period. And screening out a money interaction record corresponding to the type to be settled from the obtained money interaction records according to the type to be settled, and calculating the settlement money according to the money direction and the service direction corresponding to each money interaction record aiming at each money interaction record related to the money to be settled.
Optionally, calculating a settlement amount according to the fund direction and the business direction of each amount interaction record, for each amount interaction record related to the type to be settled, including: classifying and aggregating according to the service direction aiming at each amount interaction record related to the type to be settled; summarizing the actual amount according to the charge flow direction corresponding to the fund direction aiming at the amount interaction record corresponding to each type of business direction so as to calculate the business grading amount corresponding to the business direction; and summarizing the grading amount of each service according to the charge flowing direction corresponding to each service direction so as to determine the settlement amount of the type to be settled.
Illustratively, each amount interaction record related to the type to be settled is taken as a target amount interaction record, and the target amount interaction records are classified and aggregated according to the service direction. For example, if the service direction includes a payable direction, a receivable direction and a difference adjustment direction, the target amount interaction record can be divided into three categories according to the three service directions, which are the amount interaction record corresponding to the payable direction, the amount interaction record corresponding to the receivable direction and the amount interaction record corresponding to the difference adjustment direction. Of course, the embodiments of the present invention do not specifically limit the types and the number of the service directions, and may classify and aggregate the target money amount interaction records for different types of service directions.
And summarizing the actual amount according to the charge flow direction corresponding to the fund direction aiming at the amount interaction records corresponding to each type of business direction, and taking the summarized result as the business grading amount corresponding to the business direction. The fund direction comprises a payable direction and an receivable direction, and can be simply understood as the fund direction comprising the payable direction and the receivable direction, and when the fund direction is the payable direction, the expense direction corresponding to the fund direction is the expenditure direction; when the fund direction is the receivable direction, the charge flow direction corresponding to the fund direction is the inflow direction. And summarizing the actual amount according to the amount of money interaction records corresponding to each type of business direction and the fund direction corresponding to each amount of money interaction record, and taking the summarized result as the business grading amount corresponding to the business direction. For example, if the value of the capital direction as the direction to be paid is-1 and the value of the capital direction as the direction to be received is +1, the service classification amount corresponding to each type of service direction can be calculated according to the following formula: businessmount ═ Σ _ amount _ direction; the businessmount represents service grading amount corresponding to each type of service direction, the amount represents interaction amount of each amount interaction record in the amount interaction records corresponding to each type of service direction, the direction represents fund direction of each amount interaction record in the amount interaction records corresponding to each type of service direction, when the fund direction is a payable direction, the direction is-1, and when the fund direction is a receivable direction, the direction is 1.
In the embodiment of the invention, after the service grading amount corresponding to each type of service direction is calculated, the service grading amounts corresponding to each type of service direction can be summarized according to the charge flowing direction corresponding to each service direction, and the summarized result is determined as the settlement amount of the type to be settled. Illustratively, the charge flow direction corresponding to the service direction includes a direction due, a direction due to receipt, and a difference adjustment, and may also be simply understood as the service direction includes a direction due, a direction due to receipt, and a difference adjustment direction, where a value of the direction due is-1, a value of the direction due to receipt is +1, and a value of the difference adjustment is 0. The settlement amount of the type to be settled can be calculated according to the following formula: the method includes the steps of setting a settlement amount to be settled, setting a business classification amount corresponding to each type of business direction, setting the business classification direction to be a handling direction, setting the business classification direction to be-1 when the business direction is the handling direction, setting the business classification direction to be +1 when the business direction is the receiving direction, and setting the business direction to be 0 when the business direction is the difference adjustment direction.
The method for settling the e-commerce platform provided by the embodiment of the invention comprises the steps of acquiring a plurality of amount interaction records when the e-commerce platform and a merchant settle accounts in a settlement period, wherein the amount interaction records comprise a fee type, determining a fund direction and a service direction corresponding to each amount interaction record according to the fee type, wherein the fund direction is used for expressing the fee flowing direction of the fee type on the e-commerce platform, the service direction is the fee flowing direction defined for the fee type according to service requirements, and finally calculating the settlement amount according to the fund direction and the service direction of each amount interaction record related to the type to be settled. By adopting the technical means, the existing e-commerce platform settlement scheme is optimized, the design logic of settlement amount is simplified, the calculation of the settlement amount can be carried out corresponding to various different settlement types, the flexible decoupling of the calculation of the settlement amount and a service layer can be realized by determining the fund direction and the service direction of the interactive record of the amount, and the calculation cost of the settlement amount is reduced.
In some embodiments, the cost type, the fund direction, and the business direction are each recorded as an entry in the mapping table. Each mapping relation table is set corresponding to one settlement type; or the mapping relation table also comprises an entry of a settlement type. Each mapping table is set corresponding to one settlement type, and can be understood as a mapping table corresponding to different settlement types. Or, the mapping relationship table further includes a settlement type entry, that is, the settlement type, the fee type, the fund direction and the service direction are respectively recorded in the mapping relationship table as entries, that is, the corresponding relationship among the settlement type, the fee type, the fund direction and the service direction is generated in advance. Because, for different settlement types, the corresponding relationship between the fee type, the fund direction and the business direction may be the same or different, and especially, the corresponding relationship between the settlement type, the fee type and the business direction may be different. That is, the fee types included in the interactive records of the amount of money related to different settlement types may be the same or different, and the corresponding business directions may be different for the same fee type. Thus, the traffic direction can also be understood as the charge flow direction defined for the settlement type and the charge type according to the traffic demand. When each mapping relation table is set corresponding to one settlement type; or when the mapping relation table further comprises a settlement type table entry, determining the fund direction and the service direction corresponding to each amount interaction record according to the type to be settled and the expense type.
In some embodiments, further comprising: and updating the mapping relation table according to a settlement type setting instruction or a service direction setting instruction initiated by a service party. Illustratively, when the settlement type or the fee type is increased according to the business requirement, the corresponding relation among the settlement type, the fee type, the fund direction and the business direction can be increased or changed to update the mapping relation table. The setting has the advantages that when the settlement type is increased, the calculation of the settlement amount of the newly added settlement type can be realized by updating the mapping relation table of the settlement type, the expense type, the fund direction and the service direction, the core calculation logic of the settlement amount does not need to be adjusted, and the transverse expansion of the settlement system is favorably realized.
In some embodiments, after the settlement amount is calculated, the service classification amount and the settlement amount corresponding to the service direction may be stored in the database, so as to facilitate display at the service level. Of course, the total amount corresponding to each fee type included in the target amount interaction record can be calculated according to the target amount interaction record related to the type to be settled, and the total amount corresponding to each fee type, the settlement amount and the service classification amount corresponding to the service direction are stored in the database together.
Fig. 2 is a schematic flow chart of another e-commerce platform settlement method according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
Illustratively, the settlement system of the e-commerce platform receives a settlement request initiated by the business party when the e-commerce platform needs to calculate a settlement amount with the business party during a settlement period. The settlement request may include a settlement instruction sent by the service party, and may further include a settlement amount detail transmitted by the service party, and it should be noted that the specific content of the settlement request is not limited in the embodiment of the present invention.
Illustratively, when the settlement request is a settlement instruction sent by the service party, the type to be settled is determined according to the settlement request, and a plurality of money interactive records corresponding to the type to be settled are read from the service party based on the type to be settled. When the settlement request is in the amount settlement detail transmitted by the service party, because the amount settlement detail comprises the settlement type corresponding to each amount interaction record, a plurality of amount interaction records corresponding to the to-be-settled type can be screened out from the amount settlement detail based on the to-be-settled type.
And step 204, determining the fund direction and the service direction corresponding to each amount interaction record according to the fee type and the mapping relation table.
And aiming at each expense type in the multiple amount interaction records related to the type to be settled, searching the fund direction and the service direction corresponding to each expense type from a mapping relation table among the expense types, the fund directions and the service directions, and taking the fund direction and the service direction as the fund direction and the service direction corresponding to the amount interaction records including the expense type.
And step 205, classifying and aggregating according to the service direction aiming at each money amount interaction record related to the type to be settled.
And step 206, aiming at the amount interaction records corresponding to each type of business direction, summarizing the actual amount according to the charge flow direction corresponding to the fund direction so as to calculate the business grading amount corresponding to the business direction.
The cost flowing direction corresponding to the fund direction comprises a direction to be paid and a direction to be received, the value of the direction to be paid is-1, and the value of the direction to be received is + 1.
And step 207, summarizing the service graded amounts according to the charge flowing direction corresponding to each service direction to determine the settlement amount of the type to be settled.
The charge flow direction corresponding to the service direction comprises a direction to be paid, a direction to be received and difference adjustment, wherein the value of the direction to be paid is-1, the value of the direction to be received is +1, and the value of the difference adjustment is 0.
The e-commerce platform settlement method provided by the embodiment of the invention determines the type to be settled according to the settlement request of a service party and acquires a plurality of money interactive records corresponding to the type to be settled when the e-commerce platform and the service party settle accounts in a settlement period, wherein the money interactive records comprise the fee type, the fund direction and the service direction corresponding to each money interactive record are determined according to the fee type and the mapping relation table among the fee type, the fund direction and the service direction, the money interactive records are classified and aggregated according to the service direction aiming at each money interactive record, the actual money is aggregated according to the fee flowing direction corresponding to the fund direction to calculate the service grading money corresponding to the service direction, and finally, the services are graded and aggregated according to the fee flowing direction corresponding to each service direction, to determine the settlement amount of the type to be settled. By adopting the technical means, the settlement amount of the type to be settled can be simply and quickly calculated through the plurality of amount interaction records corresponding to the type to be settled and the fund direction and the service direction corresponding to each amount interaction record, the calculation of the settlement amount and the flexible decoupling of the service layer can be realized, and the calculation cost of the settlement amount is reduced.
Fig. 3 is a block diagram of an e-commerce platform settlement apparatus provided in an embodiment of the present invention, which may be implemented by software and/or hardware, and is generally integrated in a settlement device, and may perform a settlement amount calculation by executing an e-commerce platform settlement method. As shown in fig. 3, the apparatus includes:
the amount interaction record obtaining module 301 is configured to obtain multiple amount interaction records, where each amount interaction record includes a fee type;
an interaction direction determining module 302, configured to determine, according to a fee type, a fund direction and a service direction corresponding to each amount interaction record, where the fund direction is used to indicate a fee flow direction of the fee type on an e-commerce platform, and the service direction is a fee flow direction defined for the fee type according to a service requirement;
and the settlement amount calculation module 303 is configured to calculate, according to the fund direction and the service direction of each amount interaction record, a settlement amount for each amount interaction record related to the type to be settled.
The e-commerce platform settlement device provided by the embodiment of the invention is characterized in that when the e-commerce platform and a merchant settle accounts in a settlement period, a plurality of amount interaction records are obtained, wherein the amount interaction records comprise a fee type, then a fund direction and a service direction corresponding to each amount interaction record are determined according to the fee type, wherein the fund direction is used for expressing the fee flowing direction of the fee type on the e-commerce platform, the service direction is the fee flowing direction defined for the fee type according to service requirements, and finally, the settlement amount is calculated according to the fund direction and the service direction of each amount interaction record related to the type to be settled. By adopting the technical means, the existing e-commerce platform settlement scheme is optimized, the design logic of settlement amount is simplified, the calculation of the settlement amount can be carried out corresponding to various different settlement types, the flexible decoupling of the calculation of the settlement amount and a service layer can be realized by determining the fund direction and the service direction of the interactive record of the amount, and the calculation cost of the settlement amount is reduced.
Optionally, the settlement amount calculation module is configured to:
classifying and aggregating according to the service direction aiming at each amount interaction record related to the type to be settled;
summarizing the actual amount according to the charge flow direction corresponding to the fund direction aiming at the amount interaction record corresponding to each type of business direction so as to calculate the business grading amount corresponding to the business direction;
and summarizing the grading amount of each service according to the charge flowing direction corresponding to each service direction so as to determine the settlement amount of the type to be settled.
Optionally, the fee flow direction corresponding to the fund direction includes a due direction and a due direction;
the charge flowing direction corresponding to the service direction comprises a direction to be paid, a direction to be received and difference adjustment.
Optionally: the value of the coping direction is-1, the value of the direction to be received is +1, and the value of the difference adjustment is 0.
Optionally, the amount interaction record obtaining module is configured to obtain the amount of money interaction
Receiving a settlement request of a service party;
and determining a type to be settled according to the settlement request, and acquiring a plurality of money interactive records corresponding to the type to be settled.
Optionally, the fee type, the fund direction, and the service direction are respectively recorded in the mapping relationship table as table entries.
Optionally, each mapping relation table is set corresponding to one settlement type; or
The mapping relation table also comprises an entry of a settlement type.
Optionally, the apparatus further comprises:
and updating the mapping relation table according to a settlement type setting instruction or a service direction setting instruction initiated by a service party.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for e-commerce platform settlement, the method comprising:
acquiring a plurality of money interactive records, wherein the money interactive records comprise a fee type;
determining a fund direction and a service direction corresponding to each amount interaction record according to the charge type, wherein the fund direction is used for representing the charge flow direction of the charge type on the E-commerce platform, and the service direction is the charge flow direction defined for the charge type according to the service requirement;
and calculating settlement amount according to the fund direction and the service direction of each amount interactive record aiming at each amount interactive record related to the type to be settled.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above-mentioned e-commerce platform settlement operation, and may also perform related operations in the e-commerce platform settlement method provided by any embodiment of the present invention.
The embodiment of the invention provides a settlement device, wherein the settlement device of an e-commerce platform provided by the embodiment of the invention can be integrated in the settlement device. Fig. 4 is a block diagram of a settlement device according to an embodiment of the present invention. The settlement device 400 may include: a memory 401, a processor 402 and a computer program stored on the memory 401 and executable on the processor, the processor 402 implementing the e-commerce platform settlement method according to an embodiment of the present invention when executing the computer program.
The settlement equipment provided by the embodiment of the invention is characterized in that when the e-commerce platform and a merchant settle accounts in a settlement period, a plurality of amount interaction records are obtained, wherein the amount interaction records comprise a fee type, then a fund direction and a service direction corresponding to each amount interaction record are determined according to the fee type, wherein the fund direction is used for expressing the fee flowing direction of the fee type on the e-commerce platform, the service direction is the fee flowing direction defined for the fee type according to the service requirement, and finally, the settlement amount is calculated according to the fund direction and the service direction of each amount interaction record related to the type to be settled. By adopting the technical means, the existing e-commerce platform settlement scheme is optimized, the design logic of settlement amount is simplified, the calculation of the settlement amount can be carried out corresponding to various different settlement types, the flexible decoupling of the calculation of the settlement amount and a service layer can be realized by determining the fund direction and the service direction of the interactive record of the amount, and the calculation cost of the settlement amount is reduced.
The electronic commerce platform settlement device, the storage medium and the settlement equipment provided by the embodiment can execute the electronic commerce platform settlement method provided by any embodiment of the invention, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to an e-commerce platform settlement method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (11)
1. An e-commerce platform settlement method is characterized by comprising the following steps:
acquiring a plurality of money interactive records, wherein the money interactive records comprise a fee type;
determining a fund direction and a service direction corresponding to each amount interaction record according to the charge type, wherein the fund direction is used for representing the charge flow direction of the charge type on the E-commerce platform, and the service direction is the charge flow direction defined for the charge type according to the service requirement;
and calculating settlement amount according to the fund direction and the service direction of each amount interactive record aiming at each amount interactive record related to the type to be settled.
2. The method of claim 1, wherein calculating the settlement amount according to the fund direction and the business direction of each amount interaction record for each amount interaction record related to the type to be settled comprises:
classifying and aggregating according to the service direction aiming at each amount interaction record related to the type to be settled;
summarizing the actual amount according to the charge flow direction corresponding to the fund direction aiming at the amount interaction record corresponding to each type of business direction so as to calculate the business grading amount corresponding to the business direction;
and summarizing the grading amount of each service according to the charge flowing direction corresponding to each service direction so as to determine the settlement amount of the type to be settled.
3. The method of claim 2, wherein:
the charge flow direction corresponding to the fund direction comprises a due direction and a receivable direction;
the charge flowing direction corresponding to the service direction comprises a direction to be paid, a direction to be received and difference adjustment.
4. The method of claim 3, wherein: the value of the direction to be paid is-1, the value of the direction to be received is +1, and the value of the difference adjustment is 0.
5. The method of any of claims 1-4, wherein obtaining a plurality of monetary interaction records comprises:
receiving a settlement request of a service party;
and determining a type to be settled according to the settlement request, and acquiring a plurality of money interactive records corresponding to the type to be settled.
6. The method according to any one of claims 1 to 4, wherein the charge type, the direction of the fund and the direction of the business are respectively recorded as entries in the mapping table.
7. The method of claim 6, wherein:
each mapping relation table is set corresponding to one settlement type; or
The mapping relation table also comprises an entry of a settlement type.
8. The method of claim 7, further comprising:
and updating the mapping relation table according to a settlement type setting instruction or a service direction setting instruction initiated by a service party.
9. An e-commerce platform settlement device, comprising:
the amount interaction record acquisition module is used for acquiring a plurality of amount interaction records, wherein the amount interaction records comprise the expense types;
the interactive direction determining module is used for determining a fund direction and a business direction corresponding to each amount interactive record according to the charge type, wherein the fund direction is used for representing the charge flow direction of the charge type on the e-commerce platform, and the business direction is the charge flow direction defined for the charge type according to the business requirement;
and the settlement amount calculation module is used for calculating the settlement amount according to the fund direction and the service direction of each amount interaction record aiming at each amount interaction record related to the type to be settled.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the e-commerce platform settlement method according to any one of claims 1 to 8.
11. A settlement device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the e-commerce platform settlement method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811510499.5A CN111311215A (en) | 2018-12-11 | 2018-12-11 | E-commerce platform settlement method and device, storage medium and settlement equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811510499.5A CN111311215A (en) | 2018-12-11 | 2018-12-11 | E-commerce platform settlement method and device, storage medium and settlement equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111311215A true CN111311215A (en) | 2020-06-19 |
Family
ID=71146510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811510499.5A Pending CN111311215A (en) | 2018-12-11 | 2018-12-11 | E-commerce platform settlement method and device, storage medium and settlement equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111311215A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113065955A (en) * | 2020-12-25 | 2021-07-02 | 恒生电子股份有限公司 | Method and device for calculating available fund based on business level and electronic equipment |
CN113674074A (en) * | 2021-10-22 | 2021-11-19 | 环球数科集团有限公司 | Tourism information-based multi-party dynamic separate settlement method, system and storage medium |
CN113763141A (en) * | 2021-02-10 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Settlement method, settlement device, electronic equipment and storage medium |
CN118172200A (en) * | 2024-03-28 | 2024-06-11 | 新馨能(苏州)能源科技有限公司 | Income settlement method and energy management system of energy storage equipment |
-
2018
- 2018-12-11 CN CN201811510499.5A patent/CN111311215A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113065955A (en) * | 2020-12-25 | 2021-07-02 | 恒生电子股份有限公司 | Method and device for calculating available fund based on business level and electronic equipment |
CN113763141A (en) * | 2021-02-10 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Settlement method, settlement device, electronic equipment and storage medium |
CN113674074A (en) * | 2021-10-22 | 2021-11-19 | 环球数科集团有限公司 | Tourism information-based multi-party dynamic separate settlement method, system and storage medium |
CN118172200A (en) * | 2024-03-28 | 2024-06-11 | 新馨能(苏州)能源科技有限公司 | Income settlement method and energy management system of energy storage equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111311215A (en) | E-commerce platform settlement method and device, storage medium and settlement equipment | |
CN110264214B (en) | Transaction bill generation and verification method, device and equipment | |
US20130117159A1 (en) | Transaction platform data processing method and system | |
US10127558B2 (en) | Expense tracking, electronic ordering, invoice presentment, and payment system and method | |
US20220237598A1 (en) | Efficient, accurate, and secure digital asset conversions for real-time funding of merchant transactions | |
JP2020086900A (en) | Settlement device, settlement method, program, and settlement system | |
CN104838408A (en) | Systems and methods for providing computer-automated adjusting entries | |
US9811863B1 (en) | Database management system | |
JP7049948B2 (en) | Credit factoring support system | |
CN112927067A (en) | Accounting balance statistical method, device, equipment and medium | |
JP2009110125A (en) | Settlement processor between accounts and processing method of settlement between accounts utilizing electronic recording credit | |
US8285612B2 (en) | Systems and methods for data processing | |
US8078508B1 (en) | Method and system for upgrading to an integrated financial product | |
KR102288517B1 (en) | Server and method for transaction adjustment | |
CN107705110A (en) | Fund pool based on multiple target pays sequence optimisation method and device | |
US20170076367A1 (en) | Systems, Methods, and Software For Lien Payoff and Transfer of Title | |
US20220277276A1 (en) | Credit Card As a Foreign Exchange Market Card | |
US20240037518A1 (en) | Atomically processing obligation payments for transactions in real time | |
KR20200008260A (en) | Method and system for automatically generating legal documents | |
TWM630723U (en) | Automated Debt Processing System | |
US20140006192A1 (en) | Selective escrow of funds based on transaction receipts | |
CN113689170A (en) | Pricing processing method and device for delivery order and computer equipment | |
JP2006323532A (en) | Credit deletion device, credit deletion method and credit deletion program | |
US20170186095A1 (en) | Centralized GAAP approach for multidimensional accounting to reduce data volume and data reconciliation processing costs | |
US20140114820A1 (en) | Method and system for managing credit disputes associated with account payables of an organization |
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 |