Implementation Method, Device, Equipment and Storage Medium for Freight Rate Refund and Modification Service

By classifying and sorting multiple refund and change plans, and using the target price corresponding to the new itinerary to reverse match the refund and change plan, the problem of high complexity of the existing freight rate refund and change calculation is solved, the processing efficiency is improved, and the system's performance and response time requirements are met.

CN114298746BActive Publication Date: 2025-05-27TRAVELSKY TECHNOLOGY LIMITED
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111615062.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2025-05-27
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

The calculation of existing freight rate refund and change is high, resulting in low processing efficiency and cannot meet the performance and response time requirements of freight rate refund and change service system.

Method used

By sorting and sorting multiple refund and change plans, the target price corresponding to the new itinerary is reverse matched with the refund and change plans, the data processing volume is reduced and the processing efficiency of freight refund and change services is improved.

Benefits of technology

It greatly reduces the calculation amount, improves the processing efficiency of freight rate refund and change services, and meets the performance and response time requirements of freight rate refund and change service system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114298746B_ABST
    Figure CN114298746B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, apparatus, device, and storage medium for implementing a fare refund and change service. Historical fares and corresponding refund and change rules are obtained based on the ticket face information of the original itinerary, and then the refund and change rules are processed to form multiple refund and change plans. The multiple refund and change plans are classified and sorted to obtain a group of refund and change plans sorted in ascending order of refund and change handling fees. It is determined whether the target price corresponding to the new itinerary matches the refund and change plans in the target group of refund and change plans. If they match, it means that the optimal refund and change plan (target refund and change plan) in the target group of refund and change plans has been determined, and the above matching step is exited. Then, the refund and change price calculation result is obtained based on the target refund and change plan and the corresponding target price, and the refund and change price calculation result is returned to the user. This solution can greatly reduce the amount of data processing, improve the processing efficiency of the fare refund and change service, and thus meet the requirements of the fare refund and change service system in terms of performance and response time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of freight rate refund and modification, and in particular to a method, device, equipment and storage medium for implementing a freight rate refund and modification service. Background Art

[0002] The development and popularization of mobile Internet has made it easier and more convenient for passengers to purchase tickets through the official websites of airlines or other third-party websites. After purchasing a ticket, in some cases, the user may need to cancel or change the ticket, such as changing the booking class (upgrade), changing the travel date (reschedule), changing the travel itinerary, refunding the ticket, etc. This ticket cancellation service can be called a fare cancellation service.

[0003] Airlines usually charge a handling fee for ticket refund and change services, and also handle the difference or residual value of the ticket. From the perspective of users (such as passengers), users require that their ticket refund and change wishes be met, and they also hope to pay a smaller fee. At the same time, they also have certain requirements for the convenience and timeliness of fare refund and change services. For online self-service fare refund and change services, it is required to complete the entire process of price calculation for passenger refund and change services in seconds.

[0004] In the process of ticket refund and change service, obtaining the refund and change fee is the characteristic and core content of this service process, which needs to be realized through fare refund and change calculation. The fare refund and change calculation is a series of special and customized fare calculations generated according to the refund and change rules. It is a process of searching for qualified data within a certain data range under the control of complex rules.

[0005] At present, the calculation complexity of fare refund and change is 2 orders of magnitude higher than that of ticket sales, and the data retrieval range is expanded by 5 times. If the current business process of fare refund and change is used, one fare refund and change calculation is equivalent to hundreds of fare calculations. The calculation complexity is too high, and the processing efficiency of fare refund and change is low, which cannot meet the performance and response time requirements of the fare refund and change service system. Summary of the invention

[0006] The present disclosure provides a method, device, equipment and storage medium for implementing a fare refund and change service. By classifying and sorting multiple refund and change plans, and then using the target price corresponding to the new itinerary to reversely match the refund and change plans, the data processing volume is greatly reduced, the processing efficiency of the fare refund and change service is improved, and the requirements of the fare refund and change service system on performance and response time are met.

[0007] In a first aspect, the present disclosure provides a method for implementing a fare refund and change service, the method comprising:

[0008] Obtain historical fares based on the ticket information corresponding to the original itinerary, and obtain the refund and change rules corresponding to the historical fares;

[0009] By processing the refund and change rules, multiple refund and change plans are formed;

[0010] Classifying the multiple refund and change plans to obtain a refund and change plan group, and arranging the refund and change plans in the same refund and change plan group in descending order according to the corresponding refund and change handling fees;

[0011] Determine a target price corresponding to a new itinerary, wherein the new itinerary is an itinerary obtained by canceling or changing the original itinerary;

[0012] Each refund and change plan group is used as a target refund and change plan group, and according to the arrangement order of the refund and change plans in the target refund and change plan group, it is determined in sequence whether the target price matches the refund and change plans in the target refund and change plan group;

[0013] If it is determined that the target price matches the target refund and change plan in the target refund and change plan group, then the step of determining whether the target price matches the refund and change plan in the target refund and change plan group is exited, and the refund and change price calculation result is obtained according to the target refund and change plan and the corresponding target price.

[0014] In a second aspect, the present disclosure provides a device for implementing a fare refund and change service, the device comprising an acquisition unit, a formation unit, a classification unit, and a determination unit:

[0015] The acquisition unit is used to acquire the historical fares according to the ticket information corresponding to the original itinerary, and acquire the refund and change rules corresponding to the historical fares;

[0016] The forming unit is used to form multiple refund and change plans by processing the refund and change rules;

[0017] The classification unit is used to classify the multiple refund and change plans to obtain a refund and change plan group, and the refund and change plans in the same refund and change plan group are arranged in descending order according to the corresponding refund and change handling fees;

[0018] The determining unit is used to determine a target price corresponding to a new itinerary, where the new itinerary is an itinerary obtained by canceling or changing the original itinerary;

