A method, apparatus, and related device for generating a supplemental rate

By filtering and removing relevant old fares when new fares are released, generating supplementary fares, and storing the new fares, supplementary fares, and old fares after the expiration, the problems of fare interruption and high maintenance costs after fare adjustments are solved, and the accuracy and uniqueness of fares are achieved.

CN116205691BActive Publication Date: 2025-11-28TRAVELSKY TECHNOLOGY LIMITED
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310032748.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-10
Publication Date
2025-11-28
Estimated Expiration
2043-01-10

AI Technical Summary

Technical Problem

In existing technologies, freight rate adjustments can lead to issues such as freight rate disruptions and the absence of marketable freight rates, resulting in high maintenance costs.

Method used

When a new fare is released, relevant old fares are filtered from the fare data cluster, it is determined whether the preset trigger conditions are met, a supplementary fare is generated and the old fare is terminated, and the new fare, supplementary fare, and terminated old fare are stored.

Benefits of technology

To ensure the accuracy and uniqueness of freight rates throughout their lifecycle, reduce freight rate maintenance costs, and improve freight rate maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116205691B_ABST
    Figure CN116205691B_ABST
Patent Text Reader

Abstract

The application provides a method, device and related equipment for generating a supplementary freight rate, which comprises the following steps: when a new freight rate is detected, screening an old freight rate related to the new freight rate from a freight rate data cluster; if the new freight rate and the old freight rate meet a preset triggering condition, generating a supplementary freight rate based on the new freight rate and the old freight rate and discontinuing the old freight rate; and storing the new freight rate, the supplementary freight rate and the discontinued old freight rate in the freight rate data cluster. In the present scheme, when a new freight rate is published, an old freight rate related to the new freight rate is screened from a freight rate data cluster. If the new freight rate and the old freight rate meet a preset triggering condition, a supplementary freight rate is generated and the old freight rate is discontinued, and the new freight rate, the supplementary freight rate and the discontinued old freight rate are stored in the freight rate data cluster. The supplementary freight rate can guarantee the accuracy and uniqueness of the freight rate in its life cycle and help the airline maintain the freight rate efficiently, thereby reducing the cost of maintaining the freight rate.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, in particular to a method and device for generating a supplementary fare and related equipment. BACKGROUND

[0002] With the gradual opening of routes, airlines are increasingly demanding fare adjustments. If the fare is adjusted after publication, the fare needs to be maintained.

[0003] The current way to maintain the fare is to maintain the new fare and manually cut off the old fare in the fare publishing system by the user; when the sale date and travel date of the new fare are inconsistent, after cutting off the old fare, problems such as being unable to review the historical fare when refunding and changing, fare interruption, and no saleable fare will occur, thereby resulting in a high cost of maintaining the fare. SUMMARY

[0004] Therefore, the embodiments of the present application provide a method and device for generating a supplementary fare and related equipment to solve the problem of high cost of maintaining the fare in the current way of maintaining the fare.

[0005] To achieve the above object, the embodiments of the present application provide the following technical solutions:

[0006] The first aspect of the embodiments of the present application discloses a method for generating a supplementary fare, the method comprising:

[0007] When a new fare is detected, an old fare related to the new fare is screened out from a fare data cluster;

[0008] It is judged whether the new fare and the old fare meet a preset trigger condition;

[0009] If the new fare and the old fare meet the preset trigger condition, a supplementary fare is generated based on the new fare and the old fare, and the old fare is cut off;

[0010] The new fare, the supplementary fare, and the old fare after being cut off are stored in the fare data cluster.

[0011] Preferably, when the new fare is detected, the old fare related to the new fare is screened out from the fare data cluster, comprising:

[0012] When the new fare is detected, a fare having the same first designated information as the new fare is screened out from the fare data cluster to obtain the old fare related to the new fare;

[0013] The first designated information at least includes an airline, an origin, a destination, a cabin code, a fare basis, a journey type, and a rule number.

[0014] Preferably, the judging whether the new fare and the old fare satisfy the preset trigger condition comprises:

[0015] judging whether the start sale date of the new fare is equal to the effective date, judging whether there is intersection between the sale date of the new fare and the sale date of the old fare, and judging whether there is intersection between the travel date of the new fare and the travel date of the old fare;

