The content of the invention
In view of this, the application provides a kind of lot reserving method and device, with solve in the prior art due to
The moment of product opening quotation is rushed to purchase, and causes system pressure excessive, and purchase success rate is low, poor user experience
Problem.
Specifically, the application is achieved by the following technical solution:
First aspect provides a kind of lot reserving method, and methods described includes:
Obtain participation same period lot reservation activity sells object;
It is determined that the lot reservation action message for selling object, the lot reservation action message includes:
Start subscription time and start the time of brining together;
By the lot reservation information for selling object by page presentation to user;
Multiple confirmation slips of object can be sold described in user's purchase by being received in the subscription time, wherein,
Multiple confirmation slips are not middle label confirmation slip;
Reach it is described bring the time together when, not middle label reservation is randomly selected from multiple confirmation slips
It is single, and bring the not middle label confirmation slip being drawn into together and corresponding sell object;
Not middle label confirmation slip places an order described in after to brining together, wherein, the confirmation slip after placing an order is
Middle label confirmation slip;
The user placed an order is shown on the webpage.
Optionally, it is described that the multiple of user's purchase object are received in the beginning subscription time
Confirmation slip, including:
The user is received by way of page table list in the beginning subscription time and buys the object
Multiple confirmation slips.
Optionally, it is described reach it is described start to bring together the time when, taken out at random from multiple confirmation slips
Take not middle label confirmation slip, and bring together be drawn into it is described it is not middle label confirmation slip and it is corresponding sell object,
Including:
Reach it is described start to bring together the time when, sell object by all participation lot reservation activities to arrange
The mode of table is loaded into internal memory, and by the confirmation slip of multiple not middle label respectively in the way of list
It is loaded into internal memory;
Object record can be sold by taking out one in turn from can sell list object;
According to it is described sell object record judge take out described in can sell object whether also have can sell stock;
If any stock can be sold, then the confirmation slip list of not middle label is obtained from internal memory;
Not middle label confirmation slip is randomly selected from the confirmation slip list of the not middle label;
The not middle label confirmation slip randomly selected is deleted in the confirmation slip list of the not middle label.
Optionally, it is described reach it is described start to bring together the time when, taken out at random from multiple confirmation slips
Take not middle label confirmation slip, and bring together be drawn into it is described it is not middle label confirmation slip and it is corresponding sell object,
Also include:
Judgement can sell whether list object is empty, described suitable from can sell list object if being not sky
The step of sequence taking-up one can sell object record.
Optionally, in addition to:
The confirmation slip carry out activity management and control and activity of centering label are guarded.
Second aspect provides a kind of lot device for displaying predetermined, and described device includes:
Acquiring unit, object is sold for acquisition participation same period lot reservation activity;
Determining unit, for determining that action message is preengage in the lot that can sell object;The reservation of drawing lots
Action message includes:Start subscription time and start the time of brining together;
Display unit, for by the lot reservation information for selling object by page presentation to user;
Receiving unit, object can be sold for being received in the beginning subscription time described in user's purchase
Multiple confirmation slips, wherein, multiple confirmation slips are not middle label confirmation slip;
Bring unit together, for reach it is described start to bring together the time when, it is random from multiple confirmation slips
Extract not middle label confirmation slip, bring together be drawn into it is described it is not middle label confirmation slip and it is corresponding sell object,
Not middle label confirmation slip places an order described in after to brining together, wherein, the confirmation slip after placing an order is middle label
Confirmation slip;
Display unit, for showing the user placed an order on the webpage.
Optionally, the receiving unit, specifically for passing through page table list in the beginning subscription time
Mode receive multiple confirmation slips that the user buys the object.
Optionally, the unit of brining together includes:
Loading unit, for reach it is described start to bring together the time when, by it is all participation lot reservation activities
Object of selling be loaded into the way of list in internal memory, and by the confirmation slip of multiple not middle label point
Not be loaded into the way of list in internal memory;
Extraction unit, object record can be sold for taking out one in turn from can sell list object;
First judging unit, judges that can sell object described in taking-up is for that can sell object record according to
It is no also to sell stock;
Obtain subelement, for first judging unit judge described in can sell object have can sell stock when,
The confirmation slip list of not middle label is obtained from internal memory;
Extracting unit, for from it is described acquisition subelement obtain described in not middle label confirmation slip list in
Machine extracts not middle label confirmation slip;
Unit is deleted, is randomly selected not for being deleted in the confirmation slip list of the not middle label
Middle label confirmation slip.
Optionally, the unit of brining together also includes:
Second judging unit, for judging to sell whether list object is empty;
The extraction unit, be additionally operable to judge in second judging unit described in can sell list object and be not
Space-time, from it is described sell list object in take out one in turn and can sell object record.
Optionally, in addition to:Administrative unit, for centering label the confirmation slip carry out activity management and control and
Activity is guarded.
In the embodiment of the present application, the lot reservation information that can sell object is showed into user, all users are led to
Cross appointment mode to be bought, middle label user is that system is randomly selected.This not only reduces system pressure,
The fairness of purchase user is also enhanced, while also improving chance of success and the user's purchase of user's purchase
Satisfaction.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory,
The application can not be limited.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following retouches
State when being related to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.
Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the application
Formula.On the contrary, they be only be described in detail in such as appended claims, the application some in terms of phase one
The example of the apparatus and method of cause.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting this
Application." one kind ", " described " of singulative used in the application and appended claims
It is also intended to "the" including most forms, unless context clearly shows that other implications.It is also understood that
Term "and/or" used herein refer to and comprising it is one or more it is associated list any of project or
It is possible to combination.
It will be appreciated that though various letters may be described using term first, second, third, etc. in the application
Breath, but these information should not necessarily be limited by these terms.These terms are only used for same type of information area each other
Separate.For example, in the case where not departing from the application scope, the first information can also be referred to as the second information,
Similarly, the second information can also be referred to as the first information.Depending on linguistic context, word as used in this
" if " can be construed to " ... when " or " when ... when " or " in response to determine ".
Referring to Fig. 1, being a kind of flow chart of lot reserving method shown in the embodiment of the present application;Methods described
Including:
Step 101:Obtain participation same period lot reservation activity sells object;
In the step, system (i.e. background server etc.) receives each mechanism and sent by the form of file
Sell object salable items such as (such as, so-and-so stock) bonds, and record this and can sell entering for object
The time in storehouse.
Step 102:It is determined that the lot reservation action message for selling object, the lot reservation activity
Information includes:Start subscription time and start the time of brining together;
System sets this to sell object after acquisition can sell object according to the information for receiving keeper's transmission
Draw lots and preengage action message, the lot reservation action message includes:Start subscription time and start to bring together
Time;Be certainly not limited to this, can also be using other specification is included, such as, and the finish reservation time,
Time etc. is brought in end together, and the present embodiment is not restricted.That is, keeper passes through background query to need
The salable item to be set, then inputs the correlated activation information of salable item, the correlated activation information can
Including starting subscription time and starting the time of brining together, that is, to set reservation action message of drawing lots.
Step 103:By the lot reservation information for selling object by page presentation to user;
System can sell this pair after reservation action message of drawing lots is set, and before being arranged on beginning subscription time
The lot reservation information of elephant, to user, lot is shown in order to which user checks by page presentation on the page
Reservation activity.
Step 104:The many of object can be sold described in user's purchase by being received in the beginning subscription time
Individual confirmation slip, wherein, multiple confirmation slips are not middle label confirmation slip;
In the step, when beginning subscription time has been arrived in lot reservation activity, user can be in the page
Input the amount of money to participate in work to the details of this lot reservation activity, and by way of page table list
It is dynamic.I.e. system is received can sell multiple confirmation slips of object described in multiple user's purchases, wherein, Duo Gesuo
It is not middle label confirmation slip to state confirmation slip.
Wherein, in the embodiment, it can be connect in the beginning subscription time by way of page table list
Multiple confirmation slips that the user buys the object are received, it is of course also possible to receive in other way
Multiple confirmation slips.
Step 105:Reach it is described bring the time together when, randomly select one from multiple confirmation slips
Not middle label confirmation slip, and bring the not middle label confirmation slip being drawn into together and corresponding sell object;
Multiple confirmation slips of object can be sold for above-mentioned user purchase, the lot time started have been arrived, user is not
It can participate in lot reservation activity, and the confirmation slip of user is extracted by system is automated randomized, and bring together and take out automatically
The confirmation slip and movable product got.
Explanation is needed, randomly selecting in the embodiment can also be by way of the number of shaking extraction come real
It is existing.
Step 106:Not middle label confirmation slip places an order described in after to brining together, wherein, after placing an order
Confirmation slip be middle label confirmation slip;
System to brining together after described in it is not middle label reservation unitary call form ordering system interface place an order, wherein,
Confirmation slip after placing an order is middle label confirmation slip.
Step 107:The user placed an order is shown on the webpage.
Lot terminates, and system generation award winner list is announced on this page, that is, signs single in disclosing.
In the embodiment of the present application, the lot reservation information that can sell object is showed into user, all users are led to
Cross appointment mode to be bought, middle label user is that system is randomly selected.This not only reduces system pressure,
The fairness of purchase user is also enhanced, while also improving chance of success and the user's purchase of user's purchase
Satisfaction.
Optionally, in another embodiment, the embodiment is on the basis of above-described embodiment, methods described
It can also include:The confirmation slip carry out activity management and control and activity of centering label are guarded, wherein,
Activity management and control, is exactly a whole set of life cycle of the start to finish of management and control activity, activity start when
Hou Huixiang brings center transmission message together, notifies that brining center together opens a market wait lot brought together of drawing lots
Start;Center can be brought after activity end together to this and send message, notice brings center together to close this activity
Draw lots the market brought together, close confirmation slip of the institute either with or without middle label, then, drawn a lottery to SMS notification is sent
As a result, the award winner list of pdf forms is generated.
Activity is guarded, and is exactly periodically to fish for because intersystem communications is abnormal or overtime receipt of coming to nothing
Order removes the time of day of transaction system inquiry order.
Also referring to Fig. 2, the stream brought together of being drawn lots in a kind of lot reserving method provided for the embodiment of the present application
Cheng Tu, the embodiment is the specific refinement of step 105 in above-mentioned Fig. 1, and methods described includes:
Step 201:Reach it is described start to bring together the time when, by it is all participation lot reservation activities can
Object is sold to be loaded into internal memory in the way of list, and by the confirmation slip of multiple not middle label respectively with
The mode of list is loaded into internal memory;
Step 202:Judgement can sell whether list object is empty, if sky, perform step 209;Otherwise,
Perform step 203;
Step 203:Object record can be sold by taking out one in turn from can sell list object;
Step 204:According to it is described sell object record judge take out described in can sell object whether also have can
Stock is sold, if so, performing step 205;Otherwise, step 210 is performed;
Step 205:The confirmation slip list of not middle label is obtained from internal memory;
Step 206:Whether the confirmation slip list for judging not middle label is empty, if sky, then performs step
209;Otherwise, step 207 is performed:
Step 207:Not middle label confirmation slip is randomly selected from the confirmation slip list of the not middle label;
Wherein it is possible to using the nextlnt methods of java.util.Random in JDK1.6 from the not middle label
Confirmation slip list in randomly select not middle label confirmation slip, it is of course also possible to use other method,
As long as can guarantee that the method for transaction partial data can.
Step 208:The not middle label randomly selected are deleted in the confirmation slip list of the not middle label
Confirmation slip, return to step 204;
Step 209:Terminate to draw lots;
Step 210:The record of object can be sold described in taking out by being deleted from can sell list object, return to step
Rapid 202.
Change schematic diagram between the state of lot confirmation slip in the embodiment is as shown in figure 3, by Fig. 3
Understand,
INITIAL:Expression newly sets up confirmation slip and the state that can be drawn lots;
SUCCESS:Represent confirmation slip middle label and successful state of merchandising;
CANCEL:Represent that the confirmation slip that user is eliminated under the state of confirmation slip, this state is not involved in
Draw lots;
CLOSE:Represent there is no the state of the confirmation slip of middle label after activity end;
SYS_CLOSE:Represent because continuous three times all error confirmation slips that place an order of background system error are closed
State;
USER_CLOSE:Represent due to user, including Sorry, your ticket has not enough value, account is frozen, account
Family is added into caused by the reasons such as blacklist the pent state of failure that places an order.
From the figure 3, it may be seen that for the confirmation slip of foundation, in the state (INITIAL) that can draw lots, such as
Signed in fruit confirmation slip, then from can the state of drawing lots can be transformed into the successful state of transaction, reservation now
Single state is (SUCCESS), certainly, if user cancels confirmation slip, the state of the confirmation slip turns
Become cancellation state (CANCEL);If the confirmation slip does not have middle label, the confirmation slip is transformed into not
There is the state (CLOSE) of middle label;In addition, after being signed in confirmation slip, if system places an order all for continuous three times
Error confirmation slip is closed, and now the state of confirmation slip is to be closed state (SYS_CLOSE);If
Sorry, your ticket has not enough value, and account is frozen, and it is pent that account is added into caused by the reasons such as blacklist the failure that places an order
State is USER_CLOSE.
In the embodiment of the present application, the purchase of salable item is realized by way of drawing lots and brining together, rather than is entered
Rob purchase.This not only reduces system pressure, also enhances the fairness that user buys product, while
Improve the chance of success and user's purchase satisfaction of user's purchase.
In above-mentioned all embodiments, after preengaging activity end when drawing lots, methods described can also include living
Dynamic to terminate processing procedure, its flow chart is as described in Fig. 3 A, the executive agent that its each step is related to point
Not with activity end timed task module, service of goods module:Activity service module, confirmation slip service mould
Block, transactional services module, file service module, short message service module, exemplified by brining duration service module together,
This is not limited in actual applications, and its specific process includes:
Step 301:Activity end timed task module in system passes through the activity of service of goods module polls
All objects (i.e. product) exceed setting time (such as 10 minutes etc.) without locked stock;
Step 302:Then activity end timed task module calculates according to Query Result and judges activity
Whether turnover is equal to the product value of all activities, if identical, is considered as activity end;
Step 303:If activity is not over, activity end timed task module calls transactional services
The stateful transaction of all confirmation slips of device module synchronization, and judge whether activity terminates;
Step 304:If activity end timed task module judges activity end, file service is called
Module generates the middle signature list of PDF editions;
Step 305:It is logical that activity end timed task module calls short message service module to be signed in being sent to user
Know short breath;
Step 306:Activity end timed task module calls activity service module by the movable state mark
It is designated as done state;
Step 307:Activity end timed task module cancels all not middle label by confirmation slip service module
Confirmation slip;
Step 308:Activity end timed task module does not sell out product information by product servers modification
It is open actively to buy;
Step 309:Activity end timed task module by call bring together market service module update bring together
Market activity state is stopping (ST0PPED) state.
Embodiment with foregoing lot reserving method is corresponding, and present invention also provides lot device for displaying predetermined
Embodiment.
The embodiment of the application lot device for displaying predetermined can be applied in equipment.Device embodiment can pass through
Software is realized, can also be realized by way of hardware or software and hardware combining.Exemplified by implemented in software,
It is by nonvolatile memory by the processor of equipment where it as the device on a logical meaning
In corresponding computer program instructions read in internal memory what operation was formed.For hardware view, such as scheme
Shown in 4, a kind of hardware structure diagram of equipment, is removed where a kind of lot device for displaying predetermined provided for the application
Outside processor, internal memory, network interface and nonvolatile memory shown in Fig. 4, embodiment
Equipment where middle device can also include other hardware, to this generally according to the actual functional capability of the equipment
Repeat no more.
Fig. 5 is refer to, a kind of structural representation of the lot device for displaying predetermined provided for the embodiment of the present application is described
Device includes:Acquiring unit 51, determining unit 52, display unit 53, receiving unit 54 brings unit together
55 and display unit 56, wherein,
Acquiring unit 51, object is sold for acquisition participation same period lot reservation activity;
Determining unit 52, for determining that action message is preengage in the lot that can sell object;It is described to draw lots in advance
About action message includes:Start subscription time and start the time of brining together;
Display unit 53, for by the lot reservation information for selling object by page presentation to user;
Receiving unit 54, can sell pair for being received in the beginning subscription time described in user purchase
Multiple confirmation slips of elephant, wherein, multiple confirmation slips are not middle label confirmation slip;
Wherein, receiving unit 54, specifically for the side in the beginning subscription time by page table list
Formula receives multiple confirmation slips that the user buys the object.
Bring unit 55 together, for reach it is described start to bring together the time when, from multiple confirmation slips with
Machine extracts not middle label confirmation slip, brings the not middle label confirmation slip that is drawn into together and corresponding sells pair
As, to brining together after described in it is not middle label confirmation slip place an order, wherein, the confirmation slip after placing an order is
Middle label confirmation slip;
Display unit 56, for showing the user placed an order on the webpage.
Optionally, the unit 55 of brining together includes:Loading unit, extraction unit, the first judging unit,
Subelement, extracting unit and deletion unit (not shown) are obtained, wherein,
Loading unit, for reach it is described start to bring together the time when, by it is all participation lot reservation activities
Object of selling be loaded into the way of list in internal memory, and by the confirmation slip of multiple not middle label point
Not be loaded into the way of list in internal memory;
Extraction unit, object record can be sold for taking out one in turn from can sell list object;
First judging unit, judges that can sell object described in taking-up is for that can sell object record according to
It is no also to sell stock;
Obtain subelement, for first judging unit judge described in can sell object have can sell stock when,
The confirmation slip list of not middle label is obtained from internal memory;
Extracting unit, for from it is described acquisition subelement obtain described in not middle label confirmation slip list in
Machine extracts not middle label confirmation slip;
Unit is deleted, is randomly selected not for being deleted in the confirmation slip list of the not middle label
Middle label confirmation slip.
The unit of brining together also includes:Second judging unit (not shown), wherein,
Second judging unit, for judging to sell whether list object is empty;
The extraction unit, be additionally operable to judge in second judging unit described in can sell list object and be not
Space-time, from it is described sell list object in take out one in turn and can sell object record.
Optionally, described device can also include:Administrative unit, the confirmation slip for centering label enters
Row activity management and control and activity are guarded.Wherein, activity management and control and activity guard specifically refer to it is above-mentioned, herein not
Repeat again.
The function of unit and the implementation process of effect specifically refer to correspondence step in the above method in said apparatus
Rapid implementation process, will not be repeated here.
Also referring to Fig. 6, a kind of exemplary application map of the lot device for displaying predetermined provided for the embodiment of the present application,
Including:Movable exhibition section module 61, activity module 62, module of opening an account 63, activity setup module 64,
Lot brings module 65, the module that places an order 66, activity management and control module 67 and activity together and guards module 68, wherein,
Modules connect (not shown) by system bus,
Activity Show module 61, for the exposition content in loose-leaf, including ongoing activity,
Last displaying of action message etc.;
Activity module 62, for by way of page table list, pointing out user's activity, list
User's input reservation amount of money is needed, when list is submitted, system can verify user account remaining sum (such as remaining sum
The precious amount of money) whether it is more than or equal to the reservation amount of money;
Module of opening an account 63, in user's activity, if activity needs user to open an account, showing
The page open an account to user, and guides user to go to open an account;
Activity setup module 64, during for the instruction of platform operator upon receipt, in backstage setting activity,
I.e. consistency operation person is in backstage setting activity;
Module 65 is brought in lot together, for brining movable product and movable confirmation slip together by random algorithm;It has
The process of brining together of body refers to above-mentioned, will not be repeated here.Wherein, random algorithm, as long as can guarantee that transaction
The random algorithm of integrality.
The module that places an order 66, for being placed an order to brining successfully reservation unitary call form ordering system interface together;It places an order
Confirmation slip afterwards is middle label confirmation slip;
Activity management and control module 67, for a whole set of life cycle of the start to finish of management and control activity, activity
Message can be sent at first come out to notify to bring together center and open the market brought together of drawing lots and wait draw lots
Start;Message informing can be sent after activity end to bring center together to close the market that this activity lot is brought together,
Close institute either with or without middle label confirmation slip, send SMS notification drawing outcomes, generation pdf forms prize-winning
List;
Module 68 is guarded in activity, for periodically fishing for because intersystem communications exception or time-out are come to nothing
The order of receipt removes the time of day of transaction system inquiry order.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part referring to
The part explanation of embodiment of the method.Device embodiment described above is only schematical, wherein
The unit illustrated as separating component can be or may not be physically separate, be used as unit
The part of display can be or may not be physical location, you can with positioned at a place, or also may be used
To be distributed on multiple NEs.Some or all of module therein can be selected according to the actual needs
To realize the purpose of application scheme.Those of ordinary skill in the art without creative efforts,
It is appreciated that and implements.
The preferred embodiment of the application is the foregoing is only, it is all in this Shen not to limit the application
Within spirit and principle please, any modification, equivalent substitution and improvements done etc. should be included in this Shen
Within the scope of please protecting.