[0019] The determination unit is further configured to use each refund and change plan group as a target refund and change plan group, and determine in sequence whether the target price matches the refund and change plans in the target refund and change plan group according to the arrangement order of the refund and change plans in the target refund and change plan group;

[0020] The determination unit is further configured to exit the step of determining whether the target price matches the target refund and change plan in the target refund and change plan group if it is determined that the target price matches the target refund and change plan in the target refund and change plan group, and obtain a refund and change price calculation result according to the target refund and change plan and the corresponding target price.

[0021] In a third aspect, the present disclosure provides a computer device, comprising at least one processor and at least one memory, wherein the at least one memory stores computer-readable instructions, and the at least one processor executes the computer-readable instructions so that the computer device performs the method described in the first aspect of the present disclosure or any one implementation of the first aspect.

[0022] In a fourth aspect, the present disclosure provides a computer-readable storage medium including computer-readable instructions, which, when executed on a computer device, enables the computer device to execute the method described in the first aspect or any one of the implementations of the first aspect.

[0023] In a fifth aspect, the present disclosure provides a computer program product comprising instructions, which, when executed on a computer device, enables the computer device to execute the method described in the first aspect or any one of the implementations of the first aspect.

[0024] Based on the implementations provided in the above aspects, the present disclosure can be further combined to provide more implementations.

[0025] Based on the above description, it can be seen that the technical solution of the present disclosure has the following beneficial effects:

[0026] Specifically, the historical fare is obtained according to the ticket information corresponding to the original itinerary, and the refund and change rules corresponding to the historical fare are obtained, and then multiple refund and change plans can be formed by processing the refund and change rules. In the case of a large number of refund and change plans, in order to reduce the amount of calculation, multiple refund and change plans can be classified to obtain a refund and change plan group, and the refund and change plans in the same refund and change plan group are arranged in order from low to high according to the corresponding refund and change handling fees, and then the refund and change plans are reversely matched using the target price corresponding to the new itinerary. When matching, each refund and change plan group is used as a target refund and change plan group, and according to the arrangement order of the refund and change plans in the target refund and change plan group, it is determined in turn whether the target price matches the refund and change plan in the target refund and change plan group. If the target price matches the target refund and change plan in the target refund and change plan group, it means that the optimal refund and change plan (target refund and change plan) in the target refund and change plan group has been determined, so the step of whether the target price matches the refund and change plan in the target refund and change plan group can be exited, and no longer matched with other refund and change plans in the target refund and change plan group, thereby greatly reducing the amount of calculation and improving the processing efficiency of the fare refund and change service. Then, the refund price calculation result is obtained according to the target refund and change plan and the corresponding target price, and the refund price calculation result is returned to the user for selection. Since the refund price calculation result only needs to be calculated according to the selected optimal target refund and change plan and the corresponding target price, the data processing volume can be greatly reduced, the processing efficiency of the freight refund and change service can be improved, and the requirements of the freight refund and change service system in terms of performance and response time can be met. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0028] Figure 1 An architecture diagram of a fare refund and change service system provided in an embodiment of the present disclosure;

[0029] Figure 2 A flowchart of a method for implementing a fare refund and change service provided in an embodiment of the present disclosure;

[0030] Figure 3 An example diagram of a tree structure relationship representing a split result provided by an embodiment of the present disclosure;

[0031] Figure 4 An example diagram of a process for generating multiple refund and change plans provided in an embodiment of the present disclosure;

[0032] Figure 5 An example diagram of matching a target price with a refund and change plan in a target refund and change plan group provided in an embodiment of the present disclosure;

[0033] Figure 6 An example diagram of an original itinerary provided in an embodiment of the present disclosure;

[0034] Figure 7 A new itinerary example diagram provided for an embodiment of the present disclosure;

[0035] Figure 8 A schematic diagram of the structure of a device for implementing a fare refund and change service provided in an embodiment of the present disclosure;

[0036] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0037] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0038] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0039] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0040] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0041] At present, after obtaining the refund and change plan, the refund and change price is calculated for each refund and change plan in turn according to the requirements of the refund and change plan, and the ticket difference or ticket residual value between the new and old tickets, as well as the refund and change handling fee, are obtained. Then, based on all the above fees, one or more optimal refund and change price calculation results are returned to the user.

[0042] As for the data involved in the refund and change calculation, according to the ticket validity period and the refund and change business regulations, the historical data from the current time to a period of time before (for example, within 2 years) are all the data range that the fare refund and change service may access. If it is processed according to the above fare refund and change calculation business process, one fare refund and change calculation is equivalent to hundreds of fare calculations, the calculation complexity is too high, the fare refund and change processing efficiency is low, and it cannot meet the performance and response time requirements of the fare refund and change service system.

[0043] In view of this, the embodiment of the present disclosure provides a method for implementing a fare refund and change service. Specifically, the historical fares are obtained according to the ticket information corresponding to the original itinerary, and the refund and change rules corresponding to the historical fares are obtained, and then multiple refund and change plans can be formed by processing the refund and change rules. In the case of facing a large number of refund and change plans, in order to reduce the amount of calculation, multiple refund and change plans can be classified to obtain a refund and change plan group. The refund and change plans in the same refund and change plan group are arranged in order from low to high according to the corresponding refund and change handling fees, and then the refund and change plans are reversely matched using the target price corresponding to the new itinerary. When matching, each refund and change plan group is used as a target refund and change plan group. According to the arrangement order of the refund and change plans in the target refund and change plan group, it is determined in turn whether the target price matches the refund and change plan in the target refund and change plan group. If the target price matches the target refund and change plan in the target refund and change plan group, it means that the optimal refund and change plan (target refund and change plan) in the target refund and change plan group has been determined, so the step of whether the target price matches the refund and change plan in the target refund and change plan group can be exited, and no longer matched with other refund and change plans in the target refund and change plan group, thereby greatly reducing the amount of calculation and improving the processing efficiency of the freight rate refund and change service. Then, the refund and change price calculation result is obtained according to the target refund and change plan and the corresponding target price, and the refund and change price calculation result is returned to the user for user selection. Since the refund and change price calculation result only needs to be calculated based on the selected optimal target refund and change plan and the corresponding target price, the data processing volume can be greatly reduced, the processing efficiency of the freight refund and change service can be improved, and the performance and response time requirements of the freight refund and change service system can be met.