[0016] if the start sale date of the new fare is not equal to the effective date, and if there is intersection between the sale date of the new fare and the sale date of the old fare, and if there is intersection between the travel date of the new fare and the travel date of the old fare, it is determined that the new fare and the old fare satisfy the preset trigger condition.

[0017] Preferably, the second specified information of the supplementary fare is the same as the old fare; the start sale date of the supplementary fare is the start sale date of the new fare; the effective date of the supplementary fare is the maximum value between the start sale date of the new fare and the effective date of the old fare; the end sale date and the end date of the supplementary fare are both the day before the effective date of the new fare.

[0018] The second specified information at least comprises: airline, origin, destination, cabin code, fare basis, service class, journey type, rule number, and fare amount.

[0019] Preferably, the end sale date of the old fare after the end is the day before the start sale date of the new fare or the supplementary fare.

[0020] Preferably, after the new fare, the supplementary fare and the old fare after the end are stored into the fare data cluster, the method further comprises:

[0021] receiving a query request of a user;

[0022] querying and outputting the new fare, the supplementary fare or the old fare after the end matched with the query request from the fare data cluster.

[0023] The second aspect of the embodiment of the application discloses a device for generating a supplementary fare, which comprises:

[0024] a screening unit, configured to screen an old fare related to the new fare from a fare data cluster when detecting the publishing of the new fare;

[0025] a judging unit, configured to judge whether the new fare and the old fare satisfy a preset trigger condition;

[0026] a processing unit, configured to generate a supplementary fare and close the old fare based on the new fare and the old fare if the new fare and the old fare meet the preset trigger condition;

[0027] a storage unit, configured to store the new fare, the supplementary fare and the closed old fare into the fare data cluster.

[0028] Preferably, the screening unit is specifically configured to: when detecting the new fare release, screen the fares with the same first designated information as the new fare from the fare data cluster to obtain the old fare related to the new fare;

[0029] The first designated information at least includes an airline, an origin, a destination, a cabin code, a fare basis, a journey type and a rule number.

[0030] A third aspect of the embodiment of the present application discloses an electronic device, comprising: a processor and a memory, which are connected through a communication bus; wherein the processor is configured to call and execute a program stored in the memory; and the memory is configured to store a program, which is used to implement the method for generating a supplementary fare disclosed in the first aspect of the embodiment of the present application.

[0031] A fourth aspect of the embodiment of the present application discloses a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions are used to execute the method for generating a supplementary fare disclosed in the first aspect of the embodiment of the present application.

[0032] Based on the above-mentioned method, device and related equipment for generating a supplementary fare, the method is: when detecting a new fare release, screening the old fare related to the new fare from the fare data cluster; if the new fare and the old fare meet the preset trigger condition, generating a supplementary fare based on the new fare and the old fare and closing the old fare; and storing the new fare, the supplementary fare and the closed old fare into the fare data cluster. In the present scheme, when a new fare is released, the old fare related to the new fare is screened from the fare data cluster. If the new fare and the old fare meet the preset trigger condition, a supplementary fare is generated and the old fare is closed, and the new fare, the supplementary fare and the closed old fare are stored into the fare data cluster. The supplementary fare can guarantee the accuracy and uniqueness of the fare in its life cycle, and can help the airlines to efficiently maintain the fare, thereby reducing the cost of maintaining the fare. BRIEF DESCRIPTION OF DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings described below are only a part of the embodiments of the present application, and not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the present application.

[0034] Figure 1 A flow chart of a method for generating a supplementary freight rate provided by an embodiment of the present application is shown in the figure.

[0035] Figure 2 An architecture schematic diagram of a freight rate publishing system provided by an embodiment of the present application is shown in the figure.

[0036] Figure 3 An example diagram of the time relationship between a new freight rate and an old freight rate provided by an embodiment of the present application is shown in the figure.

[0037] Figure 4 An example diagram of the day before the old freight rate expires to the effective date of a new freight rate provided by an embodiment of the present application is shown in the figure.

[0038] Figure 5 An example diagram of the cut-off sales date and expiration date of an old freight rate provided by an embodiment of the present application is shown in the figure.

[0039] Figure 6 An example diagram of the day before the old freight rate expires to the starting sales date of a new freight rate provided by an embodiment of the present application is shown in the figure.

[0040] Figure 7 An example diagram of a supplementary freight rate and an old freight rate provided by an embodiment of the present application is shown in the figure.

