CN115358788A - Flight price query method and device and electronic equipment - Google Patents

Flight price query method and device and electronic equipment Download PDF

Info

Publication number
CN115358788A
CN115358788A CN202211012409.6A CN202211012409A CN115358788A CN 115358788 A CN115358788 A CN 115358788A CN 202211012409 A CN202211012409 A CN 202211012409A CN 115358788 A CN115358788 A CN 115358788A
Authority
CN
China
Prior art keywords
freight rate
rule
rate data
flight
rule information
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
CN202211012409.6A
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 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 CN202211012409.6A priority Critical patent/CN115358788A/en
Publication of CN115358788A publication Critical patent/CN115358788A/en
Pending legal-status Critical Current

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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • 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/24564Applying rules; Deductive queries
    • G06Q50/40

Abstract

The invention discloses a flight price query method, a flight price query device and electronic equipment, which can obtain ticket booking information and flight numbers carried in a request by obtaining and analyzing a ticket freight price calculation request; inquiring a freight rate database to obtain at least one piece of freight rate data corresponding to the ticket booking information, wherein each piece of freight rate data at least comprises a freight rate and a rule number; inquiring a rule database aiming at any freight rate data so as to obtain rule information corresponding to the rule number, wherein each rule information at least comprises a flight number suffix of a flying flight; aiming at any rule information, whether the flight number suffix is matched with the flight number carried in the air ticket freight rate calculation request is judged; and if the fare data are matched with the fare data, corresponding fare data are returned to a sender of the fare calculation request of the air ticket. The invention manages the freight rate data of the flying class by the flight number suffix of the flying flight, can improve the freight rate query efficiency of the flying flight and further improve the ticket selling efficiency of the flying class.

Description

