Air ticket multi-rule sorting method and system
Through the multi-rule sorting method and system of air tickets, configuration and grouping rules, checksum display flights, the problem that existing business travel software cannot quickly find flights that comply with rules is solved, and the effect of users quickly filtering and intuitively viewing of flights that comply with rules is achieved, saving time.
Patent Information
- Application Number
- CN202410510921.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-12-24
AI Technical Summary
Existing business travel software cannot quickly find flights that comply with the company's travel rules, resulting in users having to compare repeatedly when booking tickets, which is a waste of time and is not intuitive.
Using the multi-rule sorting method and system for air tickets, the default groups are added by configuring and grouping rules, and the flight list is checksum to display rules. The flight list is sorted in a flashback according to the strictness. Users can intuitively view the flight list that complies with the rules.
Users can quickly filter out flights that comply with travel rules, save time, view flight lists intuitively, and book flights that comply with rules to avoid subsequent violations.
Smart Images

Figure CN119179720A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer application technology, and in particular to a multi-rule sorting method and system for air tickets. Background Art
[0002] In the corporate business consumption scenario, the company will formulate consumption rules for employees of different levels. The consumption rules may restrict each other and be relatively complex. Employees cannot quickly find flights that meet their consumption rules when booking tickets. For example, the company requires employees to book the lowest-priced flight within 2 hours before and after. When booking tickets, employees need to repeatedly compare whether the scheduled flight is the lowest-priced flight within 2 hours before and after. If there are more complex control rules, they need to try repeatedly to find a suitable flight.
[0003] Business travel software now generally sorts flights according to departure time and price, such as Figure 1 As shown in the figure, the sorting rule is single and it is impossible to quickly find a set of flights that meet the travel rules. Users cannot view the rules of the flight and will only find the violated rules in the subsequent ordering process, which is not intuitive and wastes time; they cannot compare the rules when booking flights to find directly bookable flights;
[0004] In order to solve the above problems, the present invention proposes a multi-rule sorting method and system for air tickets. Summary of the invention
[0005] The purpose of the present invention is to provide a multi-rule ticket sorting method and system to solve the problems raised in the background technology:
[0006] In existing business travel software, users cannot check whether a flight complies with the rules, and cannot directly compare and find available flights based on the rules when booking a flight. This is not intuitive and wastes time.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] A multi-rule sorting method for air tickets comprises the following steps:
[0009] S1: Configure several rules for booking air tickets and their corresponding processing measures;
[0010] S2: Group each rule according to the treatment measures;
[0011] S3: Add a default group and sort the groups in a specific order;
[0012] S4: query the flight list, perform traversal verification on all rules in all groups for each flight, and divide the flight into corresponding groups;
[0013] S5: Display the flight lists of each group divided in S4 in reverse order according to the grouping order in S3.
[0014] Preferably, the default group in S3 does not contain any rules and is used to store flights that do not violate all rules.
[0015] Preferably, the specific order in S3 is sorted according to the strictness of the rules.
[0016] Preferably, the S4 is specifically as follows:
[0017] S4.1: Verify the rules in all groups for the first flight in turn;
[0018] S4.2: If the first flight does not violate any rule in any group, place the first flight in the default group; if the first flight violates a rule in a group, place the first flight in the group where the rule was first violated;
[0019] S4.3: Repeat S4.1 to S4.2 for the next flight until all flights are verified.
[0020] A multi-rule sorting system for air tickets, comprising:
[0021] Rule preset module: used for enterprises to preset travel rules;
[0022] Grouping and sorting module: used to group and sort the travel rules preset by the enterprise according to the processing measures;
[0023] Rule verification module: used to verify the rules of each group of each flight;
[0024] Flight display module: used to display the verification grouping results in reverse order.
[0025] Preferably, the rule grouping module further includes a rule grouping unit and a rule sorting unit.
[0026] The rule grouping unit is used to group travel rules according to processing measures and add default groups;
[0027] The rule sorting unit is used to sort each group.
[0028] Compared with the prior art, the present invention provides a multi-rule sorting method and system for air tickets, which has the following beneficial effects:
[0029] The present invention performs group travel rule analysis and verification on each flight in the flight list, and quickly screens out flights that meet the travel rules and flight information corresponding to different processing measures for users. Users can also pre-view and intuitively view the flight list grouped according to the control measures, as well as the subsequent processing measures after booking the changed flights, saving user time. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a schematic diagram of the order of existing business travel flights mentioned in the background technology of the present invention;
[0031] Figure 2 This is a flow chart of the method mentioned in Example 1 of the present invention;
[0032] Figure 3 This is a system block diagram mentioned in Embodiment 1 of the present invention;
[0033] Figure 4 This is a schematic diagram of a reverse display of the flight list mentioned in Example 2 of the present invention.
[0034] Meaning of the symbols in the figure:
[0035] 100. Rule preset module; 200. Grouping and sorting module; 210. Rule grouping unit; 220. Rule sorting unit; 300. Rule verification module; 400. Flight display module. DETAILED DESCRIPTION
[0036] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0037] The present invention performs group travel rule analysis and verification on each flight in the flight list, and quickly screens out flights that meet the travel rules and flight information corresponding to different treatment measures for users. Users can also intuitively view the flight list grouped according to the control measures and the subsequent treatment measures after booking the changed flights, saving user time. Specifically, it includes the following contents.
[0038] Embodiment 1:
[0039] See also Figure 2-3 The present invention provides a multi-rule sorting method for air tickets, comprising:
[0040] S1: Configure several rules for booking air tickets and their corresponding processing measures; the details are as follows:
[0041] The enterprise configures multiple travel rules, and each travel rule has corresponding processing measures.
[0042] S2: Group each rule according to the treatment measures; the details are as follows:
[0043] Travel rules can be grouped according to their treatment measures. Treatment measures with the same treatment measures or the same level of strictness can be grouped into the same group.
[0044] S3: Add a default group and sort the groups in a specific order; the details are as follows:
[0045] The added default group does not have any rules. It is only used to store flights that do not violate all rules and can be used as alternative flights. Sort the groups in a specific order to facilitate the subsequent flight rule traversal and flight storage. If sorting is performed by strictness, it can be sorted in the order of strict to loose, with the default group at the end.
[0046] S4: Query the flight list, perform traversal verification of all rules in all groups for each flight, and divide the flight into corresponding groups; the details are as follows:
[0047] First, verify each rule in the first group for flight a in turn; if flight a violates the first rule in the first group, add flight a to the first group; if flight a does not violate the first rule in the first group, continue to verify the second rule in the first group; if it violates the second rule, also add flight a to the first group; otherwise, continue to verify the next rule; if flight a does not violate any rule in the first group, verify each rule in the second group; otherwise, add flight a to the first group; the verification process in the second group is the same as that in the first group; and so on. After verifying all groups, if flight a does not violate any rule, add flight a to the default group; otherwise, add flight a to the group where the violated rule is located; then continue to verify the next flight b, and repeat the above steps until the verification is completed.
[0048] S5: Display the flight lists of each group divided in S4 in reverse order according to the grouping order in S3. The details are as follows:
[0049] The groups are grouped in the order of S3, i.e., strict to loose order, with the default group at the end, and displayed in reverse order, i.e., loose to strict order, with the default group at the front.
[0050] Embodiment 2:
[0051] The company sets the following travel rules:
[0052] ① The lowest-priced flight within 2 hours before or after the reservation is required, otherwise the over-regulation approval process will be submitted;
[0053] ② You need to book flights with a price below 1,000 yuan, otherwise you will be prohibited from booking;
[0054] ③ Flights can only be booked if the distance is greater than 800 kilometers, otherwise booking is prohibited;
[0055] ④You need to book a flight that is cheaper than a train ticket for the same distance, otherwise you will need to submit an extraordinary approval process.
[0056] The following are grouped according to the treatment measures in each travel rule:
[0057] Group A (the handling measure is to submit an over-standard approval process): ①④
[0058] Group B (the treatment measure is to prohibit booking): ②③
[0059] Add one more default group Z, sorted from strict to loose: BAZ.
[0060] Query flights according to the time, location, etc. that need to be queried, and traverse and verify all rules in all groups for each flight in the flight list obtained by the query:
[0061] 1) For flight a, verify all the rules in group B and group A in turn. Group B contains rules ②③, and group A contains rules ①④;
[0062] 2) First verify rule ② in group B, take out the flight quote, if the quote is higher than 1,000 yuan, it violates rule ② and adds the flight to group B;
[0063] 3) If the bid is less than RMB 1,000, then verify Rule ③ in Group B and obtain the distance between the starting point and the destination. If it is less than 800 kilometers, add it to Group B;
[0064] 4) If no rule in group B is violated, all rules in group A are verified sequentially;
[0065] 5) First verify rule ① in group A, take out the flight quote, if the quote is not the lowest price flight 2 hours before or after booking, then rule ① is violated and the flight is added to group A;
[0066] 6) If the quoted price is the lowest-priced flight 2 hours before or after the booking, then verify rule ④ in group A and obtain the train ticket quote for the same route. If it is lower than the booked flight, add it to group A;
[0067] 7) If all rules of flight a pass verification, it will be placed in the default Z group;
[0068] 8) Find flight b from the list and repeat the verification steps for flight a.
[0069] For details, please refer to Figure 4 After checking the flights in the flight list one by one, the flight list in each group is displayed in reverse order of the grouping order BAZ, that is, ZAB.
[0070] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A multi-rule sorting method for air tickets, characterized in that: The steps include: S1: Configure several rules for booking air tickets and their corresponding processing measures; S2: Group each rule according to the treatment measures; S3: Add a default group and sort the groups in a specific order; S4: query the flight list, perform traversal verification on all rules in all groups for each flight, and divide the flight into corresponding groups; S5: Display the flight lists of each group divided in S4 in reverse order according to the grouping order in S3.
2. A multi-rule sorting method for air tickets according to claim 1, characterized in that: The default group described in S3 does not have any rules and is used to store flights that do not violate all rules.
3. A multi-rule sorting method for air tickets according to claim 1, characterized in that: The specific order described in S3 is sorted according to the strictness of the rules.
4. A multi-rule sorting method for air tickets according to claim 1, characterized in that: The S4 is specifically as follows: S4.1: Verify the rules in all groups for the first flight in turn; S4.2: If the first flight does not violate any rule in any group, place the first flight in the default group; if the first flight violates a rule in a group, place the first flight in the group where the rule was first violated; S4.3: Repeat S4.1 to S4.2 for the next flight until all flights are verified.
5. A multi-rule ticket sorting system according to claim 1, characterized in that: include: Rule preset module (100): used for enterprises to preset travel rules; A grouping and sorting module (200): used to group and sort the travel rules preset by the enterprise according to the processing measures; Rule verification module (300): used to perform rule verification on each group of each flight; Flight display module (400): used to display the verification grouping results in reverse order.
6. A multi-rule ticket sorting system according to claim 5, characterized in that: The rule grouping module (200) further comprises a rule grouping unit (210) and a rule sorting unit (220). The rule grouping unit (210) is used to group the travel rules according to the processing measures and add a default group; The rule sorting unit (220) is used to sort each group.
Citation Information
Patent Citations
Artificial intelligence travel policy advisor
US20240135472A1
