CN111723988B - Payment prompting method, device, equipment and storage medium for online taxi appointment orders - Google Patents
Payment prompting method, device, equipment and storage medium for online taxi appointment orders Download PDFInfo
- Publication number
- CN111723988B CN111723988B CN202010559736.8A CN202010559736A CN111723988B CN 111723988 B CN111723988 B CN 111723988B CN 202010559736 A CN202010559736 A CN 202010559736A CN 111723988 B CN111723988 B CN 111723988B
- Authority
- CN
- China
- Prior art keywords
- coupon
- target
- vehicle
- distribution
- type
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000004590 computer program Methods 0.000 claims description 5
- 230000001172 regenerating effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000002349 favourable effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
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
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- 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/38—Payment protocols; Details thereof
- G06Q20/387—Payment using discounts or coupons
-
- 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
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/40—Business processes related to the transportation industry
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Human Resources & Organizations (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Accounting & Taxation (AREA)
- Marketing (AREA)
- Tourism & Hospitality (AREA)
- Finance (AREA)
- Quality & Reliability (AREA)
- Entrepreneurship & Innovation (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- Game Theory and Decision Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a payment prompting method, a device, equipment and a storage medium for an online taxi appointment order, wherein the method comprises the following steps: determining a coupon set respectively corresponding to each vehicle type in all available coupons according to the vehicle types included in the online taxi appointment order to be paid, wherein the coupon set comprises at least one coupon arranged in the descending order of deduction amount; determining a coupon distribution mode matched with the network car booking order according to the car booking quantity of each car type in the network car booking order and the coupon set respectively corresponding to each car type; according to the coupon distribution mode, payment prompt is carried out on the online taxi appointment order, and the problems of high labor cost and long time consumption caused by manual coupon distribution can be solved; the distribution efficiency of the coupons can be improved, unnecessary cost is reduced for users, and riding experience of the users is improved.
Description
Technical Field
The embodiment of the invention relates to a data processing technology, in particular to a payment prompting method, a device, equipment and a storage medium for an online taxi appointment order.
Background
With the increasing popularization of the online appointment trolley, the convenience of people in traveling is greatly improved. In order to improve the competitiveness of enterprises, coupons meeting the riding requirements of users are successively released by each network car booking industry, generally, each coupon can be used by only one network car booking, and each network car booking can only use one coupon.
The network car booking service comprises the steps that a user selects a network car booking of a specific vehicle type, and the user simultaneously selects network car booking of different vehicle types and the number of the vehicle types. For example, a certain group of people needs a certain number of net appointment vehicles capable of carrying 50 passengers and 7 passengers simultaneously, or a certain tourist group needs one part of passengers to take an economy type vehicle and another part of passengers to take a luxury type vehicle. Aiming at the condition that a user selects a plurality of online car appointments at the same time, if a plurality of coupons are available when the user places an order, the user needs to distribute the coupons to the online car appointments in a manual mode so as to reduce the cost of online car appointments.
However, the above process of distributing the coupons has high labor cost and long time consumption, which results in low efficiency of distributing the coupons, and at the same time, the user is likely to fail to distribute the optimal coupon usage, which further causes unnecessary expenses.
Disclosure of Invention
The embodiment of the invention provides a payment prompting method, device, equipment and storage medium for an online taxi appointment order, which can improve the distribution efficiency of coupons, reduce unnecessary cost for users and improve the riding experience of the users.
In a first aspect, an embodiment of the present invention provides a method for prompting payment of an online taxi appointment order, where the method includes:
determining a coupon set respectively corresponding to each vehicle type in all available coupons according to the vehicle types included in the online taxi appointment order to be paid, wherein the coupon set comprises at least one coupon arranged in the descending order of deduction amount;
determining a coupon distribution mode matched with the network car booking order according to the car booking quantity of each car type in the network car booking order and the coupon set respectively corresponding to each car type;
and carrying out payment prompt on the online taxi appointment order according to the coupon distribution mode.
In a second aspect, an embodiment of the present invention further provides a payment prompting device for a network car booking order, where the device includes:
the coupon set determining module is used for determining a coupon set respectively corresponding to each vehicle type in all available coupons according to the vehicle types included in the online taxi appointment order to be paid, and the coupon set comprises at least one coupon arranged in the descending order of deduction amount;
the distribution mode determining module is used for determining a coupon distribution mode matched with the network car booking order according to the car booking quantity of each car type in the network car booking order and the coupon set respectively corresponding to each car type;
and the payment prompting module is used for carrying out payment prompting on the online taxi appointment order according to the coupon distribution mode.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement a method for prompting payment of a network appointment order provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program, when executed by a processor, implements a method for prompting payment of a network appointment order according to any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, coupon sets respectively corresponding to all vehicle types are determined in all available coupons according to the vehicle types included in the online car booking order to be paid, a coupon distribution mode matched with the online car booking order is determined according to the number of the ordered vehicles of all vehicle types in the online car booking order and the coupon sets respectively corresponding to all vehicle types, and the online car booking order is paid and prompted according to the coupon distribution mode, so that the problems of high labor cost and long time consumption caused by manually distributing the coupons can be solved; the distribution efficiency of the coupons can be improved, unnecessary cost is reduced for users, and riding experience of the users is improved.
Drawings
Fig. 1 is a flowchart of a payment prompting method for a network taxi appointment order in an embodiment of the present invention;
fig. 2 is a flowchart of a payment prompting method for a network taxi appointment order in the second embodiment of the present invention;
fig. 3 is a structural diagram of a payment prompting device for a network appointment order in the third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth 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.
Example one
Fig. 1 is a flowchart of a payment prompting method for a network appointment order according to an embodiment of the present invention, where the embodiment is applicable to a case where a coupon distribution manner is recommended to a user before the user pays the network appointment order, and the method may be executed by a payment prompting device for the network appointment order, where the device may be implemented by software and/or hardware, and may be generally integrated in a computer device, and specifically includes the following steps:
and 110, determining a coupon set respectively corresponding to each vehicle type in all available coupons according to the vehicle type included in the online taxi appointment order to be paid, wherein the coupon set comprises at least one coupon arranged in the descending order of the deduction amount.
In this step, the online car booking background server configures different types of coupons, such as full discount coupons and discount coupons, for online car booking business in advance. Some coupons are limited in vehicle types of online appointments (such as cars and buses), and only online appointments which are in line with the vehicle types can use the coupons; some coupons are limited in order price of single online taxi appointment, and the coupons can be used only when the order price meets the order price required in the coupons, and the corresponding online taxi appointment can use the coupons.
In this embodiment, after the user selects a network car appointment for taking, the order price of the network car appointment corresponding to each vehicle type is calculated according to the initial position and the end position input by the user; then screening at least one coupon matched with each vehicle type from all coupons configured by the server according to the vehicle type of the online taxi booking and the order price of the online taxi booking; and finally, calculating deduction amount of the order price of the networked car booking under the matched coupons according to the order price of the networked car booking, and arranging at least one coupon matched with each car type according to the descending order of the deduction amount to obtain a coupon set respectively corresponding to each car type.
For example, suppose that the server pre-configures three coupons for the network car booking service, the first coupon is "universal for each vehicle type, 8 discount coupon, and maximum minus 5 yuan", the second coupon is "applicable for vehicle type a, full 25 yuan minus 6 yuan", and the third coupon is "applicable for vehicle type B, full 40 yuan minus 10 yuan". Assuming that the user selects the network appointment vehicle of the vehicle type A, the order price of the network appointment vehicle of the vehicle type A is 25 yuan, the coupons available for the network appointment vehicle of the vehicle type A are a first coupon and a second coupon, the deduction amount of the network appointment vehicle of the vehicle type A under the two coupons is 5 yuan and 6 yuan respectively, the second coupon is arranged in front of the first coupon, and the two arranged coupons form a coupon set corresponding to the network appointment vehicle of the vehicle type A.
And step 120, determining a coupon distribution mode matched with the online car booking order according to the car booking quantity of each car type in the online car booking order and the coupon set respectively corresponding to each car type.
In an implementation manner of the embodiment of the present invention, determining a coupon distribution manner matching a network car booking order according to the number of booking of each vehicle type in the network car booking order and a coupon set corresponding to each vehicle type respectively includes: when the online taxi appointment order only comprises one taxi type, acquiring a first target coupon set matched with the taxi type; if the number of the coupons in the first target coupon set is larger than the number of the ordered vehicles of the vehicle type, sequentially acquiring the coupons matched with the number of the ordered vehicles from the first target coupon set, and distributing the coupons to the vehicles in the online taxi appointment order; and if the number of the coupons in the first target coupon set is less than or equal to the number of the vehicles ordered by the vehicle type, correspondingly distributing all the coupons in the first target coupon set to each vehicle with the matched number in the online taxi appointment order.
When the online taxi appointment order comprises a taxi type, the method in the steps is adopted to obtain a first target coupon set matched with the taxi type. And if the number of the coupons is larger than the number of the ordered vehicles, selecting the coupons which are matched with the number of the ordered vehicles and have larger deduction amount from the first target coupon set for the online taxi appointment.
For example, the online booking order only includes three online booking cars of a car type a, and it is assumed that a first target coupon set matched with the car type a includes four coupons arranged in a sequence from a snap-down amount to a small amount, a first coupon is "applicable car type a, full 25 minus 6 yuan", a second coupon is "general purpose for each car type, 8 discount offers, 5 yuan minus maximum", a third coupon is "applicable car type a, full 20 minus 3 yuan", and a fourth coupon is "applicable car type a, 9 discount offers, 10 yuan minus maximum". And distributing the first three coupons in the first target coupon set to the online taxi appointment of three A vehicle types in the online taxi appointment order because the number of the coupons in the first target coupon set is greater than the number of the taxi appointments of the A vehicle types. And if the first target coupon set matched with the type A vehicle comprises two coupons, distributing the two coupons to online appointments of any two type A vehicles in the online appointments orders.
And step 130, carrying out payment prompt on the online taxi appointment order according to the coupon distribution mode.
In this embodiment, before the user prepares to pay the online car booking order, the coupon distribution mode is presented to the user, and the distribution relationship between each online car booking in the online car booking order and the coupons is marked in the coupon distribution mode, so that the user can select the coupons corresponding to each online car booking according to the distribution relationship. After the user selects the coupon, the user pays the online taxi appointment order, so that the payment amount of the user can be reduced, and unnecessary cost is reduced.
According to the technical scheme of the embodiment of the invention, coupon sets respectively corresponding to all vehicle types are determined in all available coupons according to the vehicle types included in the online car booking order to be paid, a coupon distribution mode matched with the online car booking order is determined according to the number of the ordered vehicles of all vehicle types in the online car booking order and the coupon sets respectively corresponding to all vehicle types, and the online car booking order is paid and prompted according to the coupon distribution mode, so that the problems of high labor cost and long time consumption caused by manually distributing the coupons can be solved; the distribution efficiency of the coupons can be improved, unnecessary cost is reduced for users, and riding experience of the users is improved.
Example two
In this embodiment, on the basis of the first embodiment, an implementation manner of determining a coupon distribution manner matched with a network car appointment order when the network car appointment order includes at least two vehicle types is provided, which is the same as or corresponding to the explanation of terms in the foregoing embodiment, and is not described in detail in this embodiment. Fig. 2 is a flowchart of a payment prompting method for a network appointment order according to a second embodiment of the present invention, in this embodiment, the technical solution of this embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, and in this embodiment, as shown in fig. 2, the method according to the second embodiment of the present invention may further include:
step 210, according to vehicle types included in the online taxi appointment orders to be paid, determining a coupon set respectively corresponding to each vehicle type in all available coupons, wherein the coupon set includes at least one coupon arranged in the descending order of deduction amount.
And step 220, acquiring a vehicle type as a current processing vehicle type, and acquiring a second target coupon set matched with the current processing vehicle type.
In the step, according to the currently processed vehicle type and the order price of each network appointment vehicle under the currently processed vehicle type, coupons matched with the currently processed vehicle type are screened from all coupons configured by the server, and all screened coupons together form a second target coupon set.
And step 230, acquiring a coupon vehicle to be distributed matched with the currently processed vehicle type from the online taxi appointment order, and sequentially acquiring a target coupon from the second target coupon set.
In this embodiment, at least two vehicle types included in the network appointment order are arranged according to a preset arrangement sequence. For example, the network appointment order includes three vehicle types, namely a vehicle type B, a vehicle type a and a vehicle type C, wherein the vehicle type a is ranked as a first vehicle type, the vehicle type B is ranked as a second vehicle type, and the vehicle type C is ranked as a third vehicle type. The distribution relationship between the online booking and the coupons under each vehicle type in the online booking order is stored in a coupon distribution record, for example, a first online booking distribution coupon a of the vehicle type A, a second online booking distribution coupon b of the vehicle type A and the like.
And if the current processing vehicle type is the vehicle type B, three vehicles to be distributed with the coupons matched with the vehicle type B exist, four target coupons are arranged in a second target coupon set matched with the vehicle type B according to the sequence of the deduction amount from large to small, and the first target coupon corresponds to the first network appointment vehicle of the vehicle type B.
And step 240, judging whether the distribution relation matched with the target coupon exists in the coupon distribution record. If not, go to step 250, and if yes, go to step 260.
In this step, whether the target coupon appears in the coupon distribution record or not is observed, and if the target coupon appears in the coupon distribution record, it indicates that a distribution relation matched with the target coupon exists in the coupon distribution record, that is, the target coupon is already distributed to the taxi appointment of another vehicle type.
And step 250, adding the distribution relation between the target coupon and the coupon vehicle to be distributed into the coupon distribution record.
In this step, if the target coupon does not appear in the coupon distribution record, it indicates that the target coupon can be distributed to the coupon vehicle to be distributed, and after the distribution relationship between the target coupon and the coupon vehicle to be distributed is added to the coupon distribution record, step 270 is executed.
And step 260, updating the coupon distribution records according to the total fare of each distributed coupon vehicle of the target coupon under different distribution relations.
In one implementation manner of the embodiment of the present invention, updating a coupon distribution record according to the total fare of each distributed coupon vehicle of a target coupon under different distribution relations comprises: according to the coupon distribution record, acquiring a target vehicle type to which a vehicle to which the target coupon is distributed belongs and a third target coupon set matched with the target vehicle type; calculating a first total fare of each distributed coupon vehicle after the target coupon is distributed to the target vehicle type and a second total fare of each distributed coupon vehicle after the target coupon is distributed to the current processed vehicle type; and updating the coupon distribution record according to the comparison result between the first total fare price and the second total fare price.
The method comprises the steps that a current processing vehicle type is assumed to be a vehicle type B, three online booking vehicles under the vehicle type B exist, a vehicle to be distributed with the coupons is a first online booking vehicle of the vehicle type B, a corresponding target coupon is a coupon B, and a second target coupon set matched with the vehicle type B comprises four target coupons which are respectively the coupon B, the coupon c, the coupon d and the coupon e. And finding the distribution relation of the second online taxi appointment distribution coupon b of the type A in the coupon distribution record, wherein the distribution relation indicates that the coupon b is distributed to the online taxi appointment of the type A.
The method comprises the steps that a target vehicle type to which a vehicle to which a target coupon is allocated belongs is obtained and is an A vehicle type, three online booking vehicles under the A vehicle type are provided, four coupons matched with the A vehicle type are screened from all coupons configured by a server according to the A vehicle type and the order price of each online booking vehicle under the A vehicle type, the four screened coupons are arranged according to the reduction sum from large to small to form a third target coupon set, and the third target coupon set comprises a coupon a, a coupon b, a coupon c and a coupon d.
In this embodiment, calculating the first total fare of each distributed coupon vehicle after the target coupon is distributed to the target vehicle model includes: acquiring a back coupon which is positioned behind the target coupon and does not appear in the coupon distribution record from a second target coupon set, and temporarily distributing the back coupon to the coupon vehicle to be distributed to generate a first temporary distribution relation; and calculating the first total fare of each distributed coupon vehicle according to each distribution relation stored in the coupon distribution record and the first temporary distribution relation.
If the coupon B is used by the model A, obtaining a coupon c after the coupon B from the second target coupon set, temporarily distributing the coupon c to the first vehicle appointment of the model B, and generating a first temporary distribution relation' the first vehicle appointment distribution coupon c of the model B; in addition, the coupon distribution record also stores the distribution relationship between each vehicle appointment and the coupon under the vehicle type A, such as "the first vehicle appointment distribution coupon a, the second vehicle appointment distribution coupon B and the third vehicle appointment distribution coupon c" under the vehicle type A, and the total fare of each vehicle appointment and the first vehicle appointment of the vehicle type B under the vehicle type A is calculated according to the distribution relationship between each vehicle appointment and the coupon and the first temporary distribution relationship under the vehicle type A.
In this embodiment, calculating the second total fare for each distributed coupon vehicle after the target coupon is distributed to the currently processed vehicle model includes: temporarily distributing the target coupon to the coupon vehicle to be distributed to generate a second temporary distribution relation; sequentially acquiring coupons behind the target coupons in the third target coupon set to form a coupon subset; acquiring a target distribution relation corresponding to the target coupon and the coupon subset and a target distributed coupon vehicle corresponding to the target distribution relation from distribution relations stored in the coupon distribution record; according to the coupon subset, regenerating a third temporary distribution relation corresponding to a target distributed coupon vehicle, and temporarily replacing the target distribution relation in the coupon distribution record by using the third temporary distribution relation; and calculating a second total fare price of each distributed coupon vehicle according to each distribution relation stored in the temporarily replaced coupon distribution record and a second temporary distribution relation.
And if the coupon B is used by the model B, temporarily distributing the coupon B to the first taxi appointment of the model B, generating a second temporary distribution relation ' the first taxi appointment distribution coupon B ' of the model B ', and acquiring a coupon c and a coupon d after the coupon B in the third target coupon set, wherein the coupon c and the coupon d form a coupon subset. And acquiring that all distribution relations corresponding to the type A vehicle are 'type A first network car booking distribution coupon a', type A second network car booking distribution coupon b 'and type A third network car booking distribution coupon c', wherein target distribution relations corresponding to the coupon b and the coupon subset are 'type A second network car booking distribution coupon b', type A third network car booking distribution coupon c ', and corresponding target distributed coupon vehicles are' type A second network car booking and type A third network car booking.
At this time, since the number of the coupons in the coupon subset is equal to that of the target distributed coupon vehicles, all the coupons in the coupon subset are distributed to each target distributed coupon vehicle, a third temporary distribution relation of 'type A second vehicle contract distribution coupon c and type A third vehicle contract distribution coupon d' is generated, the target distribution relation is temporarily replaced by using the third temporary distribution relation, and the total fare of each vehicle contract and type B first vehicle contract under type A is calculated according to the distribution relation between each vehicle contract and the coupons under type A and the second temporary distribution relation stored in the temporarily replaced coupon distribution records.
In a specific embodiment, updating the coupon distribution record according to the comparison result between the first total fare price and the second total fare price includes: and if the first total fare price is greater than the second total fare price, adding the distribution relation between the target coupon and the coupon vehicle to be distributed into a coupon distribution record, removing the target coupon from the third target coupon set, and updating the temporarily replaced coupon distribution record into a new coupon distribution record.
If the first total fare is larger than the second total fare, the total fare of each distributed coupon vehicle after the coupon B is distributed to the vehicle type B is more favorable, the distribution relation between the coupon B and the vehicle type B first online appointment is added into a coupon distribution record, the coupon B is removed from the third target coupon set, and the temporarily replaced coupon distribution record is used as a new coupon distribution record.
In another specific embodiment, updating the coupon distribution record according to the comparison result between the first total fare price and the second total fare price comprises: and if the first total fare price is less than or equal to the second total fare price, returning to execute the operation of sequentially acquiring one target coupon from the second target coupon set after the target coupon is removed from the second target coupon set.
If the first total fare is less than the second total fare, the total fare of the vehicles which are distributed with the coupons b after being distributed to the vehicle type A is more favorable; and if the first total fare price is equal to the second total fare price, the coupon B is indicated to be distributed to the vehicle type A and the coupon B is indicated to be distributed to the vehicle type B in the same discount amount. In both cases, the coupon B is removed from the second target coupon set, and the coupons c after the coupon B are sequentially obtained from the second target coupon set, and the coupon c is corresponding to the first network appointment of the model B, and step 240 is repeated.
And step 270, judging whether the coupon distribution of the currently processed vehicle type is finished.
If yes, go to step 280, otherwise, go back to step 230.
And step 280, judging whether the processing of all vehicle types in the online taxi appointment order is finished or not.
If yes, go to step 290, otherwise, go back to step 220.
And step 290, taking the obtained coupon distribution record after processing as a coupon distribution mode.
And step 300, carrying out payment prompt on the online taxi appointment order according to the coupon distribution mode.
The technical scheme of the embodiment of the invention determines coupon sets respectively corresponding to all vehicle types in all available coupons according to the vehicle types included in a network car-booking order to be paid, acquires a vehicle type as a current processing vehicle type, acquires a second target coupon set matched with the current processing vehicle type, acquires a coupon vehicle to be distributed matched with the current processing vehicle type from the network car-booking order, sequentially acquires a target coupon from the second target coupon set, updates the coupon distribution record according to the total fare of each distributed coupon vehicle of the target coupon vehicle under different distribution relations if the distribution relation matched with the target coupon exists in the coupon distribution record, takes the processed coupon distribution record as a coupon distribution mode, and gives a payment prompt to the network car-booking order according to the coupon distribution mode, the method and the system can improve the distribution efficiency of the coupons, calculate the optimal coupon distribution mode for the user, and improve the riding experience of the user.
EXAMPLE III
Fig. 3 is a structural diagram of a payment prompting device for a network appointment order according to a third embodiment of the present invention, where the device includes: a coupon set determination module 310, a distribution mode determination module 320, and a payment prompt module 330.
The coupon set determining module 310 is configured to determine, according to vehicle types included in an online taxi appointment order to be paid, coupon sets respectively corresponding to the vehicle types from among all available coupons, where the coupon sets include at least one coupon arranged in a descending order of deduction amount; the distribution mode determining module 320 is used for determining a coupon distribution mode matched with the network car booking order according to the car booking quantity of each car type in the network car booking order and the coupon set respectively corresponding to each car type; and the payment prompting module 330 is configured to perform payment prompting on the online taxi appointment order according to the coupon distribution manner.
According to the technical scheme of the embodiment of the invention, coupon sets respectively corresponding to all vehicle types are determined in all available coupons according to the vehicle types included in the online car booking order to be paid, a coupon distribution mode matched with the online car booking order is determined according to the number of the ordered vehicles of all vehicle types in the online car booking order and the coupon sets respectively corresponding to all vehicle types, and the online car booking order is paid and prompted according to the coupon distribution mode, so that the problems of high labor cost and long time consumption caused by manually distributing the coupons can be solved; the distribution efficiency of the coupons can be improved, unnecessary cost is reduced for users, and riding experience of the users is improved.
On the basis of the foregoing embodiments, the allocation manner determining module 320 may include:
the system comprises a first target coupon set acquisition unit, a second target coupon set acquisition unit and a third target coupon set acquisition unit, wherein the first target coupon set acquisition unit is used for acquiring a first target coupon set matched with a vehicle type when only one vehicle type is included in an online taxi appointment order;
the vehicle booking system comprises a first distribution unit, a second distribution unit and a third distribution unit, wherein the first distribution unit is used for sequentially acquiring coupons matched with the number of ordered vehicles from a first target coupon set if the number of the coupons included in the first target coupon set is larger than the number of the ordered vehicles of a vehicle type when only one vehicle type is included in a network booking order, and distributing the coupons to the vehicles in the network booking order;
the second distribution unit is used for correspondingly distributing all coupons in the first target coupon set to each vehicle with the matched number in the online car booking order if the number of the coupons in the first target coupon set is less than or equal to the number of the car booking of the car model when the online car booking order only comprises one car model;
a second target coupon set obtaining unit, configured to, if a network appointment order includes at least two vehicle types, obtain one vehicle type as a currently processed vehicle type, and obtain a second target coupon set matched with the currently processed vehicle type;
the target coupon obtaining unit is used for obtaining a coupon vehicle to be distributed matched with the currently processed vehicle type from the online taxi appointment order and sequentially obtaining a target coupon from a second target coupon set;
the judgment unit is used for judging whether the distribution relation matched with the target coupon exists in the coupon distribution record or not;
the first distribution relation adding unit is used for adding the distribution relation between the target coupon and the coupon vehicle to be distributed into the coupon distribution record when the distribution relation matched with the target coupon does not exist in the coupon distribution record;
the distribution record updating unit is used for updating the coupon distribution records according to the total fare of each distributed coupon vehicle of the target coupons under different distribution relations when the distribution relations matched with the target coupons exist in the coupon distribution records;
the third distribution unit is used for executing the operation of acquiring the coupon vehicle to be distributed matched with the currently processed vehicle type from the online taxi appointment order until the coupon distribution of the currently processed vehicle type is determined to be finished;
the coupon distribution mode generation unit is used for executing the operation of acquiring one vehicle type as the current processing vehicle type until the processing of all vehicle types in the online taxi booking order is finished, and taking the coupon distribution record obtained after the processing as the coupon distribution mode;
a third target coupon set obtaining unit, configured to obtain, according to the coupon distribution record, a target vehicle type to which a vehicle to which the target coupon is distributed belongs, and a third target coupon set that matches the target vehicle type;
the total fare calculation unit is used for calculating a first total fare of each distributed coupon vehicle after the target coupon is distributed to the target vehicle type and a second total fare of each distributed coupon vehicle after the target coupon is distributed to the current processed vehicle type;
the comparison unit is used for updating the coupon distribution record according to the comparison result between the first total fare price and the second total fare price;
a first temporary distribution relation generating unit, configured to obtain, from the second target coupon set, a next coupon that is located after the target coupon and does not appear in the coupon distribution record, and temporarily distribute the next coupon to the to-be-distributed coupon vehicle, so as to generate a first temporary distribution relation;
and the first fare total calculating unit is used for calculating the first fare total of each distributed coupon vehicle according to each distribution relation stored in the coupon distribution record and the first temporary distribution relation.
The second temporary distribution relation generating unit is used for temporarily distributing the target coupon to the coupon vehicle to be distributed to generate a second temporary distribution relation;
a coupon subset construction unit, configured to sequentially obtain each coupon in the third target coupon set that is located after the target coupon to form a coupon subset;
a target distributed coupon vehicle obtaining unit, configured to obtain, among distribution relations stored in the coupon distribution record, a target distribution relation corresponding to the target coupon and the coupon subset, and a target distributed coupon vehicle corresponding to the target distribution relation;
a third temporary distribution relation generating unit, configured to regenerate, according to the coupon subset, a third temporary distribution relation corresponding to the target distributed coupon vehicle, and use the third temporary distribution relation to temporarily replace the target distribution relation in the coupon distribution record;
the second total fare calculation unit is used for calculating the second total fare of each distributed coupon vehicle according to each distribution relation stored in the temporarily replaced coupon distribution record and the second temporary distribution relation;
the second distribution relation adding unit is used for adding the distribution relation between the target coupon and the coupon vehicle to be distributed into the coupon distribution record if the first total fare is larger than the second total fare;
the first target coupon removing unit is used for removing the target coupons from the third target coupon set and updating the temporarily replaced coupon distribution records into new coupon distribution records;
and the second target coupon removing unit is used for removing the target coupon from the second target coupon set if the first total fare price is less than or equal to the second total fare price, and then returning to execute the operation of sequentially obtaining one target coupon from the second target coupon set.
The payment prompting device for the online taxi appointment order provided by the embodiment of the invention can execute the payment prompting method for the online taxi appointment order provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a computer apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the computer apparatus includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the computer device may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the memory 420, the input device 430 and the output device 440 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 4.
The memory 420 may be implemented as a computer-readable storage medium, which may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a method for prompting a payment for a network appointment order according to embodiments of the present invention (e.g., the coupon set determining module 310, the distribution mode determining module 320, and the payment prompting module 330 in a payment prompting device for a network appointment order). The processor 410 executes various functional applications and data processing of the computer device by running software programs, instructions and modules stored in the memory 420, so as to implement the above-mentioned payment prompting method for the online taxi appointment order. That is, the program when executed by the processor implements:
determining a coupon set respectively corresponding to each vehicle type in all available coupons according to the vehicle types included in the online taxi appointment order to be paid, wherein the coupon set comprises at least one coupon arranged in the descending order of deduction amount;
determining a coupon distribution mode matched with the network car booking order according to the car booking quantity of each car type in the network car booking order and the coupon set respectively corresponding to each car type;
and carrying out payment prompt on the online taxi appointment order according to the coupon distribution mode.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to a computer device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the computer apparatus, and may include a keyboard, a mouse, and the like. The output device 440 may include a display device such as a display screen.
EXAMPLE five
Fifth, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method according to any embodiment of the present invention. Of course, the computer-readable storage medium provided in the embodiment of the present invention may perform related operations in the method for prompting a payment for a network appointment order provided in any embodiment of the present invention. That is, the program when executed by the processor implements:
determining coupon sets respectively corresponding to all vehicle types in all available coupons according to the vehicle types included in the online taxi appointment orders to be paid, wherein the coupon sets comprise at least one coupon arranged in the descending order of the deduction amount;
determining a coupon distribution mode matched with the network car booking order according to the car booking quantity of each car type in the network car booking order and the coupon set respectively corresponding to each car type;
and carrying out payment prompt on the online taxi appointment order according to the coupon distribution mode.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the above embodiment of the payment prompting device for the network appointment order, each included unit and module are only divided according to the functional logic, but are not limited to the above division, as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope 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 (10)
1. A payment prompting method for a network taxi appointment order is characterized by comprising the following steps:
determining a coupon set respectively corresponding to each vehicle type in all available coupons according to the vehicle types included in the online taxi appointment order to be paid, wherein the coupon set comprises at least one coupon arranged in the descending order of deduction amount;
determining a coupon distribution mode matched with the network car booking order according to the car booking quantity of each car type in the network car booking order and the coupon set respectively corresponding to each car type;
according to the coupon distribution mode, carrying out payment prompt on the online taxi appointment order;
the method for determining the coupon distribution mode matched with the online car booking order according to the car booking quantity of each car type in the online car booking order and the coupon set corresponding to each car type respectively comprises the following steps of: when the online taxi appointment order only comprises one taxi type, acquiring a first target coupon set matched with the taxi type;
if the number of the coupons in the first target coupon set is larger than the number of the ordered vehicles of the vehicle type, sequentially acquiring the coupons matched with the number of the ordered vehicles from the first target coupon set, and distributing the coupons to the vehicles in the online taxi appointment order; and if the number of the coupons in the first target coupon set is less than or equal to the number of the vehicles ordered by the vehicle type, correspondingly distributing all the coupons in the first target coupon set to each vehicle with the matched number in the online taxi appointment order.
2. The method of claim 1, wherein determining a coupon distribution mode matched with the online car booking order according to the number of the ordered cars of each car type in the online car booking order and the coupon sets respectively corresponding to the car types comprises:
if the online taxi appointment order comprises at least two taxi types, acquiring one taxi type as a current processing taxi type, and acquiring a second target coupon set matched with the current processing taxi type;
obtaining a coupon vehicle to be distributed matched with the currently processed vehicle type from the online taxi appointment order, and sequentially obtaining a target coupon from a second target coupon set;
judging whether the distribution relation matched with the target coupon already exists in the coupon distribution record: if not, adding the distribution relation between the target coupon and the coupon vehicle to be distributed into the coupon distribution record; if yes, updating the coupon distribution records according to the total fare of each distributed coupon vehicle of the target coupon under different distribution relations;
returning to execute the operation of acquiring the coupon vehicle to be distributed matched with the currently processed vehicle type from the online taxi appointment order until the coupon distribution of the currently processed vehicle type is determined to be finished;
and returning to execute the operation of acquiring one vehicle type as the currently processed vehicle type until the processing of all vehicle types in the online taxi appointment order is completed, and taking the coupon distribution record obtained after the processing as a coupon distribution mode.
3. The method of claim 2, wherein updating the coupon distribution record according to the total fare of each distributed coupon vehicle under different distribution relations of the target coupon comprises:
according to the coupon distribution record, acquiring a target vehicle type to which a vehicle to which the target coupon is distributed belongs and a third target coupon set matched with the target vehicle type;
calculating a first total fare of each distributed coupon vehicle after the target coupon is distributed to the target vehicle type and a second total fare of each distributed coupon vehicle after the target coupon is distributed to the current processed vehicle type;
and updating the coupon distribution record according to the comparison result between the first total fare price and the second total fare price.
4. The method of claim 3, wherein calculating a first total fare for each assigned coupon vehicle after the target coupon is assigned to the target vehicle type comprises:
acquiring a back coupon which is positioned behind the target coupon and does not appear in the coupon distribution record from the second target coupon set, and temporarily distributing the back coupon to the coupon vehicle to be distributed to generate a first temporary distribution relation;
and calculating the first total fare of each distributed coupon vehicle according to each distribution relation stored in the coupon distribution record and the first temporary distribution relation.
5. The method of claim 4, wherein calculating a second total fare for the target coupon to be assigned to each assigned coupon vehicle after the currently processed vehicle type comprises:
temporarily distributing the target coupon to the coupon vehicle to be distributed to generate a second temporary distribution relation;
sequentially acquiring coupons behind the target coupons in the third target coupon set to form a coupon subset;
acquiring a target distribution relation corresponding to the target coupon and the coupon subset and a target distributed coupon vehicle corresponding to the target distribution relation from distribution relations stored in the coupon distribution record;
according to the coupon subset, regenerating a third temporary distribution relation corresponding to a target distributed coupon vehicle, and temporarily replacing the target distribution relation in the coupon distribution record by using the third temporary distribution relation;
and calculating a second total fare price of each distributed coupon vehicle according to each distribution relation stored in the temporarily replaced coupon distribution record and a second temporary distribution relation.
6. The method of claim 5, wherein updating the coupon distribution record based on the comparison between the first fare total and the second fare total comprises:
if the first total fare price is larger than the second total fare price, adding the distribution relation between the target coupon and the coupon vehicle to be distributed into the coupon distribution record;
and removing the target coupon from the third target coupon set, and updating the temporarily replaced coupon distribution record into a new coupon distribution record.
7. The method of claim 5, wherein updating the coupon distribution record based on the comparison between the first fare total and the second fare total comprises:
and if the first total fare price is less than or equal to the second total fare price, returning to execute the operation of sequentially acquiring one target coupon from the second target coupon set after the target coupon is removed from the second target coupon set.
8. The utility model provides a payment suggestion device of net car appointment order which characterized in that includes:
the coupon set determining module is used for determining a coupon set respectively corresponding to each vehicle type in all available coupons according to the vehicle types included in the online taxi appointment order to be paid, and the coupon set comprises at least one coupon arranged in the descending order of deduction amount;
the distribution mode determining module is used for determining a coupon distribution mode matched with the network car booking order according to the car booking quantity of each car type in the network car booking order and the coupon set respectively corresponding to each car type;
the payment prompting module is used for carrying out payment prompting on the online taxi appointment order according to the coupon distribution mode;
the distribution mode determining module is further used for acquiring a first target coupon set matched with the vehicle type when the online taxi appointment order only comprises one vehicle type; if the number of the coupons in the first target coupon set is larger than the number of the ordered vehicles of the vehicle type, sequentially acquiring the coupons matched with the number of the ordered vehicles from the first target coupon set, and distributing the coupons to the vehicles in the online taxi appointment order; and if the number of the coupons in the first target coupon set is less than or equal to the number of the vehicles ordered by the vehicle type, correspondingly distributing all the coupons in the first target coupon set to each vehicle with the matched number in the online taxi appointment order.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method for payment advice for online taxi appointment orders as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a method for payment prompt for a network appointment order according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010559736.8A CN111723988B (en) | 2020-06-18 | 2020-06-18 | Payment prompting method, device, equipment and storage medium for online taxi appointment orders |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010559736.8A CN111723988B (en) | 2020-06-18 | 2020-06-18 | Payment prompting method, device, equipment and storage medium for online taxi appointment orders |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111723988A CN111723988A (en) | 2020-09-29 |
CN111723988B true CN111723988B (en) | 2022-06-14 |
Family
ID=72567314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010559736.8A Active CN111723988B (en) | 2020-06-18 | 2020-06-18 | Payment prompting method, device, equipment and storage medium for online taxi appointment orders |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111723988B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114581142A (en) * | 2022-03-07 | 2022-06-03 | 首约科技(北京)有限公司 | Method for improving user activity of network appointment platform |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107622394A (en) * | 2017-09-21 | 2018-01-23 | 网易(杭州)网络有限公司 | A kind of method of payment processes, medium, device and computing device |
CN110544142A (en) * | 2019-07-24 | 2019-12-06 | 欧拉信息服务有限公司 | Taxi taking method and equipment and terminal equipment |
CN110866771A (en) * | 2018-08-28 | 2020-03-06 | 北京京东尚科信息技术有限公司 | Information processing method, system, medium, and computer system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180089708A1 (en) * | 2016-09-26 | 2018-03-29 | International Business Machines Corporation | Sharing coupons based on user device location |
-
2020
- 2020-06-18 CN CN202010559736.8A patent/CN111723988B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107622394A (en) * | 2017-09-21 | 2018-01-23 | 网易(杭州)网络有限公司 | A kind of method of payment processes, medium, device and computing device |
CN110866771A (en) * | 2018-08-28 | 2020-03-06 | 北京京东尚科信息技术有限公司 | Information processing method, system, medium, and computer system |
CN110544142A (en) * | 2019-07-24 | 2019-12-06 | 欧拉信息服务有限公司 | Taxi taking method and equipment and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111723988A (en) | 2020-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Olsen et al. | A study on flow decomposition methods for scheduling of electric buses in public transport based on aggregated time–space network models | |
CN102456031B (en) | A kind of Map Reduce system and the method processing data stream | |
CN105719110A (en) | Order processing method and device | |
CN102855580A (en) | Clearing settlement method and system | |
Bartodziej et al. | Models and algorithms for solving combined vehicle and crew scheduling problems with rest constraints: an application to road feeder service planning in air cargo transportation | |
CN102063674A (en) | Method and system for processing transaction information | |
CN111723988B (en) | Payment prompting method, device, equipment and storage medium for online taxi appointment orders | |
CN114663079A (en) | Settlement method, terminal, storage medium and program product | |
CN102819914A (en) | Invoice distribution system and method of invoice distribution system | |
CN113379084B (en) | Air ticket renewal method and air ticket renewal device | |
CN112017001A (en) | Network appointment vehicle type recommendation method and device, electronic equipment and storage medium | |
CN101232538A (en) | Apparatus and method for merging business data | |
CN112541752A (en) | Expense processing method and device for vehicle rental platform, computer equipment and medium | |
CN110826943B (en) | Method and related equipment for judging whether bus allocation is needed or not and determining bus allocation number | |
CN102592319B (en) | Method for realizing 'dynamic sectional fare' of self-service ticketing bus | |
CN112541685A (en) | Order allocation method, system, platform and storage medium | |
CN111768017A (en) | Method, device, equipment and storage medium for guiding network car booking service | |
CN110472849A (en) | Maintenance task dispatching method, client and server-side | |
JP6953369B2 (en) | Allocation processing system and its method | |
Xiong et al. | Split demand one-to-one pickup and delivery problems with the shortest-path transport along real-life paths | |
CN115907917A (en) | Business data processing method and device and computer readable medium | |
CN111028025B (en) | Bill data processing method, device, equipment and medium based on big data | |
CN115760321A (en) | Network car booking operation system | |
CN111199435A (en) | Tax amount non-tailing invoice invoicing system, method, storage medium and computer | |
CN107437214A (en) | Information processing method, device and non-transitory computer-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 |