[0041] Figure 8 A structural block diagram of a device for generating a supplementary freight rate provided by an embodiment of the present application is shown in the figure.

[0042] Figure 9 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0043] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the present application.

[0044] In this application, the terms "comprise", "contain" or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements not only includes those elements, but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without more limitations, the element defined by the phrase "comprises a" does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0045] As known from the background art, currently, a user usually maintains a new fare and manually cancels an old fare in a fare publishing system; when the sale date of the new fare is inconsistent with the travel date, after the old fare is cancelled, problems such as the inability to review historical fares when refunding and changing, fare interruption, and no saleable fare will occur, thereby resulting in a high cost of maintaining the fare.

[0046] Therefore, the embodiments of the present application provide a method, device and related equipment for generating a supplementary fare, when a new fare is published, an old fare related to the new fare is screened out from a fare data cluster. If the new fare and the old fare meet a preset trigger condition, a supplementary fare is generated and the old fare is cancelled, and the new fare, the supplementary fare and the cancelled old fare are stored in the fare data cluster. The supplementary fare can guarantee the accuracy and uniqueness of the fare in its life cycle, and can help the airline company to efficiently maintain the fare, thereby reducing the cost of maintaining the fare.

[0047] It should be noted that the supplementary fare (supplementally generated fare) can guarantee the accuracy and uniqueness of the fare in its life cycle, and the supplementary fare has no effect on the fares maintained by the airline company (usually no need to modify the supplementary fare), so the supplementary fare can help the airline company to efficiently maintain the fare, thereby reducing the cost of maintaining the fare.

[0048] Referring to Figure 1 , a flowchart of a method for generating a supplementary fare provided by the embodiments of the present application is shown, and the method comprises:

[0049] Step S101: When a new fare is detected to be published, an old fare related to the new fare is screened out from a fare data cluster.

[0050] In some embodiments, the airline company user publishes a fare (needs to log in to the airline account when publishing), and the published fare is stored in the fare data cluster after being verified for legality, thereby completing the fare publishing.

[0051] It can be understood that the freight rate includes but is not limited to: cabin information of the voyage, sales date (starting sales date to ending sales date), travel date (effective date to expiration date), ticket price and applicable rules, etc.; wherein, the sales date is also called sales validity period, and the travel date is also called travel validity period.

[0052] More specifically, the freight rate includes but is not limited to: airline, origin, destination, cabin code, freight rate basis, service level, voyage type, rule number, freight rate amount, starting sales date, ending sales date, effective date, expiration date, etc.

[0053] In the process of implementing step S101, it is monitored in real time whether there is a new freight rate published. When detecting that a new freight rate is published, the old freight rate related to the new freight rate is filtered out from the freight rate data cluster.

[0054] More specifically, when detecting that a new freight rate is published, the freight rate with the same first designated information as the new freight rate is filtered out from the freight rate data cluster to obtain the old freight rate related to the new freight rate; wherein, the first designated information at least includes airline, origin, destination, cabin code, freight rate basis, voyage type, rule number.

[0055] That is, when detecting that a new freight rate is published, the freight rate with the same "airline", "origin", "destination", "cabin code", "freight rate basis", "voyage type", "rule number" as the new freight rate is filtered out from the freight rate data cluster to be used as the old freight rate related to the new freight rate.

[0056] Step S102: judging whether the new freight rate and the old freight rate meet the preset triggering condition. If the new freight rate and the old freight rate meet the preset triggering condition, step S103 is executed; if the new freight rate and the old freight rate do not meet the preset triggering condition, the new freight rate is stored.

[0057] In the process of implementing step S102, after filtering out the old freight rate related to the new freight rate from the freight rate data cluster, it is judged whether the new freight rate and the old freight rate meet the preset triggering condition. If the new freight rate and the old freight rate meet the preset triggering condition, step S103 is executed; if the new freight rate and the old freight rate do not meet the preset triggering condition, the new freight rate is stored.

[0058] Specifically, it is judged whether the starting sales date of the new freight rate is equal to the effective date, whether there is an intersection between the sales date of the new freight rate and the sales date of the old freight rate, and whether there is an intersection between the travel date of the new freight rate and the travel date of the old freight rate.

[0059] If the start sale date of the new fare is not equal to the effective date, and if there is an intersection between the sale dates of the new fare and the old fare (or there is an intersection), and if there is an intersection between the travel dates of the new fare and the old fare, it is determined that the new fare and the old fare meet the preset trigger condition, and step S103 is performed.