Flight price query method and device and electronic equipment
Technical Field
The invention relates to the field of aviation, in particular to a flight price query method and device and electronic equipment.
Background
In recent years, along with the increasing convenience and effectiveness of passengers traveling by planes, the ticket price promotion products are abundant due to benign competition among airlines. In order to meet the sales requirements of the market, the airline adjusts the capacity arrangement between airlines in order to cope with the sales market conditions, but the capacity is still insufficient in peak seasons of the passenger tickets, such as spring or summer, and in order to meet the large-scale travel arrangement of passengers, the airline increases the number of flight-taking shifts of part of airlines, so that the capacity tension of the airlines is solved.
The domestic ticket sale basically adopts an automatic calculation mechanism. The rules for automatically calculating the freight rate, as well as the maintenance and verification of the flight number, are all performed in a digital form. This results in that for flying flights, the automatically calculated fare rules cannot match their corresponding flight numbers, and full-automatic fare calculation cannot be performed. Therefore, the ticket cannot be issued by adopting an automatic calculation method in the flying class, and the sale efficiency of the ticket of the flying class is seriously influenced.
Disclosure of Invention
In view of the above, the present invention provides a flight price inquiry method, device and electronic equipment that overcome the above problems or at least partially solve the above problems.
In a first aspect, a flight price query method includes:
obtaining and analyzing an air ticket freight rate calculation request so as to obtain booking information and flight number carried in the air ticket freight rate calculation request;
inquiring a freight rate database so as to obtain at least one piece of freight rate data corresponding to the ticket booking information, wherein each piece of freight rate data at least comprises a freight rate and a rule number;
executing query of a rule database aiming at any one of the freight rate data so as to obtain rule information corresponding to the rule number, wherein each piece of rule information at least comprises a flight number suffix of a flying flight;
aiming at any rule information, whether the flight number suffix is matched with a flight number carried in the air ticket freight rate calculation request or not is judged;
and if the flight number suffix is matched with the flight number carried in the air ticket freight rate calculation request, returning corresponding freight rate data to a sender of the air ticket freight rate calculation request.
In a second aspect, a flight price inquiry apparatus includes: the system comprises a request analysis unit, a freight rate query unit, a rule query unit, a flight number matching unit and a freight rate return unit;
the request analysis unit is used for obtaining and analyzing the air ticket freight rate calculation request so as to obtain booking information and flight number carried in the air ticket freight rate calculation request;
the freight rate query unit is used for querying a freight rate database so as to obtain at least one piece of freight rate data corresponding to the ticket booking information, wherein each piece of freight rate data at least comprises a freight rate and a rule number;
the rule query unit is configured to query a rule database for any one of the freight rate data, so as to obtain rule information corresponding to the rule number, where each piece of the rule information at least includes a flight number suffix of a flying flight;
the flight number matching unit is used for judging whether the flight number suffix is matched with the flight number carried in the air ticket freight rate calculation request or not aiming at any rule information;
and the freight rate returning unit is used for returning corresponding freight rate data to a sender of the air ticket freight rate calculation request if the flight number suffix is matched with the flight number carried in the air ticket freight rate calculation request.
In a third aspect, a computer-readable storage medium has a program stored thereon, and the program is executed by a processor to implement the flight price inquiry method of any one of the above.
In a fourth aspect, an electronic device comprises at least one processor, and at least one memory, bus, connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform the flight price inquiry method of any one of the above.
By means of the technical scheme, the flight price query method, the flight price query device and the electronic equipment can obtain the booking information and the flight number carried in the air ticket freight price calculation request by obtaining and analyzing the air ticket freight price calculation request; inquiring a freight rate database so as to obtain at least one piece of freight rate data corresponding to the ticket booking information, wherein each piece of freight rate data at least comprises a freight rate and a rule number; executing query of a rule database aiming at any one of the freight rate data so as to obtain rule information corresponding to the rule number, wherein each piece of rule information at least comprises a flight number suffix of a flying flight; aiming at any rule information, judging whether the flight number suffix is matched with a flight number carried in the air ticket freight rate calculation request or not; and if the flight number suffix is matched with the flight number carried in the air ticket freight rate calculation request, returning corresponding freight rate data to a sender of the air ticket freight rate calculation request. Therefore, the freight data of the flight plus flight class is managed through the flight number suffix of the flight plus flight, the freight query efficiency of the flight plus flight class can be improved, and the ticketing efficiency of the flight plus flight class is further improved.
The above description is only an overview of the technical solutions of the present invention, and the present invention can be implemented in accordance with the content of the description so as to make the technical means of the present invention more clearly understood, and the above and other objects, features, and advantages of the present invention will be more clearly understood.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a flow chart of a flight price inquiry method provided by the present invention;
fig. 2 is a schematic structural diagram of a flight price inquiry device provided by the invention;
fig. 3 shows a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more complete and thorough understanding of the present invention. It should be understood that the drawings and the embodiments of the present invention are illustrative only and are not intended to limit the scope of the present invention.
The term "include" and variations thereof as used herein are intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present invention are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" or "the" modification(s) in the present invention are intended to be illustrative rather than limiting and that those skilled in the art will understand that reference to "one or more" unless the context clearly indicates otherwise.
As shown in fig. 1, the present invention provides a flight price query method, including: s100, S200, S300, S400, and S500;
s100, obtaining and analyzing an air ticket freight rate calculation request, so as to obtain booking information and flight number carried in the air ticket freight rate calculation request;
optionally, the executive agent of the present invention may receive a request for calculating the fare of the air ticket sent by the device at the front end of sale, which is not limited by the present invention.
Optionally, the ticket booking information is not limited by the present invention, and any feasible manner is within the protection scope of the present invention. For example, the booking information may include: front-end identity information, leg information, flight information, passenger information, etc., which are not limited in the present invention.
Optionally, the flight number carried in the air ticket freight rate calculation request is not used for querying freight rate data, and the flight number carried in the air ticket freight rate calculation request is used in subsequent S400, which is not limited in the present invention.
Optionally, the process of analyzing the air ticket fare calculation request is not limited by the present invention, for example, the front-end identity information is analyzed first, then the passenger information is analyzed, and finally the flight segment information and the flight information are analyzed.
S200, inquiring a freight rate database to obtain at least one piece of freight rate data corresponding to the ticket booking information, wherein each piece of freight rate data at least comprises a freight rate and a rule number;
optionally, multiple pieces of freight rate data may be stored in advance in the freight rate database, each piece of freight rate data may be understood as a long character string, and each piece of freight rate data at least includes a freight rate and a rule number. It should be noted that: the rule number is a number of rule information described later, that is, one piece of rule information corresponds to one rule number. The rule number is set in the freight rate data so that corresponding rule information can be searched from the rule database according to the rule number in the freight rate data.
Optionally, one piece of freight rate data corresponds to one rule number, and one rule number corresponds to one piece of rule information. The freight rate data and the rule information are also in a one-to-one relationship, which is not limited by the present invention.
Optionally, the rule number is set in the freight rate data, so that the subsequent query of rule information is facilitated. Meanwhile, for the plus flight, a corresponding flight number suffix can be set in the rule information to represent that the corresponding rule information is the rule information of the plus flight, and the rule information can be divided into two conditions:
in the first case, no matter whether the flight is the fly-away flight or not, a flight number suffix is set in the rule information, and only the specific flight number suffix is used for representing that the corresponding rule information is the fly-away flight. For this case, the present invention may query only rule information obtained with a specific flight number suffix according to the rule number in S300, which is not limited by the present invention.
And in the second case, a flight number suffix is set in the rule information only for the plus flight class, and the flight number suffix is not set in the rule information for other normal flights. For this case, the present invention may query only rule information having a flight number suffix according to the rule number in S300, which is not limited by the present invention.
Optionally, the method for querying the freight rate database to obtain at least one piece of freight rate data corresponding to the ticket booking information is not limited. For example, in connection with the embodiment shown in fig. 1, in some alternative embodiments, the booking information includes: ticket time, travel time, origin, destination, passenger type, and flight slot;
the S200 includes: step 1.1, step 1.2 and step 1.3;
step 1.1, inquiring whether the freight rate database stores freight rate data which simultaneously meets the conditions 1, 2, 3, 4 and 5;
if the freight rate data which simultaneously meet the condition 1, the condition 2, the condition 3, the condition 4 and the condition 5 are stored in the freight rate database, executing a step 1.2, otherwise, executing a step 1.3;
step 1.2, obtaining the freight rate data;
and step 1.3, sending an alarm or prompt that the corresponding freight rate data is not found.
Wherein the condition 1 is: the selling time is within the time interval of preset effective time and preset ineffective time recorded in the freight rate data;
the condition 2 is as follows: the travel time is within a time interval of a preset travel starting time and a preset travel ending time recorded in the freight rate data;
the condition 3 is: the origin is consistent with the origin recorded in the freight rate data and the destination is consistent with the destination recorded in the freight rate data;
the condition 4 is: the passenger type is consistent with the passenger type recorded in the freight rate data or the freight rate data does not limit the passenger type;
the condition 5 is: the flight slot is consistent with the flight slot recorded in the freight rate data.
S300, inquiring a rule database aiming at any freight rate data to obtain rule information corresponding to the rule number, wherein each piece of rule information at least comprises a flight number suffix of an air flight;
optionally, the rule information of the flying flight is obtained by executing S300, so as to verify that the corresponding operational price data is the operational price data of the flying flight, and the corresponding operational price is the price of the flying flight.
Optionally, although the rule information of the flights to be flown and the corresponding freight data are screened out by executing S300, the freight data of all flights to be flown obtained by query are not the freight data corresponding to the flight number selected by the user. Therefore, the present invention may further determine freight rate data meeting the user requirement by performing S400, which is not limited by the present invention.
Optionally, the present invention does not limit the manner of querying the rule database for any of the freight rate data, thereby obtaining the rule information corresponding to the rule number. For example, in combination with the embodiment shown in fig. 1, in some alternative embodiments, the S300 includes: step 2.1, step 2.2 and step 2.3;
step 2.1, aiming at any freight rate data, inquiring whether the rule database stores rule information with a rule number consistent with the rule number recorded in the freight rate data;
if the rule database stores the rule information, executing the step 2.2, otherwise executing the step 2.3;
step 2.2, acquiring the rule information;
and 2.3, returning to execute the step 2.1 for the next freight rate data until the step 2.1 is executed for each freight rate data obtained in the S200. It should be noted that: for any freight rate data, the rule information which is stored in the rule database and has the rule number consistent with the rule number recorded in the freight rate data is only acquired, and the rule information is not limited by the invention.
S400, aiming at any rule information, judging whether the flight number suffix is matched with a flight number carried in the air ticket freight rate calculation request or not;
s500, if the flight number suffix is matched with the flight number carried in the air ticket freight rate calculation request, corresponding freight rate data is returned to a sender of the air ticket freight rate calculation request.
Optionally, the present invention does not limit a manner of determining whether the flight number suffix matches the flight number carried in the air ticket freight rate calculation request for any of the rule information. For example, in combination with the embodiment shown in fig. 1, in some alternative embodiments, the S400 includes:
aiming at any rule information, whether the flight number suffix is consistent with the flight number suffix carried in the air ticket freight rate calculation request or not is judged;
the S500 includes:
and if the flight number suffix is consistent with the flight number suffix carried in the air ticket freight rate calculation request, returning corresponding freight rate data to a sender of the air ticket freight rate calculation request.
Optionally, if the flight number suffix is identical to the flight number suffix carried in the ticket freight calculation request, it indicates that the corresponding freight data is not only the freight data of the flying flight but also the freight data of the flight meeting the user requirement. Therefore, the invention can return the corresponding freight rate data to the sender of the air ticket freight rate calculation request, and the invention does not limit the situation.
Optionally, if the flight number suffix is not identical to the flight number suffix carried in the air ticket freight rate calculation request, it indicates that the corresponding freight rate data is not the freight rate data of the flight meeting the user requirement, although the corresponding freight rate data is the freight rate data of the flight overtime.
As mentioned above, the present invention may store a plurality of pieces of rule information in the rule database in advance, and the following describes the process of establishing and storing any piece of rule information, which is not limited by the present invention.
In some optional embodiments, in combination with the embodiment shown in fig. 1, before the S200, the method further includes: step 3.1, step 3.2, step 3.3, step 3.4, step 3.5 and step 3.6;
step 3.1, obtaining a rule creating instruction;
alternatively, the user may click on a "create rule" button on the interface, thereby entering a rule creation instruction into the executive body of the invention. That is, the executing agent of the present invention may execute step 3.2 after detecting that the user clicks the "create rule" button, which is not limited by the present invention.
3.2, jumping to a rule creating interface according to the rule creating instruction;
step 3.3, obtaining rule information input by a user in the rule creating interface;
step 3.4, checking whether the obtained rule information is correct or not;
if the rule information is correct, executing the step 3.5, otherwise executing the step 3.6;
step 3.5, storing the rule information to the rule database;
and 3.6, reminding the user to modify the rule information or delete the corresponding rule information.
Optionally, the present invention does not limit the manner of checking whether the obtained rule information is correct. For example, in combination with the previous embodiment, in certain alternative embodiments, the step 3.4, comprises: step 3.41, step 3.42, step 3.43 and step 3.44;
step 3.41, judging whether the effective time in the obtained rule information is not empty and is later than the current system time;
step 3.42, judging whether the rule number in the rule information is empty;
step 3.43, judging whether the deadline time in the rule information is later than the effective time in the rule information;
and 3.44, if the effective time in the rule information is not null and is later than the current system time, the rule number in the rule information is not null, and the deadline time in the rule information is later than the effective time in the rule information, determining that the rule information is correct, otherwise, determining that the rule information is incorrect.
Optionally, the execution order of step 3.41, step 3.42, and step 3.43 is not limited in the present invention, and different serial execution orders may be set according to actual needs, or step 3.41, step 3.42, and step 3.43 may be executed in parallel.
Optionally, the content included in the stored rule information is not limited in the present invention, and for example, the content may include: the system comprises rule numbers, effective time, deadline, advance ticket buying time limit, group and bulk applicable limit, team member number limit, sale time, applicable week, code sharing driver limit, flight number applicable range, flight number exceptional range, flight date applicable range, flight date exceptional range, ticket refunding rule number, change rule number, whether the system can sell alone, whether the system can sell in combination and can combine freight rate limit and the like, wherein some of the system are generated by the system, and some of the system are input by a user, and the system is not limited to the method.
Optionally, the present invention may also set a journey limit in the rule information of the flight, for example, a departure limit and a return limit are distinguished according to the type of the journey. The schedule predetermined by the passenger is divided into one-way (for example, beijing to shanghai), link (for example, beijing goes to guangzhou via shanghai) and round trip (for example, beijing goes to shanghai and returns to beijing) according to the freight business standard, wherein the schedule limit in the rule information can manage and control the schedule, the link and the schedule part of the round trip (for example, beijing goes to shanghai and returns to beijing, shanghai is a turning point and the round trip is a voyage of beijing to shanghai) predetermined by the passenger; the backhaul limits may govern the backhaul portion of the round trip predetermined by the control passenger (e.g., the journey from beijing to shanghai back to beijing, the shanghai being the turn back point, and the backhaul being the leg from shanghai to beijing).
In the limitation of the outbound and the return journey, the information of the suffix of the flight number can be respectively controlled, the flight plan is divided into a forward flight and a flying flight, and in the management of the suffix of the flight number, the purpose of flexible management can be achieved by using the following three forms:
1. can be simultaneously suitable for the flight on duty and the flight with flying. In the case of application, the airline company may set a specific flight number range, or may not limit the flight number, and since the business rule does not distinguish whether the flight number is a flying flight, it is not necessary to perform independent management on the suffix of the flight number (for example, the flight number range is 9001-9999, which means that all flights in the range of the first 4 flight numbers satisfy the restriction condition), and under the restriction condition, the fare of the flights in the main class and the flying flights is the same.
2. Only for on-duty flights. Under the condition that only the plus flight is applicable, the plus flight is not applicable, the airline company can still set a specific flight number range, or the flight number is not limited, under the limitation condition, the plus flight can be matched with the rule, and after the plus flight is scheduled, the fare is invalid.
3. Only applicable to flying flights. In the case of only applying overtime, it means that the flight in the main shift is not available, besides setting a specific flight number range, the airline can also set a specific flight number suffix code, such as a or B or C, which is combined with the flight number range, and can accurately specify one or a range of flight numbers, under the restriction condition, the flight in the main shift can be matched with the rule information, and after the flight in the main shift is scheduled, the fare is invalid.
As mentioned above, the present invention may store a plurality of freight rate data in the freight rate database in advance, and the process of establishing and storing any freight rate data is described below, which is not limited by the present invention.
In combination with the previous embodiment, in certain alternative embodiments, after step 3.5, the method further comprises: step 4.1, step 4.2, step 4.3, step 4.4, step 4.5 and step 4.6;
optionally, in practice, rule information may be established first, and then the corresponding freight rate data may be established, so that step 4.1 may be performed after step 3.5 in the present invention, which is not limited in the present invention.
Step 4.1, obtaining a freight rate establishing instruction;
4.2, jumping to a freight rate establishing interface according to the freight rate establishing instruction;
4.3, acquiring freight rate data input by a user in the rule creation interface;
4.4, checking whether the obtained freight rate data is correct or not;
if the freight rate data is correct, executing a step 4.5, otherwise executing a step 4.6;
step 4.5, storing the rule information to the freight rate database;
and 4.6, reminding the user to modify the freight rate data or deleting the corresponding freight rate data.
Optionally, the present invention does not limit the manner of checking whether the obtained freight rate data is correct. For example, in combination with the previous embodiment, in certain alternative embodiments, the step 4.4 includes: step 4.41, step 4.42, step 4.43, step 4.44 and step 4.45;
step 4.41, judging whether the preset effective time in the obtained freight rate data is not empty and is later than the current system time;
step 4.42, judging whether the preset travel deadline time in the freight rate data is later than the preset travel starting time in the freight rate data;
step 4.43, judging whether the freight rate basis in the freight rate data is not empty;
optionally, each piece of freight rate data has a freight rate basis, which can be understood as a product code number of the freight rate, and is an identifier used for settlement audit by the airline company, which is not limited by the present invention.
Step 4.44, judging whether the rule number in the freight rate data is not null or not;
and 4.45, if the preset effective time in the freight rate data is not empty and is later than the current system time, the preset travel deadline time in the freight rate data is later than the preset travel starting time in the freight rate data, the freight rate basis in the freight rate data is not empty, and the rule number in the freight rate data is not empty, determining that the freight rate data is correct, otherwise, determining that the freight rate data is incorrect.
Optionally, the execution sequence of step 4.41, step 4.42, step 4.43, and step 4.44 is not limited in the present invention, and different serial execution sequences may be set according to actual needs, or step 4.41, step 4.42, step 4.43, and step 4.44 may be executed in parallel.
Optionally, the content included in the stored freight rate data is not limited by the present invention, and for example, the method may further include: airline, creator location, time of creation, last updater, last updated location, last updated time, and the like, as the present invention is not limited in this respect.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The names of messages or information exchanged between devices in the embodiments of the present invention are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Although the operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
Alternatively, computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
As shown in fig. 2, the present invention provides a flight price inquiry apparatus, including: the system comprises a request analysis unit 100, an freight rate query unit 200, a rule query unit 300, a flight number matching unit 400 and a freight rate return unit 500;
the request analysis unit 100 is configured to obtain and analyze an air ticket freight rate calculation request, so as to obtain booking information and a flight number carried in the air ticket freight rate calculation request;
the freight rate query unit 200 is configured to query a freight rate database to obtain at least one piece of freight rate data corresponding to the ticket booking information, where each piece of freight rate data at least includes a freight rate and a rule number;
the rule querying unit 300 is configured to query a rule database for any one of the freight rate data, so as to obtain rule information corresponding to the rule number, where each piece of the rule information at least includes a flight number suffix of a flying flight;
the flight number matching unit 400 is configured to, for any piece of rule information, perform judgment on whether the flight number suffix matches a flight number carried in the air ticket fare calculation request;
the freight rate returning unit 500 is configured to return corresponding freight rate data to a sender of the air ticket freight rate calculation request if the flight number suffix matches the flight number carried in the air ticket freight rate calculation request.
In some optional embodiments, in combination with the embodiment shown in fig. 2, the booking information includes: ticket time, travel time, origin, destination, passenger type, and flight slot;
the freight rate query unit 200 includes: the freight rate inquiry subunit and the freight rate acquisition subunit;
the freight rate inquiry subunit is used for inquiring whether the freight rate data which simultaneously meet the conditions 1, 2, 3, 4 and 5 are stored in the freight rate database;
if the freight rate data which simultaneously meet the condition 1, the condition 2, the condition 3, the condition 4 and the condition 5 are stored in the freight rate database, triggering a freight rate obtaining subunit;
a freight rate obtaining subunit, configured to obtain the freight rate data;
wherein the condition 1 is: the selling time is within the time interval of the preset effective time and the preset failure time recorded in the freight rate data;
the condition 2 is as follows: the travel time is within a time interval of a preset travel starting time and a preset travel deadline recorded in the freight rate data;
the condition 3 is: the origin is consistent with the origin recorded in the freight rate data and the destination is consistent with the destination recorded in the freight rate data;
the condition 4 is: the passenger type is consistent with the passenger type recorded in the freight rate data or the freight rate data does not limit the passenger type;
the condition 5 is: the flight slot is consistent with the flight slot recorded in the freight rate data.
In some optional embodiments, in combination with the embodiment shown in fig. 2, the rule query unit 300 includes: a rule query subunit and a rule acquisition subunit;
the rule inquiry subunit is used for inquiring whether the rule database stores rule information with a rule number consistent with the rule number recorded in the freight rate data or not aiming at any freight rate data;
if the rule database stores the rule information, a rule obtaining subunit is triggered;
and the rule obtaining subunit is used for obtaining the rule information.
In some optional embodiments, in combination with the embodiment shown in fig. 2, the flight number matching unit 400 includes: a suffix judging subunit;
a suffix judging subunit, configured to, for each of the pieces of rule information, execute a judgment of whether or not the flight number suffix matches a suffix of a flight number carried in the air ticket fare calculation request;
the freight rate return unit 500 includes: a freight rate return subunit;
and the freight rate returning subunit is used for returning corresponding freight rate data to a sender of the air ticket freight rate calculation request if the flight number suffix is consistent with the flight number suffix carried in the air ticket freight rate calculation request.
In some optional embodiments, in combination with the embodiment shown in fig. 2, the apparatus further comprises: the rule information checking system comprises a rule instruction obtaining unit, a rule interface skipping unit, a rule information obtaining unit, a rule information checking unit and a rule information storage unit;
a rule instruction obtaining unit, configured to obtain a rule creating instruction before the freight rate database is queried to obtain at least one piece of freight rate data corresponding to the ticket booking information;
the rule interface jumping unit is used for jumping to a rule establishing interface according to the rule establishing instruction;
the rule information obtaining unit is used for obtaining rule information input in the rule creating interface by a user;
the rule information checking unit is used for checking whether the obtained rule information is correct or not;
if the rule information is correct, triggering a rule information storage unit;
and the rule information storage unit is used for storing the rule information to the rule database.
With reference to the previous embodiment, in some optional embodiments, the rule information checking unit includes: the system comprises an effective time judging subunit, a first rule number judging subunit, an expiration time judging subunit and a rule information result subunit;
the effective time judging subunit is used for judging whether the effective time in the obtained rule information is not null and is later than the current system time;
a first rule number judging subunit, configured to judge whether a rule number in the rule information is null;
the expiration time judging subunit is used for judging whether the expiration time in the rule information is later than the effective time in the rule information;
a rule information result subunit, configured to determine that the rule information is correct if the validation time in the rule information is not null and is later than the current system time, the rule number in the rule information is not null, and the expiration time in the rule information is later than the validation time in the rule information, otherwise, determine that the rule information is incorrect.
In combination with the above embodiment, in some optional embodiments, the apparatus further comprises: the system comprises a freight rate instruction obtaining unit, a freight rate interface jumping unit, a freight rate data obtaining unit, a freight rate data checking unit and a freight rate data storage unit;
a freight rate instruction obtaining unit, configured to obtain a freight rate creation instruction after storing the rule information in the rule database;
the freight rate interface jumping unit is used for jumping to a freight rate establishing interface according to the freight rate establishing instruction;
the freight rate data acquisition unit is used for acquiring the freight rate data input by the user in the rule creation interface;
the freight rate data checking unit is used for checking whether the obtained freight rate data is correct or not;
if the freight rate data are correct, triggering a freight rate data storage unit;
and the freight rate data storage unit is used for storing the rule information to the freight rate database.
With reference to the above embodiment, in some optional embodiments, the freight rate data checking unit includes: the system comprises a preset effective time judgment subunit, a preset travel deadline judgment subunit, a freight rate base judgment subunit, a second rule number judgment subunit and a freight rate data result subunit;
the preset effective time judging subunit is used for judging whether the preset effective time in the obtained freight rate data is not empty and is later than the current system time;
a preset travel deadline judging subunit, configured to judge whether a preset travel deadline in the freight rate data is later than a preset travel starting time in the freight rate data;
the freight rate basis judgment subunit is used for judging whether the freight rate basis in the freight rate data is not empty or not;
the second rule number judging subunit is used for judging whether the rule number in the freight rate data is not null or not;
and the freight rate data result subunit is used for determining that the freight rate data is correct if the preset effective time in the freight rate data is not empty and is later than the current system time, the preset travel deadline time in the freight rate data is later than the preset travel starting time in the freight rate data, the freight rate basis in the freight rate data is not empty, and the rule number in the freight rate data is not empty, otherwise, determining that the freight rate data is incorrect.
The units described in the embodiments of the present invention may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first obtaining unit may also be described as a "unit obtaining at least two internet protocol addresses".
The functions described above in the present invention may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
The present invention provides a computer-readable storage medium on which a program is stored, the program implementing the flight price querying method of any one of the above when executed by a processor.
In the context of the present invention, a machine-readable medium (computer-readable storage medium) may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the computer readable medium of the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
As shown in fig. 3, the present invention provides an electronic device 70, wherein the electronic device 70 includes at least one processor 701, at least one memory 702 connected to the processor 701, and a bus 703; the processor 701 and the memory 702 complete communication with each other through the bus 703; the processor 701 is configured to call program instructions in the memory 702 to execute any of the flight price inquiry methods described above.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the invention. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The foregoing description is only exemplary of the preferred embodiments of the invention and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other combinations of features described above or equivalents thereof without departing from the spirit of the disclosure. For example, the above features and the technical features (but not limited to) having similar functions disclosed in the present invention are mutually replaced to form the technical solution.

