CN110070424A - Order generation method, device, server and storage medium - Google Patents
Order generation method, device, server and storage medium Download PDFInfo
- Publication number
- CN110070424A CN110070424A CN201910364141.4A CN201910364141A CN110070424A CN 110070424 A CN110070424 A CN 110070424A CN 201910364141 A CN201910364141 A CN 201910364141A CN 110070424 A CN110070424 A CN 110070424A
- Authority
- CN
- China
- Prior art keywords
- commodity
- predetermined number
- time
- ticket reserving
- order
- 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.)
- Granted
Links
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/02—Reservations, e.g. for tickets, services or events
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
Abstract
A method of order generation, the method comprising: receiving a settlement instruction aiming at the commodity, wherein the settlement instruction carries relevant production information of the commodity; determining a first bookable time of the commodity and a first bookable quantity corresponding to the first bookable time according to the related production information; determining a first bookable time indicated by the received first selection instruction as a commodity booking time; determining the first bookable quantity indicated by the received second selection instruction as a commodity booking quantity; and generating an effective order of the commodities according to the commodity reservation time and the commodity reservation quantity. The invention also provides an order generating device, a server and a storage medium. The invention can ensure the validity of the order.
Description
Technical field
The present invention relates to intelligent terminal technical field more particularly to a kind of order generation method, device, server and storages
Medium.
Background technique
With the development of information technology, the systems such as food and drink/sweets/fruit drink are subscribed in store to more and more people's habits on line
Works.Product are made for these, the reservation system in store can provide a rough ticket reserving time on line, and people can be according to certainly
Oneself arrangement of time is wanted to subscribe to determine.
Currently, the reservation system in store is usually to pass through Timing Advance to determine whether can place an order on line, however, real
It tramples and often will appear the situation for causing commodity that can not make within the ticket reserving time due to odjective cause, so that order fails.
Summary of the invention
In view of the foregoing, it is necessary to a kind of order generation method, device, server and storage medium are provided, it can be true
Protect the validity of order.
The first aspect of the present invention provides a kind of order generation method, which comprises
Receive the tally order for being directed to commodity, wherein the relative production letter of the commodity is carried in the tally order
Breath;
According to the relative production information, determine that the first of the commodity can ticket reserving time and described first when can subscribe
Between corresponding first can predetermined number;
It can be determined as the commodity ticket reserving time ticket reserving time for indicated by the instruction of received first choice first;
By indicated by received second selection instruction first can predetermined number be determined as commodity predetermined number;
According to the commodity ticket reserving time and the commodity predetermined number, the valid order of the commodity is generated.
In one possible implementation, the relative production information include: the commodity unit production duration, can
Participate in the units of commodity production and the quantity in stock of the commodity, the units is number or number of devices, described
According to the relative production information, determine the commodity first can the ticket reserving time and described first can the ticket reserving time it is corresponding
First can predetermined number include:
For the period each of preset multiple periods, by initial time be greater than current time it is described when
Between section be determined as target time section, wherein each period includes initial time and end time;
Duration is made according to the unit of the commodity and may participate in the units of the commodity production, is determined each described
Target time section makes commodity amount;
According to the quantity in stock, the target time section the commodity amount of reservation and it is described make commodity amount,
Determine the commodity in each target time section can predetermined number;
For each target time section, judge the commodity the target time section can predetermined number it is whether big
In preset quantity threshold value;
If the commodity the target time section can predetermined number be greater than preset quantity threshold value, when determining the target
Between section be the commodity first can the ticket reserving time, and determine that the commodity can subscribe number described first the ticket reserving time
Amount for described first can the ticket reserving time corresponding first can predetermined number.
In one possible implementation, described according to the relative production information, determine that the first of the commodity can
Ticket reserving time and described first can the ticket reserving time corresponding first can after predetermined number, the method also includes:
Judge the commodity type whether there are many;
If there are many types of the commodity, according to the first of a variety of commodity can the ticket reserving time, determine a variety of described
Commodity can ticket reserving time intersection, it is described can ticket reserving time intersection indicated and be confirmed as in first choice instruction
The commodity ticket reserving time;
If it is described can ticket reserving time intersection be not it is empty, determine that described first can hand in predetermined number with described the ticket reserving time
Collect corresponding target can predetermined number, the target can predetermined number indicated and be determined in second selection instruction
For commodity predetermined number.
In one possible implementation, described can predetermined number by indicated by received second selection instruction first
Being determined as commodity predetermined number includes:
It determines that the commodity are commodity sales promotion when including promotion rule in the item property, judges that the commodity are subscribed
Whether quantity meets the promotion rule of the commodity sales promotion;
If the commodity predetermined number is unsatisfactory for the promotion rule of the commodity sales promotion, judge whether the user is registration
User;
If the user is registration user, the commodity predetermined number is changed to the promotion number of the promotion rule instruction
Amount.
In one possible implementation, number can be subscribed by indicated by received second selection instruction first described
After amount is determined as commodity predetermined number, the method also includes:
If detecting, the account of the user receives favor information, is subscribed according to the type of the commodity, the commodity
Time and the commodity predetermined number, judge whether the favor information meets requirement;
It is described according to the commodity ticket reserving time and the commodity predetermined number, generate the valid order packet of the commodity
It includes:
If the favor information meets requirement, according to the favor information, commodity ticket reserving time and described
Commodity predetermined number generates the valid order of the commodity.
In one possible implementation, after the valid order for generating the commodity, the method also includes:
The order operation received for the valid order instructs;
According to the merchandise news and order operation instruction in the valid order, the inventory of the commodity is updated
Amount.
In one possible implementation, after the valid order for generating the commodity, the method also includes:
Non- pay status is in after detecting the valid order in the first preset time and before the second preset time
When, prompt information is sent to the user;
When detecting the valid order after second preset time in non-pay status, cancel described effective
Order.
The second aspect of the present invention provides a kind of order generating means, and described device includes:
Receiving module, for receiving the tally order for being directed to commodity, wherein carry the commodity in the tally order
Relative production information;
First determining module, for according to the relative production information, determine the commodity first can the ticket reserving time with
And described first can the ticket reserving time corresponding first can predetermined number;
Second determining module, for by indicated by the instruction of received first choice first ticket reserving time commodity can be determined as
Ticket reserving time, and by indicated by received second selection instruction first can predetermined number be determined as commodity predetermined number;
Generation module generates the effective of the commodity according to the commodity ticket reserving time and the commodity predetermined number
Order.
The third aspect of the present invention provides a kind of server, and the server includes processor and memory, the processing
Device realizes the order generation method when being used to execute the computer program stored in the memory.
The fourth aspect of the present invention provides a kind of computer readable storage medium, deposits on the computer readable storage medium
Computer program is contained, the order generation method is realized when the computer program is executed by processor.
By above technical scheme, the present invention can ticket reserving time according to commodity and commodity predetermined number, described in generation
The valid order of commodity.As it can be seen that according to the relative production information of commodity determine commodity can the ticket reserving time and can predetermined number,
Ticket reserving time and the reservation amount of commodity can be accurately controlled, it is ensured that commodity can be completed within the ticket reserving time, without going out
The case where commodity can not be completed in the given time after current family places an order, so as to ensure the validity of order.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the preferred embodiment of order generation method disclosed by the invention.
Fig. 2 is a kind of functional block diagram of the preferred embodiment of order generating means disclosed by the invention.
Fig. 3 is the structural schematic diagram of the server for the preferred embodiment that the present invention realizes order generation method.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real
Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, the embodiment of the present invention and embodiment
In feature can be combined with each other.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention
The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
The order generation method application of the embodiment of the present invention in the server, can also apply in server and pass through network
In the hardware environment that the electronic equipment being attached with the server is constituted, executed jointly by server and electronic equipment.
Network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or local area network.
Wherein, server, which can refer to, to provide the department of computer science of service to equipment (such as electronic equipment) other in network
System.If personal computer can externally provide File Transfer Protocol (File Transfer Protocol, abbreviation FTP) clothes
Business, can also be server.From narrow scope, server refers exclusively to certain high-performance computers, can externally be mentioned by network
For service, for common PC, stability, safety, performance etc. require it is higher, therefore
The hardware such as CPU, chipset, memory, disk system, network and common PC are different.
The electronic equipment include it is a kind of can according to the instruction for being previously set or store, it is automatic carry out numerical value calculate with/
Or the electronic equipment of information processing, hardware include but is not limited to microprocessor, specific integrated circuit (ASIC), programmable gate array
Arrange (FPGA), digital processing unit (DSP), embedded device etc..The electronic equipment may also include the network equipment and/or user sets
It is standby.Wherein, the network equipment include but is not limited to single network server, multiple network servers composition server group or
The cloud being made of a large amount of hosts or network server based on cloud computing (Cloud Computing), wherein cloud computing is distribution
One kind that formula calculates, a super virtual computer consisting of a loosely coupled set of computers.The user equipment packet
Include but be not limited to any one can be carried out with user by modes such as keyboard, mouse, remote controler, touch tablet or voice-operated devices it is man-machine
Interactive electronic product, for example, personal computer, tablet computer, smart phone, personal digital assistant PDA, game machine, interaction
Formula network TV IPTV, intellectual wearable device etc..Wherein, network locating for the user equipment and the network equipment include but
It is not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, Virtual Private Network VPN etc..
Referring to Figure 1, Fig. 1 is a kind of flow chart of the preferred embodiment of order generation method disclosed by the invention.Wherein,
The sequence of step can change in the flow chart according to different requirements, and certain steps can be omitted.
S11, server receive the tally order for being directed to commodity, wherein the commodity may include on line, all kinds of quotient under line
Product carry the relative production information of the commodity in the tally order.The tally order can be mentioned in the server
It is inputted in the interface of confession.
Wherein, the relative production information includes: the unit production duration of the commodity, may participate in what the commodity made
The quantity in stock of units and the commodity.Wherein, unit production duration refers to that a commodity were produced out is wanted
The time of cost;The units is number or number of devices, one or individual equipment make a commodity the time it takes
May be different, i.e., one makes duration from the unit that individual equipment may correspond to different commodity;The quantity in stock refers to quotient
The quantity that product have been made in advance.
S12, server determine that the first of the commodity can the ticket reserving time and described according to the relative production information
One can the ticket reserving time corresponding first can predetermined number.
Wherein, because each can the units that may participate in commodity production of ticket reserving time may different, Mei Geke
The reservation commodity amount of ticket reserving time may be different, so, each can the ticket reserving time can predetermined number may be different.
Therefore, in addition to the determination commodity first can the ticket reserving time, be also predefined described first can the ticket reserving time corresponding first can
Predetermined number.
Specifically, the relative production information includes: the unit production duration of the commodity, may participate in the commodity production
Units and the commodity quantity in stock, the units be number or number of devices, it is described according to the relative production
Information, determine the commodity first can the ticket reserving time and described first can the ticket reserving time corresponding first can predetermined number packet
It includes:
For the period each of preset multiple periods, by initial time be greater than current time it is described when
Between section be determined as target time section, wherein each period includes initial time and end time;
Duration is made according to the unit of the commodity and may participate in the units of the commodity production, is determined each described
Target time section makes commodity amount;
According to the quantity in stock, the target time section the commodity amount of reservation and it is described make commodity amount,
Determine the commodity in each target time section can predetermined number;
For each target time section, judge the commodity the target time section can predetermined number it is whether big
In preset quantity threshold value;
If the commodity the target time section can predetermined number be greater than preset quantity threshold value, when determining the target
Between section be the commodity first can the ticket reserving time, and determine that the commodity can subscribe number described first the ticket reserving time
Amount for described first can the ticket reserving time corresponding first can predetermined number.
Where it is assumed that the unit production duration of some commodity is T, the list of commodity production may participate in some period
Digit is H, and the time span (i.e. preset time interval) of the period is M, and the quantity in stock of the commodity is A, and the commodity are at this
The commodity amount of reservation of period is N0, then calculating the commodity in the formula for making commodity amount NN of the period
Are as follows: NN=M/T*H;Calculate the commodity the period can predetermined number NR formula are as follows: NR=NN-N0+A.
In the optional embodiment, system can be according to preset business hours and preset time interval, really
Fixed multiple periods are preset multiple periods.Such as: business hours 9:00-17:00, time interval are 2 hours, that
It can determine preset multiple periods are as follows: 9:00-11:00,11:00-13:00,13:00-15:00,15:00-17:00.
Each period includes initial time and end time, for example, the initial time of this period of 9:00-11:00 is 9:00,
End time is 11:00.System is it needs to be determined that the period that initial time is greater than current time is target time section, in conjunction with above
Example, it is assumed that current time 11:30, then target time section are as follows: 13:00-15:00 and 15:00-17:00.According to institute
Unit Production Time and the corresponding units that may participate in commodity production of each object time of commodity are stated, it can be with
Determine that the commodity make commodity amount in each target time section, then according to the quantity in stock of the commodity, institute
Commodity are stated in the commodity amount of reservation of each target time section and commodity amount can be made, can determine the commodity
In each target time section can predetermined number.Wherein, it is described can predetermined number need to carry out rounding processing, such as: meter
Calculate can predetermined number be 1.1 or 1.9, finally determine can predetermined number be all 1.In the embodiment of the present invention, preset
Amount threshold be 0, the even described target time section can predetermined number be greater than 0, the target time section can be determined for institute
State commodity first can ticket reserving time;And determine the commodity described first can the ticket reserving time can predetermined number be institute
State first can the ticket reserving time corresponding first can predetermined number.
S13, the server by the instruction of received first choice it is indicated first the ticket reserving time can be determined as commodity pre-
Order the time.
In one embodiment, the server can carry out the reception that the first choice instructs in the following way: institute
It states described in the first Option Box and correspondence that server can show that correspondence described first can input the ticket reserving time in the user interface
First can predetermined number input the second Option Box.
Wherein, first Option Box include one or more described first can the ticket reserving time, for receive user input
First choice instruction.
Wherein, described the first of second Option Box can predetermined number correspond to selected in the first choice frame it is described
First can the ticket reserving time.For example, if selected in the first choice frame described first can the ticket reserving time can predetermined number for
9, i.e., described first can predetermined number be set (1,2,3,4,5,6,7,8,9) in any one value, then second option
Selectable value (described first can predetermined number) in frame is 1 to 9 (selectable value is integer).
In embodiments of the present invention, user can with check the commodity in first Option Box it is all subscribe when
Between i.e. all described first can the ticket reserving time, and can be inputted by clicking first choice instruction, select described in one of them
First can the ticket reserving time, system can receive first choice instruction, and can be pre- by the first of first choice instruction instruction
Ordering the time is determined as the commodity ticket reserving time.
S14, the server by indicated by received second selection instruction first can predetermined number to be determined as commodity pre-
Order quantity.
In the embodiment of the present invention, user can check the commodity in first Option Box in second Option Box
The first of middle selection can the ticket reserving time corresponding first can predetermined number, and can choose input predetermined number (described first can
Predetermined number).
Specifically, it is described by indicated by received second selection instruction first can predetermined number be determined as commodity subscribe number
Amount includes:
It determines that the commodity are commodity sales promotion when including promotion rule in the item property, judges that the commodity are subscribed
Whether quantity meets the promotion rule of the commodity sales promotion;
If the commodity predetermined number is unsatisfactory for the promotion rule of the commodity sales promotion, judge whether the user is registration
User;
If the user is registration user, the commodity predetermined number is changed to the promotion number of the promotion rule instruction
Amount, that is, the promotion amount is determined as updated commodity predetermined number.
In the optional embodiment, promotion rule generally refers to commodity and meets certain amount that the excellent of price can be obtained
Favour.If the commodity predetermined number is unsatisfactory for the promotion rule of the commodity sales promotion, continue to judge whether the user is note
Volume user proves that the user can participate in the activity of the commodity sales promotion if the user is registration user, therefore, can
The promotion amount is determined as commodity predetermined number, wherein the promotion amount belongs to first can the predetermined number (rush
Sell quantity cannot beyond described first can predetermined number range), the price shown in the valid order of the commodity is system
In conjunction with the amount of money for the actual needs payment that promotion rule determines.User can determine to want to participate in promotion according to the needs of itself
Activity can reselect predetermined number.
As an alternative embodiment, after step S12, the method also includes:
Judge the commodity type whether there are many;
If there are many types of the commodity, according to the first of a variety of commodity can the ticket reserving time, determine a variety of described
Commodity can ticket reserving time intersection, it is described can ticket reserving time intersection indicated and be confirmed as in first choice instruction
The commodity ticket reserving time;
If it is described can ticket reserving time intersection be not it is empty, determine that described first can hand in predetermined number with described the ticket reserving time
Collect corresponding target can predetermined number, the target can predetermined number indicated and be determined in second selection instruction
For commodity predetermined number.
Specifically, the server can show in the user interface for input it is described can ticket reserving time intersection the
One Option Box and for input the target can predetermined number the second Option Box;
The first choice instruction inputted in first Option Box according to user, by first choice instruction instruction
Can ticket reserving time intersection be determined as the commodity ticket reserving time;
According to the second selection instruction that the user inputs in second Option Box, second selection instruction is referred to
The target shown can predetermined number be determined as commodity predetermined number.
Wherein, it is described can ticket reserving time intersection may be sky, if it is described can ticket reserving time intersection be not it is empty, it is described can be pre-
Order time intersection include one first can ticket reserving time or multiple first can the ticket reserving time.
In the optional embodiment, described according to the relative production information, determine that the first of the commodity can
Ticket reserving time and described first the ticket reserving time corresponding first it can need to judge that the type of the commodity is after predetermined number
There are many no, because the unit production duration of different types of commodity, may participate in the units of commodity production and described
The quantity in stock of commodity all may not be identical, thus the different types of commodity can the ticket reserving time may inconsistent, inhomogeneity
The commodity of type it is same can the ticket reserving time can predetermined number may also be inconsistent.If the type of the commodity has more
Kind, need according to the first of a variety of commodity can the ticket reserving time, determine a variety of commodity can ticket reserving time intersection.Than
Such as: assuming that the commodity include commodity A and commodity B, described the first of commodity A can be 9:00-10:00,10 ticket reserving time:
Described the first of 00-11:00 and 11:00-12:00 commodity B can be 10:00-11:00 and 11:00-12:00 the ticket reserving time, then
A variety of commodity can ticket reserving time intersection be (10:00-11:00,11:00-12:00).
If a variety of commodity can ticket reserving time intersection be not it is empty, determine described first can in predetermined number with it is described can
The corresponding target of ticket reserving time intersection can predetermined number, in conjunction with above can ticket reserving time intersection example, the target can subscribe
Quantity include commodity A 10:00-11:00 corresponding described first can predetermined number and in 11:00-12:00 it is corresponding described
First can predetermined number, commodity B can predetermined number and at 11:00-12:00 pairs in 10:00-11:00 corresponding described first
Described first answered can predetermined number.
The server can be shown in the user interface of offer for input it is described can ticket reserving time intersection first
Option Box and for input the target can predetermined number the second Option Box;It is defeated in first Option Box according to user
Enter first choice instruction, by the first choice instruction instruction can ticket reserving time intersection be determined as the commodity ticket reserving time;Root
According to the second selection instruction that the user inputs in second Option Box, the target that second selection instruction is indicated can
Predetermined number is determined as commodity predetermined number.In conjunction with the example of time intersection above, optionally subscribed in first Option Box
Time is 10:00-11:00 and 11:00-12:00, and after the user has chosen the ticket reserving time, user can be directed to every kind
The commodity select the predetermined number (target can predetermined number) of the commodity in second Option Box.
S15, server generate the effective of the commodity according to the commodity ticket reserving time and the commodity predetermined number
Order.
Wherein, the valid order includes the type of the commodity, the commodity ticket reserving time, commodity reservation number
Amount, the amount of money for needing to pay etc..
In the embodiment of the present invention, the unit price of the commodity can inquire in the database, can be according to the commodity
The monovalent and described commodity predetermined number can calculate the amount of money for needing to pay, and then improve order information, generate the quotient
The valid order of product.
As an alternative embodiment, after step S15, the method also includes:
If detecting, the account of the user receives favor information, is subscribed according to the type of the commodity, the commodity
Time and the commodity predetermined number, judge whether the favor information meets requirement;
It is described according to the commodity ticket reserving time and the commodity predetermined number, generate the valid order packet of the commodity
It includes:
If the favor information meets requirement, according to the favor information, commodity ticket reserving time and described
Commodity predetermined number generates the valid order of the commodity.
Wherein, the favor information can be issued in the account of corresponding user account by way of discount coupon.
In the optional embodiment, second selection inputted in second Option Box according to the user
Instruction can detecte the first of second selection instruction instruction described after predetermined number is determined as commodity predetermined number
Whether the account of user receives favor information, if the account for detecting the user receives favor information, judges institute
Whether the type for stating commodity belongs to the type of merchandise as defined in the favor information, judges whether the commodity ticket reserving time belongs to institute
The up time as defined in favor information is stated, judges whether the commodity predetermined number meets quantity as defined in the favor information
It is required that;If three judging results above are true, it is determined that the favor information meets requirement, needs in conjunction with described preferential
Information determines the amount of money of the actual needs payment of the commodity, when therefore, it is necessary to according to the favor information, commodity reservation
Between and the commodity predetermined number, generate the valid order of the commodity.
As an alternative embodiment, after step S15, the method also includes:
Receive the order operation instruction for valid order input;
According to the merchandise news and order operation instruction in the valid order, the inventory of the commodity is updated
Amount.
Wherein, the order operation instruction includes submitting order instruction and instruction of cancelling an order.
Wherein, the merchandise news includes but is not limited to the type of merchandise and commodity amount.
In the optional embodiment, when receiving the submission order instruction for valid order input, really
Merchandise news in the fixed valid order, then updates the quantity in stock of the commodity, such as: if the quantity in stock of commodity A is 5,
The predetermined number of commodity A is 3, after update in the valid order, and the quantity in stock of commodity A is 2;When receive for it is described effectively
Cancelling an order when instructing for order input, determines the merchandise news in the valid order, then updates the inventory of the commodity
Amount, such as: if the quantity in stock of commodity A is 2, the predetermined number of commodity A is 3, after update in the valid order, the library of commodity A
Storage is 5;Wherein, the minimum value of the quantity in stock is 0.
As an alternative embodiment, after step S15, the method also includes:
Non- pay status is in after detecting the valid order in the first preset time and before the second preset time
When, prompt information is sent to the user, wherein the prompt information is default described second for prompting the user to need
Delivery operation was carried out to the valid order before time;
When detecting the valid order after second preset time in non-pay status, cancel described effective
Order.
It is described according to the commodity ticket reserving time and the commodity predetermined number in the optional embodiment, it is raw
After valid order at the commodity, the user needs to carry out the valid order of the commodity within time limit regular hour
Delivery operation, otherwise the valid order of the commodity can be cancelled automatically by system.2 times of generation in the embodiment of the present invention, one
A is reminder time (the first preset time), the other is the order out-of-service time (the second preset time), it is described second it is default when
Between it is more late than first preset time a period of time.System can obtain at any time the state of the valid order, if detecting
The valid order after the first preset time and before the second preset time be in non-pay status when, send prompt information to
The user prompts the user to need to carry out delivery operation to the valid order before second preset time;Work as inspection
Measure the valid order after second preset time in non-pay status when, cancel the valid order.Such as: if
The generation time of the valid order be 9:00, can according to default rule (such as reminder time be after five minutes, order lose
Imitating the time is after ten minutes), the first preset time 9:05 is generated, and generate the second preset time 9:10;If described effectively order
It singly is in non-pay status in 9:05, prompt information is generated and sent to the user, the user is prompted to need before 9:10
Delivery operation is carried out to the valid order, if the valid order is in non-pay status in 9:10, system cancels institute automatically
State valid order.
In the method flow described in Fig. 1, commodity can be generated according to commodity ticket reserving time and commodity predetermined number
Valid order.As it can be seen that according to the relative production information of commodity determine commodity can the ticket reserving time and can predetermined number, can be with
Be accurately controlled ticket reserving time and the reservation amount of commodity, it is ensured that commodity can be completed within the ticket reserving time, without with
The case where commodity can not be completed in the given time after family places an order, so as to ensure the validity of order.
The above is only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, for
For those skilled in the art, without departing from the concept of the premise of the invention, improvement, but these can also be made
It all belongs to the scope of protection of the present invention.
Fig. 2 is referred to, Fig. 2 is a kind of functional block diagram of the preferred embodiment of order generating means disclosed by the invention.
In some embodiments, the order generating means are run in server.The order generating means can wrap
Include multiple functional modules as composed by program code segments.The program code of each program segment in the order generating means can
To be stored in memory, and as performed by least one processor, to execute the portion in order generation method described in Fig. 1
Point or Overall Steps.
In the present embodiment, function of the order generating means according to performed by it can be divided into multiple function moulds
Block.The functional module may include: receiving module 201, the first determining module 202, the second determining module 203 and generation module
204.The so-called module of the present invention, which refers to, a kind of performed by least one processor and can complete fixed function
Series of computation machine program segment, storage is in memory.It in some embodiments, will be subsequent about the function of each module
It is described in detail in embodiment.
Receiving module 201, for receiving the tally order for being directed to commodity, wherein carried in the tally order described
The relative production information of commodity.
Wherein, the relative production information includes: the unit production duration of the commodity, may participate in what the commodity made
The quantity in stock of units and the commodity.Wherein, unit production duration refers to that a commodity were produced out is wanted
The time of cost;The units is number or number of devices, one or individual equipment make a commodity the time it takes
May be different, i.e., one makes duration from the unit that individual equipment may correspond to different commodity;The quantity in stock refers to quotient
The quantity that product have been made in advance.
First determining module 202, for determining that the first of the commodity can the ticket reserving time according to the relative production information
And described first can the ticket reserving time corresponding first can predetermined number;
Wherein, because each can the units that may participate in commodity production of ticket reserving time may different, Mei Geke
The reservation commodity amount of ticket reserving time may be different, so, each can the ticket reserving time can predetermined number may be different.
Therefore, in addition to the determination commodity first can the ticket reserving time, be also predefined described first can the ticket reserving time corresponding first can
Predetermined number.
Second determining module 203, for that can be determined as indicated by the instruction of received first choice first ticket reserving time
The commodity ticket reserving time, and by indicated by received second selection instruction first can predetermined number be determined as commodity subscribe number
Amount.
In one embodiment, the functional module can also include display module, for described in display in the user interface
First can the ticket reserving time the first Option Box and described first can predetermined number the second Option Box.
Wherein, the first choice that first Option Box can be used for receiving user's input is instructed to input one or more institutes
Stating first can the ticket reserving time.
Wherein, described the first of second Option Box can predetermined number correspond to selected in the first choice frame it is described
First can the ticket reserving time.For example, if selected in the first choice frame described first can the ticket reserving time can predetermined number for
9, i.e., described first can predetermined number be set (1,2,3,4,5,6,7,8,9) in any one value, then second option
Selectable value (described first can predetermined number) in frame is 1 to 9 (selectable value is integer).
In the embodiment of the present invention, user can with check that all of the commodity can the ticket reserving time in first Option Box
I.e. all described first can the ticket reserving time, and first choice instruction can be inputted by clicking, select one of them described the
One can the ticket reserving time, system can receive first choice instruction, and the first of first choice instruction instruction can be subscribed
Time is determined as the commodity ticket reserving time.
In the embodiment of the present invention, user can check the commodity in first Option Box in second Option Box
The first of middle selection can the ticket reserving time corresponding first can predetermined number, and can choose input predetermined number (described first can
Predetermined number).
Generation module 204 generates having for the commodity according to the commodity ticket reserving time and the commodity predetermined number
Imitate order.
Wherein, the valid order includes the type of the commodity, the commodity ticket reserving time, commodity reservation number
Amount, the amount of money for needing to pay etc..
In the embodiment of the present invention, the unit price of the commodity can inquire in the database, can be according to the commodity
The monovalent and described commodity predetermined number can calculate the amount of money for needing to pay, and then improve order information, generate the quotient
The valid order of product.
As an alternative embodiment, the relative production information include: the commodity unit production duration, can
Participate in the units of commodity production and the quantity in stock of the commodity, the units is number or number of devices, described
First determining module 202 includes:
Submodule is determined, for for the period each of preset multiple periods, initial time to be greater than
The period of current time is determined as target time section, wherein each period includes initial time and end
Time;
The determining submodule is also used to make duration according to the unit of the commodity and may participate in the commodity production
Units, determine each target time section makes commodity amount;
The determining submodule, be also used to according to the commodity amount of reservation of the quantity in stock, the target time section with
And it is described make commodity amount, determine the commodity in each target time section can predetermined number;
Judging submodule judges the commodity in the target time section for being directed to each target time section
Can predetermined number whether be greater than preset quantity threshold value;
The determining submodule, if be also used to the commodity the target time section can predetermined number be greater than present count
Measure threshold value, determine that the target time section is the commodity first can the ticket reserving time, and determine the commodity described the
One can the ticket reserving time can predetermined number be described first can the ticket reserving time corresponding first can predetermined number.
Where it is assumed that the unit production duration of some commodity is T, the list of commodity production may participate in some period
Digit is H, and the time span (i.e. preset time interval) of the period is M, and the quantity in stock of the commodity is A, and the commodity are at this
The commodity amount of reservation of period is N0, then calculating the commodity in the formula for making commodity amount NN of the period
Are as follows: NN=M/T*H;Calculate the commodity the period can predetermined number NR formula are as follows: NR=NN-N0+A.
In the optional embodiment, system can be according to preset business hours and preset time interval, really
Fixed multiple periods are preset multiple periods.Such as: business hours 9:00-17:00, time interval are 2 hours, that
It can determine preset multiple periods are as follows: 9:00-11:00,11:00-13:00,13:00-15:00,15:00-17:00.
Each period includes initial time and end time, for example, the initial time of this period of 9:00-11:00 is 9:00,
End time is 11:00.System is it needs to be determined that the period that initial time is greater than current time is target time section, in conjunction with above
Example, it is assumed that current time 11:30, then target time section are as follows: 13:00-15:00 and 15:00-17:00.According to institute
Unit Production Time and the corresponding units that may participate in commodity production of each object time of commodity are stated, it can be with
Determine that the commodity make commodity amount in each target time section, then according to the quantity in stock of the commodity, institute
Commodity are stated in the commodity amount of reservation of each target time section and commodity amount can be made, can determine the commodity
In each target time section can predetermined number.Wherein, it is described can predetermined number need to carry out rounding processing, such as: meter
Calculate can predetermined number be 1.1 or 1.9, finally determine can predetermined number be all 1.In the embodiment of the present invention, preset
Amount threshold be 0, the even described target time section can predetermined number be greater than 0, the target time section can be determined for institute
State commodity first can ticket reserving time;And determine the commodity described first can the ticket reserving time can predetermined number be institute
State first can the ticket reserving time corresponding first can predetermined number.
As an alternative embodiment, second determining module 203 will be indicated by received second selection instruction
First can predetermined number be determined as the mode of commodity predetermined number specifically:
It determines that the commodity are commodity sales promotion when including promotion rule in the item property, judges that the commodity are subscribed
Whether quantity meets the promotion rule of the commodity sales promotion;
If the commodity predetermined number is unsatisfactory for the promotion rule of the commodity sales promotion, judge whether the user is registration
User;
If the user is registration user, the commodity predetermined number is changed to the promotion number of the promotion rule instruction
Amount.
In the optional embodiment, can detecte whether the commodity are commodity sales promotion, if the commodity are promotion
Commodity, then judge whether first quantity meets the promotion rule of the commodity sales promotion, and it is full that promotion rule generally refers to commodity
Sufficient certain amount can obtain the preferential of price.If first quantity is unsatisfactory for the promotion rule of the commodity sales promotion, sentence
Whether the user of breaking is registration user, if the user is to register user, proves that the user can participate in the promotion
The promotion amount can be determined as commodity predetermined number, wherein the promotion amount belongs to first can be pre- by the activity of commodity
Order quantity (promotion amount cannot beyond described first can predetermined number range), show in the valid order of the commodity
Price be system combination promotion rule determine actual needs payment the amount of money.User can determine to want according to the needs of itself
Advertising campaign is not participated in, predetermined number can be reselected.
As an alternative embodiment, the order generating means can also include:
First judgment module determines the commodity for first determining module 202 according to the relative production information
First the ticket reserving time and described first the ticket reserving time corresponding first can can judge the commodity after predetermined number
Type whether there are many;
First determining module 202, if being also used to there are many types of the commodity, according to the of a variety of commodity
One can the ticket reserving time, determine a variety of commodity can ticket reserving time intersection, it is described can ticket reserving time intersection it is described first choosing
It selects and is indicated in instruction and be confirmed as the commodity ticket reserving time;
First determining module 202, if be also used to it is described can ticket reserving time intersection be not it is empty, determine that described first can be pre-
Order in quantity with it is described can the corresponding target of ticket reserving time intersection can predetermined number, the target can predetermined number described second
It is indicated in selection instruction and is confirmed as commodity predetermined number
The display module can show described first can the ticket reserving time the first Option Box and described first can subscribe number
The mode of second Option Box of amount, comprising:
Described in display can ticket reserving time intersection the first Option Box and the target can predetermined number the second Option Box;
Second determining module 203 can be determined as quotient for indicated by the instruction of received first choice first the ticket reserving time
The product ticket reserving time, specifically:
The first choice instruction inputted in first Option Box according to user, by first choice instruction instruction
Can ticket reserving time intersection be determined as the commodity ticket reserving time;
Second determining module 203 by indicated by received second selection instruction first can predetermined number be determined as quotient
Product predetermined number, specifically:
According to the second selection instruction that the user inputs in second Option Box, second selection instruction is referred to
The target shown can predetermined number be determined as commodity predetermined number.
Wherein, it is described can ticket reserving time intersection may be sky, if it is described can ticket reserving time intersection be not it is empty, it is described can be pre-
Order time intersection include one first can ticket reserving time or multiple first can the ticket reserving time.
In the optional embodiment, described according to the relative production information, determine that the first of the commodity can
Ticket reserving time and described first the ticket reserving time corresponding first it can need to judge that the type of the commodity is after predetermined number
There are many no, because the unit production duration of different types of commodity, may participate in the units of commodity production and described
The quantity in stock of commodity all may not be identical, thus the different types of commodity can the ticket reserving time may inconsistent, inhomogeneity
The commodity of type it is same can the ticket reserving time can predetermined number may also be inconsistent.If the type of the commodity has more
Kind, need according to the first of a variety of commodity can the ticket reserving time, determine a variety of commodity can ticket reserving time intersection.Than
Such as: assuming that the commodity include commodity A and commodity B, described the first of commodity A can be 9:00-10:00,10 ticket reserving time:
Described the first of 00-11:00 and 11:00-12:00 commodity B can be 10:00-11:00 and 11:00-12:00 the ticket reserving time, then
A variety of commodity can ticket reserving time intersection be (10:00-11:00,11:00-12:00).
If a variety of commodity can ticket reserving time intersection be not it is empty, determine described first can in predetermined number with it is described can
The corresponding target of ticket reserving time intersection can predetermined number, in conjunction with above can ticket reserving time intersection example, the target can subscribe
Quantity include commodity A 10:00-11:00 corresponding described first can predetermined number and in 11:00-12:00 it is corresponding described
First can predetermined number, commodity B can predetermined number and at 11:00-12:00 pairs in 10:00-11:00 corresponding described first
Described first answered can predetermined number.
Received first choice can be instructed indicated first that can be determined as the commodity ticket reserving time ticket reserving time by system,
And by indicated by received second selection instruction first can predetermined number be determined as commodity predetermined number.In conjunction with the time above
The example of intersection, the optional ticket reserving time is 10:00-11:00 and 11:00-12:00 in first Option Box, in the use
After family has chosen the ticket reserving time, user can select the commodity in second Option Box for every kind of commodity
Predetermined number (target can predetermined number).
As an alternative embodiment, the order generating means can also include:
Second judgment module, it is defeated in second Option Box according to the user for second determining module 203
The second selection instruction entered, by second selection instruction instruction first can predetermined number be determined as commodity predetermined number it
Afterwards, if detecting, the account of the user receives favor information, according to the type of the commodity, the commodity ticket reserving time with
And the commodity predetermined number, judge whether the favor information meets requirement;
The generation module 204 generates the commodity according to the commodity ticket reserving time and the commodity predetermined number
Valid order mode specifically:
If the favor information meets requirement, according to the favor information, commodity ticket reserving time and described
Commodity predetermined number generates the valid order of the commodity.
In the optional embodiment, second selection inputted in second Option Box according to the user
Instruction can detecte the first of second selection instruction instruction described after predetermined number is determined as commodity predetermined number
Whether the account of user receives favor information, if the account for detecting the user receives favor information, judges institute
Whether the type for stating commodity belongs to the type of merchandise as defined in the favor information, judges whether the commodity ticket reserving time belongs to institute
The up time as defined in favor information is stated, judges whether the commodity predetermined number meets quantity as defined in the favor information
It is required that;If three judging results above are true, it is determined that the favor information meets requirement, needs in conjunction with described preferential
Information determines the amount of money of the actual needs payment of the commodity, when therefore, it is necessary to according to the favor information, commodity reservation
Between and the commodity predetermined number, generate the valid order of the commodity.
As an alternative embodiment, the receiving module 201, is also used to the generation module according to the commodity
Ticket reserving time and the commodity predetermined number after the valid order for generating the commodity, receive and are directed to the valid order
The order operation of input instructs;
The order generating means can also include:
Update module, for updating institute according to the merchandise news and order operation instruction in the valid order
State the quantity in stock of commodity.
Wherein, the order operation instruction includes submitting order instruction and instruction of cancelling an order.
Wherein, the merchandise news includes but is not limited to the type of merchandise and commodity amount.
In the optional embodiment, when receiving the submission order instruction for valid order input, really
Merchandise news in the fixed valid order, then updates the quantity in stock of the commodity, such as: if the quantity in stock of commodity A is 5,
The predetermined number of commodity A is 3, after update in the valid order, and the quantity in stock of commodity A is 2;When receive for it is described effectively
Cancelling an order when instructing for order input, determines the merchandise news in the valid order, then updates the inventory of the commodity
Amount, such as: if the quantity in stock of commodity A is 2, the predetermined number of commodity A is 3, after update in the valid order, the library of commodity A
Storage is 5;Wherein, the minimum value of the quantity in stock is 0.
As an alternative embodiment, the order generating means can also include:
Sending module, for the generation module 204 according to the commodity ticket reserving time and the commodity predetermined number,
After the valid order for generating the commodity, when detecting the valid order after the first preset time and when second is default
Between before when being in non-pay status, send prompt information to the user, wherein the prompt information is for prompting the user
It needs to carry out delivery operation to the valid order before second preset time;
Cancel module, for being in non-pay status after detecting the valid order in second preset time
When, cancel the valid order.
It is described according to the commodity ticket reserving time and the commodity predetermined number in the optional embodiment, it is raw
After valid order at the commodity, the user needs to carry out the valid order of the commodity within time limit regular hour
Delivery operation, otherwise the valid order of the commodity can be cancelled automatically by system.2 times of generation in the embodiment of the present invention, one
A is reminder time (the first preset time), the other is the order out-of-service time (the second preset time), it is described second it is default when
Between it is more late than first preset time a period of time.System can obtain at any time the state of the valid order, if detecting
The valid order after the first preset time and before the second preset time be in non-pay status when, send prompt information to
The user prompts the user to need to carry out delivery operation to the valid order before second preset time;Work as inspection
Measure the valid order after second preset time in non-pay status when, cancel the valid order.Such as: if
The generation time of the valid order be 9:00, can according to default rule (such as reminder time be after five minutes, order lose
Imitating the time is after ten minutes), the first preset time 9:05 is generated, and generate the second preset time 9:10;If described effectively order
It singly is in non-pay status in 9:05, prompt information is generated and sent to the user, the user is prompted to need before 9:10
Delivery operation is carried out to the valid order, if the valid order is in non-pay status in 9:10, system cancels institute automatically
State valid order.
In the order generating means described in Fig. 2, it can be subscribed according to the commodity ticket reserving time and the commodity
Quantity generates the valid order of the commodity.As it can be seen that according to the relative production information of commodity determine commodity can the ticket reserving time with
And can predetermined number, ticket reserving time and the reservation amount of commodity can be accurately controlled, it is ensured that commodity can be within the ticket reserving time
The case where completion, commodity can not be completed in the given time after placing an order without user, so as to ensure order
Validity.
As shown in figure 3, Fig. 3 is the structural representation of the server for the preferred embodiment that the present invention realizes order generation method
Figure.The server 3 include memory 31, at least one processor 32, be stored in the memory 31 and can it is described extremely
The computer program 33 and at least one communication bus 34 run on a few processor 32.
It will be understood by those skilled in the art that schematic diagram shown in Fig. 3 is only the example of the server 3, not structure
The restriction of the pairs of server 3 may include perhaps combining certain components or not than illustrating more or fewer components
Same component, such as the server 3 can also include input-output equipment, network access equipment etc..
At least one described processor 32 can be central processing unit (Central Processing Unit, CPU),
It can also be other general processors, digital signal processor (Digital Signal Processor, DSP), dedicated integrated
Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..The processor 32 can be microprocessor or the processor 32 is also possible to any conventional processor
Deng the processor 32 is the control centre of the server 3, utilizes each of various interfaces and the entire server 3 of connection
A part.
The memory 31 can be used for storing the computer program 33 and/or module/unit, and the processor 32 passes through
Operation executes the computer program and/or module/unit being stored in the memory 31, and calls and be stored in memory
Data in 31 realize the various functions of the server 3.The memory 31 can mainly include storing program area and storage number
According to area, wherein storing program area can application program needed for storage program area, at least one function (for example sound plays function
Energy, image player function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio number according to server 3
According to, phone directory etc.) etc..In addition, memory 31 may include high-speed random access memory, it can also include non-volatile memories
Device, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatibility are solid
State memory device.
In conjunction with Fig. 1, the memory 31 in the server 3 stores multiple instruction to realize a kind of order generation side
The multiple instruction can be performed to realize in method, the processor 32:
Receive the tally order for commodity input, wherein the related system of the commodity is carried in the tally order
Make information;
According to the relative production information, determine that the first of the commodity can ticket reserving time and described first when can subscribe
Between corresponding first can predetermined number;
It can be determined as the commodity ticket reserving time ticket reserving time for indicated by the instruction of received first choice first;
By indicated by received second selection instruction first can predetermined number be determined as commodity predetermined number;
According to the commodity ticket reserving time and the commodity predetermined number, the valid order of the commodity is generated.
In a kind of optional embodiment, the relative production information include: the commodity unit production duration, can
Participate in the units of commodity production and the quantity in stock of the commodity, the units is number or number of devices, described
According to the relative production information, determine the commodity first can the ticket reserving time and described first can the ticket reserving time it is corresponding
First can predetermined number include:
For the period each of preset multiple periods, by initial time be greater than current time it is described when
Between section be determined as target time section, wherein each period includes initial time and end time;
Duration is made according to the unit of the commodity and may participate in the units of the commodity production, is determined each described
Target time section can make commodity amount;
According to the quantity in stock, the target time section the commodity amount of reservation and it is described make commodity amount,
Determine the commodity in each target time section can predetermined number;
For each target time section, judge the commodity the target time section can predetermined number it is whether big
In preset quantity threshold value;
If the commodity the target time section can predetermined number be greater than preset quantity threshold value, when determining the target
Between section be the commodity first can the ticket reserving time, and determine that the commodity can subscribe number described first the ticket reserving time
Amount for described first can the ticket reserving time corresponding first can predetermined number.
It is described according to the relative production information in a kind of optional embodiment, determine that the first of the commodity can
Ticket reserving time and described first can the ticket reserving time corresponding first can be after predetermined number, the processor 32 is executable described
Multiple instruction is to realize:
Judge the commodity type whether there are many;
If there are many types of the commodity, according to the first of a variety of commodity can the ticket reserving time, determine a variety of described
Commodity can ticket reserving time intersection, it is described can ticket reserving time intersection indicated and be confirmed as in first choice instruction
The commodity ticket reserving time;
If it is described can ticket reserving time intersection be not it is empty, determine that described first can hand in predetermined number with described the ticket reserving time
Collect corresponding target can predetermined number, the target can predetermined number indicated and be determined in second selection instruction
For commodity predetermined number.
In a kind of optional embodiment, it is described can predetermined number by indicated by received second selection instruction first
Being determined as commodity predetermined number includes:
It determines that the commodity are commodity sales promotion when including promotion rule in the item property, judges that the commodity are subscribed
Whether quantity meets the promotion rule of the commodity sales promotion;
If the commodity predetermined number is unsatisfactory for the promotion rule of the commodity sales promotion, judge whether the user is registration
User;
If the user is registration user, the commodity predetermined number is changed to the promotion number of the promotion rule instruction
Amount.
In a kind of optional embodiment, number can be subscribed by indicated by received second selection instruction first described
After amount is determined as commodity predetermined number, the multiple instruction is can be performed to realize in the processor 32:
If detecting, the account of the user receives favor information, is subscribed according to the type of the commodity, the commodity
Time and the commodity predetermined number, judge whether the favor information meets requirement;
It is described according to the commodity ticket reserving time and the commodity predetermined number, generate the valid order packet of the commodity
It includes:
If the favor information meets requirement, according to the favor information, commodity ticket reserving time and described
Commodity predetermined number generates the valid order of the commodity.
In a kind of optional embodiment, after the valid order for generating the commodity, the processor 32 can be held
The multiple instruction of row is to realize:
Receive the order operation instruction for valid order input;
According to the merchandise news and order operation instruction in the valid order, the inventory of the commodity is updated
Amount.
In a kind of optional embodiment, after the valid order for generating the commodity, the processor 32 can
The multiple instruction is executed to realize:
Non- pay status is in after detecting the valid order in the first preset time and before the second preset time
When, prompt information is sent to the user;
When detecting the valid order after second preset time in non-pay status, cancel described effective
Order.
Specifically, the processor 32 can refer to the concrete methods of realizing of above-metioned instruction related in Fig. 1 corresponding embodiment
The description of step, this will not be repeated here.
In the server 3 described in Fig. 3, can according to the commodity ticket reserving time and the commodity predetermined number,
Generate the valid order of the commodity.As it can be seen that according to the relative production information of commodity determine commodity can ticket reserving time and can
Predetermined number can be accurately controlled ticket reserving time and the reservation amount of commodity, it is ensured that and commodity can be completed within the ticket reserving time,
The case where commodity can not be completed in the given time after placing an order without user, so as to ensure the effective of order
Property.
If the integrated module/unit of the server 3 is realized in the form of SFU software functional unit and as independent production
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention realizes
All or part of the process in above-described embodiment method can also instruct relevant hardware to complete by computer program,
The computer program can be stored in a computer readable storage medium, the computer program when being executed by processor,
The step of above-mentioned each embodiment of the method can be achieved.Wherein, the computer program includes computer program code, the calculating
Machine program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer
Readable medium may include: any entity or device, recording medium, USB flash disk, the movement that can carry the computer program code
Hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory
(RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate
It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice
When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier wave letter
Number and telecommunication signal.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module
It divides, only a kind of logical function partition, there may be another division manner in actual implementation.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the present invention.Any attached associated diagram label in claim should not be considered as right involved in limitation to want
It asks.Furthermore, it is to be understood that one word of " comprising " does not exclude other units or steps, odd number is not excluded for plural number.It is stated in system claims
Multiple units or device can also be implemented through software or hardware by a unit or device.Second equal words are used to table
Show title, and does not indicate any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference
Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention
Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.
Claims (10)
1. a kind of order generation method, which is characterized in that the order generation method includes:
Receive commodity tally order, wherein the relative production information of the commodity is carried in the tally order;
According to the relative production information, determine that the first of the commodity can ticket reserving time and described first can the ticket reserving time pair
First answered can predetermined number;
It can be determined as the commodity ticket reserving time ticket reserving time for indicated by the instruction of received first choice first;
By indicated by received second selection instruction first can predetermined number be determined as commodity predetermined number;
According to the commodity ticket reserving time and the commodity predetermined number, the valid order of the commodity is generated.
2. order generation method according to claim 1, which is characterized in that the relative production information includes: the quotient
The unit production duration of product, the quantity in stock that may participate in units and the commodity that the commodity make, the units are
Number or number of devices, it is described according to the relative production information, determine that the first of the commodity can ticket reserving time and described
First can the ticket reserving time corresponding first can predetermined number include:
For the period each of preset multiple periods, initial time is greater than to the period of current time
It is determined as target time section, wherein each period includes initial time and end time;
Duration is made according to the unit of the commodity and may participate in the units of the commodity production, determines each target
Period makes commodity amount;
According to the quantity in stock, the target time section the commodity amount of reservation and it is described make commodity amount, determine
The commodity can predetermined number each target time section;
For each target time section, judge the commodity the target time section can predetermined number whether be greater than it is pre-
If amount threshold;
If the commodity the target time section can predetermined number be greater than preset quantity threshold value, determine the target time section
For the commodity first can the ticket reserving time, and determine the commodity described first can the ticket reserving time can predetermined number be
Described first can the ticket reserving time corresponding first can predetermined number.
3. order generation method according to claim 1, which is characterized in that it is described according to the relative production information, really
The first of the fixed commodity can the ticket reserving time and described first can the ticket reserving time corresponding first can be described after predetermined number
Method further include:
Judge the commodity type whether there are many;
If there are many types of the commodity, according to the first of a variety of commodity can the ticket reserving time, determine a variety of commodity
Can ticket reserving time intersection, it is described can ticket reserving time intersection indicated in first choice instruction and be confirmed as commodity
Ticket reserving time;
If it is described can ticket reserving time intersection be not it is empty, determine described first can in predetermined number with it is described can ticket reserving time intersection pair
The target answered can predetermined number, the target can predetermined number indicated in second selection instruction and be confirmed as quotient
Product predetermined number.
4. order generation method according to claim 1, which is characterized in that described that received second selection instruction is signified
First shown can predetermined number be determined as commodity predetermined number and include:
It determines that the commodity are commodity sales promotion when including promotion rule in the item property, judges the commodity predetermined number
Whether the promotion rule of the commodity sales promotion is met;
If the commodity predetermined number is unsatisfactory for the promotion rule of the commodity sales promotion, judge whether the user is that registration is used
Family;
If the user is registration user, the commodity predetermined number is changed to the promotion amount of the promotion rule instruction.
5. order generation method according to claim 1, which is characterized in that described by received second selection instruction institute
First indicated can after predetermined number is determined as commodity predetermined number, the method also includes:
If detecting, the account of the user receives favor information, according to the type of the commodity, the commodity ticket reserving time
And the commodity predetermined number, judge whether the favor information meets requirement;
It is described to include: according to the commodity ticket reserving time and the commodity predetermined number, the valid order for generating the commodity
If the favor information meets requirement, according to the favor information, the commodity ticket reserving time and the commodity
Predetermined number generates the valid order of the commodity.
6. order generation method according to any one of claim 1 to 5, which is characterized in that described to generate the commodity
Valid order after, the method also includes:
The order operation received for the valid order instructs;
According to the merchandise news and order operation instruction in the valid order, the quantity in stock of the commodity is updated.
7. order generation method according to any one of claim 1 to 5, which is characterized in that described to generate the commodity
Valid order after, the method also includes:
When detecting the valid order after the first preset time and before the second preset time in non-pay status, hair
Send prompt information to the user;
When detecting the valid order after second preset time in non-pay status, cancellation is described effectively to be ordered
It is single.
8. a kind of order generating means, which is characterized in that the order generating means include:
Receiving module, for receiving the tally order for being directed to commodity, wherein carry the phase of the commodity in the tally order
Close production information;
First determining module, for determining that the first of the commodity can ticket reserving time and institute according to the relative production information
State first can the ticket reserving time corresponding first can predetermined number;
Second determining module is subscribed for that can be determined as commodity the ticket reserving time for indicated by the instruction of received first choice first
Time, and by indicated by received second selection instruction first can predetermined number be determined as commodity predetermined number;
Generation module, for generating the effective of the commodity according to the commodity ticket reserving time and the commodity predetermined number
Order.
9. a kind of server, which is characterized in that the server includes processor and memory, and the processor is deposited for executing
The computer program stored in reservoir is to realize order generation method as claimed in any of claims 1 to 7 in one of claims.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has at least one
Instruction, at least one described instruction realize that order as claimed in any of claims 1 to 7 in one of claims generates when being executed by processor
Method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910364141.4A CN110070424B (en) | 2019-04-30 | 2019-04-30 | Order generation method, device, server and storage medium |
PCT/CN2019/118596 WO2020220647A1 (en) | 2019-04-30 | 2019-11-14 | Order generation method and device, server, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910364141.4A CN110070424B (en) | 2019-04-30 | 2019-04-30 | Order generation method, device, server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110070424A true CN110070424A (en) | 2019-07-30 |
CN110070424B CN110070424B (en) | 2021-11-30 |
Family
ID=67370123
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910364141.4A Active CN110070424B (en) | 2019-04-30 | 2019-04-30 | Order generation method, device, server and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110070424B (en) |
WO (1) | WO2020220647A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020220647A1 (en) * | 2019-04-30 | 2020-11-05 | 深圳春沐源控股有限公司 | Order generation method and device, server, and storage medium |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113516529B (en) * | 2021-04-26 | 2024-03-26 | 新东方教育科技集团有限公司 | Abnormal order determining method and device, storage medium and electronic equipment |
CN113596137A (en) * | 2021-07-26 | 2021-11-02 | 北京易数科技有限公司 | Data processing method and device based on Flink, storage medium and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020087419A1 (en) * | 2000-12-29 | 2002-07-04 | Johan Andersson | Equipment procurement method and system |
CN102231175A (en) * | 2011-07-08 | 2011-11-02 | 薛晖 | Restaurant information control system and restaurant information processing method |
CN102495971A (en) * | 2011-12-19 | 2012-06-13 | 北京热点联盟科技有限公司 | Self-help type dish ordering method and system of restaurant intelligent terminal based on wireless network |
CN104376516A (en) * | 2014-12-10 | 2015-02-25 | 张一鸣 | Multi-machine network system used for making serving time of restaurants accurate |
CN105469328A (en) * | 2015-11-17 | 2016-04-06 | 朱文清 | Dinning waiting time calculation method |
CN106327368A (en) * | 2016-08-28 | 2017-01-11 | 桂林力拓信息科技有限公司 | Intelligent ordering method and system |
CN106447545A (en) * | 2016-11-14 | 2017-02-22 | 珠海优特物联科技有限公司 | Food and beverage order making method and making terminal |
CN107622394A (en) * | 2017-09-21 | 2018-01-23 | 网易(杭州)网络有限公司 | A kind of method of payment processes, medium, device and computing device |
CN109214866A (en) * | 2018-08-31 | 2019-01-15 | 深圳春沐源控股有限公司 | The preferential promotion management method and device of commodity, computer equipment, storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9324083B2 (en) * | 2004-11-18 | 2016-04-26 | Dean Thomas McEvoy | Booking system and method |
CN104463725A (en) * | 2014-12-18 | 2015-03-25 | 北海飞九天电子科技有限公司 | Dish order system |
CN106651527A (en) * | 2016-12-29 | 2017-05-10 | 江西博瑞彤芸科技有限公司 | Multi-process order information processing method |
CN107331058A (en) * | 2017-06-22 | 2017-11-07 | 广州创立起科技有限公司 | A kind of automatic vending coffee machine that can be preengage online and its selling system, method |
KR102116312B1 (en) * | 2018-04-18 | 2020-06-02 | 주식회사 퀸즈스마일 | Brokerage system for ordering product and brokerage method using the same |
CN110070424B (en) * | 2019-04-30 | 2021-11-30 | 深圳春沐源控股有限公司 | Order generation method, device, server and storage medium |
-
2019
- 2019-04-30 CN CN201910364141.4A patent/CN110070424B/en active Active
- 2019-11-14 WO PCT/CN2019/118596 patent/WO2020220647A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020087419A1 (en) * | 2000-12-29 | 2002-07-04 | Johan Andersson | Equipment procurement method and system |
CN102231175A (en) * | 2011-07-08 | 2011-11-02 | 薛晖 | Restaurant information control system and restaurant information processing method |
CN102495971A (en) * | 2011-12-19 | 2012-06-13 | 北京热点联盟科技有限公司 | Self-help type dish ordering method and system of restaurant intelligent terminal based on wireless network |
CN104376516A (en) * | 2014-12-10 | 2015-02-25 | 张一鸣 | Multi-machine network system used for making serving time of restaurants accurate |
CN105469328A (en) * | 2015-11-17 | 2016-04-06 | 朱文清 | Dinning waiting time calculation method |
CN106327368A (en) * | 2016-08-28 | 2017-01-11 | 桂林力拓信息科技有限公司 | Intelligent ordering method and system |
CN106447545A (en) * | 2016-11-14 | 2017-02-22 | 珠海优特物联科技有限公司 | Food and beverage order making method and making terminal |
CN107622394A (en) * | 2017-09-21 | 2018-01-23 | 网易(杭州)网络有限公司 | A kind of method of payment processes, medium, device and computing device |
CN109214866A (en) * | 2018-08-31 | 2019-01-15 | 深圳春沐源控股有限公司 | The preferential promotion management method and device of commodity, computer equipment, storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020220647A1 (en) * | 2019-04-30 | 2020-11-05 | 深圳春沐源控股有限公司 | Order generation method and device, server, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110070424B (en) | 2021-11-30 |
WO2020220647A1 (en) | 2020-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109389431A (en) | Distribution method, device, electronic equipment and the readable storage medium storing program for executing of discount coupon | |
CN110070424A (en) | Order generation method, device, server and storage medium | |
CN105960656A (en) | Methods and systems for creating data-driven attribution model for assigning attribution credit to multiple events | |
CN107547214A (en) | Group's reading method, electronic equipment and computer-readable storage medium based on e-book | |
WO2018024844A1 (en) | Interactive platform for the exchange of commoditized products | |
CN108537576A (en) | Community's advertisement placement method, device, terminal device and storage medium | |
CN106415639A (en) | Advertisement price discounting | |
US10387828B2 (en) | Electronic product information display and method thereof | |
KR20120113975A (en) | System and method for distributing profit | |
CN103679479A (en) | Method, system, server and client for data processing of business object | |
CN103714509A (en) | Method and system for carrying out data interaction between client and server | |
CN109583945A (en) | A kind of method and apparatus of advertising resource distribution | |
CN109493075A (en) | For determining the method and apparatus of virtual resource object | |
CN110490714A (en) | A kind of Gross Profit from Sales real time updating method and system | |
CN108985810A (en) | A kind of method and apparatus that party in request's platform carries out advertisement dispensing | |
KR102247682B1 (en) | System for managemeting Allowance according to Distribution ratio and Driving method thereof | |
KR101894256B1 (en) | Social seller system | |
KR101312406B1 (en) | Online donation method and system | |
CN108053341A (en) | Marketing management method, server, client and the system of smart travel | |
US20230030667A1 (en) | System and method for promoting product sales | |
KR20190102550A (en) | Donation entrepreneurial marketing system | |
JP7324440B2 (en) | Information provision device and information provision method | |
KR101139961B1 (en) | Online donation method and system | |
CN104765818A (en) | Data processing method and system | |
CN110349023A (en) | A kind of independent accounting method, apparatus and electronic equipment based on subdivision time granularity |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220429 Address after: 517000 room 317-1, enterprise service center building, No. 8, Longling Third Road, Longling Industrial Park, Yuancheng District, Heyuan City, Guangdong Province Patentee after: HEYUAN HONGJIA AGRICULTURAL TECHNOLOGY CO.,LTD. Address before: 518052 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong Patentee before: SHENZHEN SPRINGWOODS HOLDING Co.,Ltd. |
|
TR01 | Transfer of patent right |