Team order processing method and device, storage medium and electronic equipment
By adopting nested mode and borrowing mode in airlines, and combining information on the seats to be sold to calculate the average freight rate of passengers in team orders, the airline's high operating costs caused by increased transportation costs or seat changes is solved, and more flexible price and inventory management is achieved and operating costs are reduced.
Patent Information
- Application Number
- CN202411782646.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-03-28
AI Technical Summary
When airlines process team orders, operating costs are high due to increased flight transportation costs or changes in seat count, and the existing technology has failed to effectively solve this problem.
By obtaining the nested mode and borrowing mode of the airline when processing team orders, combining the information of each cabin to be sold, the average freight rate for each passenger is calculated, and the target freight rate is determined based on the preset transaction amount to optimize the processing of team orders.
Reduces airline reliance on fixed agreement prices and agents, improves price and inventory flexibility, reduces operating costs, and effectively utilizes inventory resources to meet team booking needs.
Smart Images

Figure CN119722226A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of aviation data processing, and more specifically, to a method, device, storage medium and electronic device for processing team orders. Background Art
[0002] In the prior art, airlines usually handle group orders in the following ways: first, agents or travel agencies pre-purchase the sales rights of all the sales seats in the aircraft at a relatively low price in advance, and sell them by themselves later, that is, they bear the sales situation and profit risks themselves; second, agents or travel agencies pre-purchase the sales rights of part of the sales seats in the aircraft at a relatively low price in advance, and sell the pre-purchased parts by themselves later, and the airlines sell the remaining sales seats by themselves or soft-package them to other agents and travel agencies; third, there is no pre-purchase in all sales channels, and airlines, agents, and clients randomly sell individual travelers and groups by themselves.
[0003] Since the existing sales method of group orders can only be traded through pre-negotiated prices, the operating costs of airlines increase when faced with rising costs or other business scenarios, causing the airlines to face losses.
[0004] With regard to the problem in the related art that when an airline conducts transactions according to a predetermined fare for group travel, the airline's operating costs are high due to an increase in flight transportation costs or a change in the number of seats in the period before the agent pays the ticket, no effective solution has been proposed yet. Summary of the invention
[0005] The main purpose of this application is to provide a method, device, storage medium and electronic device for processing group orders, so as to solve the problem in the related art that when an airline conducts transactions according to a predetermined fare for group travel, the airline's operating costs are high due to increased flight transportation costs or changes in the number of seats in the period before the agent pays the ticket.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for processing group orders is provided, the method comprising: obtaining a nesting mode and a seat borrowing mode when an airline processes a group order, and determining information of each cabin to be sold, wherein the nesting mode represents a manner in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether other types of cabins are borrowed for sale first; obtaining passenger information from a target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information includes at least passenger type and a target number for each passenger type; calculating an average fare for each passenger in the target order based on the nesting mode, the seat borrowing mode, information of each cabin to be sold, the passenger type and the target number for each passenger type; determining a target fare for each passenger based on the average fare for each passenger and a preset transaction amount for the target order, and processing the target order based on the target fare.
[0007] Furthermore, the nesting mode is a first nesting mode, the seat borrowing mode is a non-priority seat borrowing mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each cabin space to be sold, the passenger type and the target quantity of each passenger type, including: for each passenger type, determining the actual number of cabin spaces of the target cabin space type based on the cabin space information of each cabin space to be sold, wherein the target cabin space type is the cabin space type corresponding to the passenger type; when the actual number of cabin spaces is less than the target number, determining the first class of cabin spaces in a preset order until the actual number of cabin spaces is greater than the target number. The sum of the number of first class spaces of the first class space is equal to the target number, wherein the class type of the first class space is different from the target class type, the preset order represents the order of borrowing seats from classes of different class types, and the preset order at least includes a first preset order and a second preset order, and the first preset order is different from the second preset order; for each first class space in the first class space, the nesting information of the first class space is determined, and the average fare for each passenger in the target order is calculated based on the nesting information of the first class space, wherein the nesting information is used to represent the fare of the first class space.
[0008] Furthermore, the nesting mode is a first nesting mode, the seat borrowing mode is a priority seat borrowing mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each class of space to be sold, the passenger type and the target quantity of each passenger type, including: for each passenger type, determining the actual number of classes of the target class of space based on the class information of each class of space to be sold, wherein the target class of space type is the class of space type corresponding to the passenger type; determining the number of second classes of space of the second type of space according to a preset order, wherein the class type of the second class of space is different from the target class of space type, and the preset order represents the number of classes of space allocated to different classes. The preset order includes at least a first preset order and a second preset order, and the first preset order is different from the second preset order; when the number of the second class spaces is less than the target number, the target number of class spaces of the target class space type is determined, and the average fare for each passenger in the target order is calculated based on the target number of class spaces and the second number of class spaces, wherein the sum of the target number of class spaces and the second number of class spaces is equal to the target number; when the number of the second class spaces is greater than or equal to the target number, the average fare for each passenger in the target order is calculated based on the target number and the fare of the second class space.
[0009] Furthermore, the nested mode is a second nested mode, and the average fare for each passenger in the target order is calculated based on the nested mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target number of each passenger type, including: determining the third class cabin in a preset order until the number of third cabins of the third class cabin is equal to the target number, wherein the third class cabin includes multiple tags, the fare of the third class cabin corresponding to each tag in the multiple tags is different, and the sum of the number of cabins of the third class cabin corresponding to each tag is equal to the number of third cabins; the average fare for each passenger in the target order is calculated based on the fare corresponding to each tag in the third class cabin and the number of cabins corresponding to each tag.
[0010] Furthermore, the nested mode is a third nested mode, which calculates the average fare for each passenger in the target order based on the nested mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target number of each passenger type, including: determining the cabin type of the information of each cabin to be sold, and determining the remaining number of cabins of each cabin type based on the cabin type of the information of each cabin to be sold; for each cabin type, when the remaining number of cabins of the cabin type is greater than the target number of passenger types corresponding to the cabin type, calculating the average fare for each passenger in the target order based on the target number of each cabin type and the fare of each cabin type.
[0011] Furthermore, a target fare for each passenger is determined based on the average fare for each passenger and the preset transaction amount of the target order, and the target order is processed based on the target fare, including: determining the transportation cost information of the flight corresponding to the target order; determining the preset average fare for each passenger based on the preset transaction amount in the target order; determining the target fare for each passenger based on the preset average fare, the average fare and the transportation cost information; determining the target transaction amount of the target order based on the target fare for each passenger, and executing the transaction of the target order based on the target transaction amount to process the target order.
[0012] Furthermore, the nested information includes at least one of the following: first information and second information, and the average fare for each passenger in the target order is calculated based on the nested information of the first class of cabin space, including: when the nested information of the first class of cabin space is the first information, the fare of the first class of cabin space is adjusted to the fare of the target class of cabin space type, and the average fare for each passenger in the target order is calculated; when the nested information of the first class of cabin space is the second information, the fare of the first class of cabin space is not adjusted, and the average fare for each passenger in the target order is calculated.
[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a device for processing group orders is provided, which includes: a first acquisition unit, used to acquire the nesting mode and seat borrowing mode when the airline processes the group order, and to determine the information of each cabin to be sold, wherein the nesting mode represents the way in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether other types of cabins are borrowed for sale first; a second acquisition unit, used to acquire passenger information from a target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information includes at least: passenger type and target number of each passenger type; a calculation unit, used to calculate the average fare for each passenger in the target order based on the nesting mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target number of each passenger type; a processing unit, used to determine the target fare for each passenger based on the average fare for each passenger and the preset transaction amount of the target order, and to process the target order based on the target fare.
[0014] Further, the nesting mode is the first nesting mode, the seat borrowing mode is the non-priority seat borrowing mode, and the calculation unit includes: a first determination subunit, for determining, for each passenger type, the actual number of seats of the target class type according to the seat information of each information of the class to be sold, wherein the target class type is the class type corresponding to the passenger type; a second determination subunit, for determining, when the actual number of seats is less than the target number, the first class of seats in accordance with a preset order until the sum of the actual number of seats and the first number of seats of the first class of seats is equal to the target number, wherein the class type of the first class of seats is different from the target class type, and the preset order represents the order of borrowing seats from seats of different class types, and the preset order includes at least a first preset order and a second preset order, and the first preset order is different from the second preset order; a first calculation subunit, for determining, for each first class of seats in the first class of seats, the nesting information of the first class of seats, and calculating the average fare of each passenger in the target order according to the nesting information of the first class of seats, wherein the nesting information is used to represent the fare of the first class of seats.
[0015] Furthermore, the nesting mode is a first nesting mode, the seat borrowing mode is a priority seat borrowing mode, and the calculation unit includes: a third determining subunit, for determining, for each passenger type, the actual number of seats of a target class type according to the seat information of each class to be sold, wherein the target class type is the class type corresponding to the passenger type; a fourth determining subunit, for determining the number of second class seats of a second class according to a preset order, wherein the class type of the second class is different from the target class type, and the preset order represents the order of borrowing seats from classes of different class types, and the preset order includes at least the first a preset order and a second preset order, the first preset order is different from the second preset order; a fifth determining subunit, for determining a target number of slots of the target type of slots when the second number of slots is less than the target number, and calculating an average fare for each passenger in the target order based on the target number of slots and the second number of slots, wherein the sum of the target number of slots and the second number of slots is equal to the target number; and for calculating an average fare for each passenger in the target order based on the target number and the fare for the second type of slots when the second number of slots is greater than or equal to the target number.
[0016] Further, the nested mode is the second nested mode, and the calculation unit includes: a sixth determination subunit, used to determine the third class of space in a preset order until the number of third class spaces of the third class of space is equal to the target number, wherein the third class of space includes multiple tags, and the fare of the third class of space corresponding to each tag in the multiple tags is different, and the sum of the number of third class spaces corresponding to each tag is equal to the number of third class spaces; a second calculation subunit, used to calculate the average fare for each passenger in the target order based on the fare corresponding to each tag in the third class of space and the number of spaces corresponding to each tag.
[0017] Furthermore, the nested mode is the third nested mode, and the calculation unit includes: a seventh determination subunit, used to determine the class type of each class to be sold information, and determine the remaining number of classes of each class type according to the class type of each class to be sold information; a third calculation subunit, used to calculate the average fare for each passenger in the target order according to the target number of each class type and the fare of each class type, for each class type, when the remaining number of classes of the class type is greater than the target number of passenger types corresponding to the class type.
[0018] Furthermore, the processing unit includes: an eighth determination subunit, used to determine the transportation cost information of the flight corresponding to the target order; a ninth determination subunit, used to determine the preset average fare for each passenger based on the preset transaction amount in the target order; a tenth determination subunit, used to determine the target fare for each passenger based on the preset average fare, the average fare and the transportation cost information; an eleventh determination subunit, used to determine the target transaction amount of the target order based on the target fare for each passenger, and execute the transaction of the target order based on the target transaction amount to process the target order.
[0019] Furthermore, the nested information includes at least one of the following: first information and second information, and the first calculation subunit includes: a first calculation module, which is used to adjust the fare of the first category of class space to the fare of the target class space type when the nested information of the first category of class space is the first information, and calculate the average fare of each passenger in the target order; a second calculation module, which is used to not adjust the fare of the first category of class space when the nested information of the first category of class space is the second information, and calculate the average fare of each passenger in the target order.
[0020] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the method for processing team orders described in any one of the above items, and which, when executed by a processor, implements the steps of the method for processing team orders described in each embodiment of the present application.
[0021] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned team order processing methods is implemented.
[0022] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned methods for processing team orders.
[0023] Through the present application, the following steps are adopted: obtaining the nesting mode and seat borrowing mode when the airline handles the group order, and determining the information of each cabin to be sold, wherein the nesting mode represents the way in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether to give priority to borrowing other types of cabins for sale; obtaining passenger information from the target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information at least includes: passenger type, target number of each passenger type; calculating the average fare for each passenger in the target order based on the nesting mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target number of each passenger type; determining the target fare for each passenger based on the average fare for each passenger and the preset transaction amount of the target order, and processing the target order based on the target fare, thereby solving the problem in the related art that when the airline conducts transactions according to the preset fare for group travel, the airline's operating costs are high due to the increase in flight transportation costs or changes in the number of seats in the period before the agent pays the ticket. By determining the nesting mode and seat borrowing mode set by the airline, as well as the information of each cabin to be sold, the average fare for each passenger in the group order can be dynamically calculated based on the current inventory status and price of the cabins for individual sales, reducing the airline's dependence on fixed agreement prices and agents, allowing the airline to control prices and inventory more flexibly, reducing the airline's operating costs, and at the same time, through the use of seat borrowing and nesting mechanisms, the airline can more effectively use inventory resources to meet group booking needs without affecting individual sales, reducing the effect of loss of individual sales opportunities due to group bookings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0025] Figure 1 is a flowchart of a method for processing team orders provided in Example 1 of the present application;
[0026] Figure 2 It is a schematic diagram of an optional method for processing team orders provided according to Embodiment 1 of the present application;
[0027] Figure 3 is a schematic diagram of a team order processing device provided according to Embodiment 2 of the present application;
[0028] Figure 4 It is a schematic diagram of an electronic device for processing team orders provided according to Example 5 of the present application. DETAILED DESCRIPTION
[0029] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0030] It should be noted that the user information (including but not limited to user device information, user personal information, collected data, used data, generated data, processed data, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, collected information, used information, generated information, processed information, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of relevant countries and regions, necessary confidentiality measures are taken, and public order and good morals are not violated, and corresponding operation portals are provided for users to choose to authorize or refuse. For example, an interface is set between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0031] It should be noted that this application provides users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] Embodiment 1
[0035] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a method for processing team orders according to the first embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0036] Step S101, obtaining the nesting mode and seat borrowing mode when the airline processes group orders, and determining the information of each cabin to be sold, wherein the nesting mode represents the way in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether other types of cabins are borrowed for sale first.
[0037] The method for processing group orders provided in Example 1 of the present application is applied to the reservation system of an airline.
[0038] In the first embodiment, the "nested mode" and "seat borrowing mode" when processing group orders are two important mechanisms for optimizing group ticket prices and inventory management, which directly affect the processing method of group orders and the calculation of the final price.
[0039] The nesting mode is a mechanism that allows airlines to meet group booking needs by borrowing inventory from other classes. Specifically, when the number of passengers booked by a group exceeds the existing inventory of a certain sales class, the system can borrow inventory from other classes through the nesting mode. Exemplarily, this mechanism is divided into two types: continuous nesting (i.e., the first nesting mode) and network nesting (i.e., the second nesting mode). In addition, in addition to the nesting model, airlines can also adopt a non-nesting mode (i.e., the third nesting mode).
[0040] The seat borrowing mode determines whether the system gives priority to borrowing other types of cabins for sales when processing group orders. The seat borrowing mode is divided into two cases: priority seat borrowing and non-priority seat borrowing. In non-priority seat borrowing mode, the system first tries to sell the inventory of the target sales cabin. Only when the inventory of this cabin is insufficient to meet the group booking needs, the system will borrow the inventory of other cabins. On the contrary, in priority seat borrowing mode, the system will give priority to borrowing seats from other cabins when meeting the group booking needs. Only when the inventory of all cabins that can be borrowed has been exhausted, the system will start to use the inventory of the target sales cabin. This ensures that during the group booking process, the inventory of other cabins is consumed first to keep the inventory of the target sales cabin as complete as possible, which is convenient for subsequent sales.
[0041] The information for determining the cabins to be sold includes: determining whether the cabins to be sold are to be sold as group cabins or individual cabins; determining whether the cabins to be sold are to be included in the group order calculation; determining the freight rate for the cabins to be sold; determining the inventory quantity of the cabins to be sold and other information.
[0042] By combining the nested mode and the seat borrowing mode with the sales space information, group orders can be handled flexibly to avoid defaults caused by insufficient inventory, which in turn leads to increased operating costs.
[0043] Step S102, obtaining passenger information from the target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information includes at least: passenger type and target number of each passenger type.
[0044] In the first embodiment, the passenger information obtained from the group order (i.e., the target order mentioned above) may include: all passenger types (e.g., adults, children, infants) involved in the group order and the target number of each passenger type, so as to calculate the best cabin combination that meets the group booking needs and the corresponding price based on the passenger information. For example, if the target order includes 20 adults, 10 children, and 5 infants, the cabin to be sold is determined from the cabins to be sold based on the remaining inventory and price of the corresponding type of passengers in each cabin to be sold, and the price of the group order is calculated.
[0045] Step S103, calculating the average fare for each passenger in the target order according to the nesting mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target number of each passenger type.
[0046] In the first embodiment, the calculation of the average fare for each passenger in the target order involves the nesting mode, the seat borrowing mode, the information of the cabin space to be sold (including inventory and price), the passenger type (such as adults, children, infants) and the target number of each passenger type in the group.
[0047] For example, in a continuous nesting scenario, if the number of group bookings is 100 and all classes of seats are configured to be nested, the highest-priced class A will be used for sales until its inventory is exhausted, and then the lower-priced class B will be used, and so on, until the group booking needs are met. When calculating the average fare, the actual sales price and quantity of each class will be taken into account to derive the average fare for each passenger in the target order.
[0048] Step S104, determining a target fare for each passenger based on the average fare for each passenger and the preset transaction amount of the target order, and processing the target order based on the target fare.
[0049] In the first embodiment, the airline needs to calculate the average fare for each passenger based on the remaining inventory of the current individual passenger sales space and the set fare, and adjust the transaction amount of the target order based on the average fare for each passenger and the preset transaction amount of the target order. For example, if the preset transaction amount of the target order is lower than the total cost of the target order, or the remaining inventory of the current individual passenger sales space cannot meet the space demand in the target order, it is necessary to adjust the sales quantity and sales price of different spaces in the target order according to the average fare for each passenger calculated in step S103, or adjust the quantity distribution of passenger types in the target order.
[0050] By determining the target fare for each passenger, the transaction amount of the target order can be adjusted to bring it closer to the airline's revenue target, while taking into account the airline's remaining cabin inventory, thereby optimizing the airline's sales strategy for group orders.
[0051] In summary, the method for processing group orders provided in Example 1 of the present application obtains the nesting mode and seat borrowing mode when the airline processes the group order, and determines the information of each cabin to be sold, wherein the nesting mode represents the way in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether other types of cabins are borrowed for sale first; obtains passenger information from the target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information includes at least: passenger type, target number of each passenger type; calculates the average fare for each passenger in the target order based on the nesting mode, seat borrowing mode, information of each cabin to be sold, passenger type and target number of each passenger type; determines the target fare for each passenger based on the average fare for each passenger and the preset transaction amount of the target order, and processes the target order based on the target fare, thereby solving the problem in the related art that when the airline conducts transactions according to the preset fare for group travel, the airline's operating costs are high due to increased flight transportation costs or changes in the number of seats in the period before the agent pays the ticket. By determining the nesting mode and seat borrowing mode set by the airline, as well as the information of each cabin to be sold, the average fare for each passenger in the group order can be dynamically calculated based on the current inventory status and price of the cabins for individual sales, reducing the airline's dependence on fixed agreement prices and agents, allowing the airline to control prices and inventory more flexibly, reducing the airline's operating costs, and at the same time, through the use of seat borrowing and nesting mechanisms, the airline can more effectively use inventory resources to meet group booking needs without affecting individual sales, reducing the effect of loss of individual sales opportunities due to group bookings.
[0052] Optionally, in the method for processing group orders provided in Example 1 of the present application, the above-mentioned nesting mode is the first nesting mode, the above-mentioned seat borrowing mode is the non-priority seat borrowing mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each cabin space to be sold, the passenger type and the target quantity of each passenger type, including: for each passenger type, determining the actual number of cabin spaces of the target cabin space type based on the cabin space information of each cabin space to be sold, wherein the target cabin space type is the cabin space type corresponding to the passenger type; when the actual number of cabin spaces is less than the target number, calculating the number of cabin spaces in a preset order. The first-class cabin space is determined in sequence until the sum of the actual number of cabin spaces and the first number of cabin spaces of the first-class cabin space is equal to the target number, wherein the cabin type of the first-class cabin space is different from the target cabin type, the preset sequence represents the sequence of borrowing seats from cabins of different cabin types, the preset sequence at least includes a first preset sequence and a second preset sequence, and the first preset sequence is different from the second preset sequence; for each first-class cabin space in the first-class cabin space, the nesting information of the first-class cabin space is determined, and the average fare of each passenger in the target order is calculated according to the nesting information of the first-class cabin space, wherein the nesting information is used to represent the fare of the first-class cabin space.
[0053] In the first embodiment, in the case of a continuously nested nesting mode (i.e., the first nesting mode described above), it is allowed to borrow the inventory of other individual sales cabins adjacent to the target sales cabin for sales. For example, if the target sales cabin is cabin B, it may be allowed to borrow the inventory of cabin A, cabin C, or cabin D. In the case of not enabling priority borrowing (i.e., the non-priority borrowing mode described above), the target sales cabin will be consumed first, and when the inventory is insufficient, other cabins will be borrowed according to the first preset order or the second preset order.
[0054] In an optional embodiment, assuming that the target order requires 100 A-class seats, the group sales class is G, and there are four individual passenger sales classes ABCD, the result of calculating the average fare for each passenger in the target order according to the first nested mode and the non-priority seat borrowing mode can be shown in Table 1.
[0055] Table 1
[0056] Sales space A B C D Set Inventory 30 30 30 30 Nested yes yes no yes The actual saleable number 90 60 30 30 Actual price sorting 4 3 2 1 Freight rate setting ¥400 ¥300 ¥200 ¥100
[0057] First, use 30 A-class seats in the current inventory for sales. Then, if the inventory of A-class seats is insufficient, rent seats according to the first preset order or the second preset order. For example, when renting seats according to the first preset order, sell in the order of cabin B and cabin D, that is, after deducting the inventory of cabin B of 30, deduct the inventory of cabin D of 30; when renting seats according to the second preset order, sell in the order of cabin D and cabin B, that is, after deducting the inventory of cabin D of 30, deduct the inventory of cabin B of 30. Secondly, deduct the remaining non-nested cabin C inventory of 10. Finally, determine the nesting information of each cabin, and calculate the average fare for each passenger in the target order based on the nesting information of each cabin.
[0058] Optionally, in the method for processing team orders provided in Example 1 of the present application, the above-mentioned nested information includes at least one of the following: first information, second information, and calculating the average fare for each passenger in the target order based on the nested information of the first class of cabin space, including: when the nested information of the first class of cabin space is the first information, adjusting the fare of the first class of cabin space to the fare of the target class of cabin space type, and calculating the average fare for each passenger in the target order; when the nested information of the first class of cabin space is the second information, not adjusting the fare of the first class of cabin space, and calculating the average fare for each passenger in the target order.
[0059] In the first embodiment, the nesting information of the first class of space includes yes (i.e., the first information mentioned above) and no (i.e., the second information mentioned above). Exemplarily, when the nesting information of space B and space D (i.e., the first class of space mentioned above) is yes (i.e., the first information mentioned above), the fare of space B and space D is adjusted to the fare of the target space type space A, 400; when the nesting information of space C (i.e., the first class of space mentioned above) is no (i.e., the second information mentioned above), the fare of space C is not adjusted, and is calculated according to the fare of space C, 200. Therefore, the calculation process of calculating the average fare of each passenger in the target order according to the content of Table 1 above can be expressed as: (400*30+400*30+400*30+200*10) / 100=380.
[0060] It should be noted that the "fare setting" mentioned in Table 1 above refers to the unit price set by the airline for each sales class, while the "actual sales number" refers to the number of seats that will actually be sold in each sales class calculated based on the number of group bookings and the nesting model. The final recommended price is calculated based on these two factors and the total number of group bookings, ensuring the intelligence and dynamism of group prices.
[0061] Optionally, in the method for processing team orders provided in Example 1 of the present application, the above-mentioned nested mode is the first nested mode, and the above-mentioned seat borrowing mode is the priority seat borrowing mode, and the average fare for each passenger in the target order is calculated based on the nested mode, the seat borrowing mode, the information of each cabin space to be sold, the passenger type and the target number of each passenger type, including: for each passenger type, determining the actual number of cabin spaces of the target cabin type based on the cabin space information of each cabin space to be sold, wherein the target cabin type is the cabin type corresponding to the passenger type; determining the number of second cabin spaces of the second class of cabin spaces in a preset order, wherein the cabin types of the second class of cabin spaces are different For the target class type, the preset sequence represents the order of renting seats in the classes of different class types, and the preset sequence includes at least a first preset sequence and a second preset sequence, and the first preset sequence is different from the second preset sequence; when the number of second class slots is less than the target number, the target number of class slots of the target class type is determined, and the average fare for each passenger in the target order is calculated based on the target number of class slots and the second number of class slots, wherein the sum of the target number of class slots and the second number of class slots is equal to the target number; when the number of second class slots is greater than or equal to the target number, the average fare for each passenger in the target order is calculated based on the target number and the fare of the second type of class slots.
[0062] In the first embodiment, in the case of a continuously nested nesting mode (i.e., the first nesting mode described above), it is allowed to borrow the inventory of other individual sales cabins adjacent to the target sales cabin for sale. For example, if the target sales cabin is cabin B, it may be allowed to borrow the inventory of cabin A, cabin C, or cabin D. When priority borrowing is enabled (i.e., the priority borrowing mode described above), seats will be borrowed from other cabins in priority according to the first preset order or the second preset order, until the inventory of the current sales cabin is sold when no seats can be borrowed.
[0063] In an optional embodiment, it is assumed that the target order requires 100 A cabins, the team sales cabin is G, and there are four individual sales cabins ABCD. First, the seats are borrowed according to the first preset order or the second preset order. For example, when borrowing seats according to the first preset order, the seats are sold in the order of cabins B and cabins D, that is, after deducting the inventory of cabin B 30, the inventory of cabin D is deducted 30; when borrowing seats according to the second preset order, the seats are sold in the order of cabins D and cabins B, that is, after deducting the inventory of cabin D 30, the inventory of cabin B is deducted 30. Then, 30 A cabins in the current cabin inventory are used for sales. Secondly, the remaining non-nested cabin C inventory 10 is deducted. Finally, the average fare for each passenger in the target order is calculated according to the nesting information of each cabin, and the calculation process is as follows: (400*30+400*30+400*30+200*10) / 100=380.
[0064] It should be noted that the same prerequisites are used in the first nesting mode and the priority seat borrowing mode, and therefore the calculation results are the same. If the calculation is performed according to the actual situation in the actual production environment, different average fares for each passenger will be calculated according to the dynamic changes of the cabin information.
[0065] Optionally, in the method for processing team orders provided in Example 1 of the present application, the above-mentioned nested mode is the second nested mode, and the average fare for each passenger in the target order is calculated based on the nested mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target quantity of each passenger type, including: determining the third class cabin in a preset order until the number of third cabins in the third class cabin is equal to the target number, wherein the third class cabin includes multiple tags, the fare for the third class cabin corresponding to each of the multiple tags is different, and the sum of the number of cabins for the third class cabin corresponding to each tag is equal to the number of third cabins; the average fare for each passenger in the target order is calculated based on the fare corresponding to each tag in the third class cabin and the number of cabins corresponding to each tag.
[0066] In the first embodiment, in the network nesting scenario (i.e., the second nesting mode described above), when a sales slot is sold, what is actually deducted is the inventory of all sales slots in the physical slot where the sales slot is located, rather than just the inventory of the current sales slot. This means that if multiple sales slots share the same physical slot, then the booking of one sales slot may reduce the number of available sales of other sales slots. The calculation method of network nesting reflects this linkage of inventory.
[0067] In an optional embodiment, if the target order requires 40 sales slots, the six sales slots ABCDEF are all in the physical slots. The result of calculating the average fare for each passenger in the target order according to the second nested mode can be shown in Table 2.
[0068] Table 2
[0069]
[0070] First, start selling from cabin A, which has the largest remaining inventory and is configured to allow nesting, deduct 20 of the inventory of all sales cabins in the physical cabin where cabin A is located, and then deduct the inventory of other cabins, that is, deduct 10 of cabin B, 5 of cabin C, 2 of cabin D, 1 of cabin E, and 2 of cabin F, until the number of deducted cabins (that is, the third type of cabins mentioned above, the physical cabin types A, B, C, D, E, and F of the cabins represent the above labels) equals the target quantity 40. Then, the total price of each sales cabin is calculated based on the freight rate corresponding to its label and the actual sales number. For example, the total price of sales cabin A is the freight rate of 34,054 yuan multiplied by the actual sales number of 20 people. Finally, the total price of all sold seats is calculated and divided by the total number of group bookings to obtain an average price. The calculation process can be expressed as: (681080+294110+133895+49532+22754+41484) / 40=30571.
[0071] Optionally, in the method for processing group orders provided in Example 1 of the present application, the above-mentioned nested mode is the third nested mode, and the average fare for each passenger in the target order is calculated based on the nested mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target number of each passenger type, including: determining the cabin type of the information of each cabin to be sold, and determining the remaining number of cabins of each cabin type based on the cabin type of the information of each cabin to be sold; for each cabin type, when the remaining number of cabins of the cabin type is greater than the target number of passenger types corresponding to the cabin type, calculating the average fare for each passenger in the target order based on the target number of each cabin type and the fare of each cabin type.
[0072] In the first embodiment, in the non-nested mode, the calculation method becomes more direct, and the system directly calculates the recommended price for the group based on the remaining inventory and freight rates of the individual passenger sales space.
[0073] In an optional embodiment, if the target order includes 20 adults, the remaining saleable cabins for individual passengers include cabin C, and the inventory of cabin C is 30 (as shown in Table 3), then the inventory of cabin C of 20 is directly deducted, and the average fare for each passenger in the target order is calculated to be 100.
[0074] Table 3
[0075]
[0076] In an optional embodiment, if the target order includes 20 adults, the remaining saleable cabins for individual passengers include cabin A, cabin B and cabin C, the inventory of cabin A is 5, the inventory of cabin B is 5, and the inventory of cabin C is 10 (as shown in Table 4), then the inventory of cabin A is 5, the inventory of cabin B is 5, and the inventory of cabin C is 10 (as shown in Table 4), then the inventory of cabin A is 5 directly deducted, the inventory of cabin B is 5, and the inventory of cabin C is 10, and the average fare for each passenger in the target order is calculated to be 175.
[0077] Table 4
[0078]
[0079]
[0080] In an optional embodiment, if the target order contains multiple passenger types, the average fare of each passenger type can be calculated. For example, if the target order contains 20 adults, 10 children and 10 infants, the remaining salable cabins for individual passengers include cabin A, cabin B and cabin C, the inventory of adult cabin A is greater than 5, the inventory of child cabin A is 10, the inventory of infant cabin A is 10, the inventory of adult cabin B is 5, the inventory of child cabin B is 10, the inventory of infant cabin B is 10, the inventory of adult cabin C is 10, the inventory of child cabin C is 10, and the inventory of infant cabin C is 10 (as shown in Table 5), then deduct the inventory of adult cabin A of 15, deduct the inventory of adult cabin B of 5, deduct the inventory of child cabin C of 10, and deduct the inventory of infant cabin C of 10, and calculate the average fare of each passenger type in the target order, that is, the average fare of adults is 275, the average fare of children is 50, and the average fare of infants is 10.
[0081] Table 5
[0082]
[0083] Optionally, in the method for processing group orders provided in Example 1 of the present application, the target fare for each passenger is determined based on the average fare for each passenger and the preset transaction amount of the target order, and the target order is processed based on the target fare, including: determining the transportation cost information of the flight corresponding to the target order; determining the preset average fare for each passenger based on the preset transaction amount in the target order; determining the target fare for each passenger based on the preset average fare, the average fare and the transportation cost information; determining the target transaction amount of the target order based on the target fare for each passenger, and executing the transaction of the target order based on the target transaction amount to process the target order.
[0084] In the first embodiment, in order to reduce the operating costs of the airline, it is necessary to determine the target transaction amount of the target order based on the transportation cost information of the flight, the average fare for each passenger and the preset transaction amount of the target order.
[0085] In an optional embodiment, all transportation cost information related to flight operations may be collected and analyzed, including but not limited to fuel costs, aircraft depreciation, crew salaries, airport charges, maintenance costs, etc. Transportation cost information is the basis for calculating the target fare, which reflects the direct and indirect costs that an airline needs to bear for providing a flight service.
[0086] Then, the total transaction amount in the target order (i.e. the preset transaction amount mentioned above) is evenly distributed to each passenger to obtain the preset average fare for each passenger. The preset transaction amount is a total transaction amount set by the airline or agent at the beginning of the group booking.
[0087] Finally, by analyzing the difference between the preset average fare and the actual average fare, and taking into account the operating costs, the preset average fare is adjusted to ensure that the fare for each passenger can cover the cost, avoiding the problem that the transportation cost of the target order is high and the price booked by the agent is low, resulting in high operating costs for the airline. Exemplarily, if the difference between the transaction amount P1 calculated based on the preset average fare and the target quantity and the transportation cost is greater than the difference between the transaction amount P2 calculated based on the average fare and the target quantity and the transportation cost, the preset average fare is used as the target fare for each passenger, and the target transaction amount of the target order is determined based on the target fare and the target quantity of each passenger, and the transaction of the target order is executed.
[0088] Optionally, in the first embodiment, the transaction process of the team order of this solution can be as follows: Figure 2 The first embodiment of the present application provides a business system including the entire process of the civil aviation industry. The business system consists of a WAF component, a CDN component, a static storage component, and a Load Balance component (such as Figure 2The system consists of modules such as load balancer in the production environment, web server component, container component, REDIS component and database component. Among them, Internet represents the network, HTTPS represents the network data transmission protocol, Route53 represents a router, AZ1 (Availability Zone 1) represents availability zone 1, that is, an independent area for ensuring high availability, Order represents the reservation order system, ODS1 (Operational Data Store 1) represents the operational data storage, which is used to analyze and report operational data, Production VPC refers to the virtual private cloud (VPC) of the production environment, which is used to deploy applications and services, Operation VPC refers to the virtual private cloud of the operating environment, which is used to manage and maintain other systems, Jump Server is a jump server used to isolate the internal network and external access, and is usually used for remote management and maintenance, Monitoring Console is a monitoring console used to monitor system performance, resource usage and application status, Maintenance Server is a maintenance server used to perform system maintenance tasks such as software updates and hardware upgrades, AWSRedis refers to the Redis service deployed in the AWS environment, Redis is a high-performance key-value storage database commonly used for caching and message queues. The WAF component is a web application firewall that protects web applications or APIs from common network attacks and robot attacks that may affect availability, compromise security, or consume too many resources. The CDN component is used to avoid bottlenecks and links that affect data transmission speed and stability to ensure smooth system operation. The static storage component is an object storage service with scalability, data availability, security, and performance, and is used to store front-end static pages. The LoadBalance component is a load balancer used to divert backend core programs. The WEB server component is used to provide Web cloud services. The container component runs in the WEB server and supports the operation of core backend programs in this system. The REDIS component provides storage functions for data cache. The database component is used to perform operations such as data addition, data interception, data update, and data deletion.
[0089] The method for processing team orders provided in Example 1 of the present application can be run in parallel with other pricing models of the airline and be independently packaged. It can be subsequently expanded in certain specific cases, and the calculated results can still be applied to other price adjustment rules. The calculation performed by the method for processing team orders after the inventory is acquired is separated from the inventory control module. Any configuration or function expansion of the inventory control module has no effect on the calculation method. As sales channels expand, the method for processing team orders can be provided to external systems through external interface software to achieve multi-channel applications.
[0090] Since the core logic is independently undertaken by the above-mentioned business systems, the distribution results can be provided to internal software and any external system through standard interfaces, which simply realizes the data intercommunication between systems. At the same time, it can be deployed separately for each different airline, and each configuration can be set separately, and different modes can be used for different flights, so as to realize the differentiated problems faced by each airline on different routes. All functions are completed within the same system, and while realizing the functions, it effectively prevents tampering, attacks, and data leakage.
[0091] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0092] Embodiment 2
[0093] The second embodiment of the present application also provides a device for processing team orders. It should be noted that the device for processing team orders in the second embodiment of the present application can be used to execute the method for processing team orders provided in the first embodiment of the present application. The device for processing team orders provided in the second embodiment of the present application is introduced below.
[0094] Figure 3 Schematic diagram of a processing device for team orders according to Embodiment 2 of the present application. Figure 3 As shown, the device includes: a first acquisition unit 301, a second acquisition unit 302, a calculation unit 303 and a processing unit 304.
[0095] Specifically, the first acquisition unit 301 is used to obtain the nesting mode and seat borrowing mode when the airline handles group orders, and to determine the information of each cabin to be sold, wherein the nesting mode represents the way in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether other types of cabins are borrowed for sale first.
[0096] The second acquisition unit 302 is used to acquire passenger information from the target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information at least includes: passenger type and target number of each passenger type.
[0097] The calculation unit 303 is used to calculate the average fare for each passenger in the target order according to the nesting mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target number of each passenger type.
[0098] The processing unit 304 is used to determine the target fare for each passenger according to the average fare for each passenger and the preset transaction amount of the target order, and process the target order according to the target fare.
[0099] The processing device for group orders provided in the second embodiment of the present application obtains the nesting mode and seat borrowing mode of the airline when processing the group order, and determines the information of each cabin to be sold through the first acquisition unit 301, wherein the nesting mode represents the way in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether other types of cabins are borrowed for sale first; the second acquisition unit 302 obtains passenger information from the target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information at least includes: passenger type, target number of each passenger type; the calculation unit 303 calculates the average fare for each passenger in the target order according to the nesting mode, seat borrowing mode, information of each cabin to be sold, passenger type and target number of each passenger type; the processing unit 304 determines the target fare for each passenger according to the average fare for each passenger and the preset transaction amount of the target order, and processes the target order according to the target fare, thereby solving the problem in the related art that when the airline conducts transactions according to the preset fare for group travel, the airline's operating cost is high due to the increase in flight transportation cost or the change in the number of seats in the period before the agent pays the ticket price. By determining the nesting mode and seat borrowing mode set by the airline, as well as the information of each cabin to be sold, the average fare for each passenger in the group order can be dynamically calculated based on the current inventory status and price of the cabins for individual sales, reducing the airline's dependence on fixed agreement prices and agents, allowing the airline to control prices and inventory more flexibly, reducing the airline's operating costs, and at the same time, through the use of seat borrowing and nesting mechanisms, the airline can more effectively use inventory resources to meet group booking needs without affecting individual sales, reducing the effect of loss of individual sales opportunities due to group bookings.
[0100] Optionally, in the group order processing device provided in Example 2 of the present application, the above-mentioned nesting mode is the first nesting mode, the above-mentioned seat borrowing mode is the non-priority seat borrowing mode, and the above-mentioned calculation unit 303 includes: a first determination subunit, for determining, for each passenger type, the actual number of seats of the target class type according to the cabin information of each cabin to be sold, wherein the target class type is the cabin type corresponding to the passenger type; a second determination subunit, for determining the first class of cabins in a preset order when the actual number of cabins is less than the target number, until the actual number of cabins is equal to the target number. The sum of the first class space quantities of the first class space is equal to the target quantity, wherein the class type of the first class space is different from the target class type, the preset order represents the order of borrowing seats from the classes of different class types, the preset order includes at least a first preset order and a second preset order, and the first preset order is different from the second preset order; a first calculation subunit is used to determine the nesting information of the first class space for each first class space in the first class space, and calculate the average fare for each passenger in the target order based on the nesting information of the first class space, wherein the nesting information is used to represent the fare of the first class space.
[0101] Optionally, in the processing device for group orders provided in Example 2 of the present application, the above-mentioned nesting mode is the first nesting mode, the above-mentioned seat borrowing mode is the priority seat borrowing mode, and the above-mentioned calculation unit 303 includes: a third determination subunit, for determining, for each passenger type, the actual number of seats of the target class type according to the cabin information of each cabin to be sold, wherein the target class type is the cabin type corresponding to the passenger type; a fourth determination subunit, for determining the number of second cabins of the second class in a preset order, wherein the cabin type of the second class is different from the target cabin type, and the preset order represents the number of seats to be sold to different cabins. The preset order includes at least a first preset order and a second preset order, and the first preset order is different from the second preset order; a fifth determining subunit is used to determine the target number of seats of the target class type when the number of second classes is less than the target number, and calculate the average fare for each passenger in the target order based on the target number of seats and the second number of seats, wherein the sum of the target number of seats and the second number of seats is equal to the target number; when the number of second classes is greater than or equal to the target number, the average fare for each passenger in the target order is calculated based on the target number and the fare of the second class.
[0102] Optionally, in the team order processing device provided in Example 2 of the present application, the above-mentioned nested mode is the second nested mode, and the above-mentioned calculation unit 303 includes: a sixth determination subunit, used to determine the third-class cabin in a preset order until the number of third cabins in the third-class cabin is equal to the target number, wherein the third-class cabin includes multiple tags, and the fare of the third-class cabin corresponding to each tag in the multiple tags is different, and the sum of the number of cabins of the third-class cabin corresponding to each tag is equal to the number of third cabins; a second calculation subunit, used to calculate the average fare for each passenger in the target order based on the fare corresponding to each tag in the third-class cabin and the number of cabins corresponding to each tag.
[0103] Optionally, in the team order processing device provided in Example 2 of the present application, the above-mentioned nested mode is the third nested mode, and the above-mentioned calculation unit 303 includes: a seventh determination subunit, used to determine the cabin type of each cabin to be sold information, and determine the remaining number of cabins of each cabin type according to the cabin type of each cabin to be sold information; a third calculation subunit, used to calculate the average fare for each passenger in the target order based on the target number of each cabin type and the fare of each cabin type for each cabin type, when the remaining number of cabins of the cabin type is greater than the target number of passenger types corresponding to the cabin type.
[0104] Optionally, in the team order processing device provided in Example 2 of the present application, the above-mentioned processing unit 304 includes: an eighth determination subunit, used to determine the transportation cost information of the flight corresponding to the target order; a ninth determination subunit, used to determine the preset average fare for each passenger based on the preset transaction amount in the target order; a tenth determination subunit, used to determine the target fare for each passenger based on the preset average fare, the average fare and the transportation cost information; an eleventh determination subunit, used to determine the target transaction amount of the target order based on the target fare for each passenger, and execute the transaction of the target order based on the target transaction amount to process the target order.
[0105] Optionally, in the team order processing device provided in Example 2 of the present application, the above-mentioned nested information includes at least one of the following: first information, second information, and the above-mentioned first calculation subunit includes: a first calculation module, which is used to adjust the fare of the first class of cabin to the fare of the target class type when the nested information of the first class of cabin is the first information, and calculate the average fare for each passenger in the target order; a second calculation module, which is used to not adjust the fare of the first class of cabin when the nested information of the first class of cabin is the second information, and calculate the average fare for each passenger in the target order.
[0106] The team order processing device includes a processor and a memory. The above-mentioned first acquisition unit 301, second acquisition unit 302, calculation unit 303 and processing unit 304 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0107] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the operating costs of airlines can be reduced by adjusting the kernel parameters.
[0108] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0109] Embodiment 3 of the present invention provides a computer-readable storage medium having a program stored thereon, which implements a method for processing team orders when executed by a processor.
[0110] Embodiment 4 of the present invention provides a processor, and the processor is used to run a program, wherein the program executes a method for processing team orders when the program is running.
[0111] like Figure 4 As shown, embodiment 5 of the present invention provides an electronic device, the device includes a processor, a memory and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: obtaining a nesting mode and a seat borrowing mode when an airline processes a group order, and determining information of each cabin to be sold, wherein the nesting mode represents a manner in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether other types of cabins are borrowed for sale first; obtaining passenger information from a target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information includes at least passenger type and a target number of each passenger type; calculating an average fare for each passenger in the target order based on the nesting mode, the seat borrowing mode, information of each cabin to be sold, passenger type and the target number of each passenger type; determining a target fare for each passenger based on the average fare for each passenger and a preset transaction amount of the target order, and processing the target order based on the target fare.
[0112] When the processor executes the program, the following steps are also implemented: the above-mentioned nesting mode is the first nesting mode, the above-mentioned seat borrowing mode is the non-priority seat borrowing mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each cabin space to be sold, the passenger type and the target quantity of each passenger type, including: for each passenger type, determining the actual number of cabin spaces of the target cabin space type based on the cabin space information of each cabin space to be sold, wherein the target cabin space type is the cabin space type corresponding to the passenger type; when the actual number of cabin spaces is less than the target number, determining the first cabin space type in a preset order. until the sum of the actual number of seats and the number of first seats of the first class of seats is equal to the target number, wherein the seat type of the first class of seats is different from the target class type, the preset sequence represents the order of borrowing seats from seats of different class types, the preset sequence at least includes a first preset sequence and a second preset sequence, and the first preset sequence is different from the second preset sequence; for each first class of seats in the first class of seats, the nesting information of the first class of seats is determined, and the average fare for each passenger in the target order is calculated based on the nesting information of the first class of seats, wherein the nesting information is used to represent the fare of the first class of seats.
[0113] When the processor executes the program, the following steps are also implemented: the above-mentioned nesting mode is the first nesting mode, the above-mentioned seat borrowing mode is the priority seat borrowing mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each cabin space to be sold, the passenger type and the target number of each passenger type, including: for each passenger type, determining the actual number of cabin spaces of the target cabin space type based on the cabin space information of each cabin space to be sold, wherein the target cabin space type is the cabin space type corresponding to the passenger type; determining the number of second cabin spaces of the second type of cabin space in a preset order, wherein the cabin type of the second type of cabin space is different from the target cabin space. type, the preset order represents the order of renting seats in cabins of different cabin types, the preset order includes at least a first preset order and a second preset order, the first preset order is different from the second preset order; when the number of second cabins is less than the target number, the target number of cabins of the target cabin type is determined, and the average fare for each passenger in the target order is calculated based on the target number of cabins and the second number of cabins, wherein the sum of the target number of cabins and the second number of cabins is equal to the target number; when the number of second cabins is greater than or equal to the target number, the average fare for each passenger in the target order is calculated based on the target number and the fare for the second type of cabins.
[0114] When the processor executes the program, the following steps are also implemented: the above-mentioned nesting mode is the second nesting mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target number of each passenger type, including: determining the third class of cabins in a preset order until the number of third cabins of the third class of cabins is equal to the target number, wherein the third class of cabins includes multiple tags, the fare of the third class of cabins corresponding to each tag in the multiple tags is different, and the sum of the number of cabins of the third class of cabins corresponding to each tag is equal to the number of third cabins; the average fare for each passenger in the target order is calculated based on the fare corresponding to each tag in the third class of cabins and the number of cabins corresponding to each tag.
[0115] When the processor executes the program, the following steps are also implemented: the above-mentioned nesting mode is the third nesting mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each cabin space to be sold, the passenger type and the target number of each passenger type, including: determining the cabin type of the information of each cabin space to be sold, and determining the remaining number of cabin spaces of each cabin type based on the cabin type of the information of each cabin space to be sold; for each cabin type, when the remaining number of cabin spaces of the cabin type is greater than the target number of passenger types corresponding to the cabin type, calculating the average fare for each passenger in the target order based on the target number of each cabin type and the fare of each cabin type.
[0116] When the processor executes the program, the following steps are also implemented: determining the target fare for each passenger based on the average fare for each passenger and the preset transaction amount of the target order, and processing the target order based on the target fare, including: determining the transportation cost information of the flight corresponding to the target order; determining the preset average fare for each passenger based on the preset transaction amount in the target order; determining the target fare for each passenger based on the preset average fare, the average fare and the transportation cost information; determining the target transaction amount of the target order based on the target fare for each passenger, and executing the transaction of the target order based on the target transaction amount to process the target order.
[0117] When the processor executes the program, the following steps are also implemented: the above-mentioned nested information includes at least one of the following: the first information, the second information, and the average fare for each passenger in the target order is calculated based on the nested information of the first class of space, including: when the nested information of the first class of space is the first information, the fare of the first class of space is adjusted to the fare of the target class type, and the average fare for each passenger in the target order is calculated; when the nested information of the first class of space is the second information, the fare of the first class of space is not adjusted, and the average fare for each passenger in the target order is calculated.
[0118] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0119] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: obtaining a nesting mode and a seat borrowing mode when an airline processes a group order, and determining information about each cabin to be sold, wherein the nesting mode represents the way in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether other types of cabins are borrowed for sale first; obtaining passenger information from a target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information includes at least: passenger type and target number of each passenger type; calculating the average fare for each passenger in the target order based on the nesting mode, the seat borrowing mode, information about each cabin to be sold, passenger type and target number of each passenger type; determining a target fare for each passenger based on the average fare for each passenger and a preset transaction amount of the target order, and processing the target order based on the target fare.
[0120] When executed on a data processing device, the method is also suitable for executing a program that is initialized with the following method steps: the above-mentioned nesting mode is the first nesting mode, the above-mentioned seat borrowing mode is the non-priority seat borrowing mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each cabin space to be sold, the passenger type and the target number of each passenger type, including: for each passenger type, determining the actual number of cabin spaces of the target cabin space type based on the cabin space information of each cabin space to be sold, wherein the target cabin space type is the cabin space type corresponding to the passenger type; when the actual number of cabin spaces is less than the target number, calculating the average fare for each passenger in the target order based on the target number of cabin spaces. The first class of space is determined in a preset order until the sum of the actual number of space and the first number of space of the first class of space is equal to the target number, wherein the space type of the first class of space is different from the target space type, the preset order represents the order of borrowing seats from spaces of different space types, and the preset order includes at least a first preset order and a second preset order, and the first preset order is different from the second preset order; for each first class of space in the first class of space, the nesting information of the first class of space is determined, and the average fare of each passenger in the target order is calculated based on the nesting information of the first class of space, wherein the nesting information is used to represent the fare of the first class of space.
[0121] When executed on a data processing device, the method is also suitable for executing a program that is initialized with the following method steps: the above-mentioned nesting mode is the first nesting mode, the above-mentioned seat borrowing mode is the priority seat borrowing mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each cabin space to be sold, the passenger type and the target number of each passenger type, including: for each passenger type, determining the actual number of cabin spaces of the target cabin space type based on the cabin space information of each cabin space to be sold, wherein the target cabin space type is the cabin space type corresponding to the passenger type; determining the number of second cabin spaces of the second class of cabin space according to a preset order, wherein the cabin space type of the second class of cabin space is The type is different from the target class type, the preset order represents the order of renting seats in the classes of different class types, the preset order includes at least a first preset order and a second preset order, the first preset order is different from the second preset order; when the number of second class spaces is less than the target number, the target number of class spaces of the target class type is determined, and the average fare for each passenger in the target order is calculated based on the target number of class spaces and the second number of class spaces, wherein the sum of the target number of class spaces and the second number of class spaces is equal to the target number; when the number of second class spaces is greater than or equal to the target number, the average fare for each passenger in the target order is calculated based on the target number and the fare of the second class space.
[0122] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: the above-mentioned nesting mode is the second nesting mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target number of each passenger type, including: determining the third class of cabins in a preset order until the number of third cabins of the third class of cabins is equal to the target number, wherein the third class of cabins includes multiple tags, the fare of the third class of cabins corresponding to each tag in the multiple tags is different, and the sum of the number of cabins of the third class of cabins corresponding to each tag is equal to the number of third cabins; the average fare for each passenger in the target order is calculated based on the fare corresponding to each tag in the third class of cabins and the number of cabins corresponding to each tag.
[0123] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: the above-mentioned nesting mode is the third nesting mode, and the average fare for each passenger in the target order is calculated based on the nesting mode, the seat borrowing mode, the information of each cabin to be sold, the passenger type and the target number of each passenger type, including: determining the cabin type of the information of each cabin to be sold, and determining the remaining number of cabins for each cabin type based on the cabin type of the information of each cabin to be sold; for each cabin type, when the remaining number of cabins of the cabin type is greater than the target number of passenger types corresponding to the cabin type, calculating the average fare for each passenger in the target order based on the target number of each cabin type and the fare of each cabin type.
[0124] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: determining a target fare for each passenger based on the average fare for each passenger and the preset transaction amount of the target order, and processing the target order based on the target fare, including: determining the transportation cost information of the flight corresponding to the target order; determining the preset average fare for each passenger based on the preset transaction amount in the target order; determining the target fare for each passenger based on the preset average fare, the average fare and the transportation cost information; determining the target transaction amount of the target order based on the target fare for each passenger, and executing the transaction of the target order based on the target transaction amount to process the target order.
[0125] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: the above-mentioned nested information includes at least one of the following: first information, second information, and the average fare for each passenger in the target order is calculated based on the nested information of the first class of space, including: when the nested information of the first class of space is the first information, the fare of the first class of space is adjusted to the fare of the target class of space type, and the average fare for each passenger in the target order is calculated; when the nested information of the first class of space is the second information, the fare of the first class of space is not adjusted, and the average fare for each passenger in the target order is calculated.
[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0127] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0128] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0130] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0131] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0132] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0133] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0134] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0135] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for processing team orders, characterized in that: include: Obtaining the nesting mode and seat borrowing mode when the airline processes group orders, and determining the information of each cabin to be sold, wherein the nesting mode represents the way in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether other types of cabins are borrowed for sale first; Acquire passenger information from a target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information includes at least: passenger type and target number of each passenger type; Calculate the average fare for each passenger in the target order according to the nesting mode, the seat lending mode, the information of each cabin space to be sold, the passenger type and the target number of each passenger type; The target fare for each passenger is determined according to the average fare for each passenger and the preset transaction amount of the target order, and the target order is processed according to the target fare.
2. The method according to claim 1, characterized in that The nesting mode is the first nesting mode, the seat borrowing mode is the non-priority seat borrowing mode, and the average fare for each passenger in the target order is calculated according to the nesting mode, the seat borrowing mode, the information of each cabin space to be sold, the passenger type and the target number of each passenger type, including: For each passenger type, determine the actual number of seats of a target seat type according to the seat information of each seat to be sold, wherein the target seat type is the seat type corresponding to the passenger type; In the case where the actual number of seats is less than the target number, determining the first class of seats in accordance with a preset order until the sum of the actual number of seats and the first number of seats of the first class of seats is equal to the target number, wherein the seat type of the first class of seats is different from the target seat type, and the preset order represents the order of renting seats to seats of different seat types, and the preset order includes at least a first preset order and a second preset order, and the first preset order is different from the second preset order; For each first-class space in the first-class space, nesting information of the first-class space is determined, and an average fare for each passenger in the target order is calculated based on the nesting information of the first-class space, wherein the nesting information is used to characterize the fare of the first-class space.
3. The method according to claim 1, characterized in that The nesting mode is the first nesting mode, the seat borrowing mode is the priority seat borrowing mode, and the average fare for each passenger in the target order is calculated according to the nesting mode, the seat borrowing mode, the information of each cabin space to be sold, the passenger type and the target number of each passenger type, including: For each passenger type, determine the actual number of seats of a target seat type according to the seat information of each seat to be sold, wherein the target seat type is the seat type corresponding to the passenger type; Determining the number of second class spaces of the second class space according to a preset sequence, wherein the class space type of the second class space is different from the target class space type, the preset sequence represents the sequence of renting seats to the classes of different class space types, the preset sequence at least includes a first preset sequence and a second preset sequence, and the first preset sequence is different from the second preset sequence; In the case where the second space quantity is less than the target quantity, determining a target space quantity of the target space type, and calculating an average fare for each passenger in the target order based on the target space quantity and the second space quantity, wherein the sum of the target space quantity and the second space quantity is equal to the target quantity; When the number of the second class spaces is greater than or equal to the target number, the average fare for each passenger in the target order is calculated based on the target number and the fare of the second class space.
4. The method according to claim 1, characterized in that The nesting mode is the second nesting mode, and the average fare for each passenger in the target order is calculated according to the nesting mode, the seat lending mode, the information of each cabin space to be sold, the passenger type and the target number of each passenger type, including: Determine the third category of space in a preset order until the number of third category space of the third category of space is equal to the target number, wherein the third category of space includes a plurality of tags, the freight rates of the third category of space corresponding to each tag in the plurality of tags are different, and the sum of the number of third category space corresponding to each tag is equal to the number of third category space; The average fare for each passenger in the target order is calculated according to the fare corresponding to each tag in the third category of cabin space and the number of cabin spaces corresponding to each tag.
5. The method according to claim 1, characterized in that The nesting mode is the third nesting mode, and the average fare for each passenger in the target order is calculated according to the nesting mode, the seat lending mode, the information of each cabin space to be sold, the passenger type and the target number of each passenger type, including: Determine the space type of each space to be sold, and determine the number of remaining spaces of each space type according to the space type of each space to be sold; For each class type, when the remaining number of classes of the class type is greater than the target number of passenger types corresponding to the class type, the average fare for each passenger in the target order is calculated based on the target number of each class type and the fare of each class type.
6. The method according to claim 1, characterized in that Determining a target fare for each passenger based on the average fare for each passenger and the preset transaction amount of the target order, and processing the target order based on the target fare, including: Determine the transportation cost information of the flight corresponding to the target order; Determining a preset average fare for each passenger based on a preset transaction amount in the target order; Determining a target fare for each passenger based on the preset average fare, the average fare and the transportation cost information; The target transaction amount of the target order is determined according to the target fare of each passenger, and the transaction of the target order is executed according to the target transaction amount to process the target order.
7. The method according to claim 2, characterized in that: The nested information includes at least one of the following: first information and second information. The average fare for each passenger in the target order is calculated based on the nested information of the first category of space, including: When the nested information of the first class of space is the first information, adjusting the fare of the first class of space to the fare of the target class of space, and calculating the average fare of each passenger in the target order; When the nested information of the first category of space is the second information, the fare of the first category of space is not adjusted, and the average fare for each passenger in the target order is calculated.
8. A device for processing team orders, characterized in that: include: A first acquisition unit is used to acquire a nesting mode and a seat borrowing mode when an airline processes a group order, and to determine information of each cabin to be sold, wherein the nesting mode represents a way in which cabins of different cabin types are lent to each other for sale, and the seat borrowing mode represents whether to give priority to borrowing other types of cabins for sale; A second acquisition unit is configured to acquire passenger information from a target order, wherein the target order represents a group order for multiple passengers to book a flight, and the passenger information includes at least: passenger type and target number of each passenger type; a calculation unit, configured to calculate an average fare for each passenger in the target order according to the nesting mode, the seat borrowing mode, information of each cabin space to be sold, the passenger type and the target number of each passenger type; The processing unit is used to determine the target fare for each passenger according to the average fare for each passenger and the preset transaction amount of the target order, and process the target order according to the target fare.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, the method for processing team orders described in any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the team order processing method described in any one of claims 1 to 7.