Baggage message correction forwarding method and device, electronic equipment and storage medium
By receiving and parsing baggage source messages at the airport, and utilizing the Redis distributed database for storage and forwarding, the problem of baggage data statistical errors was solved, and accurate forwarding and statistics of baggage data were achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TRAVELSKY TECHNOLOGY LIMITED
- Filing Date
- 2022-08-23
- Publication Date
- 2026-05-29
AI Technical Summary
In existing technologies, the statistical analysis of airport baggage-related data suffers from significant errors due to the instability of manual operations, resulting in the missending or omission of abnormal messages.
By receiving baggage source messages, parsing and storing them in the distributed database Redis, and forwarding arrival messages to the designated airport based on the baggage information in Redis, the system also corrects messages when there are changes in the itinerary, including deletion and updating, to ensure accurate message forwarding.
This improved the accuracy of airport baggage-related data statistics and avoided data deviations caused by abnormal messages.
Smart Images

Figure CN115344591B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a baggage message correction and forwarding method, apparatus, electronic device, and storage medium. Background Technology
[0002] Currently, it is common for passengers to cancel their baggage check-in or their travel plans after changing them. Furthermore, most airport departure check-in processes are manually operated, and the stability of the check-in and baggage drop-off systems varies, which can easily lead to deletion messages under abnormal circumstances.
[0003] In existing technologies, the original platform processing system processes messages uniformly according to normal conditions, which leads to the missending or omission of deleted messages to the corresponding destination airports, resulting in significant errors when airports conduct baggage-related data statistical analysis. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a baggage message correction and forwarding method, apparatus, electronic device, and storage medium to improve the accuracy of baggage-related data statistics at airports.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] The first aspect of this invention discloses a baggage message correction and forwarding method, the method comprising:
[0007] Receive baggage source messages generated by any passenger's checked baggage;
[0008] Parse the baggage source message to obtain the baggage information corresponding to the baggage, and store the baggage information in the distributed database Redis. The baggage information includes at least the passenger information, baggage number, flight date, flight number, and flight segment information of the passenger.
[0009] Based on each piece of baggage information in the Redis, forward the passenger's arrival message to the airport indicated by the baggage information.
[0010] Optionally, forwarding the passenger's arrival message to the arrival airport indicated by each piece of baggage information in Redis includes:
[0011] Retrieve the flight segment information indicating the arrival airport from each piece of baggage information in Redis;
[0012] Based on the flight segment information, determine the last segment of the flight segment information;
[0013] Based on the last piece of information, determine the arrival airport indicated by the last piece of information, and forward the passenger's arrival message to the arrival airport.
[0014] Optional, also includes:
[0015] Receive baggage change message corresponding to the passenger's baggage;
[0016] Based on the baggage change message, determine whether the passenger's trip has been cancelled;
[0017] If the trip is cancelled, receive the deletion message corresponding to the passenger's baggage;
[0018] Parse the deletion message to obtain the baggage number, flight date, flight number, and flight segment information of the baggage;
[0019] Find the first segment information in Redis that matches the baggage number, flight date, flight number, and flight segment information;
[0020] Based on the information of the first flight segment, determine the last segment of information of the first flight segment;
[0021] Based on the last piece of information, determine the arrival airport indicated by the last piece of information, forward the deletion message to the arrival airport, and set the first flight segment information stored in Redis to null.
[0022] Optional, also includes:
[0023] If the itinerary is updated, receive the update message corresponding to the passenger's baggage;
[0024] Parse the update message to obtain the baggage number, flight date, flight number, and latest flight segment information of the baggage;
[0025] Find the second segment information in Redis that matches the baggage number, flight date, and flight number;
[0026] The latest flight segment information is used to update the second flight segment information in Redis, resulting in the updated flight segment information in Redis;
[0027] Based on the updated flight segment information, determine the last segment of the updated flight segment information;
[0028] Based on the last piece of information, determine the arrival airport indicated by the last piece of information, and forward the passenger's arrival message to the arrival airport.
[0029] A second aspect of this invention discloses a baggage message correction and forwarding device, the device comprising:
[0030] The first receiving module is used to receive baggage source messages generated by any passenger's checked baggage;
[0031] The first parsing module is used to parse the baggage source message, obtain the baggage information corresponding to the baggage, and store the baggage information in the distributed database Redis. The baggage information includes at least the passenger information, baggage number, flight date, flight number, and flight segment information of the passenger.
[0032] The first forwarding module is used to forward the passenger's arrival message to the arrival airport indicated by each piece of baggage information in the Redis.
[0033] Optionally, the first forwarding module includes:
[0034] The acquisition unit is used to acquire the flight segment information indicating the arrival airport from each piece of baggage information in the Redis;
[0035] A determining unit is configured to determine the last segment of the flight segment information based on the flight segment information;
[0036] The forwarding unit is used to determine the arrival airport indicated by the last segment of information based on the last segment of information, and forward the passenger's arrival message to the arrival airport.
[0037] Optional, also includes:
[0038] The second receiving module is used to receive baggage change messages corresponding to the passenger's baggage;
[0039] The judgment module is used to determine whether the passenger's itinerary has been cancelled based on the baggage change message. If the itinerary is cancelled, the third receiving module is executed; if the itinerary is updated, the fourth receiving module is executed.
[0040] The third receiving module is used to receive the deletion message corresponding to the passenger's luggage;
[0041] The second parsing module is used to parse the deletion message to obtain the baggage number, flight date, flight number, and flight segment information of the baggage;
[0042] The first search module is used to search for the first segment information in Redis that matches the baggage number, the flight date, the flight number, and the segment information;
[0043] The first determining module is used to determine the last segment of information of the first flight segment based on the first flight segment information;
[0044] The second forwarding module is used to determine the arrival airport indicated by the last segment of information based on the last segment of information, forward the deletion message to the arrival airport, and set the first flight segment information stored in Redis to null.
[0045] Optional, also includes:
[0046] The fourth receiving module is used to receive update messages corresponding to the passenger's luggage;
[0047] The third parsing module is used to parse the update message to obtain the baggage number, flight date, flight number and latest flight segment information of the baggage;
[0048] The second search module is used to search for second segment information in Redis that matches the baggage number, the flight date, and the flight number;
[0049] The update module is used to update the second segment information in Redis using the latest segment information, so as to obtain the updated segment information in Redis;
[0050] The second determining module is used to determine the last segment of the updated flight segment information based on the updated flight segment information;
[0051] The third forwarding module is used to determine the arrival airport indicated by the last segment of information based on the last segment of information, and forward the passenger's arrival message to the arrival airport.
[0052] A third aspect of the present invention discloses an electronic device for running a program, wherein the program executes the baggage message correction and forwarding method as described in any one of the first aspects of the present invention.
[0053] A fourth aspect of the present invention discloses a computer storage medium, the storage medium including a baggage message correction and forwarding program, wherein the program, when executed by a processor, implements the baggage message correction and forwarding method as described in any one of the first aspects of the present invention.
[0054] Based on the above embodiments of the present invention, a baggage message correction and forwarding method, apparatus, electronic device, and storage medium are provided. The method includes: receiving a baggage source message generated by any passenger's checked baggage; parsing the baggage source message to obtain baggage information corresponding to the baggage, and storing the baggage information in a distributed database Redis, wherein the baggage information includes at least the passenger's passenger information, baggage number, flight date, flight number, and flight segment information; and forwarding the passenger's arrival message to the arrival airport indicated by the baggage information according to each piece of baggage information in Redis. In this solution, upon receiving a baggage source message, the baggage source message is parsed, the obtained baggage information is stored in the distributed database Redis, and the passenger's arrival message is forwarded to the arrival airport indicated by the baggage information according to the baggage information in Redis, thereby improving the accuracy of the airport's baggage-related data statistics. Attached Figure Description
[0055] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0056] Figure 1 A flowchart illustrating a baggage message correction and forwarding method provided in an embodiment of the present invention;
[0057] Figure 2 This is a schematic diagram of a process for forwarding passenger arrival messages to the arrival airport of the baggage information indicator, provided by an embodiment of the present invention.
[0058] Figure 3 A flowchart illustrating another baggage message correction and forwarding method provided in an embodiment of the present invention;
[0059] Figure 4 This is a schematic diagram of the structure of a baggage message correction and forwarding device provided in an embodiment of the present invention;
[0060] Figure 5 This is a schematic diagram of the structure of an electronic device 50 provided in an embodiment of the present invention. Detailed Implementation
[0061] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0062] In this application, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0063] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein.
[0064] As can be seen from the background technology, the existing platform processing system processes messages uniformly according to normal conditions, which leads to the missending or omission of deleted messages to the corresponding destination airports, resulting in large errors when airports conduct baggage-related data statistical analysis.
[0065] Therefore, embodiments of the present invention provide a baggage message correction and forwarding method, apparatus, electronic device, and storage medium. In this solution, when a baggage source message is received, the baggage source message is parsed, the obtained baggage information is stored in a distributed database Redis, and the passenger's arrival message is forwarded to the arrival airport indicated by the baggage information according to the baggage information in Redis, thereby improving the accuracy of the airport's baggage-related data statistics.
[0066] like Figure 1 The diagram shown is a flowchart illustrating a baggage message correction and forwarding method provided in an embodiment of the present invention.
[0067] In this embodiment of the invention, the baggage message correction and forwarding method is applicable to a passenger baggage end-to-end tracking service system.
[0068] The baggage message correction and forwarding method mainly includes the following steps:
[0069] Step S101: Receive baggage source message generated by any passenger's checked baggage.
[0070] In step S101, the BaggageSourceMessage (BSM) is a standard format message sent by the departure control or check-in system when staff receive or perform business operations on passengers with baggage. It contains data items such as flight information, passenger information, and basic baggage information.
[0071] In the specific implementation of step S101, the passenger baggage full-process tracking service system obtains baggage source messages generated by the departure systems of airports in various locations in real time. In other words, it obtains baggage source messages generated by passenger check-in and baggage check-in at airports in various locations in real time. In other words, the passenger baggage full-process tracking service system receives baggage source messages generated by any passenger's checked baggage.
[0072] Step S102: Parse the baggage source message to obtain the baggage information corresponding to the baggage, and store the baggage information in the distributed database Redis.
[0073] In step S102, the baggage information includes at least the passenger's passenger information, baggage number, flight date, flight number, and flight segment information.
[0074] It should be noted that the distributed database (RemoteDictionaryServer, Redis) is pre-built and is an open-source, in-memory or persistent log-based key-value database.
[0075] In the specific implementation step S102, after receiving the baggage source message, the passenger baggage full-process tracking service system parses the relevant message fields in the baggage source message according to the "Civil Aviation Baggage Message Data Interaction Specification" to obtain the baggage information corresponding to the baggage, that is, the baggage number, flight date, flight number and flight segment information of the corresponding baggage, and stores the baggage information in the distributed database Redis, that is, stores the baggage number, flight date, flight number and flight segment information in the distributed database Redis.
[0076] Step S103: Based on each baggage information in Redis, forward the passenger's arrival message to the arrival airport indicated by the baggage information.
[0077] In the specific implementation of step S103, the passenger baggage full-process tracking service system determines the arrival airport indicated by the baggage information based on the baggage information corresponding to each baggage in Redis, and forwards the passenger's arrival message to the arrival airport, that is, forwards the passenger's baggage arrival message to the arrival airport.
[0078] It should be noted that the Passenger Baggage Tracking Service will only forward messages to users who have subscribed to the rules of the Passenger Baggage Tracking Service at the airport.
[0079] Understandably, if an airport user subscribes to a certain message on the Passenger Baggage Tracking Service System, the system will forward the message to the airport user who subscribed to that message.
[0080] For example, if a user at Shenzhen Airport subscribes to the Passenger Baggage Tracking Service System with the rule of receiving all inbound baggage messages from China Eastern Airlines flights from other domestic airports to Shenzhen Airport, the Passenger Baggage Tracking Service System will convert all outbound baggage messages from China Eastern Airlines flights from domestic airports to Shenzhen into inbound messages for Shenzhen Airport, and then send them to Shenzhen Airport.
[0081] Optionally, step S103 involves forwarding the passenger's arrival message to the airport indicated by the baggage information, based on each baggage item in Redis. Figure 2 The diagram shown is a flowchart illustrating the process of forwarding passenger arrival messages to the arrival airport of the baggage information system, according to an embodiment of the present invention. The process mainly includes the following steps:
[0082] Step S201: Retrieve the flight segment information used to indicate the arrival airport from each baggage information in Redis.
[0083] In the specific implementation of step S201, the passenger baggage end-to-end tracking service system determines the flight segment information used to indicate the arrival airport in the baggage information based on the baggage information corresponding to each baggage in Redis, and obtains the flight segment information.
[0084] Step S202: Based on the flight segment information, determine the last segment of the flight segment information.
[0085] In the specific implementation step S202, the passenger baggage full-process tracking service system analyzes the acquired flight segment information based on the flight segment information and determines the last segment of the flight segment information.
[0086] Step S203: Based on the last piece of information, determine the arrival airport indicated by the last piece of information, and forward the passenger's arrival message to the arrival airport.
[0087] In the specific implementation step S203, the passenger baggage full-process tracking service system analyzes the last segment of the acquired flight segment information, determines the arrival airport indicated by the last segment of information, and forwards the passenger's arrival message to the arrival airport.
[0088] This invention provides a baggage message correction and forwarding method. The method involves receiving a baggage source message generated by any passenger's checked baggage; parsing the baggage source message to obtain the corresponding baggage information; and storing the baggage information in a distributed database Redis. The baggage information includes at least the passenger's information, baggage number, flight date, flight number, and flight segment information. Based on each piece of baggage information in Redis, the method forwards the passenger's arrival message to the airport indicated by the baggage information. In this solution, upon receiving a baggage source message, the method parses the message, stores the obtained baggage information in the distributed database Redis, and forwards the passenger's arrival message to the airport indicated by the baggage information, thereby improving the accuracy of baggage-related data statistics at the airport.
[0089] Based on the above embodiments of the present invention, a baggage message correction and forwarding method is provided, such as... Figure 3 The diagram shown is a flowchart of another baggage message correction and forwarding method provided by an embodiment of the present invention. The method mainly includes the following steps:
[0090] Step S301: Receive baggage source message generated by any passenger's checked baggage.
[0091] Step S302: Parse the baggage source message to obtain the baggage information corresponding to the baggage, and store the baggage information in the distributed database Redis.
[0092] Step S303: Based on each baggage information in Redis, forward the passenger's arrival message to the arrival airport indicated by the baggage information.
[0093] It should be noted that the execution principle and process of steps S301 to S303 above are the same as those of... Figure 1 The execution principles and processes of steps S101 to S103 disclosed herein are the same and can be found elsewhere; they will not be repeated here.
[0094] Step S304: Receive the baggage change message corresponding to the passenger's baggage.
[0095] In the specific implementation of step S304, when a passenger changes their itinerary, the passenger baggage tracking service system will receive the corresponding baggage change message reported by the airport. In other words, the passenger baggage tracking service system receives the baggage change message corresponding to the passenger's baggage.
[0096] It should be noted that itinerary changes include itinerary cancellation and itinerary update. If the itinerary is cancelled, a corresponding deletion message will be received; if the itinerary is updated, a corresponding update message will be received.
[0097] Understandably, an itinerary update for the same passenger and the same baggage itinerary change means that baggage with the same baggage number has a new itinerary. For example, a piece of baggage was initially scheduled to travel from A to B, but was later canceled, generating a deletion message. Then, if the baggage's itinerary is changed to travel from A to C, a new message will be generated.
[0098] Step S305: Based on the baggage change message, determine whether the passenger's itinerary has been cancelled. If yes, proceed to step S306; otherwise, proceed to step S311.
[0099] In the specific implementation of step S305, based on the baggage change message, it is determined whether the passenger's itinerary has been cancelled. If yes, it means the itinerary has been cancelled, and a corresponding deletion message will be received, i.e., step S306 will be executed. If no, it means the itinerary has been changed, and a corresponding update message will be received, i.e., step S311 will be executed.
[0100] Step S306: Receive the deletion message corresponding to the passenger's baggage.
[0101] In the specific implementation of step S306, if it is determined that a passenger's trip has been cancelled, the passenger baggage full-process tracking service system will receive the corresponding deletion message for the passenger's baggage.
[0102] It should be noted that under normal circumstances, the ".O" field will not appear in the deletion message. However, due to certain reasons (possibly human error or system problems), some airports may submit deletion messages with an extra ".O" field to the passenger baggage tracking system. If the corresponding deletion message is sent to the destination airport based only on the flight segment parsed in the message, an extra deletion message will be sent to the airport in the ".O" field, while the airport in the ".F" field, which actually needs to send a deletion message, will miss sending a deletion message.
[0103] It should be noted that the .O item is for connecting flight information.
[0104] Step S307: Parse the deletion message to obtain the baggage number, flight date, flight number, and flight segment information.
[0105] In the specific implementation of step S307, after receiving the deletion message, the passenger baggage full-process tracking service system parses the relevant message fields in the deletion message according to the "Civil Aviation Baggage Message Data Interaction Specification" to obtain the baggage information corresponding to the baggage, that is, the baggage number, flight date, flight number and flight segment information of the corresponding baggage.
[0106] Step S308: Find the first segment information in Redis that matches the baggage number, flight date, flight number, and segment information.
[0107] In the specific implementation of step S308, the passenger baggage full-process tracking service system searches for the first segment information in Redis that matches the baggage number, flight date, flight number and flight segment information based on the baggage information corresponding to each baggage in Redis, and obtains the first segment information.
[0108] Step S309: Based on the information of the first flight segment, determine the last segment of information of the first flight segment.
[0109] In the specific implementation of step S309, the passenger baggage full-process tracking service system analyzes the first segment information based on the acquired first segment information and determines the last segment of the first segment information.
[0110] Step S310: Based on the last segment of information, determine the arrival airport indicated by the last segment of information, forward the deletion message to the arrival airport, and set the first segment information stored in Redis to null.
[0111] In the specific implementation step S310, the passenger baggage full-process tracking service system analyzes the last segment of the first flight segment information based on the last segment of the information, determines the arrival airport indicated by the last segment of the information, forwards a deletion message to the arrival airport, and sets the first flight segment information stored in Redis to empty.
[0112] Step S311: Receive the update message corresponding to the passenger's baggage.
[0113] In the specific implementation of step S311, if it is determined that a passenger's itinerary has been updated, the passenger baggage tracking service system will receive the update message corresponding to the passenger's baggage.
[0114] Step S312: Parse the update message to obtain the baggage number, flight date, flight number, and latest flight segment information.
[0115] In the specific implementation of step S312, after receiving the update message, the passenger baggage full-process tracking service system parses the relevant message fields in the update message according to the "Civil Aviation Baggage Message Data Interaction Specification" to obtain the baggage information corresponding to the baggage, that is, the baggage number, flight date, flight number and latest flight segment information of the corresponding baggage.
[0116] Step S313: Find the second segment information in Redis that matches the baggage number, flight date, and flight number.
[0117] In the specific implementation of step S313, the passenger baggage end-to-end tracking service system searches for the second segment information in Redis that matches the baggage number, flight date, and flight number based on the baggage information corresponding to each baggage in Redis, and obtains the second segment information.
[0118] Step S314: Update the second segment information in Redis with the latest segment information to obtain the updated segment information in Redis.
[0119] In the specific implementation of step S314, the passenger baggage full-process tracking service system updates the latest flight segment information to Redis. That is, it uses the latest flight segment information to update the second flight segment information in Redis, and obtains the updated flight segment information in Redis.
[0120] Step S315: Based on the updated flight segment information, determine the last segment of the updated flight segment information.
[0121] In the specific implementation of step S315, the passenger baggage full-process tracking service system analyzes the updated flight segment information based on the updated flight segment information and determines the last segment of the updated flight segment information.
[0122] Step S316: Based on the last piece of information, determine the arrival airport indicated by the last piece of information, and forward the passenger's arrival message to the arrival airport.
[0123] In the specific implementation of step S316, the passenger baggage full-process tracking service system analyzes the last segment of the updated flight segment information, determines the arrival airport indicated by the last segment of information, and forwards the passenger's arrival message to the arrival airport.
[0124] It should be noted that if the trip is cancelled again in the future, the same processing procedure as steps S306 to S310 will be followed.
[0125] Based on the baggage message correction and forwarding method provided by the embodiments of the present invention, abnormal deletion messages generated by the airport in the event of passenger trip cancellation are corrected and forwarded to the corresponding destination airport, and update messages generated by the airport are forwarded to the corresponding destination airport, so as to improve the accuracy of the airport in performing baggage-related data statistics.
[0126] To better understand the above explanation, an example will be given below for detailed explanation.
[0127] For example, if a passenger named Xinghao checks in one piece of luggage at Shenzhen Bao'an International Airport (SZX) on September 29, 2021, bound for Shanghai Hongqiao International Airport (SHA), the Shenzhen Airport departure host will generate a BSM message and report it to the passenger baggage end-to-end tracking service system. The BSM message is as follows:
[0128] BSM
[0129] .V / 1LSZX / / A message generated locally at Shenzhen Airport with data dictionary version number 1.
[0130] .F / MU5336 / 29SEP / SHA / Y / / Flight number MU5336, flight date September 29, arrival airport Shanghai Hongqiao, passenger cabin class Y
[0131] .N / 3781042301 / / One piece of baggage belonging to China Eastern Airlines with baggage tag number 042301
[0132] .S / Y / 34L / C / 017 / / Y / / Passenger baggage can be loaded, seat number is 34L, passenger status is check-in, boarding number is 017, baggage can be transported
[0133] .W / K / 2 / 30 / / The passenger checked in 2 pieces of luggage with a total weight of 30kg
[0134] .P / 1XING / HAO / / One passenger whose last name is Xing and first name is Hao
[0135] ENDBSM
[0136] Among them, .V is the version and supplementary data item, .F is the departing flight information item, .N is the baggage tag information item, .S is the passenger baggage confirmation data item, .W is the data item such as the number of baggage pieces, weight, size, and type, and .P is the passenger name item.
[0137] After receiving the BSM message, the passenger baggage tracking service system parses the BSM message according to the "Civil Aviation Baggage Message Data Interaction Specification". The system parses the passenger XINGHAO's itinerary segment information as SZX-SHA. At this time, the system stores this segment information in Redis and forwards an arrival message for the passenger at Hongqiao Airport SHA to Hongqiao Airport SHA based on the arrival airport (Hongqiao Airport SHA) of the last segment of the information.
[0138] If a passenger cancels their trip after check-in due to personal reasons, Shenzhen Airport (SZX) will normally generate a deletion message and report it to the passenger baggage tracking system. The normal deletion message in the BSM (Battery Management System) is as follows:
[0139] BSM
[0140] DEL
[0141] .V / 1LSZX
[0142] .F / MU5336 / 29SEP / SHA / Y
[0143] .N / 3781042301
[0144] .S / Y / 34L / C / 017 / / Y
[0145] .W / K / 2 / 30
[0146] .P / 1XING / HAO
[0147] ENDBSM
[0148] However, due to various reasons such as the airport's local check-in system, abnormal situations may occur, resulting in the following deletion message generated by Shenzhen Airport (SZX) at this time, which will have an extra .O item:
[0149] BSM
[0150] DEL
[0151] .V / 1LSZX
[0152] .F / MU5336 / 29SEP / SHA / Y
[0153] .O / CZ327 / 29SEP / PEK / F / / A connecting flight with flight number CZ327, flight date September 29th, destination airport Beijing Capital (PEK), and passenger class F.
[0154] .N / 3781042301
[0155] .S / Y / 34L / C / 017 / / Y
[0156] .W / K / 2 / 30
[0157] .P / 1XING / HAO
[0158] ENDBSM
[0159] Among them, the .O item is the information item for connecting flights.
[0160] At this point, after the deletion message generated under abnormal circumstances was reported to the Passenger Baggage Tracking Service System, the Passenger Baggage Tracking Service System analyzed the message information and obtained the passenger XINGHAO's itinerary segment information as SZX—SHA—PEK.
[0161] If the method of this invention is not used, and only the arrival baggage deletion message is sent to the arrival airport based on the flight segment information, a deletion message for passenger XINGHAO with baggage number 3781042301 arriving at Beijing Capital Airport (PEK) will be sent. However, the actual message to be deleted is the passenger's arrival message at Hongqiao Airport (SHA). This would result in Hongqiao Airport (SHA) missing the deletion of passenger XINGHAO's arrival message, while Beijing Capital Airport (PEK) would receive an extra deletion message for passenger XINGHAO. This would lead to inaccurate and significantly biased statistical data when Hongqiao Airport and Beijing Capital Airport perform baggage-related statistics.
[0162] Therefore, the method of this invention is required. After receiving an abnormal deletion message, the passenger baggage tracking service system parses the message and first looks up the segment information corresponding to the baggage number, flight date, and flight number in Redis. The segment information is found to be SZX-SHA. Then, the deletion message is forwarded to the destination airport (SHA) of the last segment of the segment information SZX-SHA, ignoring the segment information SHA-PEK. Finally, the segment information stored in Redis is set to empty.
[0163] If the passenger subsequently changes their itinerary, the passenger baggage tracking system will receive a change message from Shenzhen Airport (SZX). The system will then parse the message and update the flight segment information (SZX-SHA-PEK) in the Redis database corresponding to the baggage number. If the trip is subsequently cancelled again, the process will be the same. The update message received by the passenger baggage tracking system will be as follows:
[0164] BSM
[0165] .V / 1LSZX
[0166] .F / MU5336 / 29SEP / SHA / Y
[0167] .O / CZ327 / 29SEP / PEK / F
[0168] .N / 3781042301
[0169] .S / Y / 34L / C / 017 / / Y
[0170] .W / K / 2 / 30
[0171] .P / 1XING / HAO
[0172] ENDBSM
[0173] Based on the baggage message correction and forwarding method provided by the embodiments of the present invention, abnormal deletion messages generated by the airport in the event of passenger trip cancellation are corrected and forwarded to the corresponding destination airport, and update messages generated by the airport are forwarded to the corresponding destination airport, so as to improve the accuracy of the airport in performing baggage-related data statistics.
[0174] Compared with the above embodiments of the present invention Figure 1 Corresponding to the baggage message correction and forwarding method shown, this embodiment of the invention also provides a baggage message correction and forwarding device, such as... Figure 4 As shown, the device includes: a first receiving module 401, a first parsing module 402, and a first forwarding module 403.
[0175] The first receiving module 401 is used to receive baggage source messages generated by any passenger's checked baggage.
[0176] The first parsing module 402 is used to parse the baggage source message, obtain the baggage information corresponding to the baggage, and store the baggage information in the distributed database Redis.
[0177] Baggage information includes at least the passenger's passenger information, baggage number, flight date, flight number, and flight segment information.
[0178] The first forwarding module 403 is used to forward the passenger's arrival message to the arrival airport indicated by the baggage information, based on each baggage information in Redis.
[0179] Optionally, based on the above Figure 4 The first forwarding module 403 shown includes:
[0180] The retrieval unit is used to retrieve the flight segment information indicating the arrival airport from each baggage information in Redis.
[0181] The determination unit is used to determine the last segment of information based on the segment information.
[0182] The forwarding unit is used to determine the arrival airport indicated by the last segment of information and forward the passenger's arrival message to the arrival airport.
[0183] It should be noted that the specific principles and execution processes of each module in the baggage message correction and forwarding device disclosed in the above embodiments of the present invention are the same as those of the baggage message correction and forwarding method implemented in the above embodiments of the present invention. Please refer to the corresponding parts of the baggage message correction and forwarding method disclosed in the above embodiments of the present invention, which will not be repeated here.
[0184] This invention provides a baggage message correction and forwarding device that receives baggage source messages generated by any passenger's checked baggage; parses the baggage source messages to obtain the corresponding baggage information, and stores the baggage information in a distributed database Redis. The baggage information includes at least the passenger's passenger information, baggage number, flight date, flight number, and flight segment information. Based on each piece of baggage information in Redis, the device forwards the passenger's arrival message to the airport indicated by the baggage information. In this solution, upon receiving a baggage source message, the device parses the baggage source message, stores the obtained baggage information in the distributed database Redis, and forwards the passenger's arrival message to the airport indicated by the baggage information, thereby improving the accuracy of baggage-related data statistics at the airport.
[0185] Optionally, based on the above Figure 4 The baggage message correction and forwarding device shown is combined with Figure 4 The baggage message correction and forwarding device is further equipped with a second receiving module, a judgment module, a third receiving module, a second parsing module, a first search module, a first determination module, and a second forwarding module.
[0186] The second receiving module is used to receive baggage change messages corresponding to passengers' baggage.
[0187] The judgment module is used to determine whether the passenger's trip has been cancelled based on the baggage change message. If the trip is cancelled, the third receiving module is executed; if the trip is updated, the fourth receiving module is executed.
[0188] The third receiving module is used to receive deletion messages corresponding to passengers' baggage.
[0189] The second parsing module is used to parse the deletion message to obtain the baggage number, flight date, flight number, and flight segment information.
[0190] The first search module is used to find the first segment information in Redis that matches the baggage number, flight date, flight number, and segment information.
[0191] The first determining module is used to determine the last segment of information in the first segment based on the first segment information.
[0192] The second forwarding module is used to determine the arrival airport indicated by the last segment of information based on the last segment of information, forward the deletion message to the arrival airport, and set the first segment information stored in Redis to null.
[0193] Optionally, based on the above Figure 4 The baggage message correction and forwarding device shown is combined with Figure 4The baggage message correction and forwarding device is further equipped with a fourth receiving module, a third parsing module, a second search module, an update module, a second determination module, and a third forwarding module.
[0194] The fourth receiving module is used to receive update messages corresponding to passengers' baggage.
[0195] The third parsing module is used to parse update messages to obtain baggage number, flight date, flight number, and latest flight segment information.
[0196] The second search module is used to find second segment information in Redis that matches baggage number, flight date, and flight number.
[0197] The update module is used to update the second segment information in Redis with the latest segment information, and obtain the updated segment information in Redis.
[0198] The second determination module is used to determine the last segment of the updated flight segment information based on the updated flight segment information.
[0199] The third forwarding module is used to determine the arrival airport indicated by the last segment of information and forward the passenger's arrival message to the arrival airport.
[0200] Based on the baggage message correction and forwarding device provided in this embodiment of the invention, abnormal deletion messages generated by the airport in the event of passenger trip cancellation are corrected and correctly forwarded to the corresponding destination airport, and update messages generated by the airport are forwarded to the corresponding destination airport, so as to improve the accuracy of the airport in performing baggage-related data statistics.
[0201] Based on the baggage message correction and forwarding apparatus disclosed in the above embodiments, each of the above modules can be implemented by a hardware device consisting of a processor and a memory. Specifically, each of the above modules is stored as a program unit in the memory, and the processor executes the program units stored in the memory to implement baggage message correction and forwarding.
[0202] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and baggage message correction and forwarding can be implemented by adjusting kernel parameters.
[0203] This disclosure provides a computer storage medium including a baggage message correction and forwarding program, wherein the program, when executed by a processor, implements the baggage message correction and forwarding method as described in any one of claims 1 to 4.
[0204] This disclosure provides a processor for running a program, wherein the program executes the baggage message correction and forwarding method disclosed in the above embodiments.
[0205] This disclosure provides an electronic device, such as... Figure 5 The diagram shown is a structural schematic of an electronic device 50 provided in an embodiment of this disclosure.
[0206] The electronic device 50 in this embodiment may be a server, PC, PAD, mobile phone, etc.
[0207] The electronic device 50 includes at least one processor 501, at least one memory 502 connected to the processor, and a bus 503.
[0208] The processor 501 and the memory 502 communicate with each other via the bus 503.
[0209] Processor 501 is used to execute programs stored in memory.
[0210] The memory 502 is used to store a program that is at least used to: receive baggage source messages generated by any passenger's checked baggage; parse the baggage source messages to obtain the baggage information corresponding to the baggage, and store the baggage information in the distributed database Redis, wherein the baggage information includes at least the passenger's passenger information, baggage number, flight date, flight number and flight segment information; and forward the passenger's arrival message to the arrival airport indicated by the baggage information according to each baggage information in Redis.
[0211] This application also provides a computer program product, which, when executed on an electronic device, is suitable for executing a program that initializes the following method steps:
[0212] Receive baggage source messages generated by any passenger's checked baggage; parse the baggage source messages to obtain the baggage information corresponding to the baggage, and store the baggage information in the distributed database Redis. The baggage information includes at least the passenger's passenger information, baggage number, flight date, flight number, and flight segment information; based on each baggage information in Redis, forward the passenger's arrival message to the arrival airport indicated by the baggage information.
[0213] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1A device that provides the functions specified in one or more boxes.
[0214] In a typical configuration, the device includes one or more processors (CPUs), memory, and a bus. The device may also include input / output interfaces, network interfaces, etc.
[0215] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and memory includes at least one memory chip. Memory is an example of computer-readable media.
[0216] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0217] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0218] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.
[0219] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention 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 baggage message correction and forwarding method, characterized in that, The method includes: Receive baggage source messages generated by any passenger's checked baggage; Parse the baggage source message to obtain the baggage information corresponding to the baggage, and store the baggage information in the distributed database Redis. The baggage information includes at least the passenger information, baggage number, flight date, flight number, and flight segment information of the passenger. Based on each piece of baggage information in the Redis, forward the passenger's arrival message to the arrival airport indicated by the baggage information; Receive baggage change message corresponding to the passenger's baggage; Based on the baggage change message, determine whether the passenger's trip has been cancelled; If the trip is cancelled, receive the deletion message corresponding to the passenger's baggage; Parse the deletion message to obtain the baggage number, flight date, flight number, and flight segment information of the baggage; Find the first segment information in Redis that matches the baggage number, flight date, flight number, and flight segment information; Based on the information of the first flight segment, determine the last segment of information of the first flight segment; Based on the last piece of information, determine the arrival airport indicated by the last piece of information, forward the deletion message to the arrival airport, and set the first flight segment information stored in Redis to null.
2. The method according to claim 1, characterized in that, The step of forwarding the passenger's arrival message to the arrival airport indicated by each piece of baggage information in Redis includes: Retrieve the flight segment information indicating the arrival airport from each piece of baggage information in Redis; Based on the flight segment information, determine the last segment of the flight segment information; Based on the last piece of information, determine the arrival airport indicated by the last piece of information, and forward the passenger's arrival message to the arrival airport.
3. The method according to claim 1, characterized in that, Also includes: If the itinerary is updated, receive the update message corresponding to the passenger's baggage; Parse the update message to obtain the baggage number, flight date, flight number, and latest flight segment information of the baggage; Find the second segment information in Redis that matches the baggage number, flight date, and flight number; The latest flight segment information is used to update the second flight segment information in Redis, resulting in the updated flight segment information in Redis; Based on the updated flight segment information, determine the last segment of the updated flight segment information; Based on the last piece of information, determine the arrival airport indicated by the last piece of information, and forward the passenger's arrival message to the arrival airport.
4. A baggage message correction and forwarding device, characterized in that, The device includes: The first receiving module is used to receive baggage source messages generated by any passenger's checked baggage; The first parsing module is used to parse the baggage source message, obtain the baggage information corresponding to the baggage, and store the baggage information in the distributed database Redis. The baggage information includes at least the passenger information, baggage number, flight date, flight number, and flight segment information of the passenger. The first forwarding module is used to forward the passenger's arrival message to the arrival airport indicated by each piece of baggage information in the Redis. The second receiving module is used to receive baggage change messages corresponding to the passenger's baggage; The judgment module is used to determine whether the passenger's itinerary has been cancelled based on the baggage change message. If the itinerary is cancelled, the third receiving module is executed; if the itinerary is updated, the fourth receiving module is executed. The third receiving module is used to receive the deletion message corresponding to the passenger's luggage; The second parsing module is used to parse the deletion message to obtain the baggage number, flight date, flight number, and flight segment information of the baggage; The first search module is used to search for the first segment information in Redis that matches the baggage number, the flight date, the flight number, and the segment information; The first determining module is used to determine the last segment of information of the first flight segment based on the first flight segment information; The second forwarding module is used to determine the arrival airport indicated by the last segment of information based on the last segment of information, forward the deletion message to the arrival airport, and set the first flight segment information stored in Redis to null.
5. The apparatus according to claim 4, characterized in that, The first forwarding module includes: The acquisition unit is used to acquire the flight segment information indicating the arrival airport from each piece of baggage information in the Redis; A determining unit is configured to determine the last segment of the flight segment information based on the flight segment information; The forwarding unit is used to determine the arrival airport indicated by the last segment of information based on the last segment of information, and forward the passenger's arrival message to the arrival airport.
6. The apparatus according to claim 4, characterized in that, Also includes: The fourth receiving module is used to receive update messages corresponding to the passenger's luggage; The third parsing module is used to parse the update message to obtain the baggage number, flight date, flight number and latest flight segment information of the baggage; The second search module is used to search for second segment information in Redis that matches the baggage number, the flight date, and the flight number; The update module is used to update the second segment information in Redis using the latest segment information, so as to obtain the updated segment information in Redis; The second determining module is used to determine the last segment of the updated flight segment information based on the updated flight segment information; The third forwarding module is used to determine the arrival airport indicated by the last segment of information based on the last segment of information, and forward the passenger's arrival message to the arrival airport.
7. An electronic device, characterized in that, The electronic device is used to run a program, wherein the program executes the baggage message correction and forwarding method as described in any one of claims 1 to 3.
8. A computer storage medium, characterized in that, The storage medium includes a baggage message correction and forwarding program, wherein the program, when executed by a processor, implements the baggage message correction and forwarding method as described in any one of claims 1 to 3.