Claims (10)

1. A flight price query method, comprising:
obtaining and analyzing an air ticket freight rate calculation request so as to obtain booking information and flight number carried in the air ticket freight rate calculation request;
querying a freight rate database to obtain at least one piece of freight rate data corresponding to the ticket booking information, wherein each piece of freight rate data at least comprises a freight rate and a rule number;
executing query of a rule database aiming at any one of the freight rate data so as to obtain rule information corresponding to the rule number, wherein each piece of rule information at least comprises a flight number suffix of a flying flight;
aiming at any rule information, judging whether the flight number suffix is matched with a flight number carried in the air ticket freight rate calculation request or not;
and if the flight number suffix is matched with the flight number carried in the air ticket freight rate calculation request, returning corresponding freight rate data to a sender of the air ticket freight rate calculation request.
2. The method of claim 1, wherein the reservation information comprises: ticketing time, travel time, origin, destination, passenger type, and flight slots;
the querying a freight rate database to obtain at least one piece of freight rate information corresponding to the ticket booking information comprises:
inquiring whether the freight rate data which simultaneously meet the conditions 1, 2, 3, 4 and 5 are stored in the freight rate database;
if the freight rate data which simultaneously meet the condition 1, the condition 2, the condition 3, the condition 4 and the condition 5 are stored in the freight rate database, obtaining the freight rate data;
wherein the condition 1 is: the selling time is within the time interval of preset effective time and preset ineffective time recorded in the freight rate data;
the condition 2 is as follows: the travel time is within a time interval of a preset travel starting time and a preset travel ending time recorded in the freight rate data;
the condition 3 is: the origin coincides with an origin recorded in the freight rate data and the destination coincides with a destination recorded in the freight rate data;
the condition 4 is: the passenger type is consistent with the passenger type recorded in the freight rate data or the freight rate data does not limit the passenger type;
the condition 5 is: the flight slot is consistent with the flight slot recorded in the freight rate data.
3. The method according to claim 1, wherein the querying a rule database for any of the freight rate data to obtain rule information corresponding to the rule number comprises:
for any freight rate data, inquiring whether the rule database stores rule information with a rule number consistent with the rule number recorded in the freight rate data or not;
and if the rule information is stored in the rule database, acquiring the rule information.
4. The method according to claim 1, wherein the determining whether the flight number suffix matches the flight number carried in the air ticket fare calculation request is performed for any of the rule information, and includes:
aiming at any rule information, whether the flight number suffix is consistent with a flight number suffix carried in the air ticket freight rate calculation request or not is judged;
if the flight number suffix is matched with the flight number carried in the air ticket freight rate calculation request, corresponding freight rate data is returned to a sender of the air ticket freight rate calculation request, wherein the method comprises the following steps:
and if the flight number suffix is consistent with the flight number suffix carried in the air ticket freight rate calculation request, returning corresponding freight rate data to a sender of the air ticket freight rate calculation request.
5. The method of claim 1, wherein prior to the querying a freight rate database to obtain at least one piece of freight rate data corresponding to the reservation information, the method further comprises:
obtaining a rule creating instruction;
jumping to a rule creating interface according to the rule creating instruction;
acquiring rule information input by a user in the rule creating interface;
checking whether the obtained rule information is correct or not;
and if the rule information is correct, storing the rule information to the rule database.
6. The method according to claim 5, wherein the verifying whether the obtained rule information is correct comprises:
judging whether the effective time in the obtained rule information is not empty and is later than the current system time;
judging whether the rule number in the rule information is empty or not;
judging whether the deadline time in the rule information is later than the effective time in the rule information;
and if the effective time in the rule information is not null and is later than the current system time, the rule number in the rule information is not null, and the deadline time in the rule information is later than the effective time in the rule information, determining that the rule information is correct, otherwise, determining that the rule information is incorrect.
7. The method of claim 6, wherein after said storing the rule information to the rule database, the method further comprises:
obtaining a freight rate creation instruction;
jumping to a freight rate establishing interface according to the freight rate establishing instruction;
acquiring freight rate data input by a user in the rule creation interface;
checking whether the obtained freight rate data is correct or not;
and if the freight rate data is correct, storing the rule information to the freight rate database.
8. The method of claim 7, wherein the verifying whether the obtained freight rate data is correct comprises:
judging whether the preset effective time in the obtained freight rate data is not empty and is later than the current system time;
judging whether the preset travel deadline in the freight rate data is later than the preset travel starting time in the freight rate data or not;
judging whether the freight rate basis in the freight rate data is not empty or not;
judging whether the rule number in the freight rate data is not null or not;
and if the preset effective time in the freight rate data is not empty and is later than the current system time, the preset travel deadline time in the freight rate data is later than the preset travel starting time in the freight rate data, the freight rate basis in the freight rate data is not empty, and the rule number in the freight rate data is not empty, determining that the freight rate data is correct, otherwise, determining that the freight rate data is incorrect.
9. A flight price inquiry apparatus, comprising: the system comprises a request analysis unit, a freight rate query unit, a rule query unit, a flight number matching unit and a freight rate return unit;
the request analysis unit is used for obtaining and analyzing the air ticket freight rate calculation request so as to obtain booking information and flight number carried in the air ticket freight rate calculation request;
the freight rate query unit is used for querying a freight rate database so as to obtain at least one piece of freight rate data corresponding to the ticket booking information, wherein each piece of freight rate data at least comprises a freight rate and a rule number;
the rule query unit is configured to query a rule database for any one of the freight rate data, so as to obtain rule information corresponding to the rule number, where each piece of the rule information at least includes a flight number suffix of a flying flight;
the flight number matching unit is used for judging whether the flight number suffix is matched with the flight number carried in the air ticket freight rate calculation request or not aiming at any rule information;
and the freight rate returning unit is used for returning corresponding freight rate data to a sender of the air ticket freight rate calculation request if the flight number suffix is matched with the flight number carried in the air ticket freight rate calculation request.
10. An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform the flight price querying method of any one of claims 1 to 8.
CN202211012409.6A 2022-08-23 2022-08-23 Flight price query method and device and electronic equipment Pending CN115358788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211012409.6A CN115358788A (en) 2022-08-23 2022-08-23 Flight price query method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211012409.6A CN115358788A (en) 2022-08-23 2022-08-23 Flight price query method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115358788A true CN115358788A (en) 2022-11-18

