[go: up one dir, main page]

CN115147149B - Charging method, device and storage medium based on user order - Google Patents

Charging method, device and storage medium based on user order

Info

Publication number
CN115147149B
CN115147149B CN202210735173.2A CN202210735173A CN115147149B CN 115147149 B CN115147149 B CN 115147149B CN 202210735173 A CN202210735173 A CN 202210735173A CN 115147149 B CN115147149 B CN 115147149B
Authority
CN
China
Prior art keywords
order
commodity
price
unit price
ordered
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.)
Active
Application number
CN202210735173.2A
Other languages
Chinese (zh)
Other versions
CN115147149A (en
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.)
Dawning Information Industry Beijing Co Ltd
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Beijing Co Ltd
Dawning Information Industry Co Ltd
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 Dawning Information Industry Beijing Co Ltd, Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN202210735173.2A priority Critical patent/CN115147149B/en
Publication of CN115147149A publication Critical patent/CN115147149A/en
Application granted granted Critical
Publication of CN115147149B publication Critical patent/CN115147149B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Managing shopping lists, e.g. compiling or processing purchase lists
    • G06Q30/0635Managing shopping lists, e.g. compiling or processing purchase lists replenishment orders; recurring orders

Landscapes

  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention discloses a charging method, a charging device and a storage medium based on a user order, wherein the method comprises the steps of responding to the acquisition of consumption information of a first user on a first commodity, acquiring real-time unit price of the first commodity, and acquiring a first order with valid price state of the first commodity; and if the residual amount of the first order is smaller than or equal to a preset amount threshold, acquiring a second order with the price state of the first commodity waiting, and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity. The invention realizes the charging management of the goods under diversified orders, improves the charging accuracy of the goods and improves the charging efficiency.

Description