[0044] It should be noted that, in the present disclosure, the executor of the method for implementing the fare refund and change service may be a computer device, which may be a terminal or a server.

[0045] First, the fare refund and change service system is introduced. The fare refund and change service system can be deployed on the above-mentioned computer device to execute the implementation method of the fare refund and change service provided by the present disclosure.

[0046] See also Figure 1 , Figure 1The diagram shows an architecture of a fare refund and change service system, which includes a historical fare database 101, a historical fare calculation information database 102, a historical fare review module 103, and a refund and change plan generation and refund and change price calculation module 104. The historical fare database 101 is used to store the original fare data from the current time to a period of time before (for example, within 2 years); the historical fare calculation information database 102 is used to store the calculation process information that has been calculated and issued by the fare refund and change service system; the historical fare review module 103 is responsible for locating the historical fare for subsequent refund and change price calculation; the refund and change plan generation and refund and change price calculation module 104 is responsible for generating a refund and change plan, and calculating the refund and change prices such as the ticket difference, the ticket residual value, and the refund and change handling fee according to the refund and change plan.

[0047] Next, the implementation method of the fare refund and change service provided by the embodiment of the present disclosure will be introduced in conjunction with the accompanying drawings. Figure 2 The flowchart of the method for implementing the fare refund and change service shown in FIG. 1 includes:

[0048] S201. Obtain historical fares according to the ticket information corresponding to the original itinerary, and obtain the refund and change rules corresponding to the historical fares.

[0049] It should be noted that in the embodiments of the present disclosure, historical freight rates can be obtained in a variety of ways. Figure 1 As shown in the architecture diagram of the freight rate refund and change service system, one method may be to obtain the original freight rate data from the historical freight rate database 101 through the historical freight rate review module 103, and then calculate the corresponding historical original price through the historical freight rate.

[0050] Another way is to locate and extract the historical freight rates directly from the historical freight rate calculation information base 102 through the historical freight rate review module 103. Since the historical freight rate calculation information base 102 stores the calculation process information that has been calculated and issued by the freight rate refund and change service system, there is no need to perform complex calculations again. The historical freight rates can be directly obtained by querying the historical freight rate calculation information base 102, thereby improving processing efficiency.

[0051] S202: Form multiple refund and change plans by processing the refund and change rules.

[0052] Freight refund and change calculation is a special type of freight calculation. The core of freight calculation is itinerary splitting and freight verification. Itinerary splitting can generate freight calculation group (Fare Component, FC), freight calculation unit (Price Unit, PU) and itinerary (Journey, JR). Figure 3The tree structure relationship shown in the figure has leaf nodes FC corresponding to the actual fares and refund and change rules published by the airline. In this way, a tree structure relationship is formed between itineraries, fares, and refund and change rules. Fares verification is the process of verifying fares using refund and change rules layer by layer according to the three levels of FC, PU, ​​and JR.

[0053] This process is introduced mainly as a reference for evaluating the complexity and technical complexity of fare refund and change calculation services. The Airline Tariff Publishing Company (ATPCO) has formulated the business processing procedures and data standards for fare refund and change calculation services through category 31 / 33 (voluntary auto reissue / refund). According to the requirements, the fare refund and change scheme is formed by the refund and change rules corresponding to the historical fares (FCs) through the Cartesian product combination. Table 1 lists the differences between traditional fare calculation and fare refund and change calculation in terms of data processing scope and ATPCO fare rule processing. If fare calculation is a standard problem, then fare refund and change calculation faces a problem with a computational complexity of 2 orders of magnitude higher within a 5-fold data range.

[0054] Table 1 Comparison of differences between general freight rate rules and freight rate refund and change rules

[0055]

[0056]

[0057] After locating the historical fares involved in the refund and change of the original ticket, the refund and change rules related to the historical fares are further obtained. By processing the refund and change rules, a refund and change plan is formed, and the specific refund and change price calculation is guided according to the refund and change plan. The refund and change plan is formed by combining the refund and change rules corresponding to the historical fares (FCs) through Cartesian products. The generated multiple refund and change plans applicable to the entire itinerary are placed in a list, called Permutations. The entire schematic process is shown below. Figure 4 As shown. Figure 4 In the above example, R2 is various freight rate rules related to freight rate calculation, including refund and change rules, such as Figure 4 R3 in the figure. Below R3 is a series of usage conditions corresponding to the refund and change rules, such as Figure 4As shown in TBL988. Multiple refund and modification schemes are formed by combining the refund and modification rules by Cartesian product, and the multiple refund and modification schemes are placed in the list (Permutations) shown in 401. Each row in Permutations is a refund and modification scheme. If N refund and modification schemes are generated, SeqA in the list shown in 401 represents the first refund and modification scheme, ..., SeqN represents the Nth refund and modification scheme.

[0058] S203: Classify the multiple refund and change plans to obtain a refund and change plan group, and arrange the refund and change plans in the same refund and change plan group in descending order according to the corresponding refund and change handling fees.

[0059] The goal of refund and change price calculation is to select the best option from these refund and change options: that is, the one that meets the passenger's requirements and charges the least. The particularity of refund and change rule processing results in too many refund and change options and a large amount of calculation for refund and change price calculation. The data retrieval range for refund and change price calculation is much larger than the general fare calculation. According to traditional thinking, it is not feasible to calculate the refund and change price one by one according to the refund and change options to select the best option. Especially when facing refund and change of tickets with a large number of FCs, the service often times out, and even if the results are returned, the richness is unsatisfactory.

