Seat reservation method and device, computer program product and electronic equipment
By receiving and analyzing passenger information, matching seat reservation rules and adjusting seat reservation plans, the safety risk issue of special passengers who may be arranged to seats in safe passages is solved, and the safety of air transportation is improved.
Patent Information
- Application Number
- CN202411363523.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-03-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When airlines reserve seats for special passengers, there is a risk of arranging seats to safe passages, resulting in safety risks for civil aviation transportation.
By receiving and analyzing passenger information messages, determining passenger type and flight information, and matching them with the preset seat reservation rules, obtaining seat reservation plans, determining whether the reserved location needs to be adjusted, and updating the seat reservation plans to avoid safety risks.
Effectively avoid the risk of arranging special passengers to seats in safe passages and improve the safety of air passengers.
Smart Images

Figure CN119692504A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of civil aviation passenger check-in, and in particular, to a seat reservation method, device, computer program product and electronic equipment. Background Art
[0002] After receiving a reservation request from a special passenger, the airline will send the reservation message to the airline's departure host system, which will automatically reserve seats for special passengers on the plane. Due to the requirements of civil aviation transportation safety, special passengers cannot be arranged in seats in the safety aisle. Therefore, when allocating seats to special passengers, the departure host system will avoid seats in the safety aisle. However, some aircraft models are not applicable to the logic of seat allocation by the departure host system. Therefore, for special passengers on routes operated by some aircraft models, the seats allocated by the departure host system may have the risk of arranging special passengers in seats in the safety aisle. This problem will cause safety risks to civil aviation transportation.
[0003] With respect to the problem of safety risks in the reserved seats for airline passengers in the related technology, no effective solution has been proposed so far. Summary of the invention
[0004] The main purpose of the present application is to provide a seat reservation method, device, computer program product and electronic device to solve the problem of safety risks in seat reservation for airline passengers in the related art.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a seat reservation method is provided. The method includes: receiving a passenger information message, parsing the passenger information message, obtaining the passenger type and flight information of the passenger; matching the passenger type and flight information with a preset seat reservation rule to obtain a matching result, wherein the seat reservation rule includes a plurality of flight types and passenger types that need to be reserved for seats; when the matching result indicates a successful match, obtaining a seat reservation plan for the flight that the passenger is taking, and judging whether the passenger's reserved position needs to be adjusted based on the seat reservation plan; when the passenger's reserved position needs to be adjusted, updating the passenger's reserved position in the seat reservation plan to obtain an updated seat reservation plan.
[0006] Optionally, determining whether a passenger's reserved position needs to be adjusted based on the seat reservation plan includes: extracting the passenger's reserved position from the seat reservation plan, and determining whether the reserved position belongs to a position within a target range near a safety channel of the flight; if the reserved position belongs to a position within the target range of the flight, determining that the passenger's reserved position needs to be adjusted; if the reserved position does not belong to a position within the target range of the flight, determining that the passenger's reserved position does not need to be adjusted.
[0007] Optionally, before obtaining the seat reservation plan for the flight the passenger is taking, the method also includes: determining a target identifier for the passenger and determining whether the target identifier is a target value, wherein the target identifier is used to characterize whether the passenger is in a state where the reserved position needs to be adjusted; when the target identifier is the target value, executing the step of obtaining the seat reservation plan for the flight the passenger is taking; when the target identifier is not the target value, determining that the passenger's reserved position does not need to be adjusted.
[0008] Optionally, the passenger type and flight information are matched with a preset seat reservation rule to obtain a matching result, including: extracting target information from the flight information, and extracting an operation type from the passenger information message, wherein the operation type is used to indicate the operation of processing data in the passenger information message, and the target information includes at least one of the following: flight number, flight date, departure airport, and arrival airport; determining whether the seat reservation rule contains the target information, operation type, and passenger type; if the seat reservation rule contains the target information, operation type, and passenger type, determining the matching result to be a successful match; if any one of the target information, operation type, and passenger type does not belong to the seat reservation rule, determining the matching result to be a failed match.
[0009] Optionally, before obtaining the seat reservation plan for the flight the passenger is taking, the method also includes: determining whether a seat reservation field in the passenger information message is empty; if the seat reservation field is empty, executing the step of obtaining the seat reservation plan for the flight the passenger is taking; if the seat reservation field is not empty, determining whether the field value of the seat reservation field is in a preset seat number format; if the field value of the seat reservation field is not in a preset seat number format, executing the step of obtaining the seat reservation plan for the flight the passenger is taking; if the field value of the seat reservation field is in a preset seat number format, determining whether the seat number corresponding to the field value is a target seat number; if the seat number is not the target seat number, determining that the passenger's reserved position does not need to be adjusted; if the seat number is the target seat number, determining that the passenger's reserved position needs to be adjusted.
[0010] Optionally, before determining that the passenger's reserved seat needs to be adjusted, the method also includes: determining whether the seat reservation channel in the passenger information message is a target channel; if the seat reservation channel is the target channel, determining that the passenger's reserved seat needs to be adjusted; if the seat reservation channel is not the target channel, determining that the passenger's reserved seat does not need to be adjusted.
[0011] Optionally, the method also includes: receiving a seat reservation rule update message, and parsing the seat reservation rule update message, wherein the seat reservation rule update message includes at least one of the following: adding a rule message, deleting a rule message, modifying a rule message, and querying a rule message; judging whether an abnormality occurs in the parsing process of the seat reservation rule update message; in the case of an abnormality in the parsing process, issuing a first prompt message, and in the case of no abnormality in the parsing process, verifying the parameters in the seat reservation rule update message, wherein the first prompt message is used to prompt that the rule update fails; in the case of failure of the parameter verification, issuing a first prompt message, and in the case of passing the parameter verification, judging whether there is a conflict between the rule to be updated and the existing seat reservation rule; in the case of a conflict between the rule to be updated and the existing seat reservation rule, issuing a first prompt message, and in the case of no conflict between the rule to be updated and the existing seat reservation rule, updating the seat reservation rule based on the rule to be updated.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a seat reservation device is provided. The device includes: a receiving unit, which is used to receive a passenger information message and parse the passenger information message to obtain the passenger type and flight information of the passenger; a matching unit, which is used to match the passenger type and flight information with a preset seat reservation rule to obtain a matching result, wherein the seat reservation rule includes a variety of flight types and passenger types that need to be reserved for seats; an acquisition unit, which is used to obtain the seat reservation plan of the flight that the passenger takes when the matching result indicates a successful match, and judge whether the passenger's reserved position needs to be adjusted based on the seat reservation plan; an updating unit, which is used to update the passenger's reserved position in the seat reservation plan when the passenger's reserved position needs to be adjusted to obtain an updated seat reservation plan.
[0013] In order to achieve the above-mentioned object, according to another aspect of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the seat reservation method described in each embodiment of the present application are implemented.
[0014] Through this application, the following steps are adopted: receiving a passenger information message, parsing the passenger information message, obtaining the passenger type and flight information of the passenger; matching the passenger type and flight information with the preset seat reservation rules to obtain a matching result, wherein the seat reservation rules contain a variety of flight types and passenger types that need to be reserved for seats; when the matching result indicates a successful match, obtaining the seat reservation plan of the flight that the passenger takes, and judging whether the passenger's reserved position needs to be adjusted based on the seat reservation plan; when the passenger's reserved position needs to be adjusted, updating the passenger's reserved position in the seat reservation plan to obtain an updated seat reservation plan, thereby solving the problem of safety risks in the seat reservation position of airline passengers in the related art. By setting as a reservation rule, matching the passenger type and flight information according to the seat reservation rule, if the match is successful, the passenger's reserved position needs to be adjusted, and by updating the passenger's reserved position, it is avoided that the passenger is arranged in a seat with safety risks, thereby achieving the effect of improving the safety of airline passengers during their journey. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0016] Figure 1 is a flowchart of a seat reservation method provided according to an embodiment of the present application;
[0017] Figure 2 is a flow chart of adding seat reservation rules according to an embodiment of the present application;
[0018] Figure 3 is a flowchart of deleting seat reservation rules according to an embodiment of the present application;
[0019] Figure 4 is a flowchart of modifying seat reservation rules provided according to an embodiment of the present application;
[0020] Figure 5 is a flow chart of querying seat reservation rules provided according to an embodiment of the present application;
[0021] Figure 6 is a schematic diagram of a seat reservation system provided according to an embodiment of the present application;
[0022] Figure 7 is a schematic diagram of a seat reservation device provided according to an embodiment of the present application;
[0023] Figure 8 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0028] It should be noted that the information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0029] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flowchart of a seat reservation method provided according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0030] Step S101, receiving a passenger information message, and parsing the passenger information message to obtain the passenger type and flight information of the passenger.
[0031] Specifically, the passenger information message may be a passenger-related information message received by the civil aviation company, such as a PSL (Packet Switched Network Layer, a data message) passenger event message. Passenger types may include ordinary passengers, special passengers, and VIP (Very Important Person) passengers, etc. Special passengers refer to passengers with disabilities, passengers with infants, pregnant women, and other mobility-impaired passengers. Flight information may include information such as flight number, flight date, departure airport, arrival airport, operation type, and terminal. The seat reservation system using the seat reservation method of this embodiment receives and parses the passenger information message, and obtains the passenger type and flight information from the message.
[0032] The format of the PSL passenger event message may be as follows:
[0033] {
[0034] "eventType":"DCS", event type: DCS
[0035] "opStatusType":"PSL", operation type: PSL
[0036] "airline":"CA", airline: CA
[0037] "flightNumber":1234, flight number: 1234
[0038] "flightSuffix":"", flight suffix: empty
[0039] "flightDate":"2023-11-10", flight date: 2023-11-10
[0040] "departureDate":"2023-11-20", departure date: 2023-11-20
[0041] "opAirport":"PEK", operating airport: PEK
[0042] "hostNumber":2, passenger host number: 2
[0043] "departureAirport":"PEK", departure airport: PEK
[0044] "arrivalAirport":"SHA", arrival terminal: SHA
[0045] "passengerFirstname":"SAN", passenger name: SAN
[0046] "passengerSurname":"ZHANG", passenger surname: ZHANG
[0047] "classId":"Y", passenger class: Y
[0048] "reservedSeatNumber":"31A", reserved seat number: 31A
[0049] "paxWithInfant":"N", whether to carry an infant: N
[0050] "ssrCode":"WCHR", special type identifier: WCHR
[0051] "reservedchannel":"RES", reserved channel: RES
[0052] "transactionType":"PQ", operation type: PQ
[0053] }
[0054] Step S102, matching the passenger type and flight information with a preset seat reservation rule to obtain a matching result, wherein the seat reservation rule includes a plurality of flight types and passenger types for which seat reservation is required.
[0055] Specifically, the seat reservation rule can be a rule for adjusting the reserved seats of passengers according to the experience of experts. The seat reservation rule is used to control the granularity of seat reservation, and can control whether the reserved seats of passengers need to be adjusted according to airlines, routes, flights and passenger types. By setting the seat reservation rule, the corresponding passengers and corresponding flights that need to adjust the reserved seats can be screened out. After receiving the passenger information message, the passenger type and flight information in the message are matched with the preset seat reservation rules, for example, it is determined whether the flight number, flight date, departure airport, arrival airport and operation type match the seat reservation rules. If any of them does not match, it is determined that the match fails, indicating that the passenger does not need to adjust the reserved seat; if all match, it is determined that the match is successful, indicating that the passenger needs to adjust the reserved seat.
[0056] The format of the seat reservation rule may be as shown in Table 1.
[0057] Table 1
[0058]
[0059] The commissioning rule message can be as follows:
[0060] {
[0061] "airline":"CA",
[0062] "departureAirport":"PEK",
[0063] "arrivalAirport":"SHA",
[0064] "flightNumberStart":1234,
[0065] "flightNumberEnd":1234,
[0066] "flightSuffix":"",
[0067] "passengerType":["INFT","WCHR"],
[0068] "startDate":"2023-11-10",
[0069] "endDate":"2024-11-10"
[0070] }
[0071] Step S103, when the matching result indicates a successful match, a seat reservation plan for the flight that the passenger takes is obtained, and based on the seat reservation plan, it is determined whether the passenger's reserved seat needs to be adjusted.
[0072] Specifically, the seat reservation plan may be a seat arrangement plan initially generated by the departure host system for all passengers on the flight. If it is determined that the passenger type and flight information in the passenger information message successfully match the seat reservation rule, it means that the passenger may be a special passenger who needs to apply the seat reservation method of this embodiment to adjust the seat. By obtaining the seat reservation plan of the flight that the passenger takes, it is determined whether the passenger is located near the safety channel, and then based on the position of the passenger in the seat reservation plan, it is determined whether the passenger's reserved position needs to be adjusted.
[0073] Step S104: When the reserved seat of the passenger needs to be adjusted, the reserved seat of the passenger in the seat reservation plan is updated to obtain an updated seat reservation plan.
[0074] Specifically, if the passenger's reserved position is near the safety channel, it is determined that the passenger's reserved position needs to be adjusted. At this time, the passenger's reserved position in the seat reservation plan needs to be updated to ensure that the passenger's reserved position is not near the safety channel. For example, the data exchange interface of the departure host system is called to transmit the flight information and passenger information in the message to the seat reservation system to obtain the passenger's seat number information. If the reserved position corresponding to the seat number information needs to be adjusted, the seat reservation interface is called to perform seat reservation operations for the passenger according to the updated seat reservation plan. If the reservation fails. After completing the seat reservation process, the passenger information is recorded, and the seat reservation data of the passenger is no longer processed subsequently.
[0075] The seat reservation method provided in the embodiment of the present application receives a passenger information message and parses the passenger information message to obtain the passenger type and flight information of the passenger; matches the passenger type and flight information with the preset seat reservation rules to obtain a matching result, wherein the seat reservation rules include a variety of flight types and passenger types that need to be reserved for seats; when the matching result indicates a successful match, obtains the seat reservation plan of the flight that the passenger takes, and determines whether the passenger's reserved position needs to be adjusted based on the seat reservation plan; when the passenger's reserved position needs to be adjusted, updates the passenger's reserved position in the seat reservation plan to obtain an updated seat reservation plan, thereby solving the problem of safety risks in the seat reservation position of airline passengers in the related art. By setting as a reservation rule, matching the passenger type and flight information according to the seat reservation rule, if the match is successful, the passenger's reserved position needs to be adjusted, and by updating the passenger's reserved position, it is avoided that the passenger is arranged in a seat with safety risks, thereby achieving the effect of improving the safety of airline passengers during their journey.
[0076] Whether the reserved position of the passenger needs to be adjusted is determined by determining whether it is near the safety passage. Optionally, in the seat reservation method provided in the embodiment of the present application, determining whether the reserved position of the passenger needs to be adjusted based on the seat reservation plan includes: extracting the reserved position of the passenger from the seat reservation plan, and determining whether the reserved position belongs to a position within a target range near the safety passage of the flight; if the reserved position belongs to a position within the target range of the flight, determining that the reserved position of the passenger needs to be adjusted; if the reserved position does not belong to a position within the target range of the flight, determining that the reserved position of the passenger does not need to be adjusted.
[0077] Specifically, after obtaining the seat arrangement plan initially generated by the departure host system for all passengers on the flight, the reserved position initially arranged by the departure host system for the passenger is extracted from the seat reservation plan. The target range may be a position adjacent to the safety passage. If the reserved position is within the target range adjacent to the safety passage, then if the passenger is a special passenger, arranging the passenger near the safety passage may create a safety risk. Therefore, it is determined that the passenger's reserved position needs to be adjusted. If the reserved position is not within the target range near the safety passage, regardless of whether the passenger is a special passenger, it can be determined that the passenger's reserved position does not need to be adjusted.
[0078] This embodiment determines whether the reserved seat of the passenger needs to be adjusted by judging whether the reserved seat is within the target range near the safety channel of the flight. The seat reservation method provided by this embodiment fills the gap of the departure host system automatically reserving special passenger seats near the safety channel for some aircraft models without affecting the user end and the host end, which poses a safety risk, and provides basic safety guarantee for the opening and operation of routes of some aircraft models.
[0079] After determining that the passenger type and flight information successfully match the seat reservation rule, it is also necessary to determine whether the passenger's target identifier is a target value, so as to determine whether the passenger's reserved position needs to be adjusted. Optionally, in the seat reservation method provided in the embodiment of the present application, before obtaining the seat reservation plan for the flight that the passenger is taking, the method also includes: determining the passenger's target identifier and determining whether the target identifier is a target value, wherein the target identifier is used to characterize whether the passenger is in a state where the reserved position needs to be adjusted; when the target identifier is a target value, executing the step of obtaining the seat reservation plan for the flight that the passenger is taking; when the target identifier is not a target value, determining that the passenger's reserved position does not need to be adjusted.
[0080] Specifically, the target identifier can be a special passenger identifier, such as a passenger carrying an infant identifier. When determining that the passenger type and flight information of the passenger successfully match the seat reservation rule, it is also necessary to determine from the passenger information message whether the target identifier is a target value, because some special passengers may not need to have their positions adjusted in a certain flight. For example, the identity information of passenger A once identified that she was a mother carrying an infant, but in a certain flight, passenger A did not carry an infant. Passenger A can successfully match the seat reservation rule. At this time, the value of the target identifier can be set to N, thereby indicating that passenger A did not carry an infant on this flight and did not need to adjust the reserved position. The target value can be Y. If the target identifier is the target value, it means that passenger A carried an infant on this flight and may need to adjust the reserved position. In addition, if the value of the target identifier is not the target value, it is also necessary to check whether the target identifier is configured in the seat reservation rule. If the target identifier is configured, it can be determined whether the passenger's reserved position needs to be adjusted based on the target identifier. If the target identifier is not configured, the seat reservation rule and the passenger cannot be successfully matched regardless of whether the passenger carries an infant. The target identifier needs to be configured in the seat reservation rule.
[0081] This embodiment timely updates the status of the passenger by setting a target identifier, thereby more accurately determining whether the passenger needs to adjust the reserved seat.
[0082] The matching result is determined by judging whether the seat reservation rule contains the target information. Optionally, in the seat reservation method provided in the embodiment of the present application, the passenger type and the flight information are matched with the preset seat reservation rule, and the matching result includes: extracting the target information from the flight information, and extracting the operation type from the passenger information message, wherein the operation type is used to indicate the operation of processing data in the passenger information message, and the target information includes at least one of the following: flight number, flight date, departure airport and arrival airport; judging whether the seat reservation rule contains the target information, the operation type and the passenger type; if the seat reservation rule contains the target information, the operation type and the passenger type, determining the matching result as a successful match; if any one of the target information, the operation type and the passenger type does not belong to the seat reservation rule, determining the matching result as a failed match.
[0083] Specifically, the seat reservation rules can be set from multiple dimensions such as airlines, flights and airports. Therefore, when matching the passenger type and flight information with the seat reservation rules, it is necessary to extract the target information from the flight information. The target information may include flight number, flight date, departure airport and arrival airport, etc. Only when the information in the seat reservation rules corresponds to the target information, operation type and passenger type, the matching result is determined to be a successful match. If any of the target information, operation type or passenger type does not exist in the seat reservation rules, the matching result is determined to be a failed match.
[0084] This embodiment ensures the accuracy of passenger data by determining the matching result between passenger type and flight information and seat reservation rules, thereby ensuring the accuracy of seat reservation rule matching, logical judgment and seat reservation business processing of passenger data by the seat reservation system.
[0085] Optionally, in the seat reservation method provided in the embodiment of the present application, before obtaining the seat reservation plan of the flight the passenger is taking, the method also includes: determining whether the seat reservation field in the passenger information message is empty; if the seat reservation field is empty, executing the step of obtaining the seat reservation plan of the flight the passenger is taking; if the seat reservation field is not empty, determining whether the field value of the seat reservation field is in a preset seat number format; if the field value of the seat reservation field is not in a preset seat number format, executing the step of obtaining the seat reservation plan of the flight the passenger is taking; if the field value of the seat reservation field is in a preset seat number format, determining whether the seat number corresponding to the field value is a target seat number; if the seat number is not the target seat number, determining that the passenger's reserved position does not need to be adjusted; if the seat number is the target seat number, determining that the passenger's reserved position needs to be adjusted.
[0086] Specifically, the seat reservation field is a field used to indicate whether the departure host system has reserved a seat for the passenger in advance. If the seat reservation field is empty, it means that the departure host system has not reserved a seat for the passenger. At this time, the step of obtaining the seat reservation plan for the flight the passenger is taking can be performed. If the seat reservation field is not empty, it means that the departure host system has reserved a seat for the passenger. At this time, it is necessary to determine whether the field value of the seat reservation field is in a preset seat number format, such as a two-digit seat number. If the field value is not in the preset seat number format, it means that the field value is not required, and the step of obtaining the seat reservation plan for the flight the passenger is taking needs to be performed. If the field value is in the preset seat number format, then by judging whether the seat number corresponding to the field value is the target seat number, it is determined whether the passenger's reserved position needs to be adjusted. The target seat number can be the seat number of the safety channel attachment.
[0087] This embodiment compares the field format in the passenger information message with the preset format, thereby ensuring the accuracy of passenger information message processing.
[0088] Optionally, in the seat reservation method provided in the embodiment of the present application, before determining that the passenger's reserved position needs to be adjusted, the method also includes: judging whether the seat reservation channel in the passenger information message is the target channel; if the seat reservation channel is the target channel, determining that the passenger's reserved position needs to be adjusted; if the seat reservation channel is not the target channel, determining that the passenger's reserved position does not need to be adjusted.
[0089] Specifically, the target channel may be RES (Reservation, reservation system), and by judging whether the reservation channel in the message is RES, if it is not RES, it is determined that the passenger's reserved position does not need to be adjusted, and if it is RES, it is determined that the passenger's reserved position needs to be adjusted. This embodiment determines whether the passenger's reserved position needs to be adjusted by judging whether the seat reservation channel in the passenger information message is the target channel, thereby ensuring that the seat reservation method of this embodiment is executed only when the seat reservation channel is the target channel, avoiding the influence of other seat reservation channels on the seat reservation method, and improving system security.
[0090] The seat reservation rule can be modified in real time according to the seat reservation rule update message. Optionally, in the seat reservation method provided in the embodiment of the present application, the method also includes: receiving a seat reservation rule update message, and parsing the seat reservation rule update message, wherein the seat reservation rule update message includes at least one of the following: adding a rule message, deleting a rule message, modifying a rule message and querying a rule message; judging whether there is an abnormality in the parsing process of the seat reservation rule update message; in the case of an abnormality in the parsing process, issuing a first prompt message, and in the case of no abnormality in the parsing process, verifying the parameters in the seat reservation rule update message, wherein the first prompt message is used to prompt that the rule update fails; in the case of failure to pass the parameter verification, issuing a first prompt message, and in the case of passing the parameter verification, judging whether there is a conflict between the rule to be updated and the existing seat reservation rule; in the case of a conflict between the rule to be updated and the existing seat reservation rule, issuing a first prompt message, and in the case of no conflict between the rule to be updated and the existing seat reservation rule, updating the seat reservation rule based on the rule to be updated.
[0091] Specifically, the seat reservation rules can be updated at any time based on expert experience, and the updating methods may include adding rules, deleting rules, modifying rules, and querying rules. Figure 2 is a flow chart of adding seat reservation rules according to an embodiment of the present application, such as Figure 2 As shown, a message for adding rules is received. The received message is parsed. If a parsing exception occurs, the first prompt message indicating failure to add rules is returned. If no exception occurs, the legality of each parameter in the message is checked. If an illegal field occurs, the first prompt message is returned. If no exception occurs, the rules of the message content are compared with the existing rules in the database. There should be no overlap with the existing rules. If there is, it is considered that the inserted rule conflicts with the existing rule, and the first prompt message is returned. If no exception occurs, the rule is inserted into the database. If an insertion exception occurs, the first prompt message is returned. If no exception occurs, a prompt message indicating successful rule addition is returned.
[0092] Figure 3 is a flowchart of deleting seat reservation rules according to an embodiment of the present application, such as Figure 3 As shown, a message for deleting rules is received. The received message is parsed. If a parsing exception occurs, the first prompt message is returned. If no exception occurs, the legality of each parameter in the message is checked. If an illegal field occurs, the first prompt message is returned. If no exception occurs, the rule is deleted from the database according to the unique primary key in the message. If a deletion exception occurs, the first prompt message is returned. If no exception occurs, a prompt message indicating that the rule is successfully deleted is returned.
[0093] Figure 4 is a flowchart of modifying seat reservation rules according to an embodiment of the present application, such as Figure 4 As shown, a message for modifying rules is received. The received message is parsed. If a parsing exception occurs, the first prompt message is returned. If no exception occurs, the legality of each parameter in the message is checked. If an illegal field occurs, the first prompt message is returned. If no exception occurs, the rules of the message content are compared with the existing rules in the database. There should be no overlap with the existing rules. If there is, it is considered that the modified rules conflict with the existing rules, and the first prompt message is returned. If no exception occurs, the rules are updated to the database. If an update exception occurs, the first prompt message is returned. If no exception occurs, a prompt message indicating that the rule modification is successful is returned.
[0094] Figure 5 is a flowchart of querying seat reservation rules according to an embodiment of the present application, such as Figure 5 As shown, a query rule message is received. The received message is parsed, and if a parsing exception occurs, the first prompt information is returned. If no exception occurs, the legality of each parameter in the message is checked. If an illegal field occurs, the first prompt information is returned. If no exception occurs, the database is queried according to the message conditions. If a query exception occurs, the first prompt information is returned. If no exception occurs, the queried rule list is returned.
[0095] This embodiment updates the seat reservation rules so that users can configure and manage the seat reservation rules according to flight dimensions, airline dimensions, and passenger type dimensions according to their own business needs, thereby improving the flexibility of the seat reservation method.
[0096] According to another embodiment of the present application, a seat reservation system is also provided. Figure 6 Schematic diagram of a seat reservation system provided according to an embodiment of the present application. Figure 6 As shown, the system includes: a production rule management component and a business processing component.
[0097] The production rule management component includes rule management, adding rules, deleting rules, modifying rules, and querying rules. Rules are used to control the granularity of seat reservations. By configuring seat reservation rules, seat reservations can be controlled according to airlines, routes, flights, and types of special passengers.
[0098] The business processing component is used to listen to the PSL processing completion event message, parse the event message, obtain passenger data, match the seat reservation rules, and determine whether the flight data and passenger data match the seat reservation rules. If they match the seat reservation rules, the seat plan is obtained. After obtaining the seat plan, the seat reservation interface is called to complete the passenger seat reservation.
[0099] This embodiment, through the seat reservation system, fills the deficiency of the departure host system in automatically reserving seats for special passengers of some aircraft models without affecting the user side and the host side, and provides a basic guarantee for the opening and operation of routes of some aircraft models. Receiving and processing PSL passenger event messages ensures the accuracy of passenger data, thereby ensuring the accuracy of the seat reservation system's rule matching, logical judgment of passenger data, and passenger seat reservation business processing. Users can manage seat reservations according to their own business needs, according to the flight dimension, airline dimension, and passenger type dimension, through the configuration management of seat reservation rules, which has strong flexibility.
[0100] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0101] The embodiment of the present application also provides a seat reservation device. It should be noted that the seat reservation device of the embodiment of the present application can be used to execute the seat reservation method provided by the embodiment of the present application. The seat reservation device provided by the embodiment of the present application is introduced below.
[0102] Figure 7 Schematic diagram of a seat reservation device provided according to an embodiment of the present application. Figure 7 As shown, the device comprises:
[0103] The receiving unit 701 is used to receive the passenger information message and parse the passenger information message to obtain the passenger type and flight information of the passenger;
[0104] A matching unit 702, configured to match the passenger type and flight information with a preset seat reservation rule to obtain a matching result, wherein the seat reservation rule includes a plurality of flight types and passenger types for which seat reservation is required;
[0105] The acquisition unit 703 is used to acquire the seat reservation plan of the flight that the passenger takes when the matching result indicates that the match is successful, and determine whether the passenger's reserved position needs to be adjusted based on the seat reservation plan;
[0106] The updating unit 704 is used to update the reserved position of the passenger in the seat reservation plan when the reserved position of the passenger needs to be adjusted to obtain an updated seat reservation plan.
[0107] The seat reservation device provided in the embodiment of the present application receives a passenger information message through a receiving unit 701, and parses the passenger information message to obtain the passenger type and flight information of the passenger; the matching unit 702 matches the passenger type and flight information with a preset seat reservation rule to obtain a matching result, wherein the seat reservation rule includes a plurality of flight types and passenger types that need to be seat reserved; the obtaining unit 703 obtains the seat reservation plan of the flight taken by the passenger when the matching result indicates a successful match, and determines whether the passenger's reserved position needs to be adjusted based on the seat reservation plan; the updating unit 704 updates the passenger's reserved position in the seat reservation plan when the passenger's reserved position needs to be adjusted to obtain an updated seat reservation plan, thereby solving the problem of safety risks in the seat reservation position of airline passengers in the related art, by setting as a reservation rule, matching the passenger type and flight information according to the seat reservation rule, and if the match is successful, the passenger's reserved position needs to be adjusted, and the passenger's reserved position is updated to avoid being arranged in a seat with safety risks, thereby achieving the effect of improving the safety of airline passengers during their journey.
[0108] Optionally, in the seat reservation device provided in the embodiment of the present application, the acquisition unit 703 includes: a first extraction module, used to extract the passenger's reserved position from the seat reservation plan, and determine whether the reserved position belongs to a position within a target range near the flight's safety channel; a first determination module, used to determine that the passenger's reserved position needs to be adjusted when the reserved position belongs to a position within the target range of the flight; and a second determination module, used to determine that the passenger's reserved position does not need to be adjusted when the reserved position does not belong to a position within the target range of the flight.
[0109] Optionally, in the seat reservation device provided in the embodiment of the present application, the device also includes: a first determination unit, used to determine the target identifier of the passenger and determine whether the target identifier is a target value, wherein the target identifier is used to characterize whether the passenger is in a state where the reserved position needs to be adjusted; a first execution unit, used to execute the step of obtaining the seat reservation plan for the flight that the passenger is taking when the target identifier is the target value; and a second determination unit, used to determine that the passenger's reserved position does not need to be adjusted when the target identifier is not the target value.
[0110] Optionally, in the seat reservation device provided in the embodiment of the present application, the matching unit 702 includes: a second extraction module, used to extract target information from the flight information, and to extract an operation type from the passenger information message, wherein the operation type is used to indicate the operation of processing data in the passenger information message, and the target information includes at least one of the following: flight number, flight date, departure airport and arrival airport; a judgment module, used to judge whether the seat reservation rule contains the target information, operation type and passenger type; a third determination module, used to determine that the matching result is a successful match when the seat reservation rule contains the target information, operation type and passenger type; and a fourth determination module, used to determine that the matching result is a failed match when any one of the target information, operation type and passenger type does not belong to the seat reservation rule.
[0111] Optionally, in the seat reservation device provided in the embodiment of the present application, the device also includes: a first judgment unit, used to judge whether the seat reservation field in the passenger information message is empty; a second execution unit, used to execute the step of obtaining the seat reservation plan of the flight that the passenger takes when the seat reservation field is empty; the second judgment unit, used to judge whether the field value of the seat reservation field is in a preset seat number format when the seat reservation field is not empty; a third execution unit, used to execute the step of obtaining the seat reservation plan of the flight that the passenger takes when the field value of the seat reservation field is not in the preset seat number format; the third judgment unit, used to judge whether the seat number corresponding to the field value is the target seat number when the field value of the seat reservation field is in the preset seat number format; the third determination unit, used to determine that the passenger's reserved position does not need to be adjusted when the seat number is not the target seat number; and the fourth determination unit, used to determine that the passenger's reserved position needs to be adjusted when the seat number is the target seat number.
[0112] Optionally, in the seat reservation device provided in the embodiment of the present application, the device also includes: a fourth judgment unit, used to judge whether the seat reservation channel in the passenger information message is a target channel; a fifth determination unit, used to determine that the passenger's reserved position needs to be adjusted when the seat reservation channel is the target channel; and a sixth determination unit, used to determine that the passenger's reserved position does not need to be adjusted when the seat reservation channel is not the target channel.
[0113] Optionally, in the seat reservation device provided in the embodiment of the present application, the device also includes: a parsing unit, which is used to receive a seat reservation rule update message and parse the seat reservation rule update message, wherein the seat reservation rule update message includes at least one of the following: an add rule message, a delete rule message, a modify rule message and a query rule message; a fifth judgment unit, which is used to judge whether there is an abnormality in the parsing process of the seat reservation rule update message; a first prompt unit, which is used to issue a first prompt message when an abnormality occurs in the parsing process, and to verify the parameters in the seat reservation rule update message when no abnormality occurs in the parsing process, wherein the first prompt message is used to prompt that the rule update fails; a second prompt unit, which is used to issue a first prompt message when the parameter verification fails, and to determine whether there is a conflict between the rule to be updated and the existing seat reservation rule when the parameter verification passes; a third prompt unit, which is used to issue a first prompt message when the rule to be updated conflicts with the existing seat reservation rule, and to update the seat reservation rule based on the rule to be updated when there is no conflict between the rule to be updated and the existing seat reservation rule.
[0114] The seat reservation device includes a processor and a memory. The receiving unit 701, matching unit 702, acquisition unit 703 and updating unit 704 are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0115] The processor includes a kernel, which calls the corresponding program unit from the memory. The kernel can be set to one or more, and the safety of air passengers during their journey can be improved by adjusting the kernel parameters.
[0116] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0117] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a seat reservation method is implemented.
[0118] An embodiment of the present invention provides a processor, which is used to run a program, wherein the seat reservation method is executed when the program is run.
[0119] Figure 8 is a schematic diagram of an electronic device provided according to an embodiment of the present application. Figure 8As shown, the electronic device 801 includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: receiving a passenger information message, parsing the passenger information message, and obtaining the passenger type and flight information of the passenger; matching the passenger type and flight information with the preset seat reservation rules to obtain a matching result, wherein the seat reservation rules include a variety of flight types and passenger types that require seat reservations; when the matching result indicates a successful match, obtaining the seat reservation plan of the flight that the passenger is taking, and judging whether the passenger's reserved position needs to be adjusted based on the seat reservation plan; when the passenger's reserved position needs to be adjusted, updating the passenger's reserved position in the seat reservation plan to obtain an updated seat reservation plan. The device in this article can be a server, PC, PAD, mobile phone, etc.
[0120] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: receiving a passenger information message, and parsing the passenger information message to obtain the passenger type and flight information of the passenger; matching the passenger type and flight information with a preset seat reservation rule to obtain a matching result, wherein the seat reservation rule includes a variety of flight types and passenger types that require seat reservations; when the matching result indicates a successful match, obtaining a seat reservation plan for the flight that the passenger is taking, and determining whether the passenger's reserved position needs to be adjusted based on the seat reservation plan; when the passenger's reserved position needs to be adjusted, updating the passenger's reserved position in the seat reservation plan to obtain an updated seat reservation plan.
[0121] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0122] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0123] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0125] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0126] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0127] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0128] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0129] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0130] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A seat reservation method, characterized in that: include: Receiving a passenger information message, and parsing the passenger information message to obtain the passenger type and flight information of the passenger; Matching the passenger type and the flight information with a preset seat reservation rule to obtain a matching result, wherein the seat reservation rule includes a plurality of flight types and passenger types for which seat reservation is required; If the matching result indicates a successful match, obtaining a seat reservation plan for the flight that the passenger is taking, and determining whether the reserved seat of the passenger needs to be adjusted based on the seat reservation plan; In the case where the reserved position of the passenger needs to be adjusted, the reserved position of the passenger in the seat reservation plan is updated to obtain an updated seat reservation plan.
2. The method according to claim 1, characterized in that Determining whether the reserved seat of the passenger needs to be adjusted based on the seat reservation plan includes: Extracting the passenger's reserved position from the seat reservation plan, and determining whether the reserved position is within a target range near a flight's safety channel; If the reserved position is within the target range of the flight, determining that the reserved position of the passenger needs to be adjusted; In the case that the reserved position does not belong to a position within the target range of the flight, it is determined that the reserved position of the passenger does not need to be adjusted.
3. The method according to claim 1, characterized in that: Before obtaining the seat reservation plan for the flight that the passenger takes, the method further includes: Determining a target identifier of the passenger, and judging whether the target identifier is a target value, wherein the target identifier is used to indicate whether the passenger is in a state where a reserved seat needs to be adjusted; When the target identifier is a target value, performing a step of obtaining a seat reservation plan for the flight that the passenger takes; When the target identifier is not the target value, it is determined that the reserved position of the passenger does not need to be adjusted.
4. The method according to claim 1, characterized in that: The passenger type and the flight information are matched with the preset seat reservation rule, and the matching results include: Extracting target information from the flight information, and extracting an operation type from the passenger information message, wherein the operation type is used to indicate an operation of processing data of the passenger information message, and the target information includes at least one of the following: flight number, flight date, departure airport, and arrival airport; Determining whether the seat reservation rule includes the target information, the operation type, and the passenger type; In a case where the seat reservation rule includes the target information, the operation type, and the passenger type, determining that the matching result is a successful match; In the case that any one of the target information, the operation type and the passenger type does not belong to the seat reservation rule, the matching result is determined to be a matching failure.
5. The method according to claim 1, characterized in that: Before obtaining the seat reservation plan for the flight that the passenger takes, the method further includes: Determining whether the seat reservation field in the passenger information message is empty; When the seat reservation field is empty, performing the step of obtaining a seat reservation plan for the flight that the passenger takes; If the seat reservation field is not empty, determining whether the field value of the seat reservation field is in a preset seat number format; When the field value of the seat reservation field is not in the preset seat number format, performing the step of obtaining a seat reservation plan for the flight that the passenger takes; In the case where the field value of the seat reservation field is in the preset seat number format, determining whether the seat number corresponding to the field value is the target seat number; In the case where the seat number is not the target seat number, determining that the reserved seat of the passenger does not need to be adjusted; When the seat number is the target seat number, it is determined that the reserved seat of the passenger needs to be adjusted.
6. The method according to claim 5, characterized in that Before determining that the reserved seat of the passenger needs to be adjusted, the method further includes: Determining whether the seat reservation channel in the passenger information message is a target channel; In a case where the seat reservation channel is the target channel, determining that the reserved seat of the passenger needs to be adjusted; In the case that the seat reservation channel is not the target channel, it is determined that the reserved seat of the passenger does not need to be adjusted.
7. The method according to claim 1, characterized in that The method further comprises: Receiving a seat reservation rule update message, and parsing the seat reservation rule update message, wherein the seat reservation rule update message includes at least one of the following: adding a rule message, deleting a rule message, modifying a rule message, and querying a rule message; Determining whether an abnormality occurs during the parsing process of the seat reservation rule update message; In the case where an abnormality occurs during the parsing process, a first prompt message is issued; in the case where no abnormality occurs during the parsing process, a parameter in the seat reservation rule update message is verified, wherein the first prompt message is used to prompt that the rule update fails; If the parameter verification fails, the first prompt information is issued; if the parameter verification passes, it is determined whether the rule to be updated conflicts with the existing seat reservation rule; In the case where the rule to be updated conflicts with the existing seat reservation rule, the first prompt information is issued; in the case where the rule to be updated does not conflict with the existing seat reservation rule, the seat reservation rule is updated based on the rule to be updated.
8. A seat reservation device, characterized in that: include: A receiving unit, used to receive a passenger information message and parse the passenger information message to obtain the passenger type and flight information of the passenger; A matching unit, configured to match the passenger type and the flight information with a preset seat reservation rule to obtain a matching result, wherein the seat reservation rule includes a plurality of flight types and passenger types for which seat reservation is required; an acquisition unit, configured to acquire a seat reservation plan of the flight taken by the passenger if the matching result indicates a successful match, and determine whether the reserved seat of the passenger needs to be adjusted based on the seat reservation plan; The updating unit is used to update the reserved position of the passenger in the seat reservation plan when the reserved position of the passenger needs to be adjusted to obtain an updated seat reservation plan.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the seat reservation method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: The invention comprises one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the seat reservation method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Aircraft seat reservation method and system
CN110334827A
Configurable seat adjustment method and device, storage medium and equipment
CN112734259A
Seat reserving method and device
CN114661768A
Seat map conflict resolution method and device, electronic equipment and computer storage medium
CN115423164A
Passenger seat distribution method and device
CN115470955A