Charging method, device and storage medium based on user order
Technical Field
The present invention relates to the field of electronic commerce technologies, and in particular, to a billing method, apparatus, and storage medium based on a user order.
Background
With the rapid development of electronic commerce, network virtual products appear in the line of sight of people, and many commodities are required to be deducted from corresponding fees after the actual consumption of users, so that it is important to ensure accurate charging of users.
Taking the virtual computing resource of the remote cloud as an example, the user purchases and pays the virtual computing resource through different types of orders, for example, a certain amount of computing resource A is purchased by the appointed unit price in the order 1, a certain amount of money is paid for the use of the computing resource A by the dynamic unit price of the system of the cloud platform in the order 2, a certain amount of money is paid for the use of the computing resource A by the appointed unit price in the order 3, and all three orders are possibly not used, so that the quantity of commodities consumed by the user, the commodity unit price and the quantity of commodities usable by the user can be changed in real time.
In the prior art, charging management of a user can only generally charge for one order or one fixed commodity price, and the commodity charging mode under the diversified orders cannot be applied, so that a larger error is generated in the charging result of the user, and meanwhile, the charging efficiency is lower.
Disclosure of Invention
The invention provides a charging method, a charging device and a storage medium based on a user order, which are used for solving the problem that real-time unit price of a first commodity is not updated timely based on all orders related to the first commodity of a user after consumption information of the first commodity of the user is acquired.
According to an aspect of the present invention, there is provided a charging method based on a user order, including:
In response to acquiring consumption information of a first user on a first commodity, acquiring real-time unit price of the first commodity, and acquiring a first order with a valid price state of the first commodity;
updating the residual amount of the first order according to the real-time unit price of the first commodity;
And if the residual amount of the first order is smaller than or equal to a preset amount threshold, acquiring a second order with the price state of the first commodity waiting, and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity.
The method comprises the steps of updating the residual amount of a first order according to the real-time unit price of the first commodity, updating the consumption amount of the first commodity in the first order according to the consumption information of a first user on the first commodity if the residual amount of the first order is larger than a preset amount threshold, judging whether the consumption amount of the first commodity is larger than or equal to the ordering amount of the first commodity in the first order, and if the consumption amount of the first commodity is larger than or equal to the ordering amount of the first commodity in the first order, acquiring a second order with a price state of the first commodity being waiting, and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity. The method and the system realize effective management of ordered commodities in the commodity quantity total order, ensure that when the residual amount of the order is larger than the preset amount threshold, real-time unit price of the consumed finished commodities is updated in time, and improve the accuracy of user charging.
The method comprises the steps of obtaining a second order with a waiting price state of a first commodity, setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity, obtaining a target second order with the earliest ordering time in the second orders if a plurality of second orders with the waiting price state of the first commodity exist, and setting the unit price of the first commodity in the target second order as the real-time unit price of the first commodity. By setting the target second order with the earliest ordering time as the real-time unit price of the first commodity, priority execution of the early order on the time sequence is ensured, commodity charging order is ensured, and meanwhile, economic loss of users caused by the fact that the order with the earlier date exceeds the service life is avoided.
Before judging whether the consumption of the first commodity is larger than or equal to the ordering quantity of the first commodity in the first order, judging whether the ordering quantity of the first commodity in the first order is null or not, and judging whether the consumption of the first commodity is larger than or equal to the ordering quantity of the first commodity in the first order or not, wherein if the ordering quantity of the first commodity in the first order is not null or not, judging whether the consumption of the first commodity is larger than or equal to the ordering quantity of the first commodity in the first order or not. The ordering quantity of the first commodity in the first order is not null, and the basis for managing the order through the consumption quantity of the commodity is provided, so that the management efficiency of ordering commodities in the contracted unit price order and the system unit price order is improved.
The method further comprises the steps of responding to the third order of the first user, obtaining the unit price of at least one ordered commodity in the third order, judging whether a fourth order with the valid price state of the ordered commodity exists, setting the price state of the ordered commodity in the third order to be waiting if the fourth order with the valid price state of the ordered commodity exists, setting the price state of the ordered commodity in the third order to be valid if the fourth order with the valid price state of the ordered commodity does not exist, and updating the real-time unit price of the ordered commodity to be the unit price of the ordered commodity in the third order. The method ensures that the real-time unit price of ordered commodities in the order is updated in time each time a new order is acquired, realizes the charging management of the commodities under diversified orders, improves the charging accuracy of the commodities and improves the charging efficiency.
Before judging whether a fourth order with the valid price state of the ordered commodity exists, judging whether a purchase record of the ordered commodity exists, setting the price state of the ordered commodity in the third order to be valid if the purchase record of the ordered commodity does not exist, and updating the real-time unit price of the ordered commodity to be the unit price of the ordered commodity in the third order. Compared with the fourth order, the method has the advantages that whether the purchase record of the ordered commodity exists or not is judged, the parameter matching efficiency is improved, meanwhile, when the purchase record of the ordered commodity exists is determined, whether the fourth order with the price state of the ordered commodity being valid exists or not is continuously judged, the judgment result of the parameters can be utilized to continuously match the residual parameters, and the matching quantity of the parameter items is not increased.
The method comprises the steps of obtaining a third order of a first user, and setting the order quantity of ordered commodities in the third order as a null value if the third order is a commodity quantity total order, and setting the order quantity of ordered commodities in the third order as an actual purchase quantity if the third order is a contracted unit price order or a system unit price order. For orders which do not include commodity ordering quantity, namely the contracted unit price order and the system unit price order, the commodity ordering quantity is set to be null, so that when the commodity in the order of the type is subjected to charging management, only the residual amount of the order is required to be controlled, and the charging efficiency of the commodity in the order of the type is improved, and for orders which include commodity ordering quantity, namely the commodity quantity total amount order, the commodity ordering quantity is set to be the actual purchasing quantity, so that when the commodity in the order of the happy line is subjected to charging management, the residual amount of the order and the ordering quantity of the commodity are simultaneously controlled, and the charging accuracy of the commodity in the order of the type is improved.
According to another aspect of the present invention, there is provided a billing apparatus based on a user order, comprising:
the consumption information acquisition module is used for responding to the acquisition of the consumption information of the first user on the first commodity, acquiring the real-time unit price of the first commodity and acquiring a first order with the price state of the first commodity being valid;
The amount updating execution module is used for updating the residual amount of the first order according to the real-time unit price of the first commodity;
And the first unit price updating module is used for acquiring a second order with the price state of the first commodity being waiting if the residual amount of the first order is smaller than or equal to a preset amount threshold value, and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity.
According to another aspect of the present invention, there is provided an electronic apparatus including:
At least one processor, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the user order based billing method according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the user order based billing method according to any of the embodiments of the present invention when executed.
According to the technical scheme, after the consumption information of the first commodity by the first user is obtained, the real-time unit price of the first commodity and the first order with the effective price state of the first commodity are obtained, so that the residual amount of the first order is updated according to the real-time unit price of the first commodity, and when the residual amount of the first order is smaller than or equal to the preset amount threshold, the second order with the waiting price state of the first commodity is obtained, so that the unit price of the first commodity in the second order is set to be the real-time unit price of the first commodity, the charging management of the commodity under diversified orders is realized, the charging accuracy of the commodity is improved, and the charging efficiency is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a billing method based on a user order according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a billing method based on a user order according to a second embodiment of the present invention;
FIG. 3 is a flow chart of a billing method based on a user order according to a third embodiment of the present invention;
FIG. 4 is a flow chart of a billing method based on a user order according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a charging device based on a user order according to a fifth embodiment of the present invention;
Fig. 6 is a schematic structural diagram of an electronic device implementing a user order-based billing method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a charging method based on a user order, which is provided in an embodiment of the present invention, and the present embodiment may be suitable for implementing timely update of real-time unit price of a first commodity based on all orders related to the first commodity by a user after obtaining consumption information of the first commodity by the user. As shown in fig. 1, the method includes:
s101, acquiring real-time unit price of a first commodity in response to acquiring consumption information of the first commodity by a first user, and acquiring a first order with valid price state of the first commodity.
The method comprises the steps of obtaining commodity names consumed by users and the current consumption when commodity use information of the users is detected, taking the technical scheme as an example, determining to obtain the consumption information of the users for certain virtual computing resources when a server detects uploading data or downloading data of the users, calculating the use cost of the users according to the real-time price of a first commodity at the current moment and the consumption of the commodity, specifically, configuring and generating a real-time price table for each user in advance, wherein each commodity has one real-time price and is determined by the commodity price currently effective in a certain order, and recording all commodities in a system, namely the commodity purchased by the user and the commodity not purchased, if the commodity price currently effective is not stored in the order of the commodity or is not the commodity purchased by the user, taking the system in the server as the real-time price of the commodity;
Table 1 real-time unit price table of first user
Commodity name Real-time unit price
Commodity A Price A
Commodity B Price B
Commodity C Price C
Commodity D Price D
Commodity E Price E
Goods F Price F
For one commodity, even if a plurality of orders exist for one user and each order can be normally used, for the commodity unit price in the order, only the commodity unit price in one order is in an effective state so as to ensure that for each user, only one commodity unit price is used for charging for each commodity currently; specifically, a price state table may be configured and generated for each user in advance, where the price state table is used for recording the price state of each commodity in each order of the user, as shown in table 2, and is the price state table of the first user, where each record in the price state table reflects the price of one commodity in an order, if the price state is valid, it indicates that the user currently consumes the commodity, charging is performed in the order, and also indicates that the commodity price is the real-time price of the commodity, if the price state is waiting, it indicates that although the commodity in the current order is available, the commodity price of the commodity in the current order is in a waiting state, i.e. the commodity price is temporarily unavailable, the user currently consumes the commodity, and does not charge in the current order, and also indicates that the real-time price of the commodity is in the other orders, if the price state is completed, it indicates that the commodity in the current order is used, and it is obvious that the commodity price in the current order is not affected, and in particular, the price of different commodities in one order may be in the different price states, and the price of each commodity may be recorded simultaneously.
Table 2 price State table of first user
Therefore, after the consumption information of the first commodity by the first user is acquired, the real-time unit price of the first commodity and the order identification of the first order with the effective price state of the first commodity are acquired.
S102, updating the residual amount of the first order according to the real-time unit price of the first commodity.
And particularly, if the consumption of the first commodity is detected by taking the unit data amount as a detection basis, namely, after the first commodity of the unit data amount is detected, the consumption information of the first commodity by the first user is determined to be acquired, so that the updating of the residual amount is executed once, the real-time unit price is equal to the current consumption amount, and the current consumption amount can be acquired only by the real-time unit price at the moment, thereby updating the residual amount of the first order. Specifically, an order amount table may be configured and generated for each user in advance, and the order amount table is used for recording the order amount and the residual amount of each order of the user, and is shown in table 3, wherein the order amount is the amount paid by the order, the residual amount is the amount of the order remaining after the commodity use fee of the user is paid, and the order types may include a contracted unit price order, a commodity amount total amount order and a system unit price order.
TABLE 3 order amount table for first user
Order identification Order type Order amount Residual amount of money
Order 1 Contracted unit price order Amount A1 Amount B1
Order 2 Commodity quantity total order Amount A2 Amount B2
Order 3 System unit price order Amount A3 Amount B3
The unit price order is agreed, the unit price of the commodity purchased by the user is fixed (i.e. agreed in advance), different unit price can be respectively set for each commodity, the use amount of the commodity is not fixed, the order is ended after the consumption of the amount of the order is completed, for example, when the CPU (Central Processing Unit ) of the model A1 is 0.02 yuan/core, the GPU (Graphics Processing Unit, graphic processor) of the model B1 is 1.00 yuan/card, when the CPU of the model A2 is 0.06 yuan/core, the GPU of the model B2 is 1.10 yuan/core, and the total amount of the order is 10000 yuan.
The total commodity quantity order is that the unit price and the using amount of commodities purchased by a user are fixed, and different unit price and different using amount can be respectively set for each commodity, and any commodity can not be used after reaching the corresponding using amount, for example, when the unit price of a CPU of an A1 type is 0.09 yuan/core, the unit price of a GPU of a B1 type is 2.00 yuan/card, the CPU of the A1 type when 10000 cores are purchased and the GPU of the B1 type when 5000 cards are purchased.
The system unit price order is that the user only pays the order price, does not contract commodity price and does not set commodity usage amount, the unit price of the commodity purchased by the user is executed according to the system unit price of the commodity in the system, when the system unit price is changed, the commodity unit price in the order is changed, the order is ended after the order price is consumed, for example, when the CPU unit price of A1 model is 0.05 yuan/core, and when the GPU of B1 model is 1.20 yuan/card, the order price is 10000 yuan.
And S103, if the residual amount of the first order is smaller than or equal to a preset amount threshold, acquiring a second order with the price state of the first commodity being waiting, and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity.
If overdraft action is not allowed to occur, the preset value threshold can be directly set to be 0, namely, once the current order is used up, namely, the residual value is smaller than or equal to 0, other orders with a price state being waited are acquired, if overdraft action with a certain amount is allowed to occur, the preset value threshold can be set to be smaller than 0, namely, after the current order is used up, overdraft action with a certain amount is allowed to occur, the user is ensured to normally use the first commodity when the order value is used up, and in particular, the preset value threshold can be set to be different values according to the difference of the value of the first order, for example, the larger the value of the first order is, the larger the allowed overdraft amount is, and the smaller the preset value threshold is.
The method comprises the steps of setting the price state of a first commodity in a first order to be finished if the residual amount of the first order is smaller than or equal to a preset amount threshold value, indicating that all commodities in the first order are finished, setting the price state of the first commodity in the first order to be finished, wherein the residual amount is smaller than 0, indicating that overdrawing actions of a user on commodity use occur, acquiring a second order with the price state of the first commodity being waited, so that the price state of the first commodity in the second order is changed to be effective, setting the price state of the first commodity in the second order to be the real-time price of the first commodity, setting the price state of the commodity A as the price 3 for the commodity A, setting the price of the commodity A in the order 3 to be the real-time price of the commodity A, and charging the commodity A in the order 3 when the price A3 is used as the real-time price of the commodity A by a first user, and simultaneously, setting the price A3 of the commodity A in the order 3 to be effective by waiting for the user, and taking table 2 as an example.
Optionally, in the embodiment of the invention, after updating the residual amount of the first order according to the real-time unit price of the first commodity, the method further comprises the steps of updating the consumption amount of the first commodity in the first order according to the consumption information of the first commodity by a first user if the residual amount of the first order is larger than a preset amount threshold, judging whether the consumption amount of the first commodity is larger than or equal to the ordering amount of the first commodity in the first order, and if the consumption amount of the first commodity is larger than or equal to the ordering amount of the first commodity in the first order, acquiring a second order with the price state of the first commodity being waiting, and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity.
Specifically, if the remaining amount of the first order is greater than the preset amount threshold, it indicates that the commodity in the order is not completely consumed, and there is an available commodity, but the first commodity cannot be ensured to be the available commodity in the first order, for example, in the commodity amount total order, the CPU of the A1 type is not used up, but the GPU of the B1 type is used up; the method comprises the steps of generating a commodity order table for each commodity in each order of a user in advance, recording the consumption of each commodity in each order of the user, setting the price state of the first commodity in the first order as shown in table 4, updating the consumption of the first commodity in the first order according to the consumption information of the first commodity of the first user, and if the updated consumption value is larger than or equal to the ordering number of the first commodity in the first order, obviously, the first commodity in the first order is used and completed, setting the price state of the first commodity in the first order as completed, acquiring a second order with the price state of the first commodity being waiting, modifying the price state of the first commodity in the second order as effective, setting the price of the first commodity in the second order as the real-time price of the first commodity, so as to realize effective management of the ordering commodity in the total commodity number order, ensuring that the consumed and completed commodity is updated in time when the residual amount is larger than a preset amount threshold, and improving the charging accuracy of the user.
Table 4 first user's merchandise order form
Order identification Commodity name Commodity unit price Number of orders Consumption amount
Order 1 Commodity A Price A1 Null value Consumption A1
Order 1 Commodity B Price B1 Null value Consumption B1
Order 1 Commodity C Price C1 Null value Consumption C1
Order 2 Commodity A Price A2 Quantity A2 Consumption A2
Order 2 Commodity D Price D2 Quantity D2 Consumption D2
Order 2 Commodity E Price E2 Quantity E2 Consumption E2
Order 3 Commodity A Price A3 Null value Consumption A3
Order 3 Commodity B Price B3 Null value Consumption B3
Order 3 Commodity D Price D3 Null value Consumption D3
Order 3 Goods F Price F3 Null value Consumption F3
Optionally, in the embodiment of the present invention, the acquiring the second order with the waiting price state of the first commodity and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity includes acquiring, if there are a plurality of second orders with waiting price states of the first commodity, a target second order with the earliest ordering time in the second orders, and setting the unit price of the first commodity in the target second order as the real-time unit price of the first commodity. By setting the target second order with the earliest ordering time as the real-time unit price of the first commodity, priority execution of the early order on the time sequence is ensured, commodity charging order is ensured, and meanwhile, economic loss of users caused by the fact that the order with the earlier date exceeds the service life is avoided.
Optionally, in the embodiment of the present invention, before determining whether the consumption of the first commodity is greater than or equal to the ordered number of the first commodity in the first order, the determining whether the consumption of the first commodity is greater than or equal to the ordered number of the first commodity in the first order includes determining whether the consumption of the first commodity is greater than or equal to the ordered number of the first commodity in the first order, if the ordered number of the first commodity in the first order is not the null value, the consumption of the first commodity is greater than or equal to the ordered number of the first commodity in the first order.
Specifically, the actual order quantity of the commodities may not exist in the first order, for example, in the contracted unit price order and the system unit price order, the order quantity of various commodities is not set, that is, the order quantity of the commodities is set to be a null value, for the order of the type, the order cannot be judged according to whether the consumption quantity of the commodities is more than or equal to the order quantity, and only the order is managed through the residual amount, if the order quantity of the first commodity in the first order is not the null value, the basis for managing the order through the consumption quantity of the commodities is provided, and therefore timely management of the ordered commodities in the contracted unit price order and the system unit price order is achieved.
According to the technical scheme, after the consumption information of the first commodity by the first user is obtained, the real-time unit price of the first commodity and the first order with the effective price state of the first commodity are obtained, so that the residual amount of the first order is updated according to the real-time unit price of the first commodity, and when the residual amount of the first order is smaller than or equal to the preset amount threshold, the second order with the waiting price state of the first commodity is obtained, so that the unit price of the first commodity in the second order is set to be the real-time unit price of the first commodity, the charging management of the commodity under diversified orders is realized, the charging accuracy of the commodity is improved, and the charging efficiency is improved.
Example two
Fig. 2 is a flowchart of a charging method based on a user order according to a second embodiment of the present invention, where the method for acquiring real-time unit price of a first commodity is embodied based on the above embodiment. As shown in fig. 2, the method includes:
s201, acquiring consumption information of the first commodity by the first user, and executing S202.
S202, acquiring real-time unit price of the first commodity, and executing S203.
S203, acquiring a first order with the price state of the first commodity being valid, and executing S204.
S204, updating the residual amount of the first order according to the real-time unit price of the first commodity, and executing S205.
S205, judging whether the residual amount of the first order is larger than a preset amount threshold, if not, executing S206, and if so, executing S210.
S206, setting the price state of the first commodity in the first order to be completed, and executing S207.
S207, judging whether a second order with the price state of the first commodity being waiting exists, if so, executing S208, and if not, executing S213.
S208, setting the price state of the target second order with the earliest ordering time as valid, and executing S209.
S209, setting the unit price of the first commodity in the target second order as the real-time unit price of the first commodity, and executing S214.
S210, updating the consumption of the first commodity in the first order according to the consumption information of the first commodity by the first user, and executing S211.
S211, judging whether the consumption limit value of the first commodity in the first order is a null value, if not, executing S212, and if so, executing S214.
If the consumption limit value of the first commodity in the first order is a null value and the residual amount of the first order is larger than the preset amount threshold value, the first commodity in the first order can be used continuously, and the real-time unit price of the first commodity is kept unchanged, namely the unit price of the first commodity in the first order is used continuously.
S212, judging whether the consumption of the first commodity is larger than or equal to the ordering quantity of the first commodity in the first order, if so, executing S206, and if not, executing S214.
If the consumption of the first commodity is smaller than the ordering quantity of the first commodity in the first order, the first commodity in the first order can be used continuously, and the real-time unit price of the first commodity is kept unchanged, namely the unit price of the first commodity in the first order is used continuously.
S213, setting the system unit price of the first commodity as the real-time unit price of the first commodity, and executing S214.
S214, ending.
According to the technical scheme, after the consumption information of the first commodity by the first user is obtained, the real-time unit price of the first commodity and the first order with the effective price state of the first commodity are obtained, so that the residual amount of the first order is updated according to the real-time unit price of the first commodity, when the residual amount of the first order is larger than the preset amount threshold value and the consumption amount of the first commodity is larger than or equal to the ordering amount of the first commodity in the first order, the second order with the waiting price state of the first commodity is obtained, the unit price of the first commodity in the second order is set to be the real-time unit price of the first commodity, the effective management of ordering commodities in the total commodity amount order is realized, the real-time unit price of the consumed and finished commodity is updated in time when the residual amount of the order is larger than the preset amount threshold value is ensured, and the charging accuracy of the user is improved.
Example III
Fig. 3 is a flowchart of a charging method based on a user order according to a third embodiment of the present invention, where the embodiment is embodied on the basis of the foregoing technical solution, and in the embodiment of the present invention, a new order, that is, a third order, of a first user is obtained, and the method specifically includes:
S301, acquiring unit price of at least one ordered commodity in a third order in response to acquiring the third order of the first user.
S302, judging whether a fourth order with the price state of the ordered commodity being valid exists, if yes, executing S303, and if not, executing S304.
S303, setting the price state of the ordered commodity in the third order to be waiting;
s304, setting the price state of the ordered commodity in the third order to be effective, and updating the real-time unit price of the ordered commodity to be the unit price of the ordered commodity in the third order.
Taking the above technical scheme as an example, if the fourth order with valid price state is obtained in the price state table of the first user, the current charging of the ordered commodity is performed in the fourth order, the third order is used as the order without starting to perform the charging operation, the charging of the fourth order is completed, if the fourth order with valid price state is not obtained, it is also possible to determine that other orders with valid price state of the ordered commodity are not present in the price state table, because, as described in the above technical scheme, if the price state of one commodity is the valid order charging completion, a certain order is selected from the other orders with valid price state as the next valid order, the price state of the next ordered commodity is modified from the valid order, therefore, if the fourth order with valid price state is not obtained, the price state of the ordered commodity is not found, the price state of the ordered commodity is directly set to be valid, and the price state of the ordered commodity in the third order is updated in real time.
Optionally, before judging whether a fourth order with a valid price state of the ordered commodity exists, the method further comprises judging whether a purchase record of the ordered commodity exists, setting the price state of the ordered commodity in the third order to be valid if the purchase record of the ordered commodity does not exist, and updating the real-time unit price of the ordered commodity to be the unit price of the ordered commodity in the third order, wherein judging whether the fourth order with a valid price state of the ordered commodity exists or not comprises judging whether the fourth order with a valid price state of the ordered commodity exists if the purchase record of the ordered commodity exists.
Specifically, judging whether a fourth order with a valid price state of the ordered commodity exists or not, taking the price state table in the above technical scheme as an example, confirming whether the fourth order exists or not through the order identification, the commodity name and the price state, and judging whether the fourth order exists or not only by judging whether the commodity exists in the commodity name or not, compared with judging whether the fourth order exists or not, judging whether the purchasing record of the ordered commodity exists or not, the parameter matching efficiency is improved, therefore, when the purchasing record of the ordered commodity does not exist, the price state of the ordered commodity in the third order can be directly set to be valid, and the real-time price of the ordered commodity is updated to be the price of the ordered commodity, and when the purchasing record of the ordered commodity exists, judging whether the purchasing record of the ordered commodity exists or not continuously, the remaining parameters (namely, the order identification and the price state) can be continuously matched by utilizing the judging result of the commodity name parameter, and the quantity of the parameter matching is not increased.
Optionally, in the embodiment of the invention, after the third order of the first user is acquired, the method further comprises acquiring an order type of the third order, wherein the order type comprises a contracted unit price order, a commodity quantity total order and a system unit price order, if the third order is the commodity quantity total order, the ordered quantity of the ordered commodity in the third order is set to be a null value, and if the third order is the contracted unit price order or the system unit price order, the ordered quantity of the ordered commodity in the third order is set to be an actual purchase quantity.
Specifically, according to different order types, whether the order quantity of the commodity is included in the order can be determined, for the order which does not include the commodity order quantity, namely, the appointed unit price order and the system unit price order, the commodity order quantity is set to be a null value, when the commodity in the order is subjected to charging management, only the residual amount of the order is required to be managed and controlled, and the charging efficiency of the commodity in the order is improved, and for the order which includes the commodity order quantity, namely, the total commodity quantity order, the commodity order quantity is set to be the actual purchase quantity, so that when the commodity in the order is subjected to charging management, the charging accuracy of the commodity in the order is improved through the fact that the residual amount of the order and the order quantity of the commodity are simultaneously managed and controlled.
According to the technical scheme of the embodiment of the invention, the unit price of at least one ordered commodity in the third order is acquired in response to the acquisition of the third order of the first user, whether a fourth order with the price state of the ordered commodity being valid exists is judged, if so, the price state of the ordered commodity in the third order is set to be waiting, if not, the price state of the ordered commodity in the third order is set to be valid, the real-time unit price of the ordered commodity is updated to be the unit price of the ordered commodity in the third order, each time when a new order is acquired, the real-time unit price of the ordered commodity in the order is updated in time, the charging management of the commodity under diversified orders is realized, the charging accuracy of the commodity is improved, and the charging efficiency is improved.
Example 4
Fig. 4 is a flowchart of a charging method based on a user order according to a fourth embodiment of the present invention, where the method specifically includes:
s401, acquiring the unit price of at least one ordered commodity in the third order and the order type of the third order in response to the acquired third order of the first user, wherein the order type comprises a contracted unit price order, a commodity quantity total order and a system unit price order, executing S402 if the third order is the contracted unit price order or the system unit price order, and executing S403 if the third order is the commodity quantity total order.
S402, setting the order quantity of the ordered commodities in the third order to be null, and executing S404.
S403, setting the order quantity of the ordered commodities in the third order as the actual purchase quantity, and executing S404.
S404, judging whether a purchase record of the ordered commodity exists, if yes, executing S405, and if not, executing S407.
S405, judging whether a fourth order with a valid price state of the ordered commodity exists, if yes, executing S406, and if not, executing S407.
S406, setting the price state of the ordered commodity in the third order to be waiting, and executing S409.
S407, setting the price state of the ordered commodity in the third order to be valid, and executing S408.
S408, updating the real-time unit price of the ordered commodity to the unit price of the ordered commodity in the third order, and executing S409.
S409, ending.
According to the technical scheme of the embodiment of the invention, the unit price of at least one ordered commodity in the third order is acquired in response to the acquisition of the third order of the first user, whether a fourth order with the price state of the ordered commodity being valid exists is judged, if so, the price state of the ordered commodity in the third order is set to be waiting, if not, the price state of the ordered commodity in the third order is set to be valid, the real-time unit price of the ordered commodity is updated to be the unit price of the ordered commodity in the third order, each time when a new order is acquired, the real-time unit price of the ordered commodity in the order is updated in time, the charging management of the commodity under diversified orders is realized, the charging accuracy of the commodity is improved, and the charging efficiency is improved.
Example five
Fig. 5 is a schematic structural diagram of a charging device based on a user order according to a fifth embodiment of the present invention. As shown in fig. 5, the apparatus includes:
A consumption information obtaining module 501, configured to obtain a real-time unit price of a first commodity in response to obtaining consumption information of the first commodity by a first user, and obtain a first order in which a price state of the first commodity is valid;
an amount update execution module 502, configured to update a remaining amount of the first order according to a real-time unit price of the first commodity;
And the first unit price updating module 503 is configured to acquire a second order with a price state of the first commodity being waiting if the remaining amount of the first order is less than or equal to a preset amount threshold, and set the unit price of the first commodity in the second order as the real-time unit price of the first commodity.
According to the technical scheme, after the consumption information of the first commodity by the first user is obtained, the real-time unit price of the first commodity and the first order with the effective price state of the first commodity are obtained, so that the residual amount of the first order is updated according to the real-time unit price of the first commodity, and when the residual amount of the first order is smaller than or equal to the preset amount threshold, the second order with the waiting price state of the first commodity is obtained, so that the unit price of the first commodity in the second order is set to be the real-time unit price of the first commodity, the charging management of the commodity under diversified orders is realized, the charging accuracy of the commodity is improved, and the charging efficiency is improved.
Optionally, the charging device based on the user order further comprises:
the consumption updating module is used for updating the consumption of the first commodity in the first order according to the consumption information of the first user on the first commodity if the residual amount of the first order is larger than a preset amount threshold;
The consumption judging module is used for judging whether the consumption of the first commodity is larger than or equal to the ordering quantity of the first commodity in the first order;
and the second unit price updating module is used for acquiring a second order with the price state of the first commodity being waiting if the consumption of the first commodity is larger than or equal to the ordering quantity of the first commodity in the first order, and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity.
Optionally, the first unit price updating module and/or the second unit price updating module are specifically configured to, if there are multiple second orders with waiting price states of the first commodity, obtain a target second order with the earliest ordering time in the second orders, and set the unit price of the first commodity in the target second order as the real-time unit price of the first commodity.
Optionally, the charging device based on the user order further comprises:
the ordering quantity judging module is used for judging whether the ordering quantity of the first commodity in the first order is a null value or not;
the consumption judging module is specifically configured to judge whether the consumption of the first commodity is greater than or equal to the ordered number of the first commodity in the first order if the ordered number of the first commodity in the first order is not null.
Optionally, the charging device based on the user order further comprises:
The new order acquisition module is used for responding to the acquisition of a third order of the first user and acquiring the unit price of at least one ordered commodity in the third order;
the price state judging module is used for judging whether a fourth order with valid price state of the ordered commodity exists or not;
The price state setting module is used for setting the price state of the ordered commodity in the third order to be waiting if a fourth order with the valid price state of the ordered commodity exists, setting the price state of the ordered commodity in the third order to be valid if a fourth order with the valid price state of the ordered commodity does not exist, and updating the real-time unit price of the ordered commodity to be the unit price of the ordered commodity in the third order.
Optionally, the charging device based on the user order further comprises:
The purchase record judging module is used for judging whether the purchase record of the ordered commodity exists or not;
The third unit price updating module is used for setting the price state of the ordered commodity in the third order to be effective if the purchase record of the ordered commodity does not exist, and updating the real-time unit price of the ordered commodity to be the unit price of the ordered commodity in the third order;
and the price state judging module is specifically used for judging whether a fourth order with valid price state of the ordered commodity exists if the purchase record of the ordered commodity exists.
Optionally, the charging device based on the user order further comprises:
The order type acquisition module is used for acquiring the order type of the third order, wherein the order type comprises a contracted unit price order, a commodity quantity total order and a system unit price order;
The order quantity setting module is used for setting the order quantity of the ordered commodities in the third order to be a null value if the third order is a commodity quantity total order, and setting the order quantity of the ordered commodities in the third order to be an actual purchase quantity if the third order is a contracted unit price order or a system unit price order.
The billing device based on the user order provided by the embodiment of the invention can execute the billing method based on the user order provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example six
Fig. 6 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including an input unit 16, such as a keyboard, mouse, etc., an output unit 17, such as various types of displays, speakers, etc., a storage unit 18, such as a magnetic disk, optical disk, etc., and a communication unit 19, such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a billing method based on the user order.
In some embodiments, the user order based billing method may be implemented as a computer program tangibly embodied on a computer readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more of the steps of the user order based billing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the user order based billing method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be a special or general purpose programmable processor, operable to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user, for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback), and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a Local Area Network (LAN), a Wide Area Network (WAN), a blockchain network, and the Internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A user order based billing method comprising:
In response to acquiring consumption information of a first user on a first commodity, acquiring real-time unit price of the first commodity, and acquiring a first order with a valid price state of the first commodity;
The method comprises the steps of obtaining real-time unit price of a first commodity and obtaining a first order with the price state of the first commodity being valid through a real-time unit price table of a first user, and obtaining the first order with the price state of the first commodity being valid through a price state table of the first user, wherein the real-time unit price table is related to the price state table through commodity names, the real-time unit price of each commodity in the real-time unit price table is derived from the order with the price state of the corresponding commodity being valid;
updating the residual amount of the first order according to the real-time unit price of the first commodity;
The updating of the residual amount of the first order according to the real-time unit price of the first commodity comprises updating the residual amount of the first order in an order amount table of the first user according to the real-time unit price of the first commodity, wherein the order amount table is associated with the price state table through order identification;
And if the residual amount of the first order is smaller than or equal to a preset amount threshold, acquiring a second order with the price state of the first commodity waiting, and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity.
2. The method of claim 1, further comprising, after updating the remaining amount of the first order based on the real-time unit price of the first commodity:
If the residual amount of the first order is larger than a preset amount threshold, updating the consumption amount of the first commodity in the first order according to the consumption information of the first user on the first commodity;
Judging whether the consumption of the first commodity is larger than or equal to the ordering quantity of the first commodity in the first order;
And if the consumption of the first commodity is larger than or equal to the ordering quantity of the first commodity in the first order, acquiring a second order with the price state of the first commodity being waiting, and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity.
3. The method according to claim 1 or 2, wherein the acquiring the second order with the price status of the first commodity being waiting and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity comprises:
if a plurality of second orders with the price state of the first commodity waiting exist, acquiring a target second order with the earliest ordering time in the second orders;
Setting the unit price of the first commodity in the target second order as the real-time unit price of the first commodity.
4. The method of claim 2, comprising, prior to determining whether the consumption of the first item is greater than or equal to the ordered quantity of the first item in the first order:
judging whether the ordered quantity of the first commodity in the first order is a null value or not;
the determining whether the consumption of the first commodity is greater than or equal to the ordered number of the first commodity in the first order includes:
If the ordered number of the first commodity in the first order is not a null value, judging whether the consumption of the first commodity is greater than or equal to the ordered number of the first commodity in the first order.
5. The method according to claim 1, wherein the method further comprises:
in response to acquiring a third order of the first user, acquiring a unit price of at least one ordered commodity in the third order;
judging whether a fourth order with valid price state of the ordered commodity exists or not;
If a fourth order with the price state of the ordered commodity being valid exists, setting the price state of the ordered commodity in the third order to be waiting;
And if the fourth order with the valid price state of the ordered commodity does not exist, setting the price state of the ordered commodity in the third order to be valid, and updating the real-time unit price of the ordered commodity to the unit price of the ordered commodity in the third order.
6. The method of claim 5, further comprising, prior to determining whether there is a fourth order for which the price status of the ordered item is valid:
judging whether a purchase record of the ordered commodity exists or not;
if the purchase record of the ordered commodity does not exist, setting the price state of the ordered commodity in the third order to be effective, and updating the real-time unit price of the ordered commodity to be the unit price of the ordered commodity in the third order;
the determining whether there is a fourth order in which the price status of the ordered commodity is valid includes:
if the purchase record of the ordered commodity exists, judging whether a fourth order with valid price state of the ordered commodity exists or not.
7. The method of claim 5 or 6, further comprising, after the third order for the first user is acquired:
The order type of the third order is obtained, wherein the order type comprises a contracted unit price order, a commodity quantity total order and a system unit price order;
if the third order is a commodity quantity total order, setting the ordered quantity of the ordered commodities in the third order as a null value;
and if the third order is a contracted unit price order or a system unit price order, setting the ordered quantity of the ordered commodities in the third order as the actual purchase quantity.
8. A user order based billing apparatus comprising:
the consumption information acquisition module is used for responding to the acquisition of the consumption information of the first user on the first commodity, acquiring the real-time unit price of the first commodity and acquiring a first order with the price state of the first commodity being valid;
the consumption information acquisition module is specifically configured to acquire a real-time unit price of the first commodity through a real-time unit price table of the first user, and acquire a first order with a valid price state of the first commodity through a price state table of the first user, wherein the real-time unit price table is associated with the price state table through commodity names, and the real-time unit price of each commodity in the real-time unit price table is derived from the order with the valid price state of the corresponding commodity in the price state table;
The amount updating execution module is used for updating the residual amount of the first order according to the real-time unit price of the first commodity;
the amount updating execution module is specifically configured to update a remaining amount of the first order in an order amount table of the first user according to a real-time unit price of the first commodity, where the order amount table is associated with the price state table through an order identifier;
And the first unit price updating module is used for acquiring a second order with the price state of the first commodity being waiting if the residual amount of the first order is smaller than or equal to a preset amount threshold value, and setting the unit price of the first commodity in the second order as the real-time unit price of the first commodity.
9. An electronic device, the electronic device comprising:
At least one processor, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the user order based billing method of any of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the user order based charging method of any one of claims 1-7 when executed.
CN202210735173.2A 2022-06-27 2022-06-27 Charging method, device and storage medium based on user order Active CN115147149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210735173.2A CN115147149B (en) 2022-06-27 2022-06-27 Charging method, device and storage medium based on user order

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210735173.2A CN115147149B (en) 2022-06-27 2022-06-27 Charging method, device and storage medium based on user order