[0060] By analyzing and summarizing the data of refund and change rules, we can find the following characteristics:

[0061] According to business logic, no matter what kind of refund and change plan is used, when calculating the refund and change price, from the time dimension, at most three types of prices are used: the historical price at the time of original ticket issuance, the price at the start of the trip, and the current effective price, or a mixture of the three.

[0062] Usually, the fare refund and change rules of airlines follow some conventions: for example, "no refund for more than the residual value of the fare, and compensation for less than the residual value"; the lower the discount price, the more stringent the refund and change restrictions, and the higher the refund and change fee (penalty), etc.

[0063] Through the tracking and statistics of daily business, there are certain statistical rules to follow in most cases for the choice of refund or change of fare, based on whether the entire itinerary has not been flown at all or part of it has been flown.

[0064] Table 2 Statistical relationship between ticket usage status and refund and change fare data

[0065]

[0066] According to the above analysis, in order to reduce the amount of calculation for refund and change prices, the traditional freight rate refund and change can be improved. According to the restrictions on the historical freight rate calculation method in the refund and change rules, the refund and change plans with the same historical freight rate calculation restrictions (mainly restrictions on the use of freight rate data, such as whether to use the current effective price for calculation or the historical price for calculation) can be put into a group, and the plans in the group can be sorted from low to high according to the refund and change fees.

[0067] That is to say, in one possible case, the implementation method of classifying multiple refund and change plans to obtain a refund and change plan group can be to classify the refund and change plans with the same historical freight rate calculation restrictions into the same group to obtain a refund and change plan group, determine the refund and change fees corresponding to the refund and change plans according to the refund and change rules corresponding to the refund and change plans in the refund and change plan group, and arrange the refund and change plans in the same refund and change plan group in order from low to high according to the corresponding refund and change fees.

[0068] By classifying and sorting the refund and change plans, we can give priority to those that are most likely to generate the best refund and change prices, saving the time of plan calculation.

[0069] S204: Determine a target price corresponding to a new itinerary, where the new itinerary is an itinerary obtained by canceling or changing the original itinerary.

[0070] S205: taking each refund and change plan group as a target refund and change plan group, and determining in sequence whether the target price matches the refund and change plans in the target refund and change plan group according to the arrangement order of the refund and change plans in the target refund and change plan group.

[0071] Generally, there is a regularity in the calculation of refund and change prices and the ticket usage status. Therefore, when faced with a large number of refund and change plans, you can start with price calculation, calculate the refund and change price (such as the target price), and then reversely match whether there is a corresponding refund and change plan.

[0072] In one possible implementation, the target price corresponding to the new itinerary may be calculated by splitting the new itinerary to obtain fare data and refund and change rules corresponding to the target itinerary splitting method; and determining the target price corresponding to the new itinerary under the target itinerary splitting method based on the fare data and refund and change rules.

[0073] After the target price is obtained, each refund and change plan group is used as the target refund and change plan group. According to the arrangement order of the refund and change plans in the target refund and change plan group, it is determined in turn whether the target price matches the refund and change plans in the target refund and change plan group. Figure 5 shown.

[0074] exist Figure 5In the above, multiple refund and change plan groups (e.g., refund and change plan group 1, refund and change plan group 2, ... refund and change plan group N) are obtained by classification. The target price is composed of the lowest fare under the fare calculation group corresponding to the target itinerary splitting method. The lowest price is selected from the fare of each fare calculation group. For example, as shown in 501, they are FareX1, FareX2, FareX3, and FareX4. Then, the target prices composed of FareX1, FareX2, FareX3, and FareX4 are matched with the refund and change plans in each refund and change plan group to determine whether there is a suitable refund and change plan. At this time, the target price is the lowest price corresponding to the new itinerary under the target splitting method.

[0075] S206. If it is determined that the target price matches the target refund and change plan in the target refund and change plan group, then exit the step of determining whether the target price matches the refund and change plan in the target refund and change plan group, and obtain a refund and change price calculation result based on the target refund and change plan and the corresponding target price.

[0076] If it is determined that the target price matches the target refund and modification scheme in the target refund and modification scheme group, then the step of whether the target price matches the refund and modification scheme in the target refund and modification scheme group is exited, and the target refund and modification scheme is used as the optimal refund and modification scheme, and the refund and modification price calculation result is obtained according to the target refund and modification scheme and the corresponding target price, thereby returning the refund and modification price calculation result to the user for selection. In other words, in a refund and modification scheme group, matching is performed in sequence according to the arrangement order of the refund and modification schemes. As long as it is determined that there is a refund and modification scheme that matches the target price, matching with other refund and modification schemes in the refund and modification scheme group will no longer be continued. Among them, S202-S206 can be executed by the refund and modification scheme generation and refund and modification price calculation module 104.

[0077] In a possible implementation, if the refund and change price calculation results include multiple ones, the multiple refund and change price calculation results can be arranged in order from low to high according to the target price, thereby outputting multiple refund and change price calculation results.

[0078] It should be noted that the refund and change price calculation result may include the ticket difference or the ticket residual value, and the refund and change fee. The refund and change fee has been obtained when the refund and change plans are classified and sorted. At this time, the refund and change price calculation result can be obtained according to the target refund and change plan and the corresponding target price. The refund and change price calculation result includes the ticket difference or the ticket residual value, and the refund and change fee corresponding to the target refund and change plan.

[0079] In one possible implementation, the target itinerary splitting method is the first splitting method of the first priority. If it is determined that the target price does not match any refund and change plan in the target refund and change plan group, the second splitting method of the second priority can be used as the target itinerary splitting method, and the step of determining the target price corresponding to the new itinerary under the target itinerary splitting method based on the fare data and the refund and change rules is re-executed.

