Civil aviation electronic ticket processing method and device, storage medium and electronic equipment
By analyzing the message data set of civil aviation electronic tickets and identifying abnormal rescheduling behaviors in combination with preset matching rules, real-time monitoring of changes in the validity range of the flight section before rescheduling, solving the problem of low manual analysis and identification efficiency in the existing technology, realizing the rescheduling of violations timely identification and stop loss.
Patent Information
- Application Number
- CN202411374815.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2024-12-24
AI Technical Summary
In the prior art, the illegal rescheduling operation of identifying civil aviation electronic tickets through manual analysis is relatively low efficiency, and it is impossible to promptly detect and stop illegal rescheduling operations, resulting in damage to the airline's profits.
By obtaining the message data set of civil aviation electronic tickets, analyzing and identifying rescheduling operations and change of the section validity period, combining preset matching rules to identify abnormal rescheduling behavior, monitoring the changes in the validity period range of the flight section before rescheduling, and hanging abnormal passenger tickets in a timely manner to reduce the number of abnormal passenger tickets Manual intervention.
It improves the efficiency of identifying electronic tickets for illegal rescheduling, avoids the spread of illegal rescheduling data, achieves timely stop loss, reduces manual intervention, and improves the effectiveness of monitoring data.
Smart Images

Figure CN119179908A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, storage medium and electronic equipment for processing civil aviation electronic tickets. Background Art
[0002] After passengers book the required flights and pay through channels such as airline websites, the airline will generate an electronic ticket related to the passenger based on the passenger's booking information and payment records, and generate the validity period of each flight segment on the electronic ticket according to established rules. Normally, the validity period of the ticket segment is established when the ticket is issued, and will not be changed without special circumstances. The airline can limit the time span of the rescheduling through the validity period to protect the airline's revenue. However, in order to deal with special circumstances, some high-authority accounts of the airline can still adjust the validity period of the flight segment through ETV instructions. If the instructions are used improperly, the validity period of the flight segment will be in name only, resulting in unreasonable rescheduling, resulting in damage to the airline's revenue. At present, the existing technology mainly uses manual analysis to identify civil aviation electronic tickets with illegal rescheduling operations, which is inefficient and cannot promptly detect and stop illegal rescheduling operations.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, storage medium and electronic device for processing civil aviation electronic tickets, so as to at least solve the technical problem in the prior art of identifying civil aviation electronic tickets with illegal rescheduling operations through manual analysis, and the low efficiency of identifying electronic tickets with illegal rescheduling operations.
[0005] According to one aspect of an embodiment of the present invention, a method for processing civil aviation electronic tickets is provided, comprising: acquiring a message data set of civil aviation electronic tickets, and parsing the message data set to obtain ticket information corresponding to each electronic ticket; performing a rescheduling operation identification on the ticket information corresponding to each electronic ticket to obtain rescheduling operation information, and performing a segment validity period change operation identification on the ticket information corresponding to each electronic ticket to obtain segment validity period change operation information; determining a target electronic ticket with abnormal rescheduling operation behavior from the electronic tickets based on preset matching rules, the rescheduling operation information and the segment validity period change operation information, and performing a suspend operation on the target electronic ticket, wherein the preset matching rules are used to describe the rescheduling operation characteristics and segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
[0006] Furthermore, the rescheduling operation is identified for the ticket information corresponding to each electronic ticket to obtain the rescheduling operation information, including: judging whether the first field information in the ticket information is the first target field, wherein the first target field is used to characterize the rescheduling operation; if the first field information is the first target field, determining the target rescheduling operation type according to the second field information in the ticket information, wherein the target rescheduling operation type is one of the following: one-step rescheduling with the same PNR, step-by-step rescheduling with the same PNR, and rescheduling between different PNRs; checking whether the second field information meets the format requirements corresponding to the target rescheduling operation type, and if the second field information meets the format requirements corresponding to the target rescheduling operation type, extracting the flight change information in the second field information to obtain the rescheduling operation information.
[0007] Furthermore, the flight segment validity period change operation is identified for the ticket information corresponding to each electronic ticket to obtain the flight segment validity period change operation information, including: determining whether the first field information in the ticket information is the second target field, wherein the second target field is used to characterize the flight segment validity period change operation; if the first field information is the second target field, extracting the flight segment validity period change information in the second field information in the ticket information to obtain the flight segment validity period change operation information.
[0008] Furthermore, based on preset matching rules, rescheduling operation information and flight segment validity period change operation information, a target electronic ticket with abnormal rescheduling operation behavior is determined from the electronic ticket, including: matching the rescheduling operation information with the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rules; if the rescheduling operation information meets the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior, then using the electronic ticket corresponding to the rescheduling operation information as the initial electronic ticket; matching the flight segment validity period change operation information corresponding to the initial electronic ticket with the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rules; if the flight segment validity period change operation information corresponding to the initial electronic ticket meets the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior, then using the initial electronic ticket as the target electronic ticket.
[0009] Furthermore, after the target electronic ticket is suspended, the method also includes: updating the ticket status of the target electronic ticket to an unavailable status; generating a prompt message based on the ticket information corresponding to the target electronic ticket, and sending the prompt message to the target object, wherein the prompt message is used to indicate the existence of abnormal rescheduling operation behavior.
[0010] Furthermore, after sending the prompt information to the target object, the method also includes: when the target object determines that the abnormal rescheduling operation behavior is compliant, receiving the target object's unhooking operation on the target electronic ticket, and updating the ticket status of the target electronic ticket from an unavailable state to an available state.
[0011] Furthermore, after sending the prompt information to the target object, the method also includes: receiving a rescheduling query request sent by the target object; acquiring rescheduling data corresponding to the query conditions included in the rescheduling query request from a database, and displaying the rescheduling data.
[0012] According to another aspect of an embodiment of the present invention, a device for processing civil aviation electronic tickets is also provided, including: an acquisition module, used to acquire a message data set of civil aviation electronic tickets, and parse the message data set to obtain ticket information corresponding to each electronic ticket; a first processing module, used to identify the rescheduling operation on the ticket information corresponding to each electronic ticket to obtain rescheduling operation information, and to identify the flight segment validity period change operation on the ticket information corresponding to each electronic ticket to obtain flight segment validity period change operation information; a second processing module, used to determine a target electronic ticket with abnormal rescheduling operation behavior from the electronic tickets based on preset matching rules, the rescheduling operation information and the flight segment validity period change operation information, and perform a suspend operation on the target electronic ticket, wherein the preset matching rules are used to describe the rescheduling operation characteristics and flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
[0013] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the above-mentioned civil aviation electronic ticket processing method is implemented.
[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned civil aviation electronic ticket processing method when running.
[0015] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, which includes one or more processors; a memory for storing one or more programs, so that when the one or more programs are executed by the one or more processors, the one or more processors are implemented to run the programs, wherein the programs are configured to execute the above-mentioned civil aviation electronic ticket processing method when running.
[0016] In an embodiment of the present invention, a monitoring method combining the rescheduling operation with the ticket validity period change operation is adopted. First, a message data set of civil aviation electronic tickets is obtained, and the message data set is parsed to obtain the ticket information corresponding to each electronic ticket. Then, the rescheduling operation is identified for the ticket information corresponding to each electronic ticket to obtain the rescheduling operation information. The flight segment validity period change operation is identified for the ticket information corresponding to each electronic ticket to obtain the flight segment validity period change operation information. Then, based on the preset matching rules, the rescheduling operation information and the flight segment validity period change operation information, the target electronic ticket with abnormal rescheduling operation behavior is determined from the electronic tickets, and the target electronic ticket is suspended, wherein the preset matching rules are used to describe the rescheduling operation characteristics and the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
[0017] In the above process, by obtaining real-time message data of civil aviation electronic tickets, analyzing historical changes in tickets, and monitoring in real time the scenarios where the validity period of the flight segment before the rescheduling has changed, and combining preset matching rules such as the rescheduling span and the validity period change range to identify illegal operations, the effectiveness of the monitoring data is improved, so that abnormal tickets can be suspended in time, and the tickets can be temporarily changed to an unavailable state, reducing manual intervention and improving the efficiency of identifying electronic tickets with illegal rescheduling.
[0018] It can be seen that through the technical solution of the present invention, the purpose of avoiding the spread of illegal rescheduling data and stopping losses in time is achieved, thereby achieving the technical effect of improving the efficiency of identifying electronic tickets with illegal rescheduling, and further solving the technical problem of low efficiency in identifying civil aviation electronic tickets with illegal rescheduling operations through manual analysis in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0020] Figure 1 is a flow chart of an optional civil aviation electronic ticket processing method according to an embodiment of the present invention;
[0021] Figure 2 is a flow chart of an optional abnormal electronic ticket recognition according to an embodiment of the present invention;
[0022] Figure 3 is a schematic diagram of an optional rescheduling event message according to an embodiment of the present invention;
[0023] Figure 4 is a schematic diagram of an optional validity period change event message according to an embodiment of the present invention;
[0024] Figure 5 is a schematic diagram of an optional rule editing and validation process according to an embodiment of the present invention;
[0025] Figure 6 is a schematic diagram of an optional rule editing basic information page according to an embodiment of the present invention;
[0026] Figure 7 is a schematic diagram of an optional rule editing segment restriction page according to an embodiment of the present invention;
[0027] Figure 8 is a schematic diagram of an optional rule editing channel restriction page according to an embodiment of the present invention;
[0028] Fig. 9 is a schematic diagram of an optional electronic ticket status change according to an embodiment of the present invention;
[0029] Fig.10 is a schematic diagram of an optional civil aviation electronic ticket processing device according to an embodiment of the present invention;
[0030] Fig.11 is a schematic diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] It should be noted that the relevant 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 the present invention are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between the system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0034] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0035] E-ticket: An electronic form of ticket. Unlike traditional paper tickets, e-tickets are stored in the airline's computer system in the form of electronic records, and passengers only need to show their ID to check in.
[0036] Segment validity period: refers to the time range during which passengers can use the segment listed on an electronic ticket. If you need to cancel or change the flight segment you have purchased, you generally need to do so within the validity period of the segment, otherwise you may need to pay additional fees or be unable to change the segment.
[0037] Ticket rescheduling: refers to passengers changing the date or time of the purchased ticket.
[0038] Example 1
[0039] According to an embodiment of the present invention, an embodiment of a method for processing civil aviation electronic tickets is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0040] Figure 1 is a flow chart of an optional method for processing civil aviation electronic tickets according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0041] Step S101, obtaining a message data set of civil aviation electronic tickets, and parsing the message data set to obtain ticket information corresponding to each electronic ticket.
[0042] In the above steps, the message data set of the civil aviation electronic ticket can be obtained through the application system, processor, electronic equipment and other devices. Optionally, the message data set of the civil aviation electronic ticket is obtained through the civil aviation electronic ticket processing system, and the message data set is parsed to obtain the ticket information corresponding to each electronic ticket, wherein the ticket information includes at least basic ticket information such as ticket number and name, as well as flight segment information.
[0043] In an optional embodiment, it is possible to use Figure 2 The process shown realizes the recognition of abnormal electronic tickets. Figure 2 is a flow chart of an optional abnormal electronic ticket recognition according to an embodiment of the present invention, such as Figure 2 As shown, the first step is data reception. For example, the civil aviation electronic ticket processing system accesses the high-frequency electronic ticket real-time data (HSD iETS data) through the message middleware (such as Kafka), obtains the XML format message (i.e., message data set) transmitted from the upstream, and performs data parsing to obtain the ticket information corresponding to each electronic ticket. For example, the XML message is parsed through the document object model, and the XML message is converted into an entity object. Then, according to the characteristics of the electronic ticket, the basic ticket information and flight segment information in the entity object are taken out to generate the corresponding data object, as shown in Table 1.
[0044] Table 1
[0045] Basic ticket information Flight segment information Ticket number Operating flight information Passenger's Chinese name Market flight information Passenger’s English name Take-off arrival time Passenger Type Take off and arrive at the airport Passenger document information Position Information Frequent Flyer Card Information Booking record number Ticketing Information Segment validity period Coupon Information Freight rate basis Ticket history information Ticket segment status Ticket Price Information Flight segment price ...... ......
[0046] Step S102, the ticket information corresponding to each electronic ticket is identified for rescheduling operation to obtain rescheduling operation information, and the ticket information corresponding to each electronic ticket is identified for flight segment validity period change operation to obtain flight segment validity period change operation information.
[0047] Optionally, the ticket information corresponding to each electronic ticket is subjected to rescheduling operation identification to obtain rescheduling operation information, and the ticket information corresponding to each electronic ticket is subjected to segment validity period change operation identification to obtain segment validity period change operation information. Figure 2 As shown, after data parsing, event recognition is performed, that is, validity period change events and rescheduling events are identified. For example, the instructions for validity period change events (ETVU) and rescheduling events (RVAL) can be identified through the electronic ticket history operation type, and the operation information corresponding to the event steps can be obtained.
[0048] In an optional embodiment, the rescheduling operation is identified for the ticket information corresponding to each electronic ticket to obtain the rescheduling operation information, including: determining whether the first field information in the ticket information is the first target field, wherein the first target field is used to characterize the rescheduling operation; if the first field information is the first target field, determining the target rescheduling operation type based on the second field information in the ticket information, wherein the target rescheduling operation type is one of the following: one-step rescheduling with the same PNR, step-by-step rescheduling with the same PNR, and rescheduling between different PNRs; checking whether the second field information meets the format requirements corresponding to the target rescheduling operation type, and if the second field information meets the format requirements corresponding to the target rescheduling operation type, extracting the flight change information in the second field information to obtain the rescheduling operation information.
[0049] Optionally, Figure 3 is a schematic diagram of an optional rescheduling event message according to an embodiment of the present invention, and the first field information may be as follows Figure 3 The TransType field value shown in row 4 of , the first target field can be RVAL, and the second field information can be Figure 3 The Text field values shown in rows 12 and 25 of the ticket information, for example, rows 12 and 25 indicate that the rescheduling operation has been performed in 2 steps. First, determine whether the TransType field value in the ticket information is RVAL. If the TransType field value is RVAL, it is determined that there is a rescheduling event. The target rescheduling operation type is determined based on the number of rescheduling steps corresponding to the Text field in the ticket information. The rescheduling operation can be divided into one-step rescheduling within the same Passenger Name Record (PNR), multi-step rescheduling within the same PNR, and rescheduling between different PNRs. Figure 3 The lines 12 and 25 shown indicate that the rescheduling operation was performed in two steps, i.e., the PNR was rescheduled in steps.
[0050] For example, according to Figure 3 The lines 12 and 25 shown in the figure determine that the target rescheduling operation type is the same PNR step-by-step rescheduling. Further, the Text field value is checked to see whether it meets the format requirements corresponding to the same PNR step-by-step rescheduling. If the Text field value meets the format requirements corresponding to the same PNR step-by-step rescheduling, the flight change information in the Text field value can be extracted to obtain the rescheduling operation information. For example, Figure 3The 5th step (row 15) shown in the figure means canceling the original flight information first, and the 7th step (row 2) means rescheduling to another flight. After determining that the TransType field value is RVAL, check whether the Text field value meets the format requirements corresponding to the step-by-step rescheduling of the PNR (mainly verify the separator). For example, if the Text field starts with CHG FLT FROM, verify whether it meets the following format: FROM A / B / C / D TOE / F / G / H. If it is a step-by-step rescheduling operation, it is necessary to find the corresponding flight information in the ticket history (that is, the historical step where TransType is EOTU and the Text field starts with CHG FLT FROM), parse out the flight segment information before OPEN, that is, through Figure 3 The flight information is found in row 25 as shown, and combined with row 12, the complete flight change information is generated, that is, Figure 3 The rescheduling operation information shown is: Flight segment 1 is rescheduled from CA1831 / 15MAR14 / Y / PEKSHA to CA1835 / 25MAR14 / Y / PEKPVG.
[0051] In an optional embodiment, the flight segment validity period change operation is identified for the ticket information corresponding to each electronic ticket to obtain the flight segment validity period change operation information, including: determining whether the first field information in the ticket information is the second target field, wherein the second target field is used to characterize the flight segment validity period change operation; if the first field information is the second target field, extracting the flight segment validity period change information in the second field information in the ticket information to obtain the flight segment validity period change operation information.
[0052] Optionally, Figure 4 is a schematic diagram of an optional validity period change event message according to an embodiment of the present invention, the second target field can be as follows Figure 4 The ETVU shown in row 4 is used to determine whether the TransType field value in the ticket information is ETVU. If the TransType field value is ETVU, it is determined that there is a validity period change event, and the flight segment validity period change information in the Text field value in the ticket information is extracted to obtain the flight segment validity period change operation information.
[0053] For example, Figure 4 Steps 1 and 2 (rows 41 and 28) indicate changing the validity period of segment 2, and steps 3 and 4 (rows 15 and 2) indicate setting the validity period of segment 1. After determining that the TransType field value is ETVU, extract the segment validity period change information in the Text field value, for example, Figure 4The Text: SET A-30APR14 shown in row 25 indicates item A after the validity period is changed, where 30APR14 indicates the specific value of item A; the Text: SET B-30APR14 shown in row 12 indicates item B after the validity period is changed, where 30APR14 indicates the specific value of item B; the Text: CHANGED A-30APR14 TO A-01MAY14 shown in row 38 indicates item A before and after the validity period is changed, where 30APR14 is the value of item A before the change, and 01MAY14 is the value of item A after the change; the Text: CHANGED B-01APR14 TO B-30MAR14 shown in row 51 indicates item B before and after the validity period is changed, where 01APR14 is the value of item B before the change, and 30MAR14 is the value of item B after the change. That is, Figure 4 The flight segment validity period change operation information shown is: flight segment 2 is changed from A-30APR14 B-01APR14 to A-01MAY14B-30MAR14, and flight segment 1 is changed from invalid period to A-30APR14 B-30APR14.
[0054] Step S103, based on the preset matching rules, the rescheduling operation information and the flight segment validity period change operation information, the target electronic ticket with abnormal rescheduling operation behavior is determined from the electronic tickets, and the target electronic ticket is suspended, wherein the preset matching rules are used to describe the rescheduling operation characteristics and the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
[0055] Optionally, based on the preset matching rules, the rescheduling operation information and the flight segment validity period change operation information, the target electronic ticket with abnormal rescheduling operation behavior can be determined from the electronic ticket, and the target electronic ticket can be suspended, wherein the suspension operation refers to suspending the execution of the process corresponding to the electronic ticket to put it in a static state. For example, the rescheduling operation feature corresponding to the abnormal rescheduling operation behavior is that the rescheduling span is greater than 5 days, and the flight segment validity period change operation feature is that the validity period (ETV) of the flight segment of the electronic ticket is modified.
[0056] Alternatively, if Figure 2 As shown, after identifying validity period change events and rescheduling events, rule matching is performed, for example, rule information is obtained from the cache, parameter objects are organized according to the parameters required for rule matching, the rule engine service is called, matching results are obtained, and the information required for the business is extracted from the identified events and stored in a relational database.
[0057] Figure 5 is a schematic diagram of an optional rule editing and validation process according to an embodiment of the present invention. Optionally, before obtaining a message data set of a civil aviation electronic ticket, such as Figure 5As shown, the rules are edited through the system front end, including adding, deleting, modifying and checking, maintaining the triggering conditions of the rules, the priority and the processing actions after matching the rules. After the rule editing is completed, click the front-end rule to take effect, upload the rules, generate the rules into an Excel file, and synchronize them to the back end through the File Transfer Protocol (FTP). After the front end performs rule maintenance, all rule data are stored in the database according to each dimension. Due to the large amount of data, network timeout may occur. For this reason, the front end is assembled into an Excel file, placed in the specified directory of FTP, and then the file address is notified to the back-end service. When the back-end service receives the front-end request, it downloads and parses the rules uploaded by the front end according to the file address, compiles the rule file through the open source business rule engine, performs the effective operation, stores the effective rule file in the database (Data Base, DB), records the rule effectiveness history, and refreshes the rule cache in the system. Optionally, since the data generated after the rule takes effect is relatively large, directly accessing the database for rule matching is inefficient, so a cache is added for this purpose, and the cache is refreshed before the system starts and when it takes effect. Optionally, a query service is also provided. For example, the historical version information of the rule effectiveness can be queried in the database through the service to obtain the effective time and operator information.
[0058] Optionally, rule editing can be achieved by maintaining the configuration on the front end of the system. For example, rule maintenance can be performed from the dimensions of channel, route, cabin space, priority, ETV (i.e., whether the validity period has changed), etc., and three types of rules can be set: no violation, suspected violation, and confirmed violation. Figure 6 is a schematic diagram of an optional rule editing basic information page according to an embodiment of the present invention, such as Figure 6 As shown, you can set the rule name, rule validity period, priority, rescheduling span, last action, whether ETV occurs, and rule description. Figure 7 is a schematic diagram of an optional rule editing segment restriction page according to an embodiment of the present invention, such as Figure 7 As shown, you can add routes, flights, cabins and other settings to the rules to customize the monitoring segment information. Figure 8 is a schematic diagram of an optional rule editing channel restriction page according to an embodiment of the present invention, such as Figure 8 As shown, channel restrictions can be added, including information such as Global Distribution System (GDS), country, city, ticketing office, and International Air Transport Association (IATA).
[0059] In an optional embodiment, a target electronic ticket with abnormal rescheduling operation behavior is determined from the electronic ticket based on preset matching rules, rescheduling operation information and flight segment validity period change operation information, including: matching the rescheduling operation information with the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rules; if the rescheduling operation information meets the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior, then using the electronic ticket corresponding to the rescheduling operation information as the initial electronic ticket; matching the flight segment validity period change operation information corresponding to the initial electronic ticket with the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rules; if the flight segment validity period change operation information corresponding to the initial electronic ticket meets the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior, then using the initial electronic ticket as the target electronic ticket.
[0060] Optionally, the rescheduling operation information is matched with the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rules. For example, the rescheduling operation information is: flight segment 1 is rescheduled from CA1831 / 15MAR14 / Y / PEKSHA to CA1835 / 25MAR14 / Y / PEKPVG, and the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior are that the rescheduling span is greater than 5 days. If the rescheduling operation information meets the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior, the electronic ticket corresponding to the rescheduling operation information is used as the initial electronic ticket, and the initial electronic ticket is matched. The operation information of the validity period change of the flight segment corresponding to the ticket is matched with the operation characteristics of the validity period change of the flight segment corresponding to the abnormal rescheduling operation described in the preset matching rules. For example, the operation information of the validity period change of the flight segment is: the flight segment 1 is changed from invalid period to A-30APR14B-30APR14, and the operation characteristic of the validity period change of the flight segment is the occurrence of ETV. If the operation information of the validity period change of the flight segment corresponding to the initial electronic ticket meets the operation characteristics of the validity period change of the flight segment corresponding to the abnormal rescheduling operation, the initial electronic ticket is used as the target electronic ticket, that is, the abnormal electronic ticket that violates the regulations is identified.
[0061] For example, through the effective rescheduling rules, it can be determined whether each rescheduled ticket violates the rules. If it violates the rules, the ticket can be automatically set to a suspected violation or confirmed violation status according to the rules. Fig. 9 is a schematic diagram of an optional electronic ticket status change according to an embodiment of the present invention, such as Fig. 9As shown, the system can automatically identify according to the rules, and change it to suspected violation after matching the rules. The user is required to further confirm whether there is a violation. The user manually confirms the monitored data and can change the data status of no violation and suspected violation to confirmed violation, indicating that the data actually has a violation. The user manually confirms the monitored data and can change the data status of suspected violation and confirmed violation to no violation, indicating that there is no violation of the conditional data, and there may be other business agreements.
[0062] Based on the scheme defined by the above steps S101 to S103, it can be known that in an embodiment of the present invention, a method of combining the rescheduling operation with the ticket validity period change operation for monitoring is adopted. First, a message data set of civil aviation electronic tickets is obtained, and the message data set is parsed to obtain the ticket information corresponding to each electronic ticket. Then, the rescheduling operation is identified for the ticket information corresponding to each electronic ticket to obtain the rescheduling operation information. The segment validity period change operation is identified for the ticket information corresponding to each electronic ticket to obtain the segment validity period change operation information. Then, based on the preset matching rules, the rescheduling operation information and the segment validity period change operation information, the target electronic ticket with abnormal rescheduling operation behavior is determined from the electronic tickets, and a suspend operation is performed on the target electronic ticket, wherein the preset matching rules are used to describe the rescheduling operation characteristics and the segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
[0063] It is easy to notice that in the above process, by obtaining real-time message data of civil aviation electronic tickets, parsing historical changes in tickets, and real-time monitoring of scenarios where the validity period of the flight segment before the rescheduling has changed, and combining preset matching rules such as the rescheduling span and the validity period change range to identify illegal operations, the effectiveness of the monitoring data is improved, so that abnormal tickets can be suspended in time, and the tickets can be temporarily changed to an unavailable state, reducing manual intervention and improving the efficiency of identifying electronic tickets with illegal rescheduling.
[0064] It can be seen that through the technical solution of the present invention, the purpose of avoiding the spread of illegal rescheduling data and stopping losses in time is achieved, thereby achieving the technical effect of improving the efficiency of identifying electronic tickets with illegal rescheduling, and further solving the technical problem of low efficiency in identifying civil aviation electronic tickets with illegal rescheduling operations through manual analysis in the prior art.
[0065] In an optional embodiment, after the target electronic ticket is suspended, the ticket status of the target electronic ticket is updated to an unavailable status; a prompt message is generated based on the ticket information corresponding to the target electronic ticket, and the prompt message is sent to the target object, wherein the prompt message is used to indicate the existence of abnormal rescheduling operation behavior.
[0066] Optionally, after the target electronic ticket is suspended, the ticket status of the target electronic ticket is updated to an unavailable state. For example, the electronic ticket is set to a suspected violation or confirmed violation state, and then a prompt message is generated based on the ticket information corresponding to the target electronic ticket, and the prompt message is sent to the target object. For example, the system can automatically identify according to the rules, and change it to a suspected violation after matching the rules. The user is required to further confirm whether there is a violation. The user manually confirms the monitored data and can change the data status from no violation and suspected violation to confirmed violation, indicating that a violation has actually occurred in the data.
[0067] In an optional embodiment, after the prompt information is sent to the target object, if the target object determines that the abnormal rescheduling operation is compliant, the target object's unblocking operation on the target electronic ticket is received, and the ticket status of the target electronic ticket is updated from an unavailable state to an available state.
[0068] Optionally, after sending the prompt information to the target object, if the target object determines that the abnormal rescheduling operation is compliant, the target object's unblocking operation on the target electronic ticket is received, that is, the process corresponding to the electronic ticket is resumed, and the ticket status of the target electronic ticket is updated from an unavailable state to an available state. For example, the user manually confirms the monitored data and can change the data status of suspected violations and confirmed violations to non-violations, indicating that there is no violation of the conditional data, and there may be other business agreements.
[0069] In an optional embodiment, after the prompt information is sent to the target object, a rescheduling query request sent by the target object is received; rescheduling data corresponding to the query conditions included in the rescheduling query request is obtained from the database, and the rescheduling data is displayed.
[0070] Optionally, a rescheduling query function is provided. After sending the prompt information to the target object, the rescheduling query request sent by the target object is received, and the rescheduling data corresponding to the query conditions contained in the rescheduling query request is obtained from the database, and the rescheduling data is displayed. For example, the backend provides a data query interface, the front end initiates a rescheduling query request, and the backend query service queries the database for rescheduling data that meets the requirements according to the query conditions of the front end, and provides report downloads for customers to download and analyze offline. For example, the front end initiates a report export request, and the backend export service will first call the query service internally, obtain relevant data to generate Excel, and upload it to the specified FTP directory, and return the front-end file path. The front end downloads according to the FTP address returned by the back end.
[0071] In an embodiment of the present invention, a monitoring method combining the rescheduling operation with the ticket validity period change operation is adopted. First, a message data set of civil aviation electronic tickets is obtained, and the message data set is parsed to obtain the ticket information corresponding to each electronic ticket. Then, the rescheduling operation is identified for the ticket information corresponding to each electronic ticket to obtain the rescheduling operation information. The flight segment validity period change operation is identified for the ticket information corresponding to each electronic ticket to obtain the flight segment validity period change operation information. Then, based on the preset matching rules, the rescheduling operation information and the flight segment validity period change operation information, the target electronic ticket with abnormal rescheduling operation behavior is determined from the electronic tickets, and the target electronic ticket is suspended, wherein the preset matching rules are used to describe the rescheduling operation characteristics and the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
[0072] In the above process, by obtaining real-time message data of civil aviation electronic tickets, analyzing historical changes in tickets, and monitoring in real time the scenarios where the validity period of the flight segment before the rescheduling has changed, and combining preset matching rules such as the rescheduling span and the validity period change range to identify illegal operations, the effectiveness of the monitoring data is improved, so that abnormal tickets can be suspended in time, and the tickets can be temporarily changed to an unavailable state, reducing manual intervention and improving the efficiency of identifying electronic tickets with illegal rescheduling.
[0073] It can be seen that through the technical solution of the present invention, the purpose of avoiding the spread of illegal rescheduling data and stopping losses in time is achieved, thereby achieving the technical effect of improving the efficiency of identifying electronic tickets with illegal rescheduling, and further solving the technical problem of low efficiency in identifying civil aviation electronic tickets with illegal rescheduling operations through manual analysis in the prior art.
[0074] Example 2
[0075] According to an embodiment of the present invention, an embodiment of a device for processing civil aviation electronic tickets is provided, wherein: Fig.10 is a schematic diagram of an optional civil aviation electronic ticket processing device according to an embodiment of the present invention, such as Fig.10As shown, the device includes: an acquisition module 1001, which is used to acquire a message data set of civil aviation electronic tickets, and parse the message data set to obtain ticket information corresponding to each electronic ticket; a first processing module 1002, which is used to identify the rescheduling operation on the ticket information corresponding to each electronic ticket to obtain the rescheduling operation information, and to identify the flight segment validity period change operation on the ticket information corresponding to each electronic ticket to obtain the flight segment validity period change operation information; a second processing module 1003, which is used to determine the target electronic ticket with abnormal rescheduling operation behavior from the electronic tickets based on the preset matching rules, the rescheduling operation information and the flight segment validity period change operation information, and suspend the target electronic ticket, wherein the preset matching rules are used to describe the rescheduling operation characteristics and the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
[0076] It should be noted that the above-mentioned acquisition module 1001, first processing module 1002 and second processing module 1003 correspond to steps S101 to S103 in the above-mentioned embodiment, and the examples and application scenarios implemented by the three modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.
[0077] Optionally, the first processing module includes: a first judgment module, used to judge whether the first field information in the ticket information is the first target field, wherein the first target field is used to characterize the rescheduling operation; a first determination module, used to determine the target rescheduling operation type based on the second field information in the ticket information if the first field information is the first target field, wherein the target rescheduling operation type is one of the following: one-step rescheduling with the same PNR, step-by-step rescheduling with the same PNR, and rescheduling between different PNRs; a second determination module, used to verify whether the second field information meets the format requirements corresponding to the target rescheduling operation type, if the second field information meets the format requirements corresponding to the target rescheduling operation type, extract the flight change information in the second field information to obtain the rescheduling operation information.
[0078] Optionally, the first processing module also includes: a second judgment module, used to judge whether the first field information in the ticket information is the second target field, wherein the second target field is used to characterize the flight segment validity period change operation; a third determination module, used to extract the flight segment validity period change information in the second field information in the ticket information if the first field information is the second target field, and obtain the flight segment validity period change operation information.
[0079] Optionally, the second processing module includes: a third processing module, used to match the rescheduling operation information with the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rules; a fourth determination module, used to use the electronic ticket corresponding to the rescheduling operation information as the initial electronic ticket if the rescheduling operation information meets the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior; the fourth processing module, used to match the flight segment validity period change operation information corresponding to the initial electronic ticket with the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rules; a fifth determination module, used to use the initial electronic ticket as the target electronic ticket if the flight segment validity period change operation information corresponding to the initial electronic ticket meets the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
[0080] Optionally, the processing device for civil aviation electronic tickets also includes: a fifth processing module, used to update the ticket status of the target electronic ticket to an unavailable state after the target electronic ticket is suspended; a sending module, used to generate prompt information based on the ticket information corresponding to the target electronic ticket, and send the prompt information to the target object, wherein the prompt information is used to prompt the existence of abnormal rescheduling operation behavior.
[0081] Optionally, the processing device for civil aviation electronic tickets also includes: a sixth processing module, which is used to receive the target object's unhanging operation on the target electronic ticket after sending the prompt information to the target object, and update the ticket status of the target electronic ticket from an unavailable state to an available state when the target object determines that the abnormal rescheduling operation is compliant.
[0082] Optionally, the processing device for civil aviation electronic tickets also includes: a receiving module, used to receive a rescheduling query request sent by the target object after sending the prompt information to the target object; a seventh processing module, used to obtain rescheduling data corresponding to the query conditions contained in the rescheduling query request from the database, and display the rescheduling data.
[0083] Example 3
[0084] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the above-mentioned civil aviation electronic ticket processing method is implemented.
[0085] Example 4
[0086] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned civil aviation electronic ticket processing method when running.
[0087] Example 5
[0088] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, wherein: Fig.11 is a schematic diagram of an optional electronic device according to an embodiment of the present invention, such as Fig.11 As shown, the electronic device includes one or more processors; a memory for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are used to run the programs, wherein the programs are set to execute the above-mentioned civil aviation electronic ticket processing method when running. When the processor executes the program, the following steps are implemented: obtaining a message data set of the civil aviation electronic ticket, parsing the message data set, and obtaining the ticket information corresponding to each electronic ticket; performing a rescheduling operation identification on the ticket information corresponding to each electronic ticket, and obtaining the rescheduling operation information; performing a flight segment validity period change operation identification on the ticket information corresponding to each electronic ticket, and obtaining the flight segment validity period change operation information; according to the preset matching rules, the rescheduling operation information, and the flight segment validity period change operation information, the target electronic ticket with abnormal rescheduling operation behavior is determined from the electronic ticket, and the target electronic ticket is suspended, wherein the preset matching rules are used to describe the rescheduling operation characteristics and flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
[0089] Optionally, when the processor executes the program, the following steps are also implemented: determining whether the first field information in the ticket information is the first target field, wherein the first target field is used to characterize the rescheduling operation; if the first field information is the first target field, determining the target rescheduling operation type based on the second field information in the ticket information, wherein the target rescheduling operation type is one of the following: one-step rescheduling with the same PNR, step-by-step rescheduling with the same PNR, and rescheduling between different PNRs; checking whether the second field information meets the format requirements corresponding to the target rescheduling operation type, and if the second field information meets the format requirements corresponding to the target rescheduling operation type, extracting the flight change information in the second field information to obtain the rescheduling operation information.
[0090] Optionally, when the processor executes the program, the following steps are also implemented: determining whether the first field information in the ticket information is the second target field, wherein the second target field is used to characterize the flight segment validity period change operation; if the first field information is the second target field, extracting the flight segment validity period change information in the second field information in the ticket information to obtain the flight segment validity period change operation information.
[0091] Optionally, when the processor executes the program, the following steps are also implemented: matching the rescheduling operation information with the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rules; if the rescheduling operation information meets the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior, using the electronic ticket corresponding to the rescheduling operation information as the initial electronic ticket; matching the segment validity period change operation information corresponding to the initial electronic ticket with the segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rules; if the segment validity period change operation information corresponding to the initial electronic ticket meets the segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior, using the initial electronic ticket as the target electronic ticket.
[0092] Optionally, the processor also implements the following steps when executing the program: after performing a suspend operation on the target electronic ticket, updating the ticket status of the target electronic ticket to an unavailable status; generating a prompt message based on the ticket information corresponding to the target electronic ticket, and sending the prompt message to the target object, wherein the prompt message is used to indicate the existence of an abnormal rescheduling operation.
[0093] Optionally, the processor also implements the following steps when executing the program: after sending the prompt information to the target object, when the target object determines that the abnormal rescheduling operation is compliant, receiving the target object's unhanging operation on the target electronic ticket, and updating the ticket status of the target electronic ticket from an unavailable state to an available state.
[0094] Optionally, when executing the program, the processor also implements the following steps: after sending the prompt information to the target object, receiving a rescheduling query request sent by the target object; obtaining rescheduling data corresponding to the query conditions contained in the rescheduling query request from the database, and displaying the rescheduling data.
[0095] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0096] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0097] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0098] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0099] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0100] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0101] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0102] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for processing civil aviation electronic tickets, characterized in that: include: Acquire a message data set of civil aviation electronic tickets, and parse the message data set to obtain ticket information corresponding to each electronic ticket; Performing rescheduling operation identification on the ticket information corresponding to each electronic ticket to obtain rescheduling operation information, and performing segment validity period change operation identification on the ticket information corresponding to each electronic ticket to obtain segment validity period change operation information; According to the preset matching rules, the rescheduling operation information and the flight segment validity period change operation information, the target electronic ticket with abnormal rescheduling operation behavior is determined from the electronic tickets, and the target electronic ticket is suspended, wherein the preset matching rules are used to describe the rescheduling operation characteristics and the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
2. The method according to claim 1, characterized in that: Performing rescheduling operation identification on the ticket information corresponding to each electronic ticket to obtain rescheduling operation information, including: Determine whether the first field information in the ticket information is a first target field, wherein the first target field is used to represent a rescheduling operation; If the first field information is the first target field, the target rescheduling operation type is determined according to the second field information in the ticket information, wherein the target rescheduling operation type is one of the following: one-step rescheduling within the same PNR, multiple-step rescheduling within the same PNR, and rescheduling between different PNRs; Check whether the second field information meets the format requirements corresponding to the target rescheduling operation type. If the second field information meets the format requirements corresponding to the target rescheduling operation type, extract the flight change information in the second field information to obtain the rescheduling operation information.
3. The method according to claim 1, characterized in that The ticket information corresponding to each electronic ticket is identified as a flight segment validity period change operation to obtain flight segment validity period change operation information, including: Determine whether the first field information in the ticket information is a second target field, wherein the second target field is used to represent a flight segment validity period change operation; If the first field information is the second target field, the flight segment validity period change information in the second field information in the ticket information is extracted to obtain the flight segment validity period change operation information.
4. The method according to claim 1, characterized in that: According to the preset matching rule, the rescheduling operation information and the flight segment validity period change operation information, a target electronic ticket with abnormal rescheduling operation behavior is determined from the electronic tickets, including: Matching the rescheduling operation information with the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rule; If the rescheduling operation information meets the rescheduling operation characteristics corresponding to the abnormal rescheduling operation behavior, the electronic ticket corresponding to the rescheduling operation information is used as the initial electronic ticket; Matching the flight segment validity period change operation information corresponding to the initial electronic ticket with the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior described in the preset matching rule; If the flight segment validity period change operation information corresponding to the initial electronic ticket meets the flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior, the initial electronic ticket is used as the target electronic ticket.
5. The method according to claim 1, characterized in that After the target electronic ticket is suspended, the method further includes: Updating the ticket status of the target electronic ticket to an unavailable status; Prompt information is generated based on the ticket information corresponding to the target electronic ticket, and the prompt information is sent to the target object, wherein the prompt information is used to prompt the existence of abnormal rescheduling operation behavior.
6. The method according to claim 5, characterized in that After sending the prompt information to the target object, the method further includes: When the target object determines that the abnormal rescheduling operation is compliant, the target object's unbinding operation on the target electronic ticket is received, and the ticket status of the target electronic ticket is updated from the unavailable status to the available status.
7. The method according to claim 5, characterized in that After sending the prompt information to the target object, the method further includes: Receiving a rescheduling query request sent by the target object; The rescheduling data corresponding to the query condition included in the rescheduling query request is obtained from the database, and the rescheduling data is displayed.
8. A device for processing civil aviation electronic tickets, characterized in that: include: The acquisition module is used to acquire the message data set of the civil aviation electronic ticket and parse the message data set to obtain the ticket information corresponding to each electronic ticket; The first processing module is used to identify the rescheduling operation on the ticket information corresponding to each electronic ticket to obtain the rescheduling operation information, and to identify the flight segment validity period change operation on the ticket information corresponding to each electronic ticket to obtain the flight segment validity period change operation information; The second processing module is used to determine the target electronic ticket with abnormal rescheduling operation behavior from the electronic tickets according to the preset matching rules, the rescheduling operation information and the flight segment validity period change operation information, and suspend the target electronic ticket, wherein the preset matching rules are used to describe the rescheduling operation characteristics and flight segment validity period change operation characteristics corresponding to the abnormal rescheduling operation behavior.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method for processing civil aviation electronic tickets as described in any one of claims 1 to 7 when running.
10. An electronic device, characterized in that: The electronic device includes one or more processors; A memory for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to run the programs, wherein the program is configured to execute the method for processing civil aviation electronic tickets as described in any one of claims 1 to 7 when running.