Family

ID=84002807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211012409.6A Pending CN115358788A (en) 2022-08-23 2022-08-23 Flight price query method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115358788A (en)

Similar Documents

Publication Publication Date Title
CN102414663B (en) A method and system for managing the order of messages
CN107862396B (en) Travel order repeat reservation processing method, system, storage medium and electronic equipment
CN110322231B (en) Automatic publishing method and system for flight schedule
US20130297360A1 (en) Flight-price monitoring systems and methods
US20090094011A1 (en) System and method for modelling a flight
WO2016100722A1 (en) Automatic conversion of formatted travel information
CN112199405B (en) Method and device for searching international air ticket change price
US20140005934A1 (en) Incorporating Traveler Feedback in Future Trip Planning
US20120246081A1 (en) Systems and Methods for Automated Itinerary Modification
US20110071864A1 (en) System and method for settling the payment of a travel e-ticket
CN110930224A (en) Code sharing freight rate publishing method and device for airline company
CN115358788A (en) Flight price query method and device and electronic equipment
CN114817891B (en) Travel management method, management system and related equipment
CN110718087B (en) Data fusion processing method and device
CN114298357A (en) Data processing method, system, equipment and storage medium
CN111612354A (en) Laboratory service unmanned management method, device and system
CN111179014A (en) System and method for securely creating a list of devices on a device online marketplace platform
CN110766420A (en) Service information determination method and device
CN115358792A (en) Freight rate determination method and related device
CN111028053B (en) Order processing method and device, electronic equipment and storage medium
CN116166735B (en) Aviation data processing method and device, electronic equipment and storage medium
CN107944587B (en) Packaging processing method, system, equipment and storage medium of travel product
CN117974222A (en) Method, device and storage medium for generating discount freight rate across data sources
KR20140124054A (en) Method for intermediating and managing car-pool service
CN116308616A (en) Telex message processing method and device, electronic equipment and computer storage medium

Legal Events

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