[0080] The above method makes the best use of the historical freight rate calculation to meet more refund and change scenarios. Compared with the traditional method, the actual calculation complexity will be reduced by about 2 orders of magnitude.

[0081] Based on the above description, it can be seen that the technical solution of the present disclosure has the following beneficial effects:

[0082] Specifically, the historical fare is obtained according to the ticket information corresponding to the original itinerary, and the refund and change rules corresponding to the historical fare are obtained, and then multiple refund and change plans can be formed by processing the refund and change rules. In the case of a large number of refund and change plans, in order to reduce the amount of calculation, multiple refund and change plans can be classified to obtain a refund and change plan group, and the refund and change plans in the same refund and change plan group are arranged in order from low to high according to the corresponding refund and change handling fees, and then the refund and change plans are reversely matched using the target price corresponding to the new itinerary. When matching, each refund and change plan group is used as a target refund and change plan group, and according to the arrangement order of the refund and change plans in the target refund and change plan group, it is determined in turn whether the target price matches the refund and change plan in the target refund and change plan group. If the target price matches the target refund and change plan in the target refund and change plan group, it means that the optimal refund and change plan (target refund and change plan) in the target refund and change plan group has been determined, so the step of whether the target price matches the refund and change plan in the target refund and change plan group can be exited, and no longer matched with other refund and change plans in the target refund and change plan group, thereby greatly reducing the amount of calculation and improving the processing efficiency of the fare refund and change service. Then, the refund price calculation result is obtained according to the target refund and change plan and the corresponding target price, and the refund price calculation result is returned to the user for selection. Since the refund price calculation result only needs to be calculated according to the selected optimal target refund and change plan and the corresponding target price, the data processing volume can be greatly reduced, the processing efficiency of the freight refund and change service can be improved, and the requirements of the freight refund and change service system in terms of performance and response time can be met.

[0083] Next, we will take an actual itinerary change by a passenger as an example to introduce the implementation method of the fare refund and change service provided by the present invention.

[0084] The passenger bought a round-trip ticket from Japan to Malaysia on November 12, 2020. Figure 6 This round trip ticket consists of three sections: Figure 6Each line in the dashed box represents a flight segment. On November 30, 2020, the passenger discovered that his plan had changed and requested a change of itinerary from the airline. Figure 7 As shown, relative to Figure 6 The itinerary shown retains the original two segments and adds a new segment to replace the original third segment, see Figure 7 Shown in the dashed box.

[0085] In this case, the freight rate refund and change service system follows Figure 2 The above refund and change calculation optimization ideas are used for processing:

[0086] Step 1: Group and sort the refund and change plans in Permutations. Put the refund and change plans with the same historical freight rate calculation restrictions (mainly restrictions on the use of freight rate data) into one group, and sort the refund and change plans in the group from low to high according to the refund and change handling fee.

[0087] Step 2: Split the new itinerary to obtain the fare data and refund and change rules corresponding to the target itinerary splitting method; determine the target price corresponding to the new itinerary under the target itinerary splitting method based on the fare data and refund and change rules.

[0088] Step 3: This lowest target price is used to match the refund and change plans in each refund and change plan group in Permutations to see if a refund and change plan that meets the requirements can be found. The refund and change plans in the group are sorted from low to high according to the handling fee.

[0089] Step 4: If a match can be found, the matched target refund and change plan will be used as the optimal refund and change plan, and the refund and change price calculation result will be obtained based on the target refund and change plan.

[0090] Step 5: If no refund or change plan in Permutations is matched, continue to generate eligible target prices in sequence and repeat the matching logic in step 2.

[0091] Step 6: Sort and output the calculation results of the optimal refund and change prices representing each refund and change plan group.

[0092] The present disclosure aims to solve the problems of long fare refund and change calculation time and poor accuracy of ticket processing support in the current civil aviation fare refund and change service, and designs a new fare refund and change service implementation scheme. The present disclosure fully studies the business process of refund and change price calculation and the particularity of business rules, optimizes the business logic generated by the refund and change price calculation scheme and the process of refund and change price calculation, and solves the problem of slow refund and change price processing speed and difficulty in providing the optimal refund and change service scheme. For the field of civil aviation ticket sales, a comprehensive and efficient refund and change price calculation scheme is provided, which improves the accuracy and calculation efficiency of refund and change price calculation. The fare refund and change service implementation method provided by the present disclosure realizes fast, convenient and accurate ticket refund and change services, and has a high industry promotion value. The promotion of this scheme will effectively improve the service quality of civil aviation passenger transport, improve the after-sales service link, and promote the overall improvement of industry benefits and passenger service experience.

[0093] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0094] The names of the messages or information (such as ticket inquiry requests) involved in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0095] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0096] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0097] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer device, partially on the user's computer device, as a separate software package, partially on the user's computer and partially on a remote computer device, or entirely on a remote computer device or server. In cases involving a remote computer device, the remote computer device may be connected to the user terminal via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external terminal (e.g., via the Internet using an Internet service provider).

[0098] Based on the above method provided by the embodiment of the present disclosure, the embodiment of the present disclosure also provides an implementation device of the fare refund and change service corresponding to the above method. The units / modules involved in the embodiments of the present disclosure can be implemented by software or by hardware. The name of the unit / module does not constitute a limitation on the unit / module itself in some cases.

[0099] See also Figure 8 The schematic diagram of the structure of the device for implementing the fare refund and change service shown in the figure includes an acquisition unit 801, a formation unit 802, a classification unit 803 and a determination unit 804:

[0100] The acquisition unit 801 is used to acquire historical fares according to the ticket information corresponding to the original itinerary, and acquire the refund and change rules corresponding to the historical fares;

