Flight inventory application method, device and system, storage medium and electronic equipment
By building a flight inventory application method to ensure data synchronization and consistency between the distribution agent system and the global distribution system, the data consistency problem in the flight inventory application process was solved, and the user experience and service quality were improved.
Patent Information
- Application Number
- CN202510868130.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2025-10-17
AI Technical Summary
In the existing technology, there are data synchronization and consistency issues between distribution agents and global distribution systems in flight inventory applications, which leads to a decline in user experience and service quality.
By obtaining flight inventory requests, converting them into structured inventory request objects, initializing flight segment information, building a collection of message objects, splicing inventory request messages, and sending them to each airline system, parsing the return information, we ensure data synchronization and consistency during the request generation, sending, and receiving response processes.
It achieves data synchronization and consistency throughout the entire chain from request generation, sending, receiving responses to final records, improves user experience and service quality, and efficiently manages data exchange and information synchronization between the agent system and other systems.
Smart Images

Figure CN120806814A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and in particular to a flight inventory application method, device, system, storage medium and electronic equipment. BACKGROUND
[0002] The statements in this section merely provide background information related to the present application and do not necessarily constitute the prior art.
[0003] The open passenger reservation system (abbreviated as agent system) of a distribution agent manages and maintains a unified order (Customer Travel Record, CTR) based on open platform storage technology, and the unified order CTR records the data of the whole process of passenger travel from reservation sales, passenger service to travel delivery under the sales channel of the distribution agent. The agent is responsible for applying for inventory to the global distribution system (Global Distribution System, GDS), so as to ensure that the current passenger inventory application request can be synchronized to the global distribution system and the system of each airline. The global distribution system is composed of various distribution agent systems, that is, the distribution agent system is part of the global distribution system.
[0004] In the prior art, the consistency of the agent inventory and the global distribution system is often poor. When the distribution agent applies for flight inventory to the global distribution system, how to ensure the data synchronization and consistency of the whole chain from the request generation, sending, receiving reply to the final recording of the flight inventory application of the agent is a problem to be solved. In view of the above defects, the present application makes improvements. SUMMARY
[0005] In order to overcome the shortcomings of the background art, the present application provides a flight inventory application method, device, system, storage medium and electronic equipment, which ensures the data synchronization and consistency of the whole chain from the request generation, sending, receiving reply to the final recording of the flight inventory application of the agent, and improves the user experience and service quality.
[0006] To achieve the above purpose, the present application provides the following technical scheme: In a first aspect, a flight inventory application method is provided, applied to a distribution agent system, and the method comprises: Obtaining a request of the agent for applying for flight inventory, and converting the request into a structured inventory application object; Extracting the flight segment information in the structured inventory application object as a reporting object, and initializing the reporting object; Constructing a reporting object set according to the initialized reporting object, and splicing an inventory application message based on the reporting object set; Send the spliced inventory application message to the system of each airline, so that the system of each airline performs message analysis processing and returns; The return information obtained by analyzing the inventory application message return is stored in the temporary order.
[0007] Further, The said according to the initialization of the reporting object to build reporting object set, including: Analyze the extracted segment information, query the domestic and foreign attributes of the airline according to the segment information, and construct the corresponding reporting object set according to the domestic and foreign attributes of the airline; If the airline in the segment information is domestic, poll the segment information and construct the reporting object set for splicing the inventory application message of the domestic airline; If the airline in the segment information is foreign, poll the segment information and construct the reporting object set for splicing the inventory application message of the foreign airline.
[0008] Further, The said polling segment information, constructing the reporting object set for splicing the inventory application message of the domestic airline, including: Traverse the segment information, if it meets the normal segment reporting rules, add the segment item to the reporting object set of the domestic airline; Traverse the segment information, query the airline record table according to the airline information of the segment, if the segment supports adding the foreign journey segment NPL segment or the domestic journey segment JDT segment, set the NPL identifier or the JDT identifier, if there is no segment supporting NPL segment or JDT segment until the end of traversal, do not set the identifier; If the segment information is set with the NPL identifier, traverse the segment information, if the segment meets the rules of the NPL segment, add the segment item to the reporting object set of the domestic airline; If the segment information is set with the JDT identifier, traverse the segment information, if the segment meets the rules of the JDT segment, add the segment item to the reporting object set of the domestic airline.
[0009] Further, The said polling segment information, constructing the reporting object set for splicing the inventory application message of the foreign airline, including: Traverse the segment information, query the bilateral agreement data configuration table and the direct connection seal transaction control table to confirm whether to report, if it is confirmed to report, set the reporting identifier, and initialize the session information; Traverse the segment information, query the bilateral agreement to confirm whether the segment supports the journey segment, if the segment supports the journey segment, set the journey segment identifier; Traverse the leg information, if it meets the normal leg reporting rule and the reporting identifier is set, add the leg item to the reporting object set of the foreign airline, if the journey leg identifier is set, judge whether the leg meets the journey leg reporting rule, if it meets the journey leg reporting rule, add the leg item to the reporting object set of the foreign airline.
[0010] Further, The spliced inventory application message includes: After confirming that the reporting object has valid content, the reporting object is combined according to the message protocol standard to generate a message header and main body content, so as to obtain the inventory application message.
[0011] Further, The system for sending the spliced inventory application message to each airline includes: Integrate the spliced inventory application message into a reporting carrier object; According to the message protocol defined in the reporting object, select a matching message sending service to send the reporting carrier object to the system of each airline.
[0012] Further, The parsed inventory application message return obtains return information, including: According to the request protocol type defined in the reporting object, match the corresponding reply message parsing process to parse the inventory application message return, and obtain the return information.
[0013] The second aspect also provides a flight inventory application device, the device includes: An acquisition and conversion module is configured to acquire a request for an agent to apply for flight inventory and convert the request into a structured inventory application object; An extraction and initialization module is configured to extract leg information in the structured inventory application object as a reporting object and initialize the reporting object; A construction and splicing module is configured to construct a reporting object set according to the initialized reporting object and splice an inventory application message based on the reporting object set; A message sending module is configured to send the spliced inventory application message to the system of each airline, so that the system of each airline performs message parsing processing and returns; A return processing module is configured to parse the inventory application message return to obtain return information and store leg update information in the return information into a temporary order.
[0014] The third aspect further provides a flight inventory application system, which comprises a global distribution system and systems of various airlines, wherein the global distribution system comprises a plurality of distribution agent systems; The distribution agent system is used for implementing the flight inventory application method mentioned above. The system of the airline is used for receiving the inventory application message sent by the distribution agent system, performing message analysis processing on the inventory application message, and returning.
[0015] Based on the same inventive concept, the present application further provides a computer readable storage medium, which stores one or more programs, and when the one or more programs are executed, the flight inventory application method mentioned above can be implemented.
[0016] Based on the same inventive concept, the present application further provides an electronic device, which comprises a processor, a communication interface, a computer readable storage medium as mentioned above, and a communication bus; wherein the processor, the communication interface, and the computer readable storage medium communicate with each other through the communication bus; and the processor is used for executing the program stored in the computer readable storage medium.
[0017] Compared with the prior art, the present application has the following beneficial effects: By implementing the flight inventory application method mentioned above in the distribution agent system, the data synchronization and consistency in the whole chain from request generation, sending, receiving reply to final recording are ensured, the user experience and service quality are improved, and the data exchange and information synchronization between the agent system and other agent systems (i.e. in the global distribution system) and the airline system cross-system are efficiently managed.
[0018] Other features and advantages of the present application will be described in the following description, and some will become apparent from the description, or will be understood from the practice of the present application. The purposes and other advantages of the present application can be realized and obtained by the structures indicated in the specification, claims, and drawings.
[0019] The present application will be further described below in conjunction with the drawings. BRIEF DESCRIPTION OF DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0021] Figure 1 It is a flowchart of the flight inventory application method of an embodiment of the present application. Figure 2 A specific flowchart of a flight inventory application method according to an embodiment of the present application; Figure 3 A structural diagram of a flight inventory application device according to an embodiment of the present application; Figure 4 A structural diagram of a flight inventory application system according to an embodiment of the present application; Figure 5 A system interaction diagram of a flight inventory application according to an embodiment of the present application; Figure 6 A structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] For the purpose of implementing the present application, the technical solutions and advantages will be clearer, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0023] As shown in Figure 1 The first embodiment of the present application provides a flight inventory application method, applied to a distribution agent system, comprising the following steps: S1, obtaining a request of an agent applying for flight inventory, and converting the request into a structured inventory application object; S2, extracting flight segment information in the structured inventory application object as a reporting object, and initializing the reporting object; S3, constructing a reporting object set according to the initialized reporting object, and splicing an inventory application message based on the reporting object set; S4, sending the spliced inventory application message to systems of each airline, so that the systems of each airline perform message analysis processing and return; S5, analyzing the inventory application message return to obtain return information, and storing flight segment update information in the return information into a temporary order.
[0024] In the technical solution, the agent receives the passenger inventory application request, applies for the flight inventory of the open passenger booking system based on the distribution agent (i.e., the distribution agent system, which is also referred to as the system in the embodiment), the distribution agent system generates an inventory application message after receiving the agent request, synchronizes the message to the system of each airline, updates the temporary order after processing the reply, and accurately records the parsed result in the temporary order (CBR) based on the open platform storage technology, thereby providing a solid foundation for subsequent order generation. Through the above method and process, the distribution agent system ensures the data synchronization and consistency of the entire chain of the flight inventory application of the agent from request generation, sending, receiving reply to final recording, thereby improving the user experience and service quality.
[0025] In the embodiment, the interface accepts structured information characters (i.e., obtains the agent request), and converts the request into an internal processing object (i.e., a structured inventory application object). The structured inventory application object is an internal processing object, which facilitates internal processing of the system.
[0026] In the embodiment, the flight segment information extracted from the structured inventory application object includes the airline code, flight number, flight date, cabin, origin-destination city pair, flight segment status, and seat number. The embodiment extracts the flight segment information in the internal processing object (i.e., extracts valid information) and initializes a message sending object. In specific implementation, initializing the message sending object includes initializing the destination address, session, message sending type, flight segment information, etc.
[0027] The embodiment takes the flight information in the request and the flight information in the CTR data as a reference to realize the inventory interaction between the agent and the global distribution system for different flights, synchronize the flight information of the distribution agent sales channel to the global distribution system, provide a channel for the global distribution system to manage the agent to open the passenger booking of the airline, and rely on the inventory application and rollback message to realize the consistency of the global distribution system and the agent inventory.
[0028] As a preferred technical solution, the message sending object set is constructed according to the initialized message sending object, including: The extracted flight segment information is analyzed, the domestic and foreign attributes of the airline are queried according to the flight segment information, and the corresponding message sending object set is constructed according to the domestic and foreign attributes of the airline; If the airline in the flight segment information is a domestic attribute, the flight segment information is polled to construct a message sending object set for splicing the inventory application message of the domestic airline; If the airline in the flight segment information is a foreign attribute, the flight segment information is polled to construct a message sending object set for splicing the inventory application message of the foreign airline.
[0029] As Figure 2 shown, in the present embodiment, the extracted flight segment information is analyzed, the two-character code of the airline extracted from the flight created or updated this time is taken as the key value for indexing, the domestic and foreign attributes of the airline are queried, and different group reporting links are entered (i.e., the corresponding message building process is entered, that is, the corresponding set of reporting objects is constructed) according to the attributes; if the airline in the flight segment is a domestic attribute, the flight segment information is polled, and the domestic airline inventory application message component is constructed (i.e., the set of reporting objects used to splice the domestic airline inventory application message is constructed); if the airline in the flight segment is a foreign attribute, the flight segment information is polled, and the foreign airline inventory application message component is constructed (i.e., the set of reporting objects used to splice the foreign airline inventory application message is constructed).
[0030] As a preferred technical solution, the polling flight segment information and constructing the set of reporting objects used to splice the domestic airline inventory application message comprises: traversing the flight segment information, and if the flight segment conforms to the normal flight segment reporting rule, the flight segment item is added to the set of reporting objects of the domestic airline; traversing the flight segment information, querying the airline record table according to the airline information of the flight segment, and if the flight segment supports the addition of an NPL (No-Polling, foreign journey segment) flight segment or a JDT (Journey Data, domestic journey segment), an NPL identifier or a JDT identifier is set, and if no flight segment supports the NPL flight segment or the JDT flight segment until the end of the traversal, no identifier is set; if the flight segment information is set with the NPL identifier (i.e., the NPL identifier is set), the flight segment information is traversed, and if the flight segment conforms to the rule of the NPL flight segment, the flight segment item is added to the set of reporting objects of the domestic airline; if the flight segment information is set with the JDT identifier (i.e., the JDT identifier is set), the flight segment information is traversed, and if the flight segment conforms to the rule of the JDT flight segment, the flight segment item is added to the set of reporting objects of the domestic airline.
[0031] In this embodiment, when creating an order or adding a leg to an existing order, the agent is not limited to applying for flights of the same airline, but may also involve transfer or transfer cases. Therefore, the domestic airline inventory application message contains not only the segments of the airline, but also NPL (non-same GDS new application) and JDT (same GDS already applied inventory) segments. When the agent traverses all leg information, if it meets the normal leg reporting rules, it will be added to the airline reporting object set. Next, according to the airline information of each leg, the airline record table is queried to confirm whether to support the addition of NPL or JDT segments, and the NPL flag or JDT flag is set accordingly. If no record supporting NPL or JDT segments is found during the entire traversal process, no flag will be set. Once the NPL flag is set, the system will traverse the leg information again to check if there are legs that meet the specific rules of NPL segments; for the segments that meet the conditions, they are also added to the airline reporting object set. Similarly, if the JDT flag is set, the system will also re-traverse and evaluate whether each leg meets the rules of JDT segments, and the segments that meet the conditions will be added to the reporting object set.
[0032] It can be understood that in addition to the airline's own segment information, due to the possibility of bundled sales of some airlines, some information segments (NPL segments or JDT segments) may also need to be synchronized to the airline. Among them, NPL segments such as outbound flights booked in the same transaction, JDT segments such as Host segments booked in previous transactions, and airlines will determine whether to give inventory based on their own segment information and information segments.
[0033] As a preferred technical solution, the polling leg information, constructing a reporting object set for splicing foreign airline inventory application message, comprises: Traverse the leg information, query the bilateral agreement data configuration table and direct connection seal transaction control table according to the airline information of the leg information to confirm whether to report, and if it is confirmed to report, set the reporting flag and initialize the session information; This step is used to confirm whether the airline needs to be reported.
[0034] Traverse the leg information, query the bilateral agreement to confirm whether the leg supports journey segments, and if the leg supports journey segments, set the journey segment flag; This step is used to confirm whether the airline needs information segments (JDT segments or NPL segments).
[0035] If the normal flight segment reporting rule is met and the reporting identifier is set, the flight segment item is added to the reporting object set of the foreign airline. If the journey flight segment identifier is set, it is determined whether the flight segment meets the journey flight segment reporting rule. If the journey flight segment reporting rule is met, the flight segment item is added to the reporting object set of the foreign airline. The reporting identifier is needed to report to the airline, and the journey flight segment identifier is the information segment of the airline, but the specific reporting content is selected in this step, because there are multiple segments in the order, some of which are information segments and some of which are main segments, and the positions of the information segments and the main segments are different.
[0036] In this embodiment, when processing the airline flight information, first, all the flight segment data is traversed to ensure that each flight segment is evaluated individually. Each flight segment contains detailed flight plans, such as the airline code, flight number, departure and arrival locations and times. For each flight segment, the bilateral agreement data configuration table and the direct seal transaction control table are queried according to the information of the airline to which it belongs to confirm whether the relevant message should be sent. These two tables (i.e., the bilateral agreement data configuration table and the direct seal transaction control table) record the details of the cooperation agreement between airlines and the communication restriction conditions of specific flight segments, which are crucial for reporting decisions. According to the query result, the corresponding identifier bit is set, such as the "destination address". Then, the session information is initialized to prepare the necessary session state management for subsequent operations. Further, it is inquired whether the flight segment supports journey segments - i.e., a single flight segment that can be combined with other segments to form a more complex journey. If it does, the journey segment identifier is set to distinguish between ordinary segments and segments that are part of a journey. Next, it is checked whether the flight segment meets the predefined normal flight segment reporting rule, involving multiple business logic judgments, such as flight segment status, time, and destination. If the flight segment meets the conditions, it will be added to the set of flight segments to be sent. In addition, if the journey segment identifier has been set, it is also necessary to evaluate whether the flight segment meets the journey segment reporting rule, considering its role in the entire journey. If both the normal reporting standard and the journey segment requirement are met, it will also be added to the airline reporting object set, ensuring that the relevant information is accurately conveyed.
[0037] In this embodiment, the normal flight segment reporting rule is to determine whether the flight segment is new, whether it is the airline segment, etc., which is used for the screening of main segments; and the journey flight segment reporting rule is to determine whether the flight segment is expired, the flight segment type, the flight segment attribution, whether the flight segment is created this time, etc., which is used for the screening of information segments.
[0038] When the agent applies for the flight inventory of the global distribution system, there is a certain complexity in whether all the connecting flights should be notified to the corresponding global distribution system. For the connecting flight, the distribution agent system of the embodiment designs a set of rules (trip segment reporting rules) to determine which flights need to be notified to the corresponding GDS. The system stores the different airlines' trip flight requirements through REDIS, and accurately analyzes through the trip segment reporting rules to improve efficiency and ensure that all relevant parties receive the necessary update information.
[0039] In the embodiment, the initialization session information is initialized, that is, the session (message session sequence number) information is initialized.
[0040] As a preferred technical solution, the inventory application message is spliced, including: after confirming that the reporting object has valid content, the reporting object is combined to generate a message header and main content according to the message protocol standard, so as to obtain the inventory application message. Further, the system for sending the spliced inventory application message to each airline includes: integrating the spliced inventory application message into a reporting carrier object; selecting a matching message sending service according to the message protocol defined in the reporting object, so as to send the reporting carrier object to the system of each airline.
[0041] In the embodiment, the inventory application message is spliced, that is, the airline inventory application information is spliced. After confirming that the reporting object has valid content (here, the valid content means that the reporting object is not empty), the distribution agent system will combine to generate a message header and main content according to the established message protocol standard. Subsequently, these constructed reporting components will be integrated (that is, encapsulated) into a unified reporting carrier object. Next, according to the message protocol defined in the reporting object, a matching message sending service is selected to ensure that the relevant segment information can be accurately sent to the system of each airline.
[0042] The embodiment constructs a unified reporting object (that is, the aforementioned reporting carrier object), which contains the two-digit code of the receiving airline, the message session sequence number, the message protocol standard type, and the message main content. Subsequently, according to the message protocol standard specified in the reporting object, a matching sending service is selected to realize the transmission of the message to the system of each airline.
[0043] When the agent applies for the flight inventory of the global distribution system, how to ensure that the multiple requests of the same user can be linked in the global distribution system side exists certain complexity. In order to ensure that the multiple requests of the same user can be correctly linked in the GDS, the distribution agent system of the embodiment adopts the session serial number, the message protocol standard and other mechanisms (i.e. constructs a unified message carrier object), ensures the consistency and continuity of each request in the global distribution system, and maintains the integrity and accuracy of the order.
[0044] In the implementation, the established message protocol standard mainly includes the IATA (International Air Transport Association) standard, the EDIFACT (Electronic Data Interchange for Administration, Commerce and Transport) and the like, which belong to the prior art and will not be described herein.
[0045] As a preferred technical solution, the return information obtained by analyzing the inventory application message return includes: according to the request protocol type defined in the message carrier, matching the corresponding reply message analysis process to analyze the inventory application message return, and obtaining the return information.
[0046] In the embodiment, according to the request protocol type defined in the message carrier, the distribution agent system will match the corresponding reply message analysis process, i.e. match the reply message analysis process corresponding to the message sending. Next, the return information is obtained by analyzing the feedback information from the systems of various airlines, and the distribution agent system will create a unified return object, which encapsulates detailed return information. Then, the distribution agent system will integrate the flight segment update information in the airline reply (i.e. the inventory application message return) into the temporary order of the distribution agent system, i.e. into the unified order database of the system.
[0047] When the agent applies for the flight inventory of the global distribution system, the user exists the case of simultaneously applying for multiple global distribution system flights or applying for flights again on the basis of having applied for multiple global distribution system flights, and how to accurately and correctly send the flight information to the corresponding global distribution system exists certain complexity. In the face of the case that the user may simultaneously or repeatedly apply for multiple GDS flights, the distribution agent system of the embodiment of the application has an intelligent matching algorithm based on factors such as flight information and destination (the application matches the flight segment change step with the current update step to determine the flight segment that is currently changed, matches according to the airline of the flight segment and the static data to determine the destination), implements a real-time monitoring and error detection mechanism, corrects immediately once the data is found to be abnormal, guarantees the accuracy of information transmission, and in this way ensures that the flight information is accurately and correctly sent to the corresponding global distribution system and airline system, thereby realizing the accurate flight information sending mechanism.
[0048] As Figure 3 shown, the second embodiment of the present application also provides a flight inventory application device, the device comprising: An acquisition and conversion module, configured to acquire a request of an agent to apply for a flight inventory, and convert the request into a structured inventory application object; An extraction and initialization module, configured to extract flight segment information in the structured inventory application object as a reporting object, and initialize the reporting object; A construction and splicing module, configured to construct a reporting object set according to the initialized reporting object, and splice an inventory application message based on the reporting object set; A message sending module, configured to send the spliced inventory application message to systems of various airlines, so that the systems of various airlines perform message analysis processing and return; A return processing module, configured to analyze inventory application message return to obtain return information, and store flight segment update information in the return information into a temporary order.
[0049] Regarding the device in the above embodiment, the specific manner in which each unit module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
[0050] As Figure 4 shown, the third embodiment of the present application also provides a flight inventory application system, the flight inventory application system comprising a global distribution system and systems of various airlines, the global distribution system comprising a plurality of distribution agent systems; The distribution agent system is configured to implement the flight inventory application method described above; The system of the airline is configured to receive the inventory application message sent by the distribution agent system, perform message analysis processing on the inventory application message, and return.
[0051] In the present embodiment, the distribution agent system refers to the present system, which is part of the global distribution system, and the global distribution system is composed of various distribution agent systems, and the system of each airline, i.e., the system of each airline. Among them, the distribution system only has distribution capability and no flight control right, and the airline system has flight control right.
[0052] Figure 5 is a schematic diagram of system interaction of an optional flight inventory application according to an embodiment of the present application, as Figure 5 shown: After the agent order management module of the distribution agent system receives the upstream user request, it analyzes the request to generate a temporary order, generates an inventory application interaction object facing the interface, and calls the agent order synchronization message module of the distribution agent system.
[0053] The agent order synchronization message module of the distribution agent system obtains the inventory application interactive object through the interface; analyzes the inventory application interactive object, extracts the flight segment information, takes the airline two-digit code extracted from the flight created or updated this time as a key value index, queries the airline domestic and foreign attributes, and enters different group reporting links according to the attributes. If the airline in the flight segment is a domestic attribute, the flight segment information is polled, the domestic airline inventory application message component is constructed, and the domestic airline flight segment, NPL flight segment and JDT flight segment that meet the rules are added to the set of airline reporting objects. If the airline in the flight segment is a foreign attribute, the flight segment information is polled, the foreign airline inventory application message component is constructed, and the domestic airline flight segment and journey flight segment that meet the rules are added to the set of airline reporting objects; the message sending unit is responsible for combining the message header and main body content according to the message protocol standard, and encapsulating the airline reporting object into a unified reporting carrier object. Subsequently, according to the protocol standard defined in the reporting object, the adaptive message sending service is selected to ensure that the inventory application message can be accurately and correctly sent to the systems of various airlines.
[0054] The airline reporting processing module of the airline system receives the inventory application message, takes the flight segment information and session information in the inventory application as a message analysis entrance, queries the airline system inventory, and if there is inventory, updates the inventory and synchronously returns a report containing the updated flight segment information.
[0055] The agent order synchronization message module of the distribution agent system parses the airline system report information through the interface, encapsulates it into a unified report object, and updates the returned flight segment information to the temporary order of the agent system.
[0056] Through the above method process, the distribution agent system of the embodiment of the application ensures the data synchronization and consistency on the entire chain from request generation, sending, receiving reply to final recording, improves user experience and service quality, and also efficiently manages the data exchange and information synchronization between the agent system and other agent systems (i.e. within the global distribution system) and the airline system across systems.
[0057] Based on the same inventive concept, the application further provides a computer readable storage medium storing one or more programs, which can implement the flight inventory application method when executed.
[0058] Based on the same inventive concept, as Figure 6As shown, the application further provides an electronic device, comprising a processor, a communication interface, a computer readable storage medium as described above and a communication bus; wherein the processor, the communication interface and the computer readable storage medium communicate with each other through the communication bus; and the processor is configured to execute the program stored in the computer readable storage medium.
[0059] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the described apparatus embodiments are merely schematic. For example, the division of the modules is merely a logical function division. There can be another division manner for the actual implementation. For example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or modules, and can be in electrical, mechanical or other forms.
[0060] The modules illustrated as separated components can or can not be physically separated, and the components illustrated as modules can or can not be physical modules, i.e., can be located in one place, or can be distributed to a plurality of network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment scheme. In addition, the functional modules in each embodiment of the application can be integrated in one processing module, or each module can be physically present alone, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0061] The integrated module, if realized in the form of a software functional module and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the application essentially or the part of the prior art that contributes to the technical solutions or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the application. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk and various program code storage media.
[0062] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the action sequence described, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0063] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0064] The parts not involved in the above embodiments are the same as or can be implemented by the prior art, and will not be described further.
[0065] Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can still be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A flight inventory application method, applied to a distribution agent system, characterized in that: The method comprises: Get the agent's request for flight inventory and convert the request into a structured inventory request object; Extract the flight segment information from the structured inventory application object as a message object and initialize the message object; Construct a message object set based on the initialized message object, and splice the inventory application message based on the message object set; Send the assembled inventory application message to the systems of each airline, so that the systems of each airline can parse and process the message and report back; Parse the inventory request message to obtain the return information, and save the updated flight segment information in the return information into the temporary order.
2. A flight inventory application method according to claim 1, characterized in that: The step of constructing a message sending object set based on the initialized message sending object includes: Analyze the extracted flight segment information, query the domestic and international attributes of the airline based on the flight segment information, and construct the corresponding reporting object set based on the domestic and international attributes of the airline; If the airline in the flight segment information is domestic, the flight segment information is polled to construct a message object set for splicing domestic airline inventory application messages; If the airline in the flight segment information is a foreign attribute, the flight segment information is polled to construct a message object set for splicing foreign airline inventory application messages.
3. A flight inventory application method according to claim 2, characterized in that: The polling of flight segment information constructs a message object set for splicing domestic airline inventory application messages, including: Traverse the flight segment information, and if it meets the normal flight segment reporting rules, add the flight segment item to the domestic airline's reporting object collection; Traverse the flight segment information and query the airline record table based on the airline information of the flight segment. If the flight segment supports adding an NPL flight segment for foreign journeys or a JDT flight segment for domestic journeys, set the NPL flag or JDT flag. If no flight segment supports NPL flight segments or JDT flight segments after the traversal is completed, do not set the flag. If the flight segment information is set with the NPL flag, the flight segment information is traversed. If the flight segment meets the rules of the NPL flight segment, the flight segment item is added to the domestic airline's reporting object collection; If the flight segment information is set with the JDT flag, the flight segment information is traversed. If the flight segment meets the JDT flight segment rules, the flight segment item is added to the domestic airline's reporting object collection.
4. A flight inventory application method according to claim 2, characterized in that: The polling of flight segment information constructs a message object set for splicing foreign airline inventory application messages, including: Traverse the flight segment information, query the bilateral agreement data configuration table and the direct connection sealed transaction control table based on the airline information of the flight segment information to confirm whether to send the message. If the message is confirmed, set the message sending flag and initialize the session information; Traverse the flight segment information and query the bilateral agreement to confirm whether the flight segment supports the journey segment. If the flight segment supports the journey segment, set the journey segment flag. Traverse the flight segment information. If it meets the normal flight segment reporting rules and the reporting flag is set, the flight segment item is added to the foreign airline's reporting object collection. If the journey segment flag is set, determine whether the flight segment meets the journey segment reporting rules. If it meets the journey segment reporting rules, add the flight segment item to the foreign airline's reporting object collection.
5. The flight inventory application method according to claim 1, characterized in that: The splicing inventory application message includes: After confirming that the message object has valid content, the message object is combined to generate a message header and body content according to the message protocol standard, thereby obtaining an inventory application message.
6. A flight inventory application method according to claim 5, characterized in that: The process of sending the assembled inventory application message to the systems of each airline company includes: Integrate the spliced inventory application message into the message carrier object; According to the message protocol defined in the message object, a matching message sending service is selected to send the message carrier object to the system of each airline.
7. A flight inventory application method according to claim 1, characterized in that: The information returned by parsing the inventory application message includes: According to the request protocol type defined in the message sending object, the corresponding reply message parsing process is matched to parse the inventory application message return and obtain the return information.
8. A flight inventory application device, characterized in that: The device comprises: The acquisition and conversion module is used to obtain the agent's request for flight inventory and convert the request into a structured inventory request object; The extraction and initialization module is used to extract the segment information from the structured inventory application object as a message object and initialize the message object; The construction and splicing module is used to construct a message object set according to the initialized message object, and splice the inventory application message based on the message object set; The message sending module is used to send the assembled inventory application message to the systems of each airline so that the systems of each airline can parse and process the message and report back; The report processing module is used to parse the inventory application message to obtain the report information, and store the flight segment update information in the report information into the temporary order.
9. A flight inventory application system, characterized in that: The flight inventory application system includes a global distribution system and systems of various airlines, and the global distribution system includes several distribution agent systems; The distribution agent system is used to implement the flight inventory application method according to any one of claims 1 to 7; The airline system is used to receive the inventory application message sent by the distribution agent system, parse the inventory application message and report back.
10. A computer-readable storage medium storing one or more programs, characterized in that: When the one or more programs are executed, the flight inventory application method according to any one of claims 1 to 7 can be implemented.
11. An electronic device comprising a processor, a communication interface, the computer-readable storage medium according to claim 10, and a communication bus; wherein: The processor, the communication interface, and the computer-readable storage medium communicate with each other via a communication bus; It is characterized by: The processor is configured to execute a program stored in a computer-readable storage medium.