CN108053278A - Ticket processing method and system, computer readable storage medium - Google Patents

Ticket processing method and system, computer readable storage medium Download PDF

Info

Publication number
CN108053278A
CN108053278A CN201711293636.XA CN201711293636A CN108053278A CN 108053278 A CN108053278 A CN 108053278A CN 201711293636 A CN201711293636 A CN 201711293636A CN 108053278 A CN108053278 A CN 108053278A
Authority
CN
China
Prior art keywords
requirement report
ticket
candidate
candidate requirement
report
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711293636.XA
Other languages
Chinese (zh)
Inventor
李雯
朱建生
王富章
单杏花
杨立鹏
刘文韬
王拓
范茂洋
张骞
张龙
张霞
赵楠
王勃
姚添
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHINA RAILWAY TRIP SCIENCE AND TECHNOLOGY Co Ltd
Original Assignee
CHINA RAILWAY TRIP SCIENCE AND TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHINA RAILWAY TRIP SCIENCE AND TECHNOLOGY Co Ltd filed Critical CHINA RAILWAY TRIP SCIENCE AND TECHNOLOGY Co Ltd
Priority to CN201711293636.XA priority Critical patent/CN108053278A/en
Publication of CN108053278A publication Critical patent/CN108053278A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0605Supply or demand aggregation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24568Data stream processing; Continuous queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Abstract

An embodiment of the present invention provides a kind of ticket processing method and system, computer readable storage mediums.In the embodiment of the present invention, by obtaining candidate requirement report, then, the candidate requirement report is added to snoop queue, so as to, remaining ticket required to each candidate requirement report in the snoop queue is inquired about successively, and then, meet the remaining ticket of current candidate requirement report in response to inquiring, ticket is distributed for the candidate requirement report.Therefore, technical solution provided in an embodiment of the present invention can reduce booking difficulty, and improve booking success rate and booking efficiency.

Description