[0101] The forming unit 802 is used to form multiple refund and change plans by processing the refund and change rules;

[0102] The classification unit 803 is used to classify the multiple refund and change plans to obtain a refund and change plan group, and the refund and change plans in the same refund and change plan group are arranged in descending order according to the corresponding refund and change handling fees;

[0103] The determining unit 804 is used to determine a target price corresponding to a new itinerary, where the new itinerary is the itinerary obtained by canceling or changing the original itinerary;

[0104] The determining unit 804 is further configured to use each refund and change plan group as a target refund and change plan group, and determine in sequence whether the target price matches the refund and change plans in the target refund and change plan group according to the arrangement order of the refund and change plans in the target refund and change plan group;

[0105] The determining unit 804 is further configured to exit the step of determining whether the target price matches the target refund and change plan in the target refund and change plan group if it is determined that the target price matches the target refund and change plan in the target refund and change plan group, and obtain a refund and change price calculation result according to the target refund and change plan and the corresponding target price.

[0106] In a possible implementation, the classification unit is used to:

[0107] Classifying the refund and change plans with the same historical freight rate calculation restrictions into the same group to obtain the refund and change plan group;

[0108] Determine the refund and change handling fee corresponding to the refund and change plan according to the refund and change rules corresponding to the refund and change plan in the refund and change plan group;

[0109] Arrange the refund and change plans in the same refund and change plan group in descending order according to the corresponding refund and change fees.

[0110] In a possible implementation manner, the determining unit is configured to:

[0111] Splitting the new itinerary to obtain the fare data and refund and change rules corresponding to the target itinerary splitting method;

[0112] According to the freight rate data and the refund and change rules, the target price corresponding to the new itinerary under the target itinerary splitting method is determined.

[0113] In a possible implementation, the target trip splitting method is a first splitting method of a first priority, and the determining unit is further configured to:

[0114] If it is determined that the target price does not match any refund and change plan in the target refund and change plan group, the second splitting method of the second priority is used as the target itinerary splitting method, and the step of determining the target price corresponding to the new itinerary under the target itinerary splitting method based on the fare data and the refund and change rules is re-executed.

[0115] In a possible implementation, if the cancellation price calculation result includes multiple items, the device further includes a sorting unit:

[0116] The sorting unit is used to arrange the multiple cancellation and change price calculation results in order from low to high according to the target price.

[0117] In a possible implementation manner, the determining unit is configured to:

[0118] The ticket difference or ticket residual value between the new itinerary and the original itinerary is calculated according to the target refund and change plan and the target price, and the refund and change price calculation result includes the ticket difference or ticket residual value, and the refund and change fee corresponding to the target refund and change plan.

[0119] The implementation device of the fare refund and change service according to the embodiment of the present disclosure may correspond to the method described in the embodiment of the present disclosure, and the above and other operations and / or functions of each module / unit of the implementation device of the fare refund and change service are respectively to implement Figure 2 For the sake of brevity, the corresponding processes of each method in the illustrated embodiment are not described in detail here.

[0120] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc. The following is an example of a computer device including multiple hardware logic components.

[0121] The present disclosure provides a computer device for realizing the functions of a device for realizing a fare refund and change service. Fig. 9 The structural diagram of the computer device shown in the figure, the computer device 900 may include a server or a terminal, wherein the server may be a cloud server or a physical server, and the terminal includes but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The computer device 900 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0122] like Fig. 9 As shown, the computer device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 906 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the computer device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0123] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 906 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication devices 909 may allow the computer device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The computer device 900 is shown with various devices, but it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead.

[0124] The present disclosure also provides a computer-readable storage medium, also referred to as a machine-readable medium. In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by an instruction execution system, a device or an apparatus or used in combination with an instruction execution system, a device or an apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0125] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0126] The computer-readable medium may be included in the computer device, or may exist independently without being incorporated into the computer device.

[0127] The computer-readable medium carries one or more programs. When the one or more programs are executed by the computer device 900, the computer device 900 performs the following steps: obtaining historical fares according to the ticket face information corresponding to the original itinerary, and obtaining the refund and change rules corresponding to the historical fares; forming multiple refund and change plans by processing the refund and change rules; classifying the multiple refund and change plans to obtain a refund and change plan group, and arranging the refund and change plans in the same refund and change plan group in descending order according to the corresponding refund and change handling fees; determining a target price corresponding to a new itinerary, wherein the new itinerary is an itinerary obtained by refunding and changing the original itinerary; taking each refund and change plan group as a target refund and change plan group, and determining in sequence whether the target price matches the refund and change plan in the target refund and change plan group according to the arrangement order of the refund and change plans in the target refund and change plan group; if it is determined that the target price matches the target refund and change plan in the target refund and change plan group, then exiting the step of determining whether the target price matches the refund and change plan in the target refund and change plan group, and obtaining a refund and change price calculation result according to the target refund and change plan and the corresponding target price.

[0128] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 906, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0129] According to one or more embodiments of the present disclosure, Example 1 provides a method for implementing a fare refund and change service, including:

[0130] Obtain historical fares based on the ticket information corresponding to the original itinerary, and obtain the refund and change rules corresponding to the historical fares;

[0131] By processing the refund and change rules, multiple refund and change plans are formed;

[0132] Classifying the multiple refund and change plans to obtain a refund and change plan group, and arranging the refund and change plans in the same refund and change plan group in descending order according to the corresponding refund and change handling fees;

[0133] Determine a target price corresponding to a new itinerary, wherein the new itinerary is an itinerary obtained by canceling or changing the original itinerary;

[0134] Each refund and change plan group is used as a target refund and change plan group, and according to the arrangement order of the refund and change plans in the target refund and change plan group, it is determined in sequence whether the target price matches the refund and change plans in the target refund and change plan group;