[0060] That is, if the new fare and the old fare have date intersections (sale date intersections and travel date intersections), and if the start sale date of the new fare is not equal to the effective date, it can be determined that the new fare and the old fare meet the preset trigger condition, and step S103 is performed.

[0061] The sale date is the start sale date to the end sale date, and the travel date is the effective date to the end date.

[0062] If the start sale date of the new fare is equal to the effective date, and / or if there is no intersection between the sale dates of the new fare and the old fare, and / or if there is no intersection between the travel dates of the new fare and the old fare, it is determined that the new fare and the old fare do not meet the preset trigger condition, and the new fare is stored at this time.

[0063] As can be seen from the above, the preset trigger condition includes the following two sub-conditions:

[0064] Sub-condition 1: The start sale date of the new fare is not equal to the effective date.

[0065] Sub-condition 2: There is an intersection between the sale dates of the new fare and the old fare, and there is an intersection between the travel dates of the new fare and the old fare.

[0066] When the new fare and the old fare meet the above sub-condition 1 and sub-condition 2 at the same time, it can be determined that the new fare and the old fare meet the preset trigger condition.

[0067] Step S103: Based on the new fare and the old fare, a supplementary fare is generated and the old fare is closed.

[0068] In the process of specifically implementing step S103, after it is determined that the new fare and the old fare meet the preset trigger condition, a supplementary fare is generated based on the new fare and the old fare, and the old fare is closed.

[0069] In some embodiments, the second specified information of the supplementary fare is the same as the old fare; wherein the second specified information at least includes: airline, origin, destination, cabin code, fare basis, service level, journey type, rule number, and fare amount.

[0070] That is, the "airline", "origin", "destination", "cabin code", "fare basis", "service level", "journey type", "rule number", and "fare amount" of the supplementary fare are consistent with the old fare.

[0071] The start sale date of the supplementary rate is the start sale date of the new rate; the effective date of the supplementary rate is the maximum of the start sale date of the new rate and the effective date of the old rate; the end sale date and the end date of the supplementary rate are both the day before the effective date of the new rate.

[0072] Specifically, in the process of generating the supplementary rate, the generation of the supplementary rate can be completed after the following settings are performed: the second designated information of the supplementary rate is set to be the same as the second designated information of the old rate; the start sale date of the supplementary rate = the start sale date of the new rate; the effective date of the supplementary rate = the maximum of the start sale date of the new rate and the effective date of the old rate; the end sale date of the supplementary rate = the day before the effective date of the new rate; and the end date of the supplementary rate = the day before the effective date of the new rate.

[0073] It should be noted that the supplementary rate can guarantee the accuracy and uniqueness of the rate in its life cycle, and has no effect on the rates maintained by the airline user, so the supplementary rate usually does not need to be modified.

[0074] In some embodiments, since the start sale date of the supplementary rate = the start sale date of the new rate, the end sale date of the old rate after the end is the day before the start sale date of the new rate or the supplementary rate.

[0075] Specifically, in the process of ending the old rate, the ending of the old rate can be completed after the following settings are performed: the end sale date of the old rate after the end = the day before the start sale date of the new rate, or the end sale date of the old rate after the end = the day before the start sale date of the supplementary rate.

[0076] As can be seen from the above related content about the new rate, the supplementary rate and the old rate after the end, there will be no situation of overlapping sale dates and overlapping travel dates between any two of the new rate, the supplementary rate and the old rate after the end (that is, there will be no situation of overlapping sale dates and overlapping travel dates at the same time).

[0077] Step S104: storing the new rate, the supplementary rate and the old rate after the end into the rate data cluster.

[0078] In the process of specifically implementing step S104, the new rate, the supplementary rate and the old rate after the end are stored into the rate data cluster for querying by a user (such as a passenger user).

[0079] In some embodiments, the system receives user query requests; queries the fare data cluster and outputs new fares, supplementary fares, or expired old fares that match the query request. In other words, users can query the corresponding new fares, supplementary fares, or expired old fares through the fare sales terminal.

[0080] For example, a passenger user initiates a query request (such as a fare search request or a fare calculation request) through the fare sales terminal. The terminal then queries the fare data cluster for fare products (new fares, supplementary fares, or old fares after the expiration date) that match the query request and outputs the fare products that match the query request to the passenger user.