Ticket processing method and system, computer readable storage medium
【Technical field】
The present invention relates to technical field of data processing more particularly to a kind of ticket processing methods and system, computer-readable Storage medium.
【Background technology】
At present, speed rail net of the China using high-speed railway as skeleton has tentatively been built up, and Railway Passenger Ticket System continues to develop Perfect, the ticketing ability of internet ticket sale system also increasingly improves.But for some popular train numbers, alternatively, in the weight such as spring transportation It can increase severely during big festivals or holidays due to ticketing amount, many users can not directly buy required ticket, this just needs user The remaining poll amount of moment concern Railway Passenger Ticket System carries out hand brush ticket.
At present, when user carries out booking by Ticketing and Reservation System, it is necessary to inquire about the remaining ticket of required train number, and in the train number It has a surplus and is bought in the case of ticket;If the required train number ticket of user is sold out, can only be by repeating hand brush ticket Mode inquire about the remaining ticket of the train number, to be bought when inquiring remaining ticket.
But because of situations such as returning ticket, changing label, altogether conversion way, multiplexing or the interim frequent generation carried additionally, cause passenger ticket system The commercially available unused stamp quantity of system and time have uncertainty, after ticket is sold out, repeat the side of hand brush ticket by user For formula there are larger booking difficulty, booking success rate is relatively low, less efficient.
【The content of the invention】
In view of this, an embodiment of the present invention provides a kind of ticket processing method and system, computer readable storage medium, To improve booking success rate and booking efficiency.
On the one hand, an embodiment of the present invention provides a kind of ticket processing method, including:
Obtain candidate requirement report;
The candidate requirement report is added to snoop queue;
Remaining ticket required to each candidate requirement report in the snoop queue is inquired about successively;
Meet the remaining ticket of current candidate requirement report in response to inquiring, ticket is distributed for the candidate requirement report.
Aspect as described above and any possible realization method, it is further provided a kind of realization method, the candidate need Asking singly includes:User information, by bus demand Bus Schedules, date information, seat information, hair station information and information of arriving at a station.
Aspect as described above and any possible realization method, it is further provided a kind of realization method, to a candidate The mode that the required remaining ticket of requirement report is inquired about, including:
By candidate requirement report be split as it is at least one split it is single, it is each it is described split single required remaining ticket correspond to it is same Date, train number, the other combination of seat;
Inquiry is each to be split in the corresponding train number of single required remaining ticket with the presence or absence of the remaining ticket for meeting the fractionation list;
When inquire meet in the candidate requirement report it is any split single remaining ticket when, determine to inquire and meet the candidate need Seek single remaining ticket;
When whole fractionation Dan Junwei in the candidate requirement report inquire remaining ticket, determine not inquiring to meet the candidate The remaining ticket of requirement report.
Aspect as described above and any possible realization method, it is further provided a kind of realization method needs for the candidate Single distribution ticket is sought, including:
It obtains and meets a remaining ticket for splitting list in the candidate requirement report, using the ticket as the candidate requirement report.
Aspect as described above and any possible realization method, it is further provided a kind of realization method, the method is also Including:
Obtain fulfil the candidate requirement report ticket ticket fee and, obtain the candidate requirement report branch payment;
When the ticket fee of the ticket, which is more than the branch, pays the bill, obtain between the ticket fee of the ticket and branch payment Difference;
The difference is returned to the paying party of the candidate requirement report.
Aspect as described above and any possible realization method, it is further provided a kind of realization method, the method is also Including:
It exports that the candidate requirement report is prompted to fulfil successful first prompting message.
Aspect as described above and any possible realization method, it is further provided a kind of realization method, the method is also Including:
Meet the remaining ticket of current candidate requirement report in response to not inquiring, which is moved to current poll The end of queue, carry out during in order to be polled to the candidate requirement report next time more than ticket inquiry.
Aspect as described above and any possible realization method, it is further provided a kind of realization method, the method is also Including:
Meet the remaining ticket of any candidate requirement report in response to not inquired in default time interval, returning the candidate needs Single branch is asked to pay the bill to the paying party of the candidate requirement report;And/or
Meet the remaining ticket of any candidate requirement report in response to not inquired in default time interval, export to prompt The candidate requirement report fulfils the second prompting message of failure.
Aspect as described above and any possible realization method, it is further provided a kind of realization method, the method is also Including:
It, will in response to receiving the cancellation request of the candidate requirement report when not inquiring the remaining ticket for meeting candidate requirement report The candidate requirement report is deleted in the snoop queue, and the branch for returning the candidate requirement report is paid the bill to pair of the candidate requirement report Money side.
Aspect as described above and any possible realization method, it is further provided a kind of realization method, by the candidate Requirement report is added to snoop queue, including:
The candidate requirement report got is added to demand queue;
According to the sequencing of the demand queue, each candidate requirement report is synchronized to Ticketing and Reservation System successively and is stored;
It is paid successfully in response to any candidate requirement report being synchronized in the ticket sale system, which is successfully waited It mends requirement report and is added to the snoop queue.
A technical solution in above-mentioned technical proposal has the advantages that:
In the embodiment of the present invention, by receiving the candidate requirement report of user's offer, and candidate requirement report is added to poll Queue, so as to which remaining ticket required to each candidate requirement report in snoop queue is inquired about successively, so as to inquire The candidate requirement report distribution ticket of remaining ticket.In this way, after the ticket of user demand is sold out, by way of candidate requirement report, it is User provides ticketless candidate function, when generating new remaining ticket, will automatically according to the order of snoop queue, it is, according to The payment order of candidate requirement report, automatically fulfils the candidate requirement report for meeting condition, realizes candidate booking.In the process In, without user expend time and efforts repeat hand brush ticket, reduce due to user concern more than ticket information lead not in time The probability of the booking failure of cause, therefore, the technical solution that the embodiment of the present invention is provided can reduce booking difficulty, and improve purchase Ticket success rate and booking efficiency.
On the other hand, an embodiment of the present invention provides a kind of ticket processing system, including:
Acquiring unit, for obtaining candidate requirement report;
Poll units, for the candidate requirement report to be added to snoop queue;
Query unit is looked into for remaining ticket required to each candidate requirement report in the snoop queue successively It askes;
Unit is fulfilled, for meeting the remaining ticket of current candidate requirement report in response to inquiring, for the candidate requirement report point With ticket.
In another aspect, an embodiment of the present invention provides a kind of computer readable storage medium, including:Computer can perform finger Order, performing the ticket processing method of any realization method as described above when which is run.
A technical solution in above-mentioned technical proposal has the advantages that:
In the embodiment of the present invention, by receiving the candidate requirement report of user's offer, and candidate requirement report is added to poll Queue, so as to which remaining ticket required to each candidate requirement report in snoop queue is inquired about successively, so as to inquire The candidate requirement report distribution ticket of remaining ticket.In this way, after the ticket of user demand is sold out, by way of candidate requirement report, it is User provides ticketless candidate function, when generating new remaining ticket, will automatically according to the order of snoop queue, it is, according to The payment order of candidate requirement report, automatically fulfils the candidate requirement report for meeting condition, realizes candidate booking.In the process In, without user expend time and efforts repeat hand brush ticket, reduce due to user concern more than ticket information lead not in time The probability of the booking failure of cause, therefore, the technical solution that the embodiment of the present invention is provided can reduce booking difficulty, and improve purchase Ticket success rate and booking efficiency.
【Description of the drawings】
It in order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for this field For those of ordinary skill, without creative efforts, other attached drawings are can also be obtained according to these attached drawings.
Fig. 1 is the flow diagram for the ticket processing method that the embodiment of the present invention is provided;
Fig. 2 is the functional block diagram of the embodiment one for the ticket processing system that the embodiment of the present invention is provided;
Fig. 3 is the functional block diagram of the embodiment two for the ticket processing system that the embodiment of the present invention is provided.
【Specific embodiment】
For a better understanding of the technical solution of the present invention, the embodiment of the present invention is retouched in detail below in conjunction with the accompanying drawings It states.
It will be appreciated that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained without creative efforts it is all its Its embodiment, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is only merely for the purpose of description specific embodiment, and is not intended to be limiting The present invention.In the embodiment of the present invention and " one kind " of singulative used in the attached claims, " described " and "the" It is also intended to including most forms, unless context clearly shows that other meanings.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent There may be three kinds of relations, for example, A and/or B, can represent:Individualism A, exists simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
It will be appreciated that though it may be disappeared in embodiments of the present invention using term first, second, third, etc. to describe prompting Breath, but these prompting messages should not necessarily be limited by these terms.These terms are only distinguished from each other out for will be prompted to message.For example, In the case of not departing from range of embodiment of the invention, the first prompting message can also be referred to as the second prompting message, similarly, the Two prompting messages can also be referred to as the first prompting message.
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if detection (condition or event of statement) " can be construed to " when definite " or " in response to determining " or " when the detection (condition of statement Or event) when " or " in response to detecting (condition or event of statement) ".
For ticket sale system in the prior art it is higher and less efficient there are booking difficulty the problem of, the embodiment of the present invention carries Following resolving ideas is supplied:Ticketless candidate function is provided, when generating new denomination, the elder generation of candidate requirement report is submitted according to passenger It is sequentially fulfilled afterwards.
Under the guiding of the thinking, this programme embodiment provides following feasible embodiment.
The embodiment of the present invention provides a kind of ticket processing method.It please refers to Fig.1, the vehicle provided by the embodiment of the present invention The flow diagram of ticket processing method, this method comprise the following steps:
S101 obtains candidate requirement report.
The candidate requirement report is added to snoop queue by S102.
S103, successively remaining ticket required to each candidate requirement report in snoop queue inquire about.
S104 meets the remaining ticket of current candidate requirement report in response to inquiring, and ticket is distributed for the candidate requirement report.
It can include but is not limited in candidate requirement report involved by the embodiment of the present invention:User information, demand train number letter Breath, by bus date information, seat information, hair station information and information of arriving at a station.
Wherein, user information can include but is not limited to:User name, rider, rider's identity information, rider's contact Mode etc..
During realization, the number for the candidate requirement report that each user can submit can be with preset in advance, for example, can To set the first quantity threshold, it is less than or equal to first number to limit the number for the candidate requirement report that each user submits Mesh threshold value.
And, it is contemplated that user can include one or more " ride when submitting candidate requirement report in each requirement report Date+train number+seat is other " combination.That is, in same candidate requirement report, identical hair station and between arriving at a station can be with There are multiple combinations, such as:Date a+ train numbers A+ seats are other 1 by bus, date a+ train number B+ seat is other 1 by bus, date b+ train number A+ by bus Seat is other 1, date b+ train number A+ seat other 2 by bus, etc..Combination in candidate requirement report is that user submits as needed.Specific It realizes in scene, the second quantity threshold, such as 5 can also be set, for limiting the number of combinations included in each candidate requirement report Mesh is less than or equal to second quantity threshold.
Wherein, one or more riders can be included in a candidate requirement report.And in another realization scene In, can to the limit number of rider set the 3rd quantity threshold, the number of passengers for limiting each booking be less than or Equal to the 3rd quantity threshold.In this way, the ticket behavior of ox Deng Fei body corporate can also be avoided to a certain extent.For example, for same Most 5 people of number of passengers in candidate requirement report.
In the embodiment of the present invention, when performing the step that candidate requirement report is obtained in S101, the Internet, applications work(can be passed through The candidate demand that user submits in ticket sale system can be received, candidate requirement report is generated, and the candidate requirement report of generation is added To snoop queue.
In the embodiment of the present invention, when obtaining candidate order, it is also necessary to judge whether active user also has non-pay invoice, Non- pay invoice is paid if so, then exporting prompting message prompting user, is placed an order again after finishing in order to pay;If not yet Have, then complete to obtain candidate order step.Wherein, non-pay invoice refers to unpaid candidate requirement report
Wherein, candidate requirement report is added to during the realization of snoop queue in a concrete implementation S102, it can To comprise the following steps:
The candidate requirement report got is added to demand queue (outer net MQ);
Each candidate requirement report is synchronized to Ticketing and Reservation System successively and stored by the sequencing of queue as desired;
It is paid successfully in response to any candidate requirement report being synchronized in Ticketing and Reservation System, the successful candidate of the payment is needed It asks single and is added to snoop queue (Intranet MQ).
During actually realizing, user can also be set to pay the payment duration of candidate requirement report, and submitted in user The candidate requirement report is preserved in payment duration after candidate requirement report, if user does not complete payment in default payment duration, It then can confirm that user cancels the candidate requirement report, then deleted stored candidate requirement report and Ticketing and Reservation System carried out It is synchronous.For example, payment duration could be provided as 30 minutes, then since user submits candidate requirement report, it is necessary at 30 minutes Interior to complete payment, otherwise, which cancels automatically.
Wherein, the payment principle of candidate requirement report can be set as needed in user.In a specific application scenarios In, in " date+train number+seat is other by bus " combination each in the candidate requirement report that user can be submitted the highest combination of admission fee as The payment amount of the candidate requirement report.In this case, if candidate requirement report is fulfilled successfully and is just that the admission fee is highest Combination, then fulfil success, without carrying out extra process to difference in fare;If it is golden less than its payment to fulfil successfully combination admission fee Volume then retracts difference.
In the realization method, the sequencing of demand queue is added to according to each candidate requirement report, each candidate is needed one by one It asks and singly stores to Intranet and Ticketing and Reservation System is synchronized, this can facilitate user to look into the candidate requirement report itself proposed It askes.
In the realization method, candidate requirement report is first added to demand queue (outer net MQ), can also be delayed by outer net (outer net cache) realization is deposited to store candidate requirement report and its state.It, can by the buffering of demand queue (outer net MQ) Pressure caused by reducing the excessively multipair system of ticketing peak period ticketing order, and to a certain extent outer net system is improved by the means The fault-tolerant ability of each level in system improves the security and stability of system.
Needed in S103 successively remaining ticket required to each candidate requirement report in snoop queue inquire about, in order to It readily appreciates, the embodiment of the present invention provides the mode that remaining ticket required to a candidate requirement report is inquired about, including following Step:
By candidate requirement report be split as it is at least one split it is single, it is each to split single required remaining ticket and correspond to same day Phase, train number, the other combination of seat;
Inquiry is each to be split in the corresponding train number of single required remaining ticket with the presence or absence of the remaining ticket for meeting the fractionation list;
When inquire meet in candidate requirement report it is any split single remaining ticket when, determine to inquire and meet the candidate requirement report Remaining ticket;
When whole fractionation Dan Junwei in candidate requirement report inquire remaining ticket, determine not inquiring to meet the candidate demand Single remaining ticket.
Wherein, it is each to split single combination for corresponding to one " date+train number+seat is other by bus ".
In the step that each fractionation is singly inquired about in realization, can successively be performed according to certain order, wherein, it is secondary Sequence can be preset.For example, the order that can be preset as in the candidate requirement report of user's submission is performed.In this way, can be in order to With regard to stopping continuing to inquire about other fractionation lists, saving system resource after the remaining ticket of one of them fractionation list of satisfaction is found, and carry High efficiency.
If for example, a candidate requirement report include 3 split it is single, wherein, split single first and correspond to date a by bus + train number A+ seats other 1 split single second and correspond to date a+ train number B+ seat other 1 by bus, split single third and correspond to date b+ train number by bus A+ seats other 1.Wherein, the number of passengers each split in list is 2.
So, after by the fractionation of above-mentioned steps, then according to the single first of fractionation, the single second of fractionation, the order of fractionation list third successively It is inquired about respectively.
First, whether inquiry has a remaining ticket for meeting and splitting single first, that is, inquiry ride be in the corresponding train number A of date a The no remaining ticket for having 2 seats other 1.Wherein, if there is the remaining ticket that satisfaction splits single first, it is determined that inquire and meet the candidate requirement report Remaining ticket.At this point, no longer continue to inquire about to splitting single second and splitting single third.
Otherwise, continue whether inquiry has the remaining ticket for meeting and splitting single second, that is, inquire about the corresponding train number B of date a that ride In whether have the remaining tickets of 2 seats other 1.Wherein, if there is the remaining ticket that satisfaction splits single second, it is determined that inquire and meet the candidate demand Single remaining ticket.At this point, no longer continue to inquire about to splitting single third.
Otherwise, continue whether inquiry has the remaining ticket for meeting and splitting list third, that is, inquire about the corresponding train number A of date b that ride In whether have the remaining tickets of 2 seats other 1.Wherein, the remaining ticket for splitting single third is met if having, it is determined that inquire and meet the candidate demand Single remaining ticket.
Otherwise, it is determined that do not inquire the remaining ticket for meeting the candidate requirement report.
By above-mentioned steps, the step that remaining ticket required to each candidate requirement report is inquired about successively in S103 can be realized Suddenly.
Due to needing that each candidate requirement report is inquired about respectively successively in snoop queue, if inquiring current A candidate requirement report remaining ticket when, then need for the candidate requirement report distribute ticket.
Conversely, in response to the remaining ticket that meets current candidate requirement report is not inquired, which is moved to and is worked as The end of preceding snoop queue, carry out during in order to be polled to the candidate requirement report next time more than ticket inquiry.
Wherein, the mode for distributing ticket in S104 for the candidate requirement report includes the following steps:
It obtains and meets a remaining ticket for splitting list in the candidate requirement report, using the ticket as the candidate requirement report.
During concrete application, it is also necessary to consider successfully to split single ticket fee and the branch of the candidate requirement report to fulfilling Whether payment is identical.Therefore, when the candidate requirement report of user is fulfilled successfully, this method can also comprise the following steps:
Obtain fulfil candidate requirement report ticket ticket fee and, obtain candidate requirement report branch payment;
When the ticket fee of ticket, which is more than branch, pays the bill, the difference between the ticket fee of ticket and branch payment is obtained;
Difference is returned to the paying party of candidate requirement report.
In a specific application scenarios, when the candidate requirement report of user is fulfilled successfully, it can also export to carry Show that candidate requirement report fulfils successful first prompting message.
The embodiment of the present invention is not particularly limited for the way of output.For example, the ticketing interface of front opening can be worked as in user Upper output plays frame and shows first prompting message;And/or in another example, it can also be by inquiring about the contact method of user, such as mobile phone Then first prompting message is sent on the contact method of the user by number, mailbox etc..
During a concrete implementation, it is contemplated that right if not inquiring the remaining ticket for meeting candidate requirement report for a long time It, which carries out inquiry for a long time, can cause system the unnecessary wasting of resources, therefore, during this method can also comprise the following steps It is at least one:
Meet the remaining ticket of any candidate requirement report in response to not inquired in default time interval, returning the candidate needs Single branch is asked to pay the bill to the paying party of the candidate requirement report;And/or
Meet the remaining ticket of any candidate requirement report in response to not inquired in default time interval, export to prompt The candidate requirement report fulfils the second prompting message of failure.
Wherein, default time interval can be fixed or unfixed that can include but is not limited to:When Between threshold value or wrap count threshold value.Wherein, the initial time of time threshold can be candidate requirement report submit the moment or Person, or default as needed at the time of the payment of candidate requirement report is completed.
With submitting constantly for initial time for candidate requirement report, time threshold is to time threshold side exemplified by end time The default time interval of formula illustrates.Time threshold can be a default time numerical value;Such as 5h, at this point, being needed from candidate It is default time interval in 5h from asking when singly submitting.Alternatively, time threshold can also be the date by bus in candidate requirement report The a certain moment, such as by bus a few days ago any one day 22:00, at this point, to default day by bus from being submitted candidate requirement report The 22 of preceding some day:00 is default time interval.Alternatively, time threshold can also be that train number is dispatched a car in candidate requirement report Moment.Alternatively, time threshold can also be a certain moment before the time of departure;As before the time of departure for 24 hours, at this point, from candidate need It is default time interval at the time of from asking when singly submitting to before frequency for 24 hours.
Wherein, wrap count threshold value is that the number being polled according to candidate requirement report comes limiting time section.Candidate demand It is single that snoop queue all have passed through a polling cycle when being polled to every time, then can using one or more polling cycles as Default time interval.For example, if default wrap count threshold value is 5, any candidate requirement report is polled 5 times and does not all inquire about During to the remaining ticket for meeting candidate's requirement report, it is determined that execution is above-mentioned to return the step of branch pays the bill and exports the second prompting message.
In the embodiment of the present invention, time interval can be set in system or or user pass through candidate need Ask oneself single setting.Also, after getting candidate requirement report, which is fixed, is no longer made an amendment.
Wherein, the mode that the second prompting message is exported in the embodiment of the present invention may be referred to the side of the first prompting message of output Formula, details are not described herein.
In the embodiment of the present invention, it is contemplated that in the polling procedure of candidate requirement report, it is understood that there may be user, which actively cancels, to be waited The situation of requirement report is mended, therefore, this method can also include the following steps:
It, will in response to receiving the cancellation request of the candidate requirement report when not inquiring the remaining ticket for meeting candidate requirement report The candidate requirement report is deleted in snoop queue, and the branch for returning the candidate requirement report is paid the bill to the payment of the candidate requirement report Side.
In the ticketings such as spring transportation, summer transportation, festivals or holidays peak period, the vigorous trip requirements of passenger have highlighted railway hot travel route Capacity deficiency, passenger and buy website on behalf and continue the behavior of brush ticket after ticketless huge access pressure is caused to Ticketing and Reservation System backstage Power consumes backstage resource.Therefore, which can return ticket in control, change label, conversion way, the ticket being multiplexed altogether Under the premise of so that these ticket are not circulated, so as to buy website on behalf and continue the behavior of brush ticket after ticketless in situation about having no result Under, it can greatly reduce naturally;And then the guiding orderly booking of passenger can be reached, passenger's blindness brush ticket is reduced, contains third party's net The brush ticket stood buys behavior on behalf.
And in another concrete implementation scene, this method can also include the following steps:
According to the candidate requirement report got, the number of users in same direction by bus is counted;
When the number of users in same direction by bus is more than default quantity threshold, then output increases interim visitor for prompting The prompt message of vehicle.
In this way, can effectively be dredged passenger according to the situation of the candidate requirement report got, user's booking is improved Success rate, and the ticketing pressure of ticket processing system can be alleviated.
Based on above-mentioned the provided ticket processing method of the embodiment of the present invention, an embodiment of the present invention provides a kind of computers Readable storage medium storing program for executing, including:Computer executable instructions, it is as above any to perform when which is run The ticket processing method of kind realization method.
Based on above-mentioned the provided ticket processing method of the embodiment of the present invention, the embodiment of the present invention is further provided in realization State the device embodiment of each step and method in embodiment of the method.
It please refers to Fig.2, the functional block diagram of the embodiment one of the ticket processing system provided by the embodiment of the present invention. The ticket processing system 200 includes:
Acquiring unit 21, for obtaining candidate requirement report;
Poll units 22, for candidate requirement report to be added to snoop queue;
Query unit 23 is inquired about for remaining ticket required to each candidate requirement report in snoop queue successively;
Unit 24 is fulfilled, for meeting the remaining ticket of current candidate requirement report in response to inquiring, for the candidate requirement report Distribute ticket.
Wherein, candidate requirement report includes:User information, by bus demand Bus Schedules, date information, seat information, hair station Information and information of arriving at a station.
In the embodiment of the present invention, during the mode that remaining ticket required to a candidate requirement report is inquired about, query unit 23 are specifically used for:
By candidate requirement report be split as it is at least one split it is single, it is each to split single required remaining ticket and correspond to same day Phase, train number, the other combination of seat;
Inquiry is each to be split in the corresponding train number of single required remaining ticket with the presence or absence of the remaining ticket for meeting the fractionation list;
When inquire meet in candidate requirement report it is any split single remaining ticket when, determine to inquire and meet the candidate requirement report Remaining ticket;
When whole fractionation Dan Junwei in candidate requirement report inquire remaining ticket, determine not inquiring to meet the candidate demand Single remaining ticket.
In the embodiment of the present invention, unit 24 is fulfilled, is used for:
It obtains and meets a remaining ticket for splitting list in the candidate requirement report, using the ticket as the candidate requirement report.
The ticket processing system 200 further includes payment unit (Fig. 2 is not shown), and payment unit is specifically used for:
Obtain fulfil candidate requirement report ticket ticket fee and, obtain candidate requirement report branch payment;
When the ticket fee of ticket, which is more than branch, pays the bill, the difference between the ticket fee of ticket and branch payment is obtained;
Difference is returned to the paying party of candidate requirement report.
In another specific application scenarios, which further includes:
Notification unit (Fig. 2 is not shown), for exporting to prompt candidate requirement report to fulfil successful first prompting message.
Poll units 22, also particularly useful for:
Meet the remaining ticket of current candidate requirement report in response to not inquiring, which is moved to current poll The end of queue, carry out during in order to be polled to the candidate requirement report next time more than ticket inquiry.
In the embodiment of the present invention, which further includes:
Meet the remaining ticket of any candidate requirement report in response to not inquired in default time interval, returning the candidate needs Single branch is asked to pay the bill to the paying party of the candidate requirement report;And/or
Meet the remaining ticket of any candidate requirement report in response to not inquired in default time interval, export to prompt The candidate requirement report fulfils the second prompting message of failure.
In another specific application scenarios, payment unit, also particularly useful for:
It, will in response to receiving the cancellation request of the candidate requirement report when not inquiring the remaining ticket for meeting candidate requirement report The candidate requirement report is deleted in snoop queue, and the branch for returning the candidate requirement report is paid the bill to the payment of the candidate requirement report Side.
Wherein, poll units 22 are specifically used for:
The candidate requirement report got is added to demand queue;
Each candidate requirement report is synchronized to Ticketing and Reservation System successively and stored by the sequencing of queue as desired;
It is paid successfully in response to any candidate requirement report being synchronized in ticket sale system, the successful candidate of the payment is needed It asks single and is added to snoop queue.
It in a specific application scenarios, please refers to Fig.3, the ticket processing system provided by the embodiment of the present invention Embodiment two functional block diagram.The ticket processing system 300 includes:
The Internet, applications component 301, belongs to outer net, this is user interface, for providing candidate requirement report to the user Offer condition.
Candidate application interface 302, belongs to outer net, for for single booking, inquiry under user, delete order, modification order etc. Interface is provided.Wherein, which is additionally operable to judge whether active user has not pay before S101 is performed to order It is single.
Outer net caches (outer net cache) 303, belongs to outer net, for preserving the candidate requirement report in being lined up, is inquired about for user Candidate requirement report in queuing provides data and supports.
Outer net demand queue (outer net MQ) 304, belongs to outer net, and for providing the processing queue of candidate requirement report, this can be with The big concurrent of internet data is controlled to a certain extent, is buffered and huge instantaneous is concurrently accessed pressure.
Candidate places an order processing using 305, belongs to outer net, for the asynchronous candidate that user is received from outer net demand queue 304 Requirement report message, and candidate requirement report is grabbed to the alternate data service interface 306 for being sent to Intranet.
Alternate data service interface 306, belongs to Intranet, for connecting the information flow in each component.Alternate data is taken Business interface 306 places an order processing using 305, outer net demand queue (outer net MQ) 304, outer net caching (outer net as connection candidate Cache) the bridge between 303 and each component of Intranet, can buffer it is huge it is instantaneous concurrently access pressure, reduce to data base set The impact of group 307.
Data-base cluster 307, belongs to Intranet, for receiving and storing the candidate that alternate data service interface 306 receives Requirement report, and for for user inquire about candidate requirement report when provide data support and, for obtain split list and etc. number is provided According to support.By the storage to data in Ticketing and Reservation System 308, the pressure of Ticketing and Reservation System 308 can be reduced to a certain extent.And And since the data stored in data-base cluster are also disposed in internal services net, communicated by intranet and extranet security platform, it protects Hinder the security of data.
Ticketing and Reservation System 308 belongs to passenger ticket net, and the candidate requirement report and payment information of user are preserved for user, and complete Into the arrest operation from each road bureau.
Redemption system 309, belongs to Intranet, and the remaining ticket for being used to implement candidate requirement report is fulfilled, wherein including poll services 309-1, for the candidate requirement report in poll Intranet snoop queue 310.
Intranet snoop queue (Intranet MQ) 310, belongs to Intranet, and the candidate requirement report for being completed to payment provides poll team Row.
Ticket inquiry system 311, belongs to Intranet more than candidate, for providing remaining ticket data, works as in order to realize to what is be polled to Ticket inquiry more than preceding candidate requirement report progress.
Intranet caches (Intranet cache) 312, belongs to Intranet, for data cached.Wherein it is possible to it is needed for caching candidate The combination of " date+train number+seat is other by bus " is asked in list.
It notifying serviced component 313, belonging to Intranet, for notifying the state change of candidate requirement report and prompting message to use Family.For example, success is fulfilled by short massage notice user's candidate requirement report.
Payment platform system 314, belongs to Intranet, and support is provided for completing delivery operation for user, and for paying Alternate data service interface 306 is notified after finishing.
Redundant system is established in ticket processing system as shown in Figure 3, caching, queue, database use master-slave mode Operation, application service are run using more modes living.Establish schedule backup and emergent handover mechanism, improve application redundancy ability and Failover capability promotes the high availability of application system.
Method shown in FIG. 1 is able to carry out by each unit in this present embodiment, the part that the present embodiment is not described in detail, It can refer to the related description to Fig. 1.
The technical solution of the embodiment of the present invention has the advantages that:
In the embodiment of the present invention, by receiving the candidate requirement report of user's offer, and candidate requirement report is added to poll Queue, so as to which remaining ticket required to each candidate requirement report in snoop queue is inquired about successively, so as to inquire The candidate requirement report distribution ticket of remaining ticket.In this way, after the ticket of user demand is sold out, by way of candidate requirement report, it is User provides ticketless candidate function, when generating new remaining ticket, will automatically according to the order of snoop queue, it is, according to The payment order of candidate requirement report, automatically fulfils the candidate requirement report for meeting condition, realizes candidate booking.In the process In, without user expend time and efforts repeat hand brush ticket, reduce due to user concern more than ticket information lead not in time The probability of the booking failure of cause, therefore, the technical solution that the embodiment of the present invention is provided can reduce booking difficulty, and improve purchase Ticket success rate and booking efficiency.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit may be referred to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit Division is only a kind of division of logic function, can have other dividing mode in actual implementation, for example, multiple units or group Part may be combined or can be integrated into another system or some features can be ignored or does not perform.It is another, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit it is indirect Coupling or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be employed in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, is used including some instructions so that a computer It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) perform the present invention The part steps of embodiment the method.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various The medium of program code can be stored.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of protection of the invention.

Claims (12)

1. a kind of ticket processing method, which is characterized in that including:
Obtain candidate requirement report;
The candidate requirement report is added to snoop queue;
Remaining ticket required to each candidate requirement report in the snoop queue is inquired about successively;
Meet the remaining ticket of current candidate requirement report in response to inquiring, ticket is distributed for the candidate requirement report.
2. according to the method described in claim 1, it is characterized in that, the candidate requirement report includes:User information, demand train number Information, by bus date information, seat information, hair station information and information of arriving at a station.
3. according to the method described in claim 1, it is characterized in that, remaining ticket required to a candidate requirement report is inquired about Mode, including:
By candidate requirement report be split as it is at least one split it is single, it is each described to split single required remaining ticket and correspond to same day Phase, train number, the other combination of seat;
Inquiry is each to be split in the corresponding train number of single required remaining ticket with the presence or absence of the remaining ticket for meeting the fractionation list;
When inquire meet in the candidate requirement report it is any split single remaining ticket when, determine to inquire and meet the candidate requirement report Remaining ticket;
When whole fractionation Dan Junwei in the candidate requirement report inquire remaining ticket, determine not inquiring to meet the candidate demand Single remaining ticket.
4. according to the method described in claim 1, it is characterized in that, for the candidate requirement report distribute ticket, including:
It obtains and meets a remaining ticket for splitting list in the candidate requirement report, using the ticket as the candidate requirement report.
5. the method according to claim 1 or 3, which is characterized in that the method further includes:
Obtain fulfil the candidate requirement report ticket ticket fee and, obtain the candidate requirement report branch payment;
When the ticket fee of the ticket, which is more than the branch, pays the bill, the difference between the ticket fee of the ticket and branch payment is obtained Volume;
The difference is returned to the paying party of the candidate requirement report.
6. the method according to claim 1 or 3, which is characterized in that the method further includes:
It exports that the candidate requirement report is prompted to fulfil successful first prompting message.
7. according to the method described in claim 1, it is characterized in that, the method further includes:
Meet the remaining ticket of current candidate requirement report in response to not inquiring, which is moved to current snoop queue End, carry out during in order to be polled to the candidate requirement report next time more than ticket inquiry.
8. according to the method described in claim 1, it is characterized in that, the method further includes:
Meet the remaining ticket of any candidate requirement report in response to not inquired in default time interval, return the candidate requirement report Branch pay the bill to the paying party of the candidate requirement report;And/or
Meet the remaining ticket of any candidate requirement report in response to not inquired in default time interval, export to prompt the time Mend the second prompting message that requirement report fulfils failure.
9. according to the method described in claim 1, it is characterized in that, the method further includes:
In response to receiving the cancellation request of the candidate requirement report when not inquiring the remaining ticket for meeting candidate requirement report, this is waited It mends requirement report to delete in the snoop queue, and the branch for returning the candidate requirement report is paid the bill to the payment of the candidate requirement report Side.
10. according to the method described in claim 1, it is characterized in that, the candidate requirement report is added to snoop queue, bag It includes:
The candidate requirement report got is added to demand queue;
According to the sequencing of the demand queue, each candidate requirement report is synchronized to Ticketing and Reservation System successively and is stored;
It is paid successfully in response to any candidate requirement report being synchronized in the ticket sale system, the successful candidate of the payment is needed It asks single and is added to the snoop queue.
11. a kind of ticket processing system, which is characterized in that including:
Acquiring unit, for obtaining candidate requirement report;
Poll units, for the candidate requirement report to be added to snoop queue;
Query unit is inquired about for remaining ticket required to each candidate requirement report in the snoop queue successively;
Unit is fulfilled, for meeting the remaining ticket of current candidate requirement report in response to inquiring, vehicle is distributed for the candidate requirement report Ticket.
12. a kind of computer readable storage medium, which is characterized in that including:Computer executable instructions, when the computer can be held Row instruction is used to perform ticket processing method as described in any one of claim 1 to 10 when being run.
CN201711293636.XA 2017-12-08 2017-12-08 Ticket processing method and system, computer readable storage medium Pending CN108053278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711293636.XA CN108053278A (en) 2017-12-08 2017-12-08 Ticket processing method and system, computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711293636.XA CN108053278A (en) 2017-12-08 2017-12-08 Ticket processing method and system, computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108053278A true CN108053278A (en) 2018-05-18

Family

ID=62122600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711293636.XA Pending CN108053278A (en) 2017-12-08 2017-12-08 Ticket processing method and system, computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108053278A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109190826A (en) * 2018-09-05 2019-01-11 中国联合网络通信集团有限公司 Train ticketing optimization method and train ticketing optimization system
WO2020001394A1 (en) * 2018-06-25 2020-01-02 易胜燕 Ticket booking method and system
CN111178570A (en) * 2020-01-09 2020-05-19 中国铁道科学研究院集团有限公司电子计算技术研究所 Reservation ticket exchange method and device, storage medium and server
CN112002049A (en) * 2019-05-08 2020-11-27 腾讯科技(深圳)有限公司 Gate control method, system, gate, server and storage medium
CN112396200A (en) * 2020-11-30 2021-02-23 中国民航信息网络股份有限公司 Flight seat candidate method and device
CN113554196A (en) * 2021-07-23 2021-10-26 上海蒜芽信息科技有限公司 Method, system, equipment and storage medium for replying ticket based on partial journey

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236843A (en) * 2011-07-15 2011-11-09 电信科学技术研究院 Ticket ordering method, device and system
CN103034908A (en) * 2012-11-26 2013-04-10 侯圣勇 Automatic ticket purchasing management system and method thereof
US20140100898A1 (en) * 2011-12-14 2014-04-10 Eventbrite, Inc. Order Queue Management in Event Ticket Network Systems
CN107085801A (en) * 2016-02-15 2017-08-22 周锡卫 A kind of internet ticket sale system progress control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236843A (en) * 2011-07-15 2011-11-09 电信科学技术研究院 Ticket ordering method, device and system
US20140100898A1 (en) * 2011-12-14 2014-04-10 Eventbrite, Inc. Order Queue Management in Event Ticket Network Systems
CN103034908A (en) * 2012-11-26 2013-04-10 侯圣勇 Automatic ticket purchasing management system and method thereof
CN107085801A (en) * 2016-02-15 2017-08-22 周锡卫 A kind of internet ticket sale system progress control method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020001394A1 (en) * 2018-06-25 2020-01-02 易胜燕 Ticket booking method and system
CN109190826A (en) * 2018-09-05 2019-01-11 中国联合网络通信集团有限公司 Train ticketing optimization method and train ticketing optimization system
CN112002049A (en) * 2019-05-08 2020-11-27 腾讯科技(深圳)有限公司 Gate control method, system, gate, server and storage medium
CN112002049B (en) * 2019-05-08 2022-04-22 腾讯科技(深圳)有限公司 Gate control method, system, gate, server and storage medium
CN111178570A (en) * 2020-01-09 2020-05-19 中国铁道科学研究院集团有限公司电子计算技术研究所 Reservation ticket exchange method and device, storage medium and server
CN112396200A (en) * 2020-11-30 2021-02-23 中国民航信息网络股份有限公司 Flight seat candidate method and device
CN113554196A (en) * 2021-07-23 2021-10-26 上海蒜芽信息科技有限公司 Method, system, equipment and storage medium for replying ticket based on partial journey

Similar Documents

Publication Publication Date Title
CN108053278A (en) Ticket processing method and system, computer readable storage medium
CN108805660A (en) Order processing method, apparatus and server
CN109716367B (en) Method and system for booking transport services
Lorini et al. Online vehicle routing and scheduling with dynamic travel times
US8571918B2 (en) Estimation of transit demand models for enhancing ridership
CN102054204A (en) Method, system and device for automatically booking ticket
US20200057967A1 (en) System for real-time optimal matching of ride sharing requests
CN107292692A (en) Share-car method and system
CN105869424A (en) Bus dispatching method and device
CN106600020A (en) System used for scheduling station pickup services and method thereof
CN105827718A (en) Client communication system, load balancing method and vehicle renting method
CN108268965A (en) For resource allocation, for the vehicles scheduling method and its device
CN107808206A (en) It is a kind of to pay out processing method, server and passenger terminal with car order
CN110020215A (en) Look for the method for pushing and device, electronic equipment of single recommendation information
WO2020001394A1 (en) Ticket booking method and system
CN110136431A (en) A kind of vehicle sharing method and device
CN108615120A (en) A kind of intercity vehicle is lined up worksheet processing method and medium
JP2003308596A (en) Taxi-sharing reservation operation system
CN105959343A (en) On-vehicle APP communication system, load balancing method and vehicle renting method
CN111626801B (en) Order dispatching method and device, electronic equipment and computer storage medium
CN101534319B (en) Method, system and proxy server for canceling inter-instruction dependency relationship
CN107274664A (en) Bus management platform and system
CN110826943B (en) Method and related equipment for judging whether bus allocation is needed or not and determining bus allocation number
CN105095974A (en) Ticket allocation method and apparatus
CN106600256A (en) Mobile phone subway ticket buying payment method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180518

RJ01 Rejection of invention patent application after publication