[0135] If it is determined that the target price matches the target refund and change plan in the target refund and change plan group, then the step of determining whether the target price matches the refund and change plan in the target refund and change plan group is exited, and the refund and change price calculation result is obtained according to the target refund and change plan and the corresponding target price.

[0136] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein the multiple refund and change plans are classified to obtain a refund and change plan group, including:

[0137] Classifying the refund and change plans with the same historical freight rate calculation restrictions into the same group to obtain the refund and change plan group;

[0138] Determine the refund and change handling fee corresponding to the refund and change plan according to the refund and change rules corresponding to the refund and change plan in the refund and change plan group;

[0139] Arrange the refund and change plans in the same refund and change plan group in descending order according to the corresponding refund and change fees.

[0140] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 1, wherein determining the target price corresponding to the new itinerary includes:

[0141] Splitting the new itinerary to obtain the fare data and refund and change rules corresponding to the target itinerary splitting method;

[0142] According to the freight rate data and the refund and change rules, the target price corresponding to the new itinerary under the target itinerary splitting method is determined.

[0143] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 3, wherein the target trip splitting method is a first splitting method of a first priority, and the method further includes:

[0144] If it is determined that the target price does not match any refund and change plan in the target refund and change plan group, the second splitting method of the second priority is used as the target itinerary splitting method, and the step of determining the target price corresponding to the new itinerary under the target itinerary splitting method based on the fare data and the refund and change rules is re-executed.

[0145] According to one or more embodiments of the present disclosure, Example 5 provides a method of any one of Examples 1 to 4. If the cancellation price calculation result includes multiple items, the method further includes:

[0146] Arrange the multiple cancellation and change price calculation results in order from low to high according to the target price.

[0147] According to one or more embodiments of the present disclosure, Example 6 provides a method of any one of Examples 1 to 4, wherein obtaining a refund and change price calculation result according to the target refund and change plan and the corresponding target price includes:

[0148] The ticket difference or ticket residual value between the new itinerary and the original itinerary is calculated according to the target refund and change plan and the target price, and the refund and change price calculation result includes the ticket difference or ticket residual value, and the refund and change fee corresponding to the target refund and change plan.

[0149] According to one or more embodiments of the present disclosure, Example 7 provides a device for implementing a fare refund and change service, characterized in that the device includes an acquisition unit, a formation unit, a classification unit, and a determination unit:

[0150] The acquisition unit is used to acquire the historical fares according to the ticket information corresponding to the original itinerary, and acquire the refund and change rules corresponding to the historical fares;

[0151] The forming unit is used to form multiple refund and change plans by processing the refund and change rules;

[0152] The classification unit is used to classify the multiple refund and change plans to obtain a refund and change plan group, and the refund and change plans in the same refund and change plan group are arranged in descending order according to the corresponding refund and change handling fees;

[0153] The determining unit is used to determine a target price corresponding to a new itinerary, where the new itinerary is an itinerary obtained by canceling or changing the original itinerary;

[0154] The determination unit is further configured to use each refund and change plan group as a target refund and change plan group, and determine in sequence whether the target price matches the refund and change plans in the target refund and change plan group according to the arrangement order of the refund and change plans in the target refund and change plan group;

[0155] The determination unit is further configured to exit the step of determining whether the target price matches the target refund and change plan in the target refund and change plan group if it is determined that the target price matches the target refund and change plan in the target refund and change plan group, and obtain a refund and change price calculation result according to the target refund and change plan and the corresponding target price.

[0156] According to one or more embodiments of the present disclosure, Example 8 provides the apparatus of Example 7, wherein the classification unit is configured to:

[0157] Classifying the refund and change plans with the same historical freight rate calculation restrictions into the same group to obtain the refund and change plan group;

[0158] Determine the refund and change handling fee corresponding to the refund and change plan according to the refund and change rules corresponding to the refund and change plan in the refund and change plan group;

[0159] Arrange the refund and change plans in the same refund and change plan group in descending order according to the corresponding refund and change fees.

[0160] According to one or more embodiments of the present disclosure, Example 9 provides the apparatus of Example 7, wherein the determining unit is configured to:

[0161] Splitting the new itinerary to obtain the fare data and refund and change rules corresponding to the target itinerary splitting method;

[0162] According to the freight rate data and the refund and change rules, the target price corresponding to the new itinerary under the target itinerary splitting method is determined.

[0163] According to one or more embodiments of the present disclosure, Example 10 provides the device of Example 9, wherein the target trip splitting method is a first splitting method of a first priority, and the determining unit is further configured to:

[0164] If it is determined that the target price does not match any refund and change plan in the target refund and change plan group, the second splitting method of the second priority is used as the target itinerary splitting method, and the step of determining the target price corresponding to the new itinerary under the target itinerary splitting method based on the fare data and the refund and change rules is re-executed.

[0165] According to one or more embodiments of the present disclosure, Example 11 provides a device of any one of Examples 7 to 10, and if the cancellation price calculation result includes multiple items, the device further includes a sorting unit:

[0166] The sorting unit is used to arrange the multiple cancellation and change price calculation results in order from low to high according to the target price.

[0167] According to one or more embodiments of the present disclosure, Example 12 provides the apparatus of any one of Examples 7 to 10, wherein the determining unit is configured to:

[0168] The ticket difference or ticket residual value between the new itinerary and the original itinerary is calculated according to the target refund and change plan and the target price, and the refund and change price calculation result includes the ticket difference or ticket residual value, and the refund and change fee corresponding to the target refund and change plan.

[0169] According to one or more embodiments of the present disclosure, Example 13 provides a computer device 900. The computer device 900 includes at least one processor and at least one memory, wherein the at least one memory stores computer-readable instructions, and the at least one processor executes the computer-readable instructions, so that the computer device 900 executes any one of the methods described in Examples 1 to 6.

