CN110717842A - Group ticket information generation method and device - Google Patents

Group ticket information generation method and device Download PDF

Info

Publication number
CN110717842A
CN110717842A CN201910999140.7A CN201910999140A CN110717842A CN 110717842 A CN110717842 A CN 110717842A CN 201910999140 A CN201910999140 A CN 201910999140A CN 110717842 A CN110717842 A CN 110717842A
Authority
CN
China
Prior art keywords
group ticket
rule
information
group
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910999140.7A
Other languages
Chinese (zh)
Other versions
CN110717842B (en
Inventor
李艳娜
张素娟
辛颖
张志丹
李雪
王晓亮
费笑峰
张永旺
宋欣卉
蒋中林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky 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 Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN201910999140.7A priority Critical patent/CN110717842B/en
Publication of CN110717842A publication Critical patent/CN110717842A/en
Application granted granted Critical
Publication of CN110717842B publication Critical patent/CN110717842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/14Travel agencies
    • 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/23Updating
    • 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

Abstract

The invention provides a group ticket information generation method and a device, wherein the method comprises the following steps: the method comprises the steps of obtaining application information contained in a group ticket application, obtaining current flight information corresponding to a flight number contained in the application information, comparing the current flight information with pre-stored local flight information corresponding to the flight number, if the current flight information is inconsistent with the pre-stored local flight information corresponding to the flight number, generating a current group ticket rule according to the current flight information, updating the local group ticket rule in a group ticket rule base according to the current group ticket rule, searching all target group ticket rules matched with the application information from the updated group ticket rule base, and generating group ticket information according to the target group ticket rule. According to the group ticket information generation method provided by the invention, after the group ticket application is received, the group ticket rule matched with the group ticket application can be automatically searched, and the group ticket information corresponding to the group ticket application is generated according to the searched group ticket rule, so that the generation efficiency of the group ticket information is improved.

Description

Group ticket information generation method and device
Technical Field
The invention relates to the field of air ticket ordering, in particular to a group ticket information generation method and device.
Background
Along with the continuous development of the tourism industry, the team tourism is more and more favored by people due to the characteristics of lower tourism cost, worry saving, labor saving and the like. The team tourism involves the problem of purchasing group tickets, the group tickets, namely the group tickets, are different from the bulk tickets in freight price, the price of the bulk tickets is fixed and is the price of the tickets issued by an airline company in advance, and the price of the group tickets is also not fixed due to uncertainty of the number of people.
In the prior art, if a group ticket is purchased, an agent is required to submit a group ticket application through a sales system, an airline management personnel audits the group ticket application, and group ticket information is generated and fed back to the agent after the audit is passed. By applying the prior art and manually checking and processing the group ticket application, the checking speed is low, and the generation efficiency of the group ticket information is low.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a group ticket information generating method, which can automatically search a group ticket rule matched with the group ticket application, and generate the group ticket information corresponding to the group ticket application according to the searched group ticket rule, thereby improving the generation efficiency of the group ticket information.
The invention also provides a group ticket information generating device which is used for ensuring the realization and the application of the method in practice.
A group ticket information generation method comprises the following steps:
when a group ticket application is received, acquiring application information contained in the group ticket application;
acquiring current flight information corresponding to a flight number contained in the application information, and comparing the current flight information with pre-stored local flight information corresponding to the flight number;
if the comparison is inconsistent, generating a current group ticket rule according to the current flight information, and updating a local group ticket rule in a pre-constructed group ticket rule base according to the current group ticket rule;
searching all local group ticket rules matched with the application information from the updated group ticket rule base, and determining each searched local group ticket rule as a first group ticket rule;
selecting one first group ticket rule from a plurality of first group ticket rules as a target group ticket rule according to a preset selection rule;
and generating group ticket information corresponding to the group ticket application according to the target group ticket rule.
The above method, optionally, further includes:
if the current flight information is consistent with the pre-stored local flight information corresponding to the flight number in comparison, searching all local group ticket rules matched with the application information from a pre-constructed group ticket rule base, and determining each searched local group ticket rule as a first group ticket rule;
selecting one first group ticket rule from a plurality of first group ticket rules as a target group ticket rule according to a preset selection rule;
and generating group ticket information corresponding to the group ticket application according to the target group ticket rule.
Optionally, the above method, where the obtaining of the current flight information corresponding to the flight number included in the application information includes:
sending a current flight information acquisition request to a navigation department system corresponding to the flight number according to the flight number contained in the application information;
and when feedback information corresponding to the current flight information acquisition request fed back by the navigation department system is received, acquiring the current flight information contained in the feedback information.
Optionally, the above method, generating a current vote rule according to the current flight information, includes:
analyzing the current flight information to obtain a data item corresponding to each preset parameter;
for each data item, performing data format conversion on data in the data item according to the data format of the corresponding preset parameter, and taking the data item after the data format conversion as a target data item;
and generating a current group ticket rule through a preset rule generation algorithm according to each target data item.
Optionally, in the method, the selecting, according to a preset selection rule, one first group ticket rule from the plurality of first group ticket rules as a target group ticket rule includes:
selecting a first group ticket rule with the highest priority from the plurality of first group ticket rules according to a preset priority order;
if a plurality of first group ticket rules with the highest priority are selected, determining rule generation time corresponding to each first group ticket rule with the highest priority, and determining the first group ticket rule with the latest rule generation time as a target group ticket rule;
and if the selected first group ticket rule with the highest priority is one, taking the first group ticket rule with the highest priority as a target group ticket rule.
Optionally, the above method, after generating the group ticket information corresponding to the group ticket application, further includes:
and feeding back the group ticket information.
A vote information generating apparatus comprising:
the acquisition unit is used for acquiring application information contained in a group ticket application when the group ticket application is received;
the comparison unit is used for acquiring the current flight information corresponding to the flight number contained in the application information and comparing the current flight information with the pre-stored local flight information corresponding to the flight number;
the updating unit is used for generating a current group ticket rule according to the current flight information if the comparison is inconsistent, and updating a local group ticket rule in a pre-constructed group ticket rule base according to the current group ticket rule;
the first searching unit is used for searching all local group ticket rules matched with the application information from the updated group ticket rule base and determining each searched local group ticket rule as a first group ticket rule;
the first selecting unit is used for selecting one first group ticket rule from a plurality of first group ticket rules as a target group ticket rule according to a preset selecting rule;
and the first generating unit is used for generating group ticket information corresponding to the group ticket application according to the target group ticket rule.
The above apparatus, optionally, further comprises:
a second searching unit, configured to search, if the current flight information is consistent with the pre-stored local flight information corresponding to the flight number, all local group ticket rules matched with the application information from a pre-constructed group ticket rule base, and determine each local group ticket rule searched as a first group ticket rule;
the second selecting unit is used for selecting one first group ticket rule from the plurality of first group ticket rules as a target group ticket rule according to a preset selecting rule;
and the second generation unit is used for generating the group ticket information corresponding to the group ticket application according to the target group ticket rule.
The above apparatus, optionally, the comparing unit includes:
the request subunit is used for sending a current flight information acquisition request to the navigation department system corresponding to the flight number according to the flight number contained in the application information;
and the acquiring subunit is configured to acquire the current flight information included in the feedback information when receiving the feedback information corresponding to the current flight information acquisition request and fed back by the navigation system.
The above apparatus, optionally, the update unit includes:
the analysis subunit is used for analyzing the current flight information to obtain a data item corresponding to each preset parameter;
the conversion subunit is configured to, for each data item, perform data format conversion on data in the data item according to a data format of a preset parameter corresponding to the data item, and use the data item after the data format conversion as a target data item;
and the generating subunit is used for generating the current group ticket rule according to each target data item through a preset rule generating algorithm.
The above apparatus, optionally, the first selecting unit, includes:
the selecting subunit is used for selecting a first group ticket rule with the highest priority from the plurality of first group ticket rules according to a preset priority level sequence;
the first determining subunit is configured to determine, if a plurality of first vote rules with the highest priority are extracted, rule generation time corresponding to each first vote rule with the highest priority, and determine the first vote rule with the closest rule generation time as a target vote rule;
and the second determining unit is used for taking the first group ticket rule with the highest priority as a target group ticket rule if the selected first group ticket rule with the highest priority is one.
The above apparatus, optionally, the first generating unit, includes:
and the feedback unit is used for feeding back the group ticket information.
A storage medium, the storage medium comprising stored instructions, wherein when the instructions are executed, a device where the storage medium is located is controlled to execute the above-mentioned group ticket information generating method.
An electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the aforementioned method of generating group ticket information.
Compared with the prior art, the invention has the following advantages:
the invention provides a group ticket information generation method, which comprises the steps of receiving a group ticket application, obtaining application information contained in the group ticket application, obtaining current flight information corresponding to a flight number contained in the application information, comparing the current flight information with pre-stored local flight information corresponding to the flight number, generating a current group ticket rule according to the current flight information if the current flight information is inconsistent with the pre-stored local flight information corresponding to the flight number, updating local group ticket rules in a group ticket rule base according to the current group ticket rule, searching all local group ticket rules matched with the application information from the updated group ticket rule base, selecting one local group ticket rule from the searched local group ticket rules as a target group ticket rule according to a preset selection rule, and generating group ticket information according to the target group ticket rule. According to the group ticket information generation method provided by the invention, after the group ticket application is received, the group ticket rule matched with the group ticket application can be automatically searched, and the group ticket information corresponding to the group ticket application is generated according to the searched group ticket rule, so that the generation efficiency of the group ticket information is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for generating group ticket information according to the present invention;
fig. 2 is a flowchart of another method of a group ticket information generating method according to the present invention;
FIG. 3 is a flowchart of another method of a group ticket information generating method according to the present invention;
fig. 4 is a schematic structural diagram of a group ticket information generating device provided by the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
An embodiment of the present invention provides a group ticket information generating method, which may be applied to multiple system platforms, where an execution subject of the method may be a processor running on various mobile devices, and a flowchart of the group ticket information generating method is shown in fig. 1, and specifically includes:
s101: and when a group ticket application is received, acquiring application information contained in the group ticket application.
In the method provided by the embodiment of the invention, a group ticket application submitted by an agent is received, the group ticket application comprises application information, and the application information comprises but is not limited to flight numbers, the airline department system to which the flight numbers belong, departure dates, the number of people and agent information.
S102: and acquiring current flight information corresponding to the flight number contained in the application information, and comparing the current flight information with pre-stored local flight information corresponding to the flight number.
In the method provided by the embodiment of the invention, when a group ticket application submitted by an agent is received, current flight information corresponding to the flight number is obtained according to the flight number in the application information in the group ticket application, wherein the current flight information is the current flight information corresponding to the flight number, the current flight information comprises information such as current seat, price income and the like of each flight corresponding to the flight number, and the current flight information is compared with the prestored local flight information, namely the information such as the price income, the rest seat information and the like of flights with the same flight number and the same takeoff time is compared.
Optionally, when the agent submits the group ticket application, the application information may include a plurality of flight numbers, and for the plurality of flight numbers, a plurality of pieces of current flight information may be obtained, optionally, different flight numbers may belong to the same airline department system, or may belong to different airline department systems, and for different flight numbers, the current flight information corresponding to the flight number needs to be obtained through the airline department system corresponding to the flight number.
It should be noted that, in the method provided in the embodiment of the present invention, the obtained current flight information may also be stored.
S103: and if the comparison is inconsistent, generating a current group ticket rule according to the current flight information, and updating a local group ticket rule in a pre-constructed group ticket rule base according to the current group ticket rule.
In the method provided by the embodiment of the invention, the current flight information and the local flight information with the same takeoff time and flight number are compared, if the comparison is not consistent, the flight information corresponding to the flight number is changed, if the flight information is judged to be changed, the current group ticket rule is generated according to the current flight information, the local group ticket rule in the group ticket rule base is updated according to the current group ticket rule, and optionally, the local group ticket rule corresponding to the current group ticket rule in the group ticket rule base is replaced by the current group ticket rule.
Optionally, the current flight information may include flight information of a plurality of flight numbers, the flight information includes price revenue information, current seat information, and the like of the flight, optionally, the flight information of a part of the flight numbers may be changed, or the flight information of all the flight numbers may be changed, and a group ticket rule needs to be regenerated for the flight of which the flight information is changed, that is, the group ticket rule is changed, and as long as the flight information is changed, the corresponding group ticket rule is also changed.
S104: and searching all local group ticket rules matched with the application information from the updated group ticket rule base, and determining each searched local group ticket rule as a first group ticket rule.
In the method provided by the embodiment of the invention, all local group ticket rules matched with the application information are searched from the updated group ticket rule base, and the searched local group ticket rules are determined as the first group ticket rules, wherein the application information includes but is not limited to flight number, departure date, price and number of people.
The concrete explanation is that all the local vote rules matched with the application information are searched from the updated vote rule base:
the embodiment of the present invention further provides an example table, which is used for embodying matching parameters, and as shown in table 1:
Figure BDA0002240724020000071
TABLE 1
Analyzing the application information to obtain flight numbers, flight departure times, price information, number of people information and the like corresponding to the application information, and respectively matching the flight numbers, the flight departure times, the price information and the number of people information obtained through analysis with the information of each node of the rule tree; when the group ticket rules are matched, according to a preset priority level sequence, comparing each item of information corresponding to the application information with each node information in a rule tree in sequence, wherein the rule tree is generated by a rule engine according to each group ticket rule in a group ticket rule database.
Optionally, the information in the rule tree may be sequentially matched according to the sequence of flight number, departure time, price, and number of people, as follows:
flight information node of rule tree
THEN obtains the flight departure time applied by the agent
IF flight departure time is within the applicable date range of the rule tree
THEN obtains price information applied by agent
IF price information is higher than price information node in rule tree
THEN acquires the information of the number of team persons applied by the agent
IF team number is less than or equal to (seat limit-the number of seats occupied by team in the host)
THEN continues with other information matches.
It should be noted that, if any information corresponding to the application information is not matched with corresponding information in the rule tree, it is indicated that there is no group ticket rule matched with the application information, and matching failure information is fed back.
It should be noted that there may be a plurality of vote rules matching the application information.
S105: and selecting one first group ticket rule from the plurality of first group ticket rules as a target group ticket rule according to a preset selection rule.
In the method provided by the embodiment of the invention, when a plurality of ticket group rules matched with the application information exist, namely a plurality of first ticket group rules exist, one first ticket group rule is selected from the plurality of first ticket group rules as a target ticket group rule according to a preset selection rule.
S106: and generating group ticket information corresponding to the group ticket application according to the target group ticket rule.
In the method provided by the embodiment of the invention, the group ticket information corresponding to the group ticket application is generated according to the determined target group ticket rule, that is, the group order and the passenger seat booking record PNR are generated according to the travel, departure time, flight, cabin space, number of people, price, agent information and the like in the group ticket rule, wherein the PNR is used for the agent to perform subsequent payment ticket drawing operation.
The method for generating the group ticket information provided by the embodiment of the invention comprises the steps of receiving a group ticket application, obtaining application information contained in the group ticket application, obtaining current flight information corresponding to a flight number contained in the application information, comparing the current flight information with pre-stored local flight information corresponding to the flight number, generating a current group ticket rule according to the current flight information if the current flight information is inconsistent with the pre-stored local flight information corresponding to the flight number, updating the local group ticket rule in a group ticket rule base according to the current group ticket rule, searching all local group ticket rules matched with the application information from the updated local group ticket rule base, selecting one group ticket rule from the searched group ticket rules as a target group ticket rule according to a preset selection rule, and generating the group ticket information according to the target group ticket rule. By applying the group ticket information generation method provided by the embodiment of the invention, after the group ticket application is received, the group ticket rule matched with the group ticket application can be automatically searched, and the group ticket information corresponding to the group ticket application is generated according to the searched group ticket rule, so that the generation efficiency of the group ticket information is improved.
The steps disclosed in fig. 1 in the above embodiment of the present invention, as shown in fig. 2, may further include the following steps:
s201: if the current flight information is consistent with the pre-stored local flight information corresponding to the flight number in comparison, searching all local group ticket rules matched with the application information from a pre-constructed group ticket rule base, and determining each searched local group ticket rule as a first group ticket rule;
in the method provided by the embodiment of the invention, when the current flight information and the local flight information corresponding to the same takeoff time and flight number are consistent in comparison, namely the current flight information and the seat and price information of the local flight information are consistent in comparison, it is judged that the flight information is not updated, all the group ticket rules matched with the application information are searched directly from the pre-constructed group ticket rule base, and each searched group ticket rule is determined as the first group ticket rule. The process of searching for the vote rule matching the application information is similar to the searching process mentioned in step S104, and is not described herein again.
S202: selecting one first group ticket rule from a plurality of first group ticket rules as a target group ticket rule according to a preset selection rule;
in the method provided in the embodiment of the present invention, a process of selecting one vote rule from the plurality of first vote rules as the target vote rule according to a preset selection rule is similar to the process mentioned in step S105, and details are not repeated here.
S203: and generating group ticket information corresponding to the group ticket application according to the target group ticket rule.
In the method provided in the embodiment of the present invention, the process of generating the group ticket information corresponding to the group ticket application according to the target group ticket rule is similar to the process mentioned in step S106, and details are not repeated here.
According to the method provided by the embodiment of the invention, if the current flight information is consistent with the local flight information in comparison, all the group ticket rules corresponding to the application information are directly searched from the group ticket rule base, the target group ticket rules are determined from the searched rules, and the group ticket information corresponding to the application information is generated according to the target group ticket rules.
The above-mentioned step S102 disclosed in fig. 1 of the embodiment of the present invention relates to obtaining the current flight information corresponding to the flight number included in the application information, which includes the following steps:
sending a current flight information acquisition request to a navigation department system corresponding to the flight number according to the flight number contained in the application information;
and when feedback information corresponding to the current flight information acquisition request fed back by the navigation department system is received, acquiring the current flight information contained in the feedback information.
In the method provided by the embodiment of the present invention, the steps specifically include: and sending a current flight information acquisition request to a navigation department system corresponding to the flight number according to the flight number contained in the application information, after receiving the current flight information acquisition request, the navigation department system acquiring current flight information corresponding to the flight number from a database of the navigation department system, feeding back the acquired current flight information, and when receiving feedback information fed back by the navigation department system, acquiring the current flight information contained in the feedback information. It should be noted that the current flight information includes current seat information, current price profit information, and the like.
As mentioned above in the embodiment of the present invention, as shown in fig. 3, the step S103 disclosed in fig. 1 involves generating the current vote rule according to the current flight information, and includes the following steps:
s301: and analyzing the current flight information to obtain a data item corresponding to each preset parameter.
In the method provided by the embodiment of the invention, each parameter for generating the group ticket rule is preset, the current flight information is analyzed, and the data item corresponding to each preset parameter is obtained.
S302: and for each data item, performing data format conversion on data in the data item according to the data format of the corresponding preset parameter, and taking the data item after the data format conversion as a target data item.
In the method provided by the embodiment of the present invention, data format conversion is performed on data in each data item according to a data format corresponding to the data item, and the data item after the data format conversion is used as a target data item.
S303: and generating a current group ticket rule through a preset rule generation algorithm according to each target data item.
In the method provided by the embodiment of the invention, a rule generation algorithm is preset, and the current group ticket rule is generated through the rule generation algorithm according to each target data item.
The group ticket rule is generated, and the version number corresponding to the group ticket rule is generated.
In the method provided by the embodiment of the invention, the current flight information is analyzed, the data item corresponding to each preset parameter is obtained, for each data item, data format conversion is carried out on the data in the data item according to the data format of the corresponding preset parameter, the data item after the data format conversion is used as a target data item, and a group ticket rule is generated through a preset rule generation algorithm according to each target data item.
As mentioned above in relation to step S105 disclosed in fig. 1 of the embodiment of the present invention, selecting one first group ticket rule from a plurality of first group ticket rules as a target group ticket rule according to a preset selection rule includes the following steps:
selecting a first group ticket rule with the highest priority from the plurality of first group ticket rules according to a preset priority order;
if a plurality of first group ticket rules with the highest priority are selected, determining rule generation time corresponding to each first group ticket rule with the highest priority, and determining the first group ticket rule with the latest rule generation time as a target group ticket rule;
and if the selected first group ticket rule with the highest priority is one, taking the first group ticket rule with the highest priority as a target group ticket rule.
The method provided by the embodiment of the invention is characterized in that a priority order is preset, a first group ticket rule with the highest priority is selected from a plurality of group ticket rules according to the high-low order of the priority, when a plurality of first group ticket rules with the highest priority are selected, the first group ticket rule with the latest rule generation time is used as a target group ticket rule, and when one first group ticket rule with the highest priority is selected, the first group ticket rule with the highest priority is directly used as the target group ticket rule.
Optionally, the method for generating group ticket information provided in the embodiment of the present invention may further include feeding back the group ticket information.
In the method provided by the embodiment of the present invention, the implementation process of the group ticket information generation method is specifically described as follows:
step one, analyzing a group ticket request.
And in the process of executing the step one, receiving external (agent and the like) group ticket request information, and analyzing information such as the flight, the navigation department of the flight, the departure date, the number of people, the agent and the like in the request information.
And step two, acquiring current information of the navigation driver.
In the process of executing the second step, information acquisition is initiated to different navigation systems according to the information analyzed in the group ticket request; and after the information is acquired, storing the current seat, price income and other airline department information of the flight to the local, verifying the current seat, price income and other airline department information with the original local information of the current flight, and if the information is updated, triggering the rule to be updated and compiling the group ticket rule.
And step three, automatically compiling the rules.
In the process of executing the third step, according to the current price income condition and the set priority, automatically disassembling the required matching parameters into a specific rule check format, and generating a new group ticket rule and corresponding version information; regularly acquiring rule version information in the group ticket rule base, storing the rule version information in a memory of the rule compiling component, checking whether the updated rule version is the same as the local version, and if not, taking the updated rule version into effect.
And step four, updating the rule base.
And in the process of executing the step four, storing the updated rule file to the group ticket rule base.
And step five, automatically matching the rules.
And in the process of executing the step five, according to the information of the flight, the navigation department of the flight, the departure date, the number of people, the agent and the like in the group ticket request, obtaining the group ticket rule currently corresponding to the external request information from the group ticket rule base.
And step six, managing rule conflict.
And in the process of executing the step six, extracting a rule according to the rule priority.
And step seven, executing the rule.
And in the process of executing the seventh step, calling a rule execution engine, executing the corresponding rule file, generating a group ticket according to the matched rule information, and returning the group ticket to the agent.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides a group ticket information generating apparatus, which is used for specifically implementing the method in fig. 1, and a schematic structural diagram of the apparatus is shown in fig. 4, and specifically includes:
an obtaining unit 401, configured to obtain, when a group ticket application is received, application information included in the group ticket application;
a comparing unit 402, configured to obtain current flight information corresponding to a flight number included in the application information, and compare the current flight information with pre-stored local flight information corresponding to the flight number;
an updating unit 403, configured to generate a group ticket rule according to the current flight information if the comparison is inconsistent, and update the group ticket rule in the pre-constructed group ticket rule library according to the group ticket rule;
a first searching unit 404, configured to search all the group ticket rules matched with the application information from the updated group ticket rule base, and determine each searched group ticket rule as a first group ticket rule;
a first selecting unit 405, configured to select, according to a preset selecting rule, one first group ticket rule from the first group ticket rules as a target group ticket rule;
the first generating unit 406 is configured to generate group ticket information corresponding to the group ticket application according to the target group ticket rule.
The group ticket information generating device provided by the embodiment of the invention receives a group ticket application, acquires application information contained in the group ticket application, acquires current flight information corresponding to a flight number contained in the application information, compares the current flight information with pre-stored local flight information corresponding to the flight number, generates a group ticket rule according to the current flight information if the comparison is inconsistent, updates the group ticket rule in the group ticket rule base according to the group ticket rule, searches all group ticket rules matched with the application information from the updated group ticket rule base, selects one group ticket rule from the searched group ticket rules as a target group ticket rule according to a preset selection rule, and generates the group ticket information according to the target group ticket rule. By applying the group ticket information generating device provided by the invention, after receiving the group ticket application, the group ticket rule matched with the group ticket application can be automatically searched, and the group ticket information corresponding to the group ticket application is generated according to the searched group ticket rule, so that the generation efficiency of the group ticket information is improved.
In an embodiment of the present invention, based on the foregoing solution, the method is further configured to:
a second searching unit, configured to search all the group ticket rules matched with the application information from a pre-constructed group ticket rule library if the current flight information is consistent with the pre-stored local flight information corresponding to the flight number, and determine each searched group ticket rule as a first group ticket rule;
the second selecting unit is used for selecting one first group ticket rule from the plurality of first group ticket rules as a target group ticket rule according to a preset selecting rule;
and the second generation unit is used for generating the group ticket information corresponding to the group ticket application according to the target group ticket rule.
In an embodiment of the present invention, based on the foregoing scheme, the comparing unit 402 is configured to:
the request subunit is used for sending a current flight information acquisition request to the navigation department system corresponding to the flight number according to the flight number contained in the application information;
and the acquiring subunit is configured to acquire the current flight information included in the feedback information when receiving the feedback information corresponding to the current flight information acquisition request and fed back by the navigation system.
In an embodiment of the present invention, based on the foregoing scheme, the updating unit 403 is configured to:
the analysis subunit is used for analyzing the current flight information to obtain a data item corresponding to each preset parameter;
the conversion subunit is configured to, for each data item, perform data format conversion on data in the data item according to a data format of a preset parameter corresponding to the data item, and use the data item after the data format conversion as a target data item;
and the generating subunit is used for generating a new group ticket rule through a preset rule generating algorithm according to each target data item.
In an embodiment of the present invention, based on the foregoing scheme, the first selecting unit 405 is configured to:
the selecting subunit is used for selecting a first group ticket rule with the highest priority from the plurality of first group ticket rules according to a preset priority level sequence;
the first determining subunit is configured to determine, if a plurality of first vote rules with the highest priority are extracted, rule generation time corresponding to each first vote rule with the highest priority, and determine the first vote rule with the closest rule generation time as a target vote rule;
and the second determining subunit is used for taking the first group ticket rule with the highest priority as the target group ticket rule if the selected first group ticket rule with the highest priority is one.
In an embodiment of the present invention, based on the foregoing scheme, the first generating unit 406 is further configured to:
and the feedback unit is used for feeding back the group ticket information.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the device where the storage medium is located is controlled to execute the group ticket information generation method.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 5, which specifically includes a memory 501 and one or more instructions 502, where the one or more instructions 502 are stored in the memory 501, and are configured to be executed by one or more processors 503 to perform the following operations according to the one or more instructions 502:
when a group ticket application is received, acquiring application information contained in the group ticket application;
acquiring current flight information corresponding to a flight number contained in the application information, and comparing the current flight information with pre-stored local flight information corresponding to the flight number;
if the comparison is inconsistent, generating a group ticket rule according to the current flight information, and updating the group ticket rule in a pre-constructed group ticket rule base according to the group ticket rule;
searching all the group ticket rules matched with the application information from the updated group ticket rule base, and determining each searched group ticket rule as a first group ticket rule;
selecting one first group ticket rule from a plurality of first group ticket rules as a target group ticket rule according to a preset selection rule;
and generating group ticket information corresponding to the group ticket application according to the target group ticket rule.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The detailed description is given above to the group ticket information generation method and device provided by the present invention, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for generating group ticket information, comprising:
when a group ticket application is received, acquiring application information contained in the group ticket application;
acquiring current flight information corresponding to a flight number contained in the application information, and comparing the current flight information with pre-stored local flight information corresponding to the flight number;
if the comparison is inconsistent, generating a current group ticket rule according to the current flight information, and updating a local group ticket rule in a pre-constructed group ticket rule base according to the current group ticket rule;
searching all local group ticket rules matched with the application information from the updated group ticket rule base, and determining each searched local group ticket rule as a first group ticket rule;
selecting one first group ticket rule from a plurality of first group ticket rules as a target group ticket rule according to a preset selection rule;
and generating group ticket information corresponding to the group ticket application according to the target group ticket rule.
2. The method of claim 1, further comprising:
if the current flight information is consistent with the pre-stored local flight information corresponding to the flight number in comparison, searching all local group ticket rules matched with the application information from a pre-constructed group ticket rule base, and determining each searched local group ticket rule as a first group ticket rule;
selecting one first group ticket rule from a plurality of first group ticket rules as a target group ticket rule according to a preset selection rule;
and generating group ticket information corresponding to the group ticket application according to the target group ticket rule.
3. The method according to claim 1, wherein the obtaining of the current flight information corresponding to the flight number included in the application information includes:
sending a current flight information acquisition request to a navigation department system corresponding to the flight number according to the flight number contained in the application information;
and when feedback information corresponding to the current flight information acquisition request fed back by the navigation department system is received, acquiring the current flight information contained in the feedback information.
4. The method of claim 1, wherein generating a current vote rule based on the current flight information comprises:
analyzing the current flight information to obtain a data item corresponding to each preset parameter;
for each data item, performing data format conversion on data in the data item according to the data format of the corresponding preset parameter, and taking the data item after the data format conversion as a target data item;
and generating a current group ticket rule through a preset rule generation algorithm according to each target data item.
5. The method according to claim 1 or 2, wherein the selecting one first group ticket rule from a plurality of first group ticket rules as the target group ticket rule according to a preset selection rule comprises:
selecting a first group ticket rule with the highest priority from the plurality of first group ticket rules according to a preset priority order;
if a plurality of first group ticket rules with the highest priority are selected, determining rule generation time corresponding to each first group ticket rule with the highest priority, and determining the first group ticket rule with the latest rule generation time as a target group ticket rule;
and if the selected first group ticket rule with the highest priority is one, taking the first group ticket rule with the highest priority as a target group ticket rule.
6. The method according to claim 1 or 2, wherein after generating the group ticket information corresponding to the group ticket application, the method further comprises:
and feeding back the group ticket information.
7. A group ticket information generating apparatus, comprising:
the acquisition unit is used for acquiring application information contained in a group ticket application when the group ticket application is received;
the comparison unit is used for acquiring the current flight information corresponding to the flight number contained in the application information and comparing the current flight information with the pre-stored local flight information corresponding to the flight number;
the updating unit is used for generating a current group ticket rule according to the current flight information if the comparison is inconsistent, and updating a local group ticket rule in a pre-constructed group ticket rule base according to the current group ticket rule;
the first searching unit is used for searching all the group ticket rules matched with the application information from the updated group ticket rule base and determining each searched local group ticket rule as a first group ticket rule;
the first selecting unit is used for selecting one first group ticket rule from a plurality of first group ticket rules as a target group ticket rule according to a preset selecting rule;
and the first generating unit is used for generating group ticket information corresponding to the group ticket application according to the target group ticket rule.
8. The apparatus of claim 7, further comprising:
a second searching unit, configured to search, if the current flight information is consistent with the pre-stored local flight information corresponding to the flight number, all local group ticket rules matched with the application information from a pre-constructed group ticket rule base, and determine each local group ticket rule searched as a first group ticket rule;
the second selecting unit is used for selecting one first group ticket rule from the plurality of first group ticket rules as a target group ticket rule according to a preset selecting rule;
and the second generation unit is used for generating the group ticket information corresponding to the group ticket application according to the target group ticket rule.
9. The apparatus of claim 7, wherein the alignment unit comprises:
the request subunit is used for sending a current flight information acquisition request to the navigation department system corresponding to the flight number according to the flight number contained in the application information;
and the acquiring subunit is configured to acquire the current flight information included in the feedback information when receiving the feedback information corresponding to the current flight information acquisition request and fed back by the navigation system.
10. The apparatus of claim 7, wherein the updating unit comprises:
the analysis subunit is used for analyzing the current flight information to obtain a data item corresponding to each preset parameter;
the conversion subunit is configured to, for each data item, perform data format conversion on data in the data item according to a data format of a preset parameter corresponding to the data item, and use the data item after the data format conversion as a target data item;
and the generating subunit is used for generating the current group ticket rule according to each target data item through a preset rule generating algorithm.
CN201910999140.7A 2019-10-21 2019-10-21 Group ticket information generation method and device Active CN110717842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910999140.7A CN110717842B (en) 2019-10-21 2019-10-21 Group ticket information generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910999140.7A CN110717842B (en) 2019-10-21 2019-10-21 Group ticket information generation method and device

Publications (2)

Publication Number Publication Date
CN110717842A true CN110717842A (en) 2020-01-21
CN110717842B CN110717842B (en) 2022-11-18

Family

ID=69213927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910999140.7A Active CN110717842B (en) 2019-10-21 2019-10-21 Group ticket information generation method and device

Country Status (1)

Country Link
CN (1) CN110717842B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111784156A (en) * 2020-06-30 2020-10-16 中国民航信息网络股份有限公司 Seat quota determining method and device, storage medium and electronic equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097274A1 (en) * 2001-11-16 2003-05-22 Parsons Thomas W. Method and system for compiling, displaying, and updating travel information
US20080167909A1 (en) * 2007-01-05 2008-07-10 De Marcken Carl Updating a database of travel information
CN103064885A (en) * 2012-12-06 2013-04-24 安徽科大讯飞信息科技股份有限公司 System and method for achieving synchronous inputting of key words
US20130297360A1 (en) * 2012-05-07 2013-11-07 Yapta, Inc Flight-price monitoring systems and methods
CN105354689A (en) * 2015-12-20 2016-02-24 北京民航信息科技有限公司 Computer system based civil aviation team management method and system
CN105528642A (en) * 2015-12-20 2016-04-27 北京民航信息科技有限公司 Group air ticket transaction method and system based on computer system
CN105678392A (en) * 2015-12-25 2016-06-15 中国民航信息网络股份有限公司 Prepaid flight seat sale system and method thereof
US20170124464A1 (en) * 2015-10-28 2017-05-04 Fractal Industries, Inc. Rapid predictive analysis of very large data sets using the distributed computational graph
CN107451872A (en) * 2017-08-10 2017-12-08 中国民航信息网络股份有限公司 The management method and device of flight freight rate
CN108985481A (en) * 2018-07-23 2018-12-11 在路上云(北京)科技有限公司 Group's ticket booking method, equipment and server
CN109165999A (en) * 2018-07-23 2019-01-08 在路上云(北京)科技有限公司 Group's ticket booking method, equipment and server
CN109327380A (en) * 2018-10-22 2019-02-12 中国平安财产保险股份有限公司 Public platform management method, device, computer equipment and storage medium
CN110178338A (en) * 2016-08-24 2019-08-27 高阶公司 Digital securitisation, blurring, strategy and the commercial affairs of event ticket
CN110298604A (en) * 2019-07-10 2019-10-01 中国民航信息网络股份有限公司 Flight planning generation method and device
CN110309440A (en) * 2019-07-10 2019-10-08 中国民航信息网络股份有限公司 Ticket price searching method and relevant device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097274A1 (en) * 2001-11-16 2003-05-22 Parsons Thomas W. Method and system for compiling, displaying, and updating travel information
US20080167909A1 (en) * 2007-01-05 2008-07-10 De Marcken Carl Updating a database of travel information
US20130297360A1 (en) * 2012-05-07 2013-11-07 Yapta, Inc Flight-price monitoring systems and methods
CN103064885A (en) * 2012-12-06 2013-04-24 安徽科大讯飞信息科技股份有限公司 System and method for achieving synchronous inputting of key words
US20170124464A1 (en) * 2015-10-28 2017-05-04 Fractal Industries, Inc. Rapid predictive analysis of very large data sets using the distributed computational graph
CN105354689A (en) * 2015-12-20 2016-02-24 北京民航信息科技有限公司 Computer system based civil aviation team management method and system
CN105528642A (en) * 2015-12-20 2016-04-27 北京民航信息科技有限公司 Group air ticket transaction method and system based on computer system
CN105678392A (en) * 2015-12-25 2016-06-15 中国民航信息网络股份有限公司 Prepaid flight seat sale system and method thereof
CN110178338A (en) * 2016-08-24 2019-08-27 高阶公司 Digital securitisation, blurring, strategy and the commercial affairs of event ticket
CN107451872A (en) * 2017-08-10 2017-12-08 中国民航信息网络股份有限公司 The management method and device of flight freight rate
CN108985481A (en) * 2018-07-23 2018-12-11 在路上云(北京)科技有限公司 Group's ticket booking method, equipment and server
CN109165999A (en) * 2018-07-23 2019-01-08 在路上云(北京)科技有限公司 Group's ticket booking method, equipment and server
CN109327380A (en) * 2018-10-22 2019-02-12 中国平安财产保险股份有限公司 Public platform management method, device, computer equipment and storage medium
CN110298604A (en) * 2019-07-10 2019-10-01 中国民航信息网络股份有限公司 Flight planning generation method and device
CN110309440A (en) * 2019-07-10 2019-10-08 中国民航信息网络股份有限公司 Ticket price searching method and relevant device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孟扬子: "多行业综合支付系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111784156A (en) * 2020-06-30 2020-10-16 中国民航信息网络股份有限公司 Seat quota determining method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110717842B (en) 2022-11-18

Similar Documents

Publication Publication Date Title
US9135351B2 (en) Data processing method and distributed processing system
US9262745B2 (en) Generating roles for a platform based on roles for an existing platform
CN107992514B (en) Structured information card search and retrieval
CN106371840A (en) Software development method and device based on crowdsourcing
US20130166357A1 (en) Recommender engine
US20160232626A1 (en) Travel activity tracking system
US20150294234A1 (en) Aggregation record for managing ancillary travel services
JP6419081B2 (en) Transform generation system
GB2513528A (en) Method and system for backup management of software environments in a distributed network environment
WO2010133447A1 (en) Method and system for determining an optimal low fare for a trip
KR101813475B1 (en) Artificial intelligence-based travel and ticket recommendation system
JP4515849B2 (en) Workflow management device, workflow management program, and workflow management method
CN110717842B (en) Group ticket information generation method and device
US20100161682A1 (en) Metadata model repository
CN110751575A (en) Method and device for processing civil aviation passenger service data
JP7323346B2 (en) Intelligent prediction of spare part bundles
US10339037B1 (en) Recommendation engine for recommending prioritized performance test workloads based on release risk profiles
EP2908278A1 (en) Scoring engine
US11922342B2 (en) Searching trips based on accumulated subscription days
US11789829B2 (en) Interprocess communication for asynchronous tasks
US20220391180A1 (en) Dynamic code snippet promotion
CN114237588A (en) Code warehouse selection method, device, equipment and storage medium
US20120174092A1 (en) Integrated commercial infrastructure and business application platform
EP3057041A1 (en) Travel activity tracking system
CN110751403A (en) Credit scoring method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant