Processing method and system of calculation unit for domestic ticket change, storage medium and equipment
By obtaining the aviation information and freight data data, the computing group and calculating the change fee solved the problem of the lack of standards for the division of the domestic ticket change calculation unit.
Patent Information
- Application Number
- CN202411523515.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-01-28
AI Technical Summary
The division of calculation units for domestic passenger ticket changes lacks clear standards, which makes manual processing difficult, error-prone, uncontrollable, and affects the profits of airlines.
By obtaining the aviation information and freight data data, determine the type of freight rate, build a computing group, and use the change of the computing engine to use the calculation group as the unit to obtain the change rules and calculate the change fee and freight rate difference.
The standardization of the calculation unit is achieved, the difficulty and error rate of manual treatment is reduced, and the correctness of the change calculation and the return of the airline.
Smart Images

Figure CN119379374A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of domestic ticket change fare calculation, and relates to a processing method, system, storage medium and equipment of a calculation unit for domestic ticket change. Background Art
[0002] With the continuous opening of the economic market, the prosperity of e-commerce, the increasing intensity of economic market competition, and considering the increasingly powerful sales methods and the expanding customer base, the demand for domestic ticket changes has increased dramatically. At present, domestic ticket changes are usually handled manually. Due to the complexity of fare products and the diversity of change rules, manual processing is difficult, error-prone, and uncontrollable.
[0003] In order to meet the needs of the development of domestic freight rate business, it is urgent to automate and standardize the domestic ticket change business. The division of ticket calculation units is the basis, but there is no clear standard for the division of calculation units. Different division methods calculate different change fees, which may damage the revenue of airlines.
[0004] Based on the above problems, the domestic ticket change business needs to be automated and standardized, and the division of standard and unified calculation units is necessary. Summary of the invention
[0005] In order to solve the problem that there is no clear standard for the division of calculation units for domestic ticket changes, the present invention provides a processing method, system, storage medium and device for the calculation units for domestic ticket changes.
[0006] In a first aspect, the present invention provides a processing method of a calculation unit for domestic ticket changes, which adopts the following technical solution:
[0007] Obtain the flight segment information related to the origin, destination, and carrier airline, and read and parse the flight segment data of the original ticket information;
[0008] Read the fare type identifier, determine the fare type of the original ticket, and read and parse the fare data of the original ticket information;
[0009] Determine the type of calculation group based on the freight rate type obtained;
[0010] Construct a calculation group based on the obtained flight segment information and freight rate information;
[0011] The change calculation engine uses calculation groups as units to obtain change rules and calculate change fees and freight rate differences.
[0012] Preferably, the fare type of the original ticket is determined, including single-segment addition, full-trip matching, and round-trip combination;
[0013] Single-segment addition means that each flight uses a separate fare.
[0014] Full-flight matching means that the same fare is used for the entire flight;
[0015] A round trip combination means that one fare is used for both the outbound and return trips.
[0016] Preferably, the type of calculation group is determined, including if the freight rate type is full-trip matching, the calculation group is a single calculation group; if the freight rate type is one-way addition or round-trip combination, the calculation group is a multiple calculation group;
[0017] Among them, single calculation group means that the entire ticket contains only one calculation group, and multiple calculation groups means that the entire ticket contains multiple calculation groups.
[0018] Preferably, the constructing of the calculation group includes dividing all the flight segments into one calculation group if it is determined to be a single calculation group; and dividing each flight segment into one calculation group if it is determined to be multiple calculation groups;
[0019] Write the parsed segment data and change rules into the calculation group corresponding to the segment.
[0020] Preferably, the one calculation group specifically comprises the following steps: associating the fare of the original ticket, the change rule, and the changed fare, so as to facilitate the system to make subsequent automatic change calculations;
[0021] The fare of the original ticket refers to the fare of the original ticket that needs to be changed;
[0022] Change rules refer to the voluntary change rules associated with the fare issued by the airline. The voluntary change rules contain many fields and their different values. Each field and its different values refer to different change business requirements.
[0023] The changed fare refers to the total amount of fees that the passenger needs to pay after the ticket change, calculated according to the change rules when the passenger makes the change.
[0024] Preferably, the calculation of the change fee and the freight rate difference includes:
[0025] The fare difference refers to the difference between the original fare and the new fare of the ticket caused by the change of fare when handling the change business;
[0026] Change fee refers to the handling fee required by the airline for handling ticket changes.
[0027] In a second aspect, the present invention provides a processing system of a calculation unit for domestic ticket changes, which adopts the following technical solution:
[0028] A processing system for a calculation unit for domestic ticket changes, the system comprising a flight segment data analysis module, a fare data analysis module, a calculation group type judgment module, a calculation group construction module, and a change calculation engine module;
[0029] The flight segment data parsing module is used to parse the flight segment data of the original ticket and obtain the flight segment information such as the carrier airline, origin, destination, etc. in the itinerary;
[0030] The fare data parsing module is used to parse the fare data of the original ticket and obtain the fare information such as the fare rule number and fare type in the itinerary;
[0031] The calculation group type judgment module is used to determine the type of the calculation group according to the obtained freight rate type;
[0032] A calculation group building module is used to build a calculation group according to the obtained flight segment information and freight rate information;
[0033] The change calculation engine module is used to change the calculation engine with calculation groups as units, obtain change rules, and calculate change fees and freight rate differences.
[0034] In a third aspect, the present invention provides a computer storage medium, which adopts the following technical solution:
[0035] A computer storage medium stores one or more programs, which, when executed, implement the above-mentioned processing method of a calculation unit for domestic ticket changes.
[0036] In a fourth aspect, the present invention provides a device, which adopts the following technical solution:
[0037] A device includes a processor, a communication interface, a memory and a communication bus; the processor, the communication interface and the memory communicate with each other via the communication bus; the memory stores at least one program in the computer storage medium that can be loaded and executed by the processor.
[0038] In summary, the present invention includes the following beneficial technical effects:
[0039] 1. The present invention divides the calculation units based on the freight rate data, thereby realizing the standardization of the calculation unit division; the calculation units are linked to the freight rate binding (price binding), which facilitates the airlines to control the change rules, which is in line with the interests of the airlines;
[0040] 2. The present invention is the basis for the automation of domestic ticket change services. By referring to the fare type of the original ticket, combining the business needs of the airline company and the actual application of the domestic change service, the calculation unit of the domestic ticket change is divided into a single calculation group and a multi-calculation group, which is conducive to the automation of the domestic ticket change service;
[0041] 3. The original ticket fare, change rules, and changed fare are linked together through the calculation group, which facilitates the system to perform subsequent automatic change calculations, ensures the correctness of the change calculation process and guarantees the airline's profits, and is convenient for customers to maintain fares and change rules. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 The invention discloses a flow chart of a processing method of a calculation unit for domestic ticket changes.
[0043] Figure 2 A flowchart for constructing a calculation group is disclosed.
[0044] Figure 3 The invention discloses a framework diagram of a processing system of a computing unit for domestic ticket changes.
[0045] Figure 4 The invention discloses a structural schematic diagram of an electronic device. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0047] The following is combined with Figure 1-4 The preferred embodiments of the present invention are described in detail.
[0048] See attached Figure 1 As shown, the present invention proposes a processing method for a calculation unit of domestic ticket changes, which is designed to solve the difficulty of manual processing of domestic ticket changes and meet the needs of automated processing of domestic ticket changes. By referring to the fare type of the ticket, combining the business needs of the airline company and the actual application of the domestic change business, the calculation unit of the domestic ticket change is classified according to the fare type of the ticket, and the change fee and the fare difference are calculated.
[0049] Among them, ticket change means that after purchasing the ticket, the passenger requests to change the airline, flight date and time, cabin class, flight number, and route. The airline needs to handle it according to its actual transportation conditions.
[0050] The processing method of the calculation unit for domestic ticket change is as follows:
[0051] S1. Read and parse the flight segment data of the original ticket information
[0052] From the flight segment information of the original ticket, obtain the flight segment information related to the origin, destination, and carrier airline; read the amount of the original ticket, and parse out the specific flight segments included in each calculation group based on the position of the string of the original ticket amount in the string of the original ticket.
[0053] Among them, a calculation group represents a calculation unit for ticket changes. The calculation group matches the corresponding change rules and performs change calculations. It associates the original ticket fare, change rules, and changed fare to facilitate the system to make subsequent automatic change calculations.
[0054] The fare of the original ticket refers to the fare of the original ticket that needs to be changed;
[0055] Change rules refer to the voluntary change rules associated with the fare issued by the airline. The voluntary change rules contain many fields and their different values. Each field and its different values refer to different change business requirements.
[0056] The changed fare refers to the total amount of fees that the passenger needs to pay after the ticket change, calculated according to the change rules when the passenger makes the change.
[0057] S2. Read and parse the original ticket information's fare data
[0058] From the fare data of the original ticket, read the fare type identifier, determine the fare type of the original ticket, and then parse the change rules corresponding to each calculation group.
[0059] Among them, the fare type refers to the combination method of the ticket fare, including: single-segment addition, full-trip matching, and round-trip combination;
[0060] Single-segment addition means that each flight uses a separate fare.
[0061] Full-flight matching means that the same fare is used for the entire flight;
[0062] A round trip combination means that one fare is used for both the outbound and return trips.
[0063] S3. Determine the type of calculation group
[0064] According to the freight rate type obtained in step S2, the type of calculation group is determined. There are two types of calculation groups: single calculation group and multiple calculation group.
[0065] For example, if the freight rate type is full-trip matching, the calculation group is a single calculation group;
[0066] If the freight rate type is one-way addition or round-trip combination, the calculation group is a multiple calculation group.
[0067] S4. Build a computing group
[0068] 1. See attached Figure 2 If step S3 determines that the calculation group type belongs to a single calculation group, all flight segments are divided into one calculation group; if step S3 determines that the calculation group type belongs to multiple calculation groups, each flight segment is divided into a calculation group.
[0069] Among them, single calculation group means that the entire ticket contains only one calculation group; multiple calculation groups mean that the entire ticket contains multiple calculation groups.
[0070] 2. Write the flight segment information parsed in step S1 and the change rule parsed in step S2 into the calculation group corresponding to the flight segment.
[0071] S5. Change the calculation engine by transferring the calculation group
[0072] The change calculation engine uses calculation groups as units to obtain change rules and calculate change fees and freight rate differences.
[0073] The fare difference refers to the difference between the original fare and the new fare of the ticket caused by the change of fare when handling the change business;
[0074] Change fee refers to the handling fee required by the airline for handling ticket changes.
[0075] Example
[0076] 1. Example of a single computing group
[0077] Assume that the flight segment information of the original ticket is: first depart from PEK and arrive at SHA, then depart from SHA and arrive at PEK; the operating airlines are all CA; the ticket price is RMB 950; the fare number is Y; the fare type is full match; the fare rule number is 1234P.
[0078] Step 1: Analyze the flight segment information of the original ticket
[0079] The ticket contains two segments, which are represented by two triplets. The elements in each triplet represent the origin, destination, and airline respectively.
[0080] The flight segment information represents (PEK, SHA, CA)(SHA, PEK, CA).
[0081] Step 2: Analyze the fare information of the original ticket
[0082] The fare type of this ticket is full-trip matching. There is only one fare for the entire trip. A quaternary group is used to represent a fare information. The elements in the quaternary group represent the amount, fare number, fare type, and fare rule number respectively.
[0083] The freight rate information indicates (Y, full match, 1234P, 950).
[0084] Step 3: Determine the type of calculation group
[0085] Determine the type of calculation group based on the second element in the fare information. The fare type is full match, so a single calculation group should be created for the original ticket.
[0086] Step 4: Build a single computing group
[0087] A single calculation group contains one freight rate and all flight segments. The triplets in the flight segment data and the quadruplets in the freight rate data are integrated together to form a calculation group.
[0088] Step 5: Transfer the calculation group to the changed calculation engine
[0089] Ensure the correctness of the change calculation process, guarantee the airline's profits, and facilitate customers to maintain freight rates and change rules.
[0090] 2. Example of multi-computing group construction
[0091] Assume that the flight segment information of the original ticket is: first depart from PEK and arrive at SHA, then depart from SHA and arrive at PEK; the operating airlines are both CA; the prices of the two segments in the original ticket are both RMB 450; the fare number is Y+W; the fare type is single segment addition; the fare rule number is 1234P+2234P.
[0092] Step 1: Analyze the flight segment information of the original ticket
[0093] The ticket contains two segments, which are represented by two triplets. The elements in each triplet represent the origin, destination, and airline respectively.
[0094] The flight segment information represents (PEK, SHA, CA)(SHA, PEK, CA).
[0095] Step 2: Analyze the fare information of the original ticket
[0096] The fare type of this ticket is unit price addition. Different fares are used for each flight segment. Two quadruples are needed to represent the fare of this ticket.
[0097] The freight rate information represents (Y, single segment addition, 1234P, 450) (W, single segment addition, 2234P, 450).
[0098] Step 3: Determine the type of calculation group
[0099] According to the second element in the fare information, determine the type of calculation group. The fare type is single segment addition, so the original ticket should create multiple calculation groups.
[0100] Step 4: Build a multi-computing group
[0101] The flight segment information and the freight rate information are matched one by one, and the triples in the flight segment data and the quadruples in the freight rate data constitute a calculation group.
[0102] Exemplarily, the triplet (PEK, SHA, CA) in the flight segment data and the quadruple (Y, single segment addition, 1234P, 450) in the freight rate data constitute a calculation group; the triplet (SHA, PEK, CA) in the flight segment data and the quadruple (W, single segment addition, 2234P, 450) in the freight rate data constitute a calculation group.
[0103] Step 5: Transfer the calculation group to the changed calculation engine
[0104] Ensure the correctness of the change calculation process, guarantee the airline's profits, and facilitate customers to maintain freight rates and change rules.
[0105] See attached Figure 3 The present invention also proposes a processing system of a calculation unit for domestic ticket changes, which includes a flight segment data analysis module, a fare data analysis module, a calculation group type judgment module, a calculation group construction module, and a change calculation engine module.
[0106] The flight segment data parsing module is used to parse the flight segment data of the original ticket and obtain the flight segment information such as the carrier airline, origin, destination, etc. in the itinerary;
[0107] The fare data parsing module is used to parse the fare data of the original ticket and obtain the fare information such as the fare rule number and fare type in the itinerary;
[0108] The calculation group type judgment module is used to determine the type of the calculation group according to the obtained freight rate type;
[0109] A calculation group building module is used to build a calculation group according to the obtained flight segment information and freight rate information;
[0110] The change calculation engine module is used to change the calculation engine with calculation groups as units, obtain change rules, and calculate change fees and freight rate differences.
[0111] The modules described above may be implemented in whole or in part through software, hardware, or a combination thereof, supporting processors embedded in or independent of a computer device in hardware form, and also supporting memories stored in a computer device in software form, so that the processor can call and execute operations corresponding to the modules described above.
[0112] An embodiment of the present invention provides a computer storage medium, which stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to execute a computer program of a processing method of a calculation unit for domestic ticket changes as described above.
[0113] The storage medium includes, for example, a USB flash drive, a mobile hard disk, a magnetic disk, a read-only memory (ROM), a random access memory (RAM), or an optical disk, and other media that can store program codes.
[0114] The embodiment of the present invention provides a device, see the attached Figure 4 , used to execute the above-mentioned coding management platform, the computer device includes a processor, a memory, a network interface and a database connected through a system bus. The processor of the computer device is used to provide computing and control capabilities; the memory of the computer device includes a non-volatile storage medium and an internal memory; the processor of the computer device implements the steps of the above-mentioned coding management method when executing the computer program; the non-volatile storage medium stores an operating system, a computer program and a database; the internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium.
[0115] It should be noted that the user information (including but not limited to user device information and personal information, etc.) and data (including but not limited to data used for analysis, stored data and displayed data, etc.) involved in the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0116] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A processing method of a calculation unit for domestic ticket change, characterized in that: The method comprises: Obtain the flight segment information related to the origin, destination, and carrier airline, and read and parse the flight segment data of the original ticket information; Read the fare type identifier, determine the fare type of the original ticket, and read and parse the fare data of the original ticket information; Determine the type of calculation group based on the freight rate type obtained; Construct a calculation group based on the obtained flight segment information and freight rate information; The change calculation engine uses calculation groups as units to obtain change rules and calculate change fees and freight rate differences.
2. The processing method of the calculation unit for domestic ticket change according to claim 1, characterized in that: The steps of reading and parsing the flight segment data of the original ticket information are as follows: Read the amount of the original ticket, and parse out the specific flight segments included in each calculation group based on the position of the string of the amount of the original ticket in the string of the original ticket.
3. The processing method of the calculation unit for domestic ticket change according to claim 1, characterized in that: The fare type of the original ticket is determined, including single-segment addition, full-trip matching, and round-trip combination; Single-segment addition means that each flight uses a separate fare. Full-flight matching means that the same fare is used for the entire flight; A round trip combination means that one fare is used for both the outbound and return trips.
4. The processing method of the calculation unit for domestic ticket change according to claim 3, characterized in that: The determining of the type of the computing group includes: If the freight rate type is full-trip matching, the calculation group is a single calculation group; If the freight rate type is one-way addition or round-trip combination, the calculation group is a multiple calculation group; Among them, single calculation group means that the entire ticket contains only one calculation group, and multiple calculation groups means that the entire ticket contains multiple calculation groups.
5. The processing method of the calculation unit for domestic ticket change according to claim 4, characterized in that: The construction of the computing group includes: If it is determined to be a single calculation group, all flight segments are divided into one calculation group; if it is determined to be multiple calculation groups, each flight segment is divided into a calculation group; Write the parsed segment data and change rules into the calculation group corresponding to the segment.
6. A processing method of a calculation unit for domestic ticket change according to claim 5, characterized in that: The one computing group comprises the following steps: Link the original ticket's fare, change rules, and changed fare to facilitate the system's subsequent automatic change calculations; The fare of the original ticket refers to the fare of the original ticket that needs to be changed; Change rules refer to the voluntary change rules associated with the fare issued by the airline. The voluntary change rules contain many fields and their different values. Each field and its different values refer to different change business requirements. The changed fare refers to the total amount of fees that the passenger needs to pay after the ticket change, calculated according to the change rules when the passenger makes the change.
7. The processing method of a calculation unit for domestic ticket change according to claim 1, characterized in that: The calculation of change fees and freight rate differences includes: The fare difference refers to the difference between the original fare and the new fare of the ticket caused by the change of fare when handling the change business; Change fee refers to the handling fee required by the airline for handling ticket changes.
8. A processing system of a calculation unit for domestic ticket changes, characterized in that: The system includes a flight segment data analysis module, a freight rate data analysis module, a calculation group type judgment module, a calculation group construction module, and a calculation engine change module; The flight segment data parsing module is used to parse the flight segment data of the original ticket and obtain the flight segment information such as the carrier airline, origin, destination, etc. in the itinerary; The fare data parsing module is used to parse the fare data of the original ticket and obtain the fare information such as the fare rule number and fare type in the itinerary; The calculation group type judgment module is used to determine the type of the calculation group according to the obtained freight rate type; A calculation group building module is used to build a calculation group according to the obtained flight segment information and freight rate information; The change calculation engine module is used to change the calculation engine with calculation groups as units, obtain change rules, and calculate change fees and freight rate differences.
9. A computer storage medium, characterized in that One or more programs are stored, and when the one or more programs are executed, a processing method of a calculation unit for domestic ticket changes as described in any one of claims 1-7 can be implemented.
10. A device, characterized in that: The system comprises a processor, a communication interface, a memory and a communication bus; the memory stores at least one program in a computer storage medium as claimed in claim 9 which can be loaded and executed by the processor.
Citation Information
Cited By
Transport income confirmation system and method suitable for airline retail order
CN120894090A