[0081] In this embodiment of the invention, when a new fare is published, old fares related to the new fare are filtered from the fare data cluster. If the new fare and the old fare meet preset trigger conditions, a supplementary fare is generated and the old fare is terminated. The new fare, the supplementary fare, and the terminated old fare are then stored in the fare data cluster. The supplementary fare ensures the accuracy and uniqueness of fares throughout their lifecycle and helps airlines maintain fares efficiently, thereby reducing the cost of fare maintenance.

[0082] The method for generating supplementary fares mentioned in the above embodiments of the present invention can be applied to a fare publishing system. Please refer to [link / reference]. Figure 2 , Figure 2 A schematic diagram of the fare publication system is shown. Figure 2 It includes a freight rate publishing component 201, a freight rate data cluster 202, and a freight rate processing component 203.

[0083] Specifically, the fare publication component 201 is used to provide airlines with maintenance functions for fare policies, rules (calculation rules), configurations, and other related pricing strategies. The fare publication component 201 is essentially a front-end component that allows airlines to publish fares online in real time.

[0084] The fare data cluster 202 is used to store fare, rule, and configuration data maintained by the airline; the fare data cluster 202 is equivalent to a database cluster.

[0085] The fare processing component 203 is used to: automatically generate supplementary fares and automatically expire old fares based on the fare strategy information maintained by the airline, and synchronize the supplementary fares and expired old fares to the fare data cluster 202.

[0086] After synchronizing the supplementary fares and the old fares after the expiry date to the fare data cluster 202, the fare sales component can match passenger users' query requests (fare search requests or fare calculation requests) with relevant fares and return the matched fares to the passenger users.

[0087] To better explain the above-mentioned method of generating a supplementary fare, the following specific examples are provided to illustrate how the method can help airlines better maintain fares.

[0088] An airline creates a new special fare (new fare), which includes information such as airline, origin, destination, cabin code, fare basis, service class, journey type, rule number, fare amount, start sale date, end sale date, effective date, and expiration date.

[0089] The new fare is subjected to a legality check, which includes the following conditions: the start sale date must be later than the current date; the end sale date must be later than the start sale date; the effective date must be later than the start sale date; the expiration date must be later than the effective date; and the expiration date must be later than the end sale date.

[0090] After passing the legality check, the new fare is saved. The airline reports the new fare, and after approval by the Civil Aviation Administration, the new fare is officially released.

[0091] For example, the specific content of the new fare released by the airline is: origin BJS, destination SHA, effective date 20220307, expiration date 99991231, start sale date 20220301, end sale date 99991231, service class Y, cabin M, fare basis M, journey type OW, rule number RULE, and fare amount 1100 yuan.

[0092] When a new fare is detected, the old fare related to the new fare is selected. If the new fare and the old fare meet the preset trigger conditions, a supplementary fare is generated.

[0093] Suppose there is an existing old special fare with the following specific content: origin BJS, destination SHA, effective date 20220101, expiration date 99991231, start sale date 20220101, end sale date 99991231, service class Y, cabin M, fare basis M, journey type OW, rule number RULE, and fare amount 1000 yuan.

[0094] On January 2, 2022, the airline sold a ticket with a travel date of March 8, 2022, and the fare in the ticket belongs to the old fare. Combining Figure 3 The time relationship between the new fare and the old fare is shown in the example graph. The specific content of the fare in the ticket is: 20220101 < sale date January 2, 2022 <9999123>1; 20220101 < travel date March 8, 2022 <9999123>1; and fare amount 1000 yuan.

[0095] But on February 28, 2022, the airline adjusted the fare and declared a new fare, the specific content of which is: 20220301 < sales date <9999123>1 (default to sell every other day); 20220307 < travel date <9999123>1 (effective after 7 days of the reported sub-batch); the fare amount is 1100 yuan.

[0096] Therefore, on March 1, 2022 to December 31, 9999, the sale of the travel date is March 7, 2022 to December 31, 9999, and the fare is 1100 yuan. The old fare of 1000 yuan and the new fare of 1100 yuan are valid at the same time and the prices are different, which does not meet the requirement of uniqueness of published fares.