[0170] According to one or more embodiments of the present disclosure, Example 14 provides a computer-readable storage medium. The computer-readable storage medium includes computer-readable instructions, and when the computer-readable instructions are executed on a computer device 900, the computer device 900 executes any method described in Example 1 to Example 6.

[0171] According to one or more embodiments of the present disclosure, Example 15 provides a computer program product. The computer program product includes instructions, and when the computer program product is executed on a computer device 900, the computer device 900 executes any one of the methods described in Examples 1 to 6.

[0172] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

[0173] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0174] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A method for implementing a fare refund and modification service, characterized in that, the method includes: Obtaining the historical fare according to the ticket face information of the ticket corresponding to the original itinerary, and obtaining the refund and modification rules corresponding to the historical fare; Forming multiple refund and modification plans by processing the refund and modification rules; Classifying the multiple refund and modification plans to obtain a group of refund and modification plans. The refund and modification plans in the same group of refund and modification plans are arranged in ascending order according to the corresponding refund and modification fees. The classifying the multiple refund and modification plans to obtain a group of refund and modification plans includes: Dividing the refund and modification plans with the same historical fare calculation limit into the same group to obtain the group of refund and modification plans; Determining the refund and modification fees corresponding to the refund and modification plans according to the refund and modification rules corresponding to the refund and modification plans in the group of refund and modification plans; Arranging the refund and modification plans in the same group of refund and modification plans in ascending order according to the corresponding refund and modification fees; Determining the target price corresponding to the new itinerary. The new itinerary is an itinerary obtained by refunding and modifying the original itinerary. The determining the target price corresponding to the new itinerary includes: Splitting the new itinerary to obtain the fare data and refund and modification rules corresponding to the target itinerary splitting method; Determining the target price corresponding to the new itinerary under the target itinerary splitting method according to the fare data and the refund and modification rules. The target price is composed of the lowest fares in the fare calculation group corresponding to the target itinerary splitting method; Taking each group of refund and modification plans as the target group of refund and modification plans, and sequentially determining whether the target price matches the refund and modification plans in the target group of refund and modification plans according to the arrangement order of the refund and modification plans in the target group of refund and modification plans; If it is determined that the target price matches the target refund and modification plan in the target group of refund and modification plans, exit the step of determining whether the target price matches the refund and modification plans in the target group of refund and modification plans, and obtain the refund and modification price calculation result according to the target refund and modification plan and the corresponding target price.

2. The method according to claim 1, characterized in that, the target itinerary splitting method is the first splitting method of the first priority. The method further includes: If it is determined that the target price does not match any of the refund and modification plans in the target group of refund and modification plans, taking the second splitting method of the second priority as the target itinerary splitting method, and re-executing the step of determining the target price corresponding to the new itinerary under the target itinerary splitting method according to the fare data and the refund and modification rules.

3. The method according to claim 1 or 2, characterized in that, if there are multiple in the refund and modification price calculation results, the method further includes: Arranging the multiple refund and modification price calculation results in ascending order according to the target price.

4. The method according to claim 1 or 2, characterized in that, the obtaining the refund and modification price calculation result according to the target refund and modification plan and the corresponding target price includes: Calculating the ticket difference or ticket residual value between the new itinerary and the original itinerary according to the target refund and modification plan and the target price. The refund and modification price calculation result includes the ticket difference or ticket residual value, and the refund and modification fee corresponding to the target refund and modification plan.

5. An apparatus for implementing a freight rate refund and modification service, characterized in that, the apparatus includes an acquisition unit, a formation unit, a classification unit and a determination unit: the acquisition unit is configured to acquire a historical freight rate according to the ticket face information of the ticket corresponding to the original itinerary, and acquire the refund and modification rules corresponding to the historical freight rate; the formation unit is configured to form a plurality of refund and modification plans by processing the refund and modification rules; the classification unit is configured to classify the plurality of refund and modification plans to obtain a group of refund and modification plans, and the refund and modification plans in the same group of refund and modification plans are arranged in ascending order of the corresponding refund and modification handling fees; the classification unit is configured to divide the refund and modification plans with the same historical freight rate calculation limit into the same group to obtain the group of refund and modification plans; determine the refund and modification handling fees corresponding to the refund and modification plans according to the refund and modification rules corresponding to the refund and modification plans in the group of refund and modification plans; arrange the refund and modification plans in the same group of refund and modification plans in ascending order of the corresponding refund and modification handling fees; the determination unit is configured to determine the target price corresponding to the new itinerary, where the new itinerary is an itinerary obtained by refunding and modifying the original itinerary; the determination unit is configured to split the new itinerary to obtain the freight rate data and refund and modification rules corresponding to the target itinerary splitting method; according to the freight rate data and the refund and modification rules, determine the target price corresponding to the new itinerary under the target itinerary splitting method, and the target price is composed of the lowest freight rates in the freight rate calculation group corresponding to the target itinerary splitting method; the determination unit is further configured to use each group of refund and modification plans as the target group of refund and modification plans, and sequentially determine whether the target price matches the refund and modification plans in the target group of refund and modification plans according to the arrangement order of the refund and modification plans in the target group of refund and modification plans; the determination unit is further configured to, if it is determined that the target price matches the target refund and modification plan in the target group of refund and modification plans, exit the step of determining whether the target price matches the refund and modification plans in the target group of refund and modification plans, and obtain the refund and modification price calculation result according to the target refund and modification plan and the corresponding target price.

6. A computer device, characterized in that, the computer device includes at least one processor and at least one memory, the at least one memory stores computer-readable instructions, and the at least one processor executes the computer-readable instructions, so that the computer device executes the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, it includes computer-readable instructions, and when the computer-readable instructions run on a computer device, the computer device is caused to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and device for searching retreat-change rule

    CN110704702A

  • Freight rate calculation processing method and device

    CN110717794A