Publications (2)

Publication Number Publication Date
CN115147149A CN115147149A (en) 2022-10-04
CN115147149B true CN115147149B (en) 2025-11-11

Family

ID=83409232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210735173.2A Active CN115147149B (en) 2022-06-27 2022-06-27 Charging method, device and storage medium based on user order

Country Status (1)

Country Link
CN (1) CN115147149B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540986A (en) * 2009-04-16 2009-09-23 中兴通讯股份有限公司 Charging method and system of prepaid service

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2520372C2 (en) * 2009-04-30 2014-06-27 Комверс, Инк. Management of shared service
CN104574051A (en) * 2015-01-12 2015-04-29 浪潮(北京)电子信息产业有限公司 Charging method and device
CN110381454A (en) * 2019-06-12 2019-10-25 深圳市奥克多普科技有限公司 A kind of charging selection system and method
CN112202871A (en) * 2020-09-27 2021-01-08 北京金山云网络技术有限公司 Metering and charging method, device and system for cloud computing resources and electronic equipment
CN114418583A (en) * 2021-12-24 2022-04-29 珠海大横琴科技发展有限公司 Payment method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540986A (en) * 2009-04-16 2009-09-23 中兴通讯股份有限公司 Charging method and system of prepaid service

Also Published As

Publication number Publication date
CN115147149A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN116823383A (en) Electric power retail package recommendation method, system, electronic equipment and storage medium
CN117611154B (en) Service request processing method and device, electronic equipment and storage medium
CN117273318A (en) Material alignment sleeve analysis method and device
CN116402615A (en) Account type identification method, device, electronic device and storage medium
CN115147149B (en) Charging method, device and storage medium based on user order
CN115545418A (en) A resource consumption early warning method, device, storage medium and electronic equipment
CN120765241A (en) A service request processing method, device, storage medium and program product
Zheng et al. Impact of an emergency order opportunity on supply chain coordination
CN119761793A (en) Business process timeliness detection method, device, electronic device and storage medium
CN117094465A (en) An electricity consumption data analysis method, device, equipment and storage medium
CN117350811A (en) Order processing methods, devices, electronic equipment and storage media
CN114707957B (en) Business process control method, device, electronic device and storage medium
CN114595231B (en) Database table generation method and device, electronic equipment and storage medium
CN117333104A (en) Inventory synchronization method, device, electronic equipment and storage medium
CN112686719B (en) Billing method and device, storage medium and electronic equipment
CN117216066A (en) A material code generation method, device, equipment and storage medium
CN111260444B (en) Order issuing method, device and computer system for goods-free commodities
CN113762582B (en) Data processing method and device for determining return quantity based on inventory simulation
CN116308798B (en) Stock index drawing method, device, equipment and storage medium
CN115545341A (en) Event prediction method and device, electronic equipment and storage medium
CN114721942A (en) Test data generation method, device, equipment and storage medium
CN113361105A (en) Factory related production cost analysis method and device, storage medium and terminal
CN120216055B (en) Method, equipment and medium for configuring enterprise personalized business based on SaaS service
CN115169920B (en) A customer information processing method, apparatus, equipment and medium
CN118536034A (en) Spare parts management method, device, electronic equipment and readable medium

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
GR01 Patent grant
GR01 Patent grant