[0097] As Figure 4 The example graph shown in the old fare to the new fare effective date the day before can be seen, if the old fare is cut off to the day before the start of the new fare sales date (i.e. March 6, 2022), the old fare is not modified. The start date of the new fare is March 1, 2022, and the travel effective date is March 7, 2022; therefore, on March 1, 2022 to March 6, 2022, the sale of the travel date is March 7, 2022 to December 31, 9999, and the fare is 1100 yuan. The old fare of 1000 yuan and the new fare of 1100 yuan will appear, which still does not meet the uniqueness of the published fare amount.

[0098] As Figure 5 The example graph shown in the old fare to the new fare effective date the day before can be seen, if the old fare is cut off to the day before the start of the new fare sales date (i.e. March 6, 2022), the old fare is not modified. The start date of the new fare is March 1, 2022, and the travel effective date is March 7, 2022; therefore, on March 1, 2022 to March 6, 2022, the sale of the travel date is March 7, 2022 to December 31, 9999, and the fare is 1100 yuan. The old fare of 1000 yuan and the new fare of 1100 yuan will appear, which still does not meet the uniqueness of the published fare amount.

[0099] As Figure 6The example diagram shown in the figure can be seen, if the cut-off sales date of the old fare is cut off to the day before the starting sales date of the new fare (i.e., February 28, 2022), and the cut-off date of the old fare is not modified; for the ticket sold on January 2, 2022, the travel date of which is March 8, 2022, the price can be located from the old fare, which meets the condition of historical fare review but new problems will occur: the starting sales date of the new fare is March 1, 2022, and the travel effective date is March 7, 2022, so during the period from March 1, 2022 to March 6, 2022, the fare of the travel date from March 1, 2022 to March 6, 2022 cannot be sold, which will affect the sales revenue of the airline; in view of the foregoing problem, it is necessary to add a supplementary fare and cut off the old fare.

[0100] In order to ensure the uniqueness of the price of each ticket, the traceability of the ticket, the sale of the fare by the airline, and the maintenance of the fare by the airline, the present solution proposes a method for generating a supplementary fare, which generates a supplementary fare and cuts off an old fare through steps S101 to S104. The specific content of the supplementary fare and the cut-off old fare generated by the present solution can be seen in Figure 7 . Through Figure 7 It can be seen that the second specified information of the supplementary fare is the same as that of the old fare; the starting sales date of the supplementary fare is the starting sales date of the new fare; the effective date of the supplementary fare is the maximum of the starting sales date of the new fare and the effective date of the old fare; the cut-off sales date and the cut-off date of the supplementary fare are both the day before the effective date of the new fare; and the cut-off sales date of the cut-off old fare is the day before the starting sales date of the new fare or the supplementary fare.

[0101] There is no situation of overlapping sales dates and overlapping travel dates between any two of the new fare, the supplementary fare, and the cut-off old fare. By generating a supplementary fare, the accuracy and uniqueness of the fare in its life cycle can be guaranteed, and the airline can efficiently maintain the fare, thereby reducing the cost of maintaining the fare.

[0102] Corresponding to the method for generating a supplementary fare provided by the above-mentioned embodiments of the present application, referring to Figure 8 the present embodiment also provides a structural block diagram of a device for generating a supplementary fare, which comprises a screening unit 801, a judgment unit 802, a processing unit 803, and a storage unit 804.

[0103] The screening unit 801 is configured to screen the old fare related to the new fare from the fare data cluster when detecting the release of the new fare.

[0104] In specific implementation, the screening unit 801 is specifically configured to: when detecting the new fare release, screening the fares with the same first designated information as the new fare from the fare data cluster to obtain the old fare related to the new fare; wherein the first designated information at least includes the airline, the origin, the destination, the cabin code, the fare basis, the journey type, and the rule number.

[0105] The judging unit 802 is configured to judge whether the new fare and the old fare satisfy a preset trigger condition.

[0106] In specific implementation, the judging unit 802 is specifically configured to: judge whether the starting sale date of the new fare is equal to the effective date, and judge whether there is an intersection between the sale date of the new fare and the sale date of the old fare, and judge whether there is an intersection between the travel date of the new fare and the travel date of the old fare; if the starting sale date of the new fare is not equal to the effective date, and if there is an intersection between the sale date of the new fare and the sale date of the old fare, and if there is an intersection between the travel date of the new fare and the travel date of the old fare, it is determined that the new fare and the old fare satisfy the preset trigger condition.

[0107] The processing unit 803 is configured to, if the new fare and the old fare satisfy the preset trigger condition, generate a supplementary fare and stop the old fare based on the new fare and the old fare.

[0108] In some embodiments, the second designated information of the supplementary fare is the same as that of the old fare; the starting sale date of the supplementary fare is the starting sale date of the new fare; the effective date of the supplementary fare is the maximum value between the starting sale date of the new fare and the effective date of the old fare; the stop sale date and the stop date of the supplementary fare are both the day before the effective date of the new fare.

[0109] The second designated information at least includes: the airline, the origin, the destination, the cabin code, the fare basis, the service level, the journey type, the rule number, and the fare amount.

[0110] In some embodiments, the stop sale date of the old fare after being stopped is the day before the starting sale date of the new fare or the supplementary fare.

[0111] The storage unit 804 is configured to store the new fare, the supplementary fare, and the old fare after being stopped into the fare data cluster.

[0112] In the embodiments of the present application, when a new fare is released, the old fare related to the new fare is screened from the fare data cluster. If the new fare and the old fare satisfy the preset trigger condition, a supplementary fare is generated and the old fare is stopped, and the new fare, the supplementary fare, and the old fare after being stopped are stored into the fare data cluster. The supplementary fare can guarantee the accuracy and uniqueness of the fare in its life cycle, and can help the airline to efficiently maintain the fare, thereby reducing the cost of maintaining the fare.

[0113] Preferably, in combination Figure 8 As shown, the apparatus further comprises:

[0114] The receiving unit is configured to receive a query request of a user.

[0115] The querying unit is configured to query, from the freight rate data cluster, and output a new freight rate, a supplementary freight rate, or an old freight rate after expiration that matches the query request.

[0116] The electronic device provided by the embodiment of the present application comprises a processor and a memory, which are connected through a communication bus; wherein the processor is configured to invoke and execute a program stored in the memory; and the memory is configured to store the program, which is used to implement the method for generating a supplementary freight rate.

[0117] Reference will be made to the following description Figure 9 , which shows a structural schematic diagram of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Personal Computers), PMPs (Portable Multimedia Players), vehicle-mounted terminals (for example, vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Figure 9 The electronic device shown is merely an example, and should not impose any limitation on the functions and use range of the embodiments of the present application.

[0118] As shown in Figure 9 , the electronic device can include a processing device (for example, a central processing unit, a graphics processing unit, or the like) 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 electronic device are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0119] Generally, the following devices can be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, and the like; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, and the like; a storage device 908 including, for example, a magnetic tape, a hard disk, and the like; and a communication device 909. The communication device 909 can allow the electronic device to communicate with other devices wirelessly or through wires to exchange data. Although Figure 9Electronic devices with various apparatuses are shown, but it should be understood that not all of the shown apparatuses are required, and that some embodiments can implement or have fewer or different apparatuses.

[0120] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication apparatus 909, or installed from the storage apparatus 908, or installed from the ROM 902. When the computer program is executed by the processing apparatus 901, the above-mentioned functions defined in the methods of embodiments of the present disclosure are performed.

[0121] Further, embodiments of the present disclosure also provide a computer-readable storage medium, which stores computer-executable instructions for performing the method of generating a supplementary freight rate.

[0122] The above computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: when a new freight rate is detected, filter out old freight rates related to the new freight rate from a freight rate data cluster; if the new freight rate and the old freight rate satisfy a preset triggering condition, generate a supplementary freight rate based on the new freight rate and the old freight rate and cut off the old freight rate; and store the new freight rate, the supplementary freight rate, and the cut-off old freight rate in the freight rate data cluster.

[0123] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0124] The above computer-readable medium can be included in the above electronic device; or can exist separately without being assembled into the electronic device.

[0125] The various embodiments described in this specification are described in progressive order, with each embodiment building on the previous one. The same or similar elements in each embodiment are denoted by the same or similar reference signs. For each embodiment, the differences between that embodiment and the preceding ones are described in more detail. In particular, the system or system embodiments are described more briefly than the method embodiments, since they are substantially similar to the method embodiments. The system and system embodiments described above are merely illustrative, and the units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. can be located at one place or distributed over multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments. Those skilled in the art can understand and implement without creative labor.

[0126] The skilled person will further appreciate that the elements and algorithm steps of the examples described in relation to the embodiments disclosed herein can be implemented in electronic hardware, computer software, or any combination of the two. To clearly illustrate the interchangeability of hardware and software, the elements and steps of the examples have been described generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the particular application and design constraints imposed on the overall system. Skilled persons can implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the application.

[0127] The above description of disclosed embodiments enables a person skilled in the art to implement or use the application. Numerous modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the scope of the application. Therefore, the present application is not to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method of generating a supplemental rate, characterized by, The method is applied to a fare publishing system, and the fare publishing system comprises a fare publishing component, a fare data cluster and a fare processing component, and the method comprises the following steps: When a new fare is detected, old fares related to the new fare are screened from the fare data cluster; It is judged whether the new fare and the old fare meet a preset trigger condition; If the new fare and the old fare meet the preset trigger condition, a supplementary fare is generated based on the new fare and the old fare, and the old fare is closed; The new fare, the supplementary fare and the closed old fare are stored in the fare data cluster; A query request of a user is received, and the new fare, the supplementary fare or the closed old fare matching the query request is queried from the fare data cluster and output.

2. The method of claim 1, wherein, When a new fare is detected, old fares related to the new fare are screened from the fare data cluster, comprising the following steps: When a new fare is detected, fares with the same first specified information as the new fare are screened from the fare data cluster to obtain old fares related to the new fare; The first specified information at least includes an airline, an origin, a destination, a cabin code, a fare basis, a journey type, and a rule number.

3. The method of claim 1, wherein, It is judged whether the new fare and the old fare meet a preset trigger condition, comprising the following steps: It is judged whether the start date of sale of the new fare is equal to the effective date, whether there is an intersection between the date of sale of the new fare and the date of sale of the old fare, and whether there is an intersection between the travel date of the new fare and the travel date of the old fare; If the start date of sale of the new fare is not equal to the effective date, and if there is an intersection between the date of sale of the new fare and the date of sale of the old fare, and if there is an intersection between the travel date of the new fare and the travel date of the old fare, it is determined that the new fare and the old fare meet the preset trigger condition.

4. The method of claim 1, wherein, The second specified information of the supplementary fare is the same as that of the old fare; the start date of sale of the supplementary fare is the start date of sale of the new fare; the effective date of the supplementary fare is the maximum value between the start date of sale of the new fare and the effective date of the old fare; the end date of sale and the end date of the supplementary fare are both the day before the effective date of the new fare; The second specified information at least includes an airline, an origin, a destination, a cabin code, a fare basis, a service level, a journey type, a rule number, and a fare amount.

5. The method of claim 1, wherein, The end date of sale of the closed old fare is the day before the start date of sale of the new fare or the supplementary fare.

6. An apparatus for generating a supplemental rate, the apparatus comprising: The method is applied to a fare publishing system, and the fare publishing system comprises a fare publishing component, a fare data cluster and a fare processing component, and the method comprises the following steps: A screening unit is configured to screen old fares related to the new fare from the fare data cluster when a new fare is detected; A judging unit is configured to judge whether the new fare and the old fare meet a preset trigger condition; The processing unit is configured to generate a supplementary freight rate and stop the old freight rate based on the new freight rate and the old freight rate if the new freight rate and the old freight rate meet the preset triggering condition; The storage unit is configured to store the new freight rate, the supplementary freight rate and the stopped old freight rate into the freight rate data cluster; The receiving unit is configured to receive a query request of a user; The query unit is configured to query and output the new freight rate, the supplementary freight rate or the stopped old freight rate matched with the query request from the freight rate data cluster.

7. The apparatus of claim 6, wherein, The screening unit is specifically configured to: when detecting a new freight rate release, screen out freight rates with the same first designated information as the new freight rate from the freight rate data cluster to obtain old freight rates related to the new freight rate. The first designated information at least includes an airline, an origin, a destination, a cabin code, a freight rate basis, a journey type and a rule number.

8. An electronic device, comprising: The processor and the memory are connected through a communication bus; the processor is configured to call and execute a program stored in the memory; and The memory is configured to store a program, and the program is used to implement the method for generating a supplementary freight rate according to any one of claims 1-5. The computer readable storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method for generating a supplementary freight rate according to any one of claims 1-5.

9. A computer-readable storage medium, characterized in that, ​

Citation Information

Patent Citations

  • Intelligent gas meter price adjustment cost automatic price difference filling calculation method for IC card

    CN107945403A

  • Additional service automatic changing method and device, storage medium and electronic equipment

    CN111861417A