[go: up one dir, main page]

CN116701408A - Flight service primary key processing method and device, electronic equipment and storage medium - Google Patents

Flight service primary key processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116701408A
CN116701408A CN202310961856.4A CN202310961856A CN116701408A CN 116701408 A CN116701408 A CN 116701408A CN 202310961856 A CN202310961856 A CN 202310961856A CN 116701408 A CN116701408 A CN 116701408A
Authority
CN
China
Prior art keywords
flight
data
current
primary key
business
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310961856.4A
Other languages
Chinese (zh)
Other versions
CN116701408B (en
Inventor
周天禄
陈建
刘卫东
卿波
李旺
房天谋
邓定宇
张超
倪佳
赵靖杰
方锐
吴万兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minhang Chengdu Information Technology Co ltd
Second Research Institute of CAAC
Original Assignee
Minhang Chengdu Information Technology Co ltd
Second Research Institute of CAAC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minhang Chengdu Information Technology Co ltd, Second Research Institute of CAAC filed Critical Minhang Chengdu Information Technology Co ltd
Priority to CN202310961856.4A priority Critical patent/CN116701408B/en
Publication of CN116701408A publication Critical patent/CN116701408A/en
Application granted granted Critical
Publication of CN116701408B publication Critical patent/CN116701408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computational Linguistics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application provides a flight service main key processing method, a device, electronic equipment and a storage medium, wherein the flight service main key processing method comprises the following steps: detecting whether the flight running state information of the current flight data meets the standard flight running condition; if yes, acquiring flight number information, flight information and planned execution date of the current flight data, processing the flight number information, the flight information and the planned execution date based on a flight service main key generation rule, generating a target flight service main key of the current flight data, and storing the current flight data and the corresponding target flight service main key into a flight database so as to acquire comprehensive service data information of the current flight according to the flight service main key; the target flight service primary key is unique service account information of a plurality of flight sections corresponding to the flight. The flight data processing method and device are convenient to know the overall data of the flight according to the flight data corresponding to the flight service main key, and improve the flight data processing efficiency.

Description

一种航班业务主键处理方法、装置、电子设备及存储介质Method, device, electronic device and storage medium for processing primary key of flight business

技术领域technical field

本申请涉及航空数据处理技术领域,尤其是涉及一种航班业务主键处理方法、装置、电子设备及存储介质。The present application relates to the technical field of aviation data processing, and in particular to a method, device, electronic equipment and storage medium for processing a flight business master key.

背景技术Background technique

伴随航空信息化建设工作的发展,航空公司在信息化与数字化建设了大量的信息化、数字化系统。现阶段,通常采用根据航班的起落设置航班ID,由于复杂航班如6月25日CA1603北京→哈尔滨→建三江,该航班有两个起落地点,因此航班ID会有两个,也就意味着该ID仅实现了航班单次起落唯一性识别,但是却不能识别两个ID为同一个航班,降低了航班数据的处理效率,难以实现航班全貌信息识别。或者是采用根据机场进出港设计航班ID,此类设计存在对于起飞机场是D的出港航班对于落地机场是A的进港航班,因此此类ID设计原则不能满足全球化需求。所以,伴随大数据和技术应用推广,如何提高航班数据的处理效率成为了不容小觑的技术问题。With the development of aviation information construction work, airlines have built a large number of information and digital systems in information and digitalization. At this stage, the flight ID is usually set according to the departure and landing of the flight. Since the complex flight such as CA1603 Beijing → Harbin → Jiansanjiang on June 25 has two departure and landing points, there will be two flight IDs, which means that the The ID only realizes the unique identification of a single take-off and landing of a flight, but it cannot identify two IDs as the same flight, which reduces the processing efficiency of flight data and makes it difficult to identify the overall information of the flight. Or use the design of flight IDs based on airport arrivals and departures. This type of design has an outbound flight with D as the departure airport and an inbound flight with A as the landing airport. Therefore, this type of ID design principle cannot meet the needs of globalization. Therefore, with the promotion of big data and technology applications, how to improve the processing efficiency of flight data has become a technical issue that cannot be underestimated.

发明内容Contents of the invention

有鉴于此,本申请的目的在于提供一种航班业务主键处理方法、装置、电子设备及存储介质,保证了同一航班的不同飞行航段的航班业务主键相一致,以方便根据一个航班业务主键对应的航班数据了解到该航班的全貌数据,提高了航班数据处理的效率。In view of this, the purpose of this application is to provide a flight service primary key processing method, device, electronic equipment and storage medium, which ensures that the flight service primary keys of different flight segments of the same flight are consistent, so as to facilitate the correspondence of a flight service primary key The flight data can be used to understand the overall data of the flight, which improves the efficiency of flight data processing.

本申请实施例提供了一种航班业务主键处理方法,所述航班业务主键处理方法包括:The embodiment of the present application provides a method for processing a flight service primary key, the method for processing a flight service primary key includes:

检测当前航班数据的航班运行状态信息是否满足标准航班运行条件;Detect whether the flight operation status information of the current flight data meets the standard flight operation conditions;

若是,则获取当前航班数据的航班号信息、航司信息、计划执行日期,基于航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述当前航班数据的目标航班业务主键,并将所述当前航班数据以及相对应的所述目标航班业务主键存储至航班数据库之中,以使根据所述航班业务主键获取到所述当前航班的全面业务数据信息;If so, obtain the flight number information, airline company information, and plan execution date of the current flight data, process the flight number information, the airline company information, and the plan execution date based on the flight business primary key generation rules, and generate the The target flight service primary key of the current flight data, and store the current flight data and the corresponding target flight service primary key in the flight database, so that the comprehensive services of the current flight can be obtained according to the flight service primary key Data information;

其中,所述目标航班业务主键为航班相对应的多个飞行航段的唯一业务账号信息。Wherein, the service primary key of the target flight is the unique service account information of multiple flight segments corresponding to the flight.

在一种可能的实施方式之中,在所述检测当前航班数据的航班运行状态信息是否满足标准航班运行条件之后,所述航班业务主键处理方法还包括:In a possible implementation manner, after detecting whether the flight operation status information of the current flight data satisfies standard flight operation conditions, the flight business primary key processing method further includes:

若是,则在飞行航段主键检测、起飞落地站检测、计划起飞时刻检测以及航线拼接检测之中确定出目标检测方式,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键。If so, determine the target detection mode among the main key detection of the flight segment, the take-off and landing station detection, the planned take-off time detection and the route stitching detection, and the target detection mode is based on the flight number information, the airline company information and the The target flight business primary key of the current flight data is determined according to the plan execution date.

在一种可能的实施方式之中,针对于所述目标检测方式为所述飞行航段主键检测,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键,包括:In a possible implementation manner, the target detection method is the primary key detection of the flight segment, and the target detection method is determined according to the flight number information, the airline company information, and the plan execution date Output the target flight business primary key of the current flight data, including:

检测所述航班数据库中是否存在与所述当前航班数据的飞行航段主键相一致的参考飞行航段主键;Detecting whether there is a reference flight segment primary key consistent with the flight segment primary key of the current flight data in the flight database;

若是,则所述当前航班数据通过所述飞行航段主键检测,并将所述参考飞行航段主键的参考航班业务主键确定为所述当前航班数据的航班业务主键;If so, the current flight data is detected by the primary key of the flight segment, and the reference flight service primary key of the reference flight segment primary key is determined as the flight service primary key of the current flight data;

若否,则所述当前航班数据未通过所述飞行航段主键检测,则基于所述航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述目标航班业务主键。If not, then the current flight data has not passed the primary key detection of the flight segment, then process the flight number information, the airline company information, and the planned execution date based on the flight business primary key generation rules to generate The primary key of the target flight business.

在一种可能的实施方式之中,针对于所述目标检测方式为起飞落地站检测,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键,包括:In a possible implementation manner, the target detection method is takeoff and landing station detection, and the target detection method determines the The target flight business primary key of the current flight data, including:

检测所述航班数据库中是否存在所述当前航班数据中的航班起飞站信息以及航班落地站信息;Detecting whether the flight departure station information and flight landing station information in the current flight data exist in the flight database;

若均存在,则所述当前航班数据通过所述起飞落地站检测,并对所述当前航班数据进行所述计划起飞时刻检测,生成所述当前航班数据相对应的目标航班业务主键;If both exist, the current flight data is detected by the take-off and landing station, and the planned departure time is detected for the current flight data, and the corresponding target flight business key is generated for the current flight data;

若任一不存在,则所述当前航班数据未通过所述起飞落地站检测,对所述当前航班数据进行所述航线拼接检测,生成所述当前航班数据相对应的目标航班业务主键。If any of them does not exist, the current flight data has not passed the detection of the take-off and landing stations, and the flight route splicing detection is performed on the current flight data to generate the target flight business key corresponding to the current flight data.

在一种可能的实施方式之中,所述当前航班数据通过所述起飞落地站检测,并对所述当前航班数据进行所述计划起飞时刻检测,生成所述当前航班数据相对应的目标航班业务主键,包括:In a possible implementation manner, the current flight data is detected by the take-off and landing station, and the planned departure time is detected on the current flight data to generate the target flight service corresponding to the current flight data primary key, including:

检测所述航班数据库中是否存在所述当前航班数据的计划起飞时刻相一致的参考计划起飞时刻;Detecting whether there is a reference planned departure time consistent with the planned departure time of the current flight data in the flight database;

若是,则确定出所述参考计划起飞时刻相对应的航班数据与所述当前航班数据指向同一个航班,并将所述参考计划起飞时刻相对应的参考航班业务主键确定为所述当前航班数据相对应的目标航班业务主键;If so, it is determined that the flight data corresponding to the reference planned departure time and the current flight data point to the same flight, and the reference flight service master key corresponding to the reference planned departure time is determined as the current flight data. The corresponding target flight business primary key;

若否,则基于所述航班号信息、航司信息、计划执行日期生成所述航班业务主键。If not, the flight business primary key is generated based on the flight number information, airline company information, and planned execution date.

在一种可能的实施方式之中,所述当前航班数据未通过所述起飞落地站检测,对所述当前航班数据进行所述航线拼接检测,生成所述当前航班数据相对应的目标航班业务主键,包括:In a possible implementation manner, the current flight data has not passed the detection of the take-off and landing station, and the route splicing detection is performed on the current flight data to generate a target flight service primary key corresponding to the current flight data ,include:

基于航班拼接规则检测所述当前航班数据与航班数据库中的参考航班数据是否进行航班拼接;Detecting whether flight splicing is performed between the current flight data and the reference flight data in the flight database based on flight splicing rules;

若是,则确定出所述前航班数据对应的航班与所述参考航班数据对应的航班是同一航班的不同飞行航段,将所述参考航班数据的参考航班业务主键确定为所述当前航班数据相对应的目标航班业务主键;If so, it is determined that the flight corresponding to the previous flight data and the flight corresponding to the reference flight data are different flight segments of the same flight, and the reference flight service primary key of the reference flight data is determined as the corresponding flight segment of the current flight data. The corresponding target flight business primary key;

若否,则确定出所述前航班数据对应的航班与所述参考航班数据对应的航班不是同一航班,基于所述航班号信息、航司信息、计划执行日期生成所述目标航班业务主键。If not, it is determined that the flight corresponding to the previous flight data is not the same flight as the flight corresponding to the reference flight data, and the target flight business key is generated based on the flight number information, airline company information, and planned execution date.

在一种可能的实施方式之中,所述航班拼接规则包括以下任意一种:In a possible implementation manner, the flight splicing rules include any of the following:

所述当前航班数据的落地站信息与所述参考航班数据对应的起飞站信息相一致;The landing station information of the current flight data is consistent with the departure station information corresponding to the reference flight data;

或者,所述当前航班数据的起飞站信息与所述参考航班数据对应的落地站信息相一致。Alternatively, the departure station information of the current flight data is consistent with the landing station information corresponding to the reference flight data.

本申请实施例还提供了一种航班业务主键处理装置,所述航班业务主键处理装置包括:The embodiment of the present application also provides a flight business master key processing device, the flight business master key processing device comprising:

检测模块,用于检测当前航班数据的航班运行状态信息是否满足标准航班运行条件;The detection module is used to detect whether the flight operation status information of the current flight data meets the standard flight operation conditions;

产生模块,用于若是,则获取当前航班数据的航班号信息、航司信息、计划执行日期,基于航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述当前航班数据的目标航班业务主键,并将所述当前航班数据以及相对应的所述目标航班业务主键存储至航班数据库之中,以使根据所述航班业务主键获取到所述当前航班的全面业务数据信息;其中,所述目标航班业务主键为航班相对应的多个飞行航段的唯一业务账号信息。A generation module, used to obtain the flight number information, airline company information, and plan execution date of the current flight data, and perform the flight number information, the airline company information, and the plan execution date based on the flight business master key generation rule processing, generating the target flight business key of the current flight data, and storing the current flight data and the corresponding target flight business key in the flight database, so that the Comprehensive business data information of the current flight; wherein, the target flight business key is the unique business account information of multiple flight segments corresponding to the flight.

本申请实施例还提供一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如上述的航班业务主键处理方法的步骤。The embodiment of the present application also provides an electronic device, including: a processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the The memories communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned flight service master key processing method are executed.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如上述的航班业务主键处理方法的步骤。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the above-mentioned method for processing the flight business master key are executed.

本申请实施例提供的一种航班业务主键处理方法、装置、电子设备及存储介质,所述航班业务主键处理方法包括:检测当前航班数据的航班运行状态信息是否满足标准航班运行条件;若是,则获取当前航班数据的航班号信息、航司信息、计划执行日期,基于航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述当前航班数据的目标航班业务主键,并将所述当前航班数据以及相对应的所述目标航班业务主键存储至航班数据库之中,以使根据所述航班业务主键获取到所述当前航班的全面业务数据信息;其中,所述目标航班业务主键为航班相对应的多个飞行航段的唯一业务账号信息。本方案的有益效果为:保证了同一航班的不同飞行航段的航班业务主键相一致,以方便根据一个航班业务主键对应的航班数据了解到该航班的全貌数据,提高了航班数据处理的效率。The embodiment of the present application provides a flight service master key processing method, device, electronic equipment, and storage medium. The flight service master key processing method includes: detecting whether the flight operation status information of the current flight data meets the standard flight operation conditions; if so, then Obtain the flight number information, airline company information, and plan execution date of the current flight data, process the flight number information, the airline company information, and the plan execution date based on the flight business primary key generation rules, and generate the current flight data the target flight business key, and store the current flight data and the corresponding target flight business key in the flight database, so that the comprehensive business data information of the current flight can be obtained according to the flight business key; Wherein, the service primary key of the target flight is the unique service account information of multiple flight segments corresponding to the flight. The beneficial effects of this solution are: ensuring that the primary keys of the flight services of different flight segments of the same flight are consistent, so that the overall data of a flight can be learned according to the flight data corresponding to the primary key of a flight service, and the efficiency of flight data processing is improved.

为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned purpose, features and advantages of the present application more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that are required in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and thus It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.

图1为本申请实施例所提供的一种航班业务主键处理方法的流程图之一;Fig. 1 is one of the flow charts of a method for processing a flight service primary key provided by the embodiment of the present application;

图2为本申请实施例所提供的一种航班业务主键处理方法的流程图之二;Fig. 2 is the second flow chart of a method for processing the primary key of flight business provided by the embodiment of the present application;

图3为本申请实施例所提供的一种航班业务主键处理装置的结构示意图之一;FIG. 3 is one of the structural schematic diagrams of a flight service master key processing device provided by the embodiment of the present application;

图4为本申请实施例所提供的一种航班业务主键处理装置的结构示意图之二;Fig. 4 is the second structural schematic diagram of a flight business master key processing device provided by the embodiment of the present application;

图5为本申请实施例所提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,应当理解,本申请中的附图仅起到说明和描述的目的,并不用于限定本申请的保护范围。另外,应当理解,示意性的附图并未按实物比例绘制。本申请中使用的流程图示出了根据本申请的一些实施例实现的操作。应当理解,流程图的操作可以不按顺序实现,没有逻辑的上下文关系的步骤可以反转顺序或者同时实施。此外,本领域技术人员在本申请内容的指引下,可以向流程图添加一个或多个其他操作,也可以从流程图中移除一个或多个操作。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the technical solutions in the embodiments of the present application The drawings are only for the purpose of illustration and description, and are not used to limit the protection scope of the present application. Additionally, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented in accordance with some embodiments of the application. It should be understood that the operations of the flowcharts may be performed out of order, and steps that do not have a logical context may be performed in reverse order or simultaneously. In addition, those skilled in the art may add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of the present application.

另外,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的全部其他实施例,都属于本申请保护的范围。In addition, the described embodiments are only some of the embodiments of the application, not all of the embodiments. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of the present application.

为了使得本领域技术人员能够使用本申请内容,结合特定应用场景“对航班业务主键进行确定”,给出以下实施方式,对于本领域技术人员来说,在不脱离本申请的精神和范围的情况下,可以将这里定义的一般原理应用于其他实施例和应用场景。In order to enable those skilled in the art to use the content of this application, combined with the specific application scenario "determining the primary key of the flight service", the following implementation methods are given. For those skilled in the art, without departing from the spirit and scope of this application Next, the general principles defined here can be applied to other embodiments and application scenarios.

本申请实施例下述方法、装置、电子设备或计算机可读存储介质可以应用于任何需要对航班业务主键进行确定的场景,本申请实施例并不对具体的应用场景作限制,任何使用本申请实施例提供的一种航班业务主键处理方法、装置、电子设备及存储介质的方案均在本申请保护范围内。The following methods, devices, electronic devices, or computer-readable storage media in the embodiments of the present application can be applied to any scenario where the primary key of the flight business needs to be determined. The embodiments of the present application do not limit the specific application scenarios. The schemes of a method, device, electronic equipment and storage medium for processing a flight business master key provided in the example are all within the scope of protection of this application.

首先,对本申请可适用的应用场景进行介绍。本申请可应用于航空数据处理技术领域。First, the applicable application scenarios of this application are introduced. The application can be applied to the technical field of aviation data processing.

经研究发现,伴随航空信息化建设工作的发展,航空公司在信息化与数字化建设了大量的信息化、数字化系统。现阶段,通常采用根据航班的起落设置航班ID,由于复杂航班如6月25日CA1603北京→哈尔滨→建三江,该航班有两个起落地点,因此航班ID会有两个,也就意味着该ID仅实现了航班单次起落唯一性识别,但是却不能识别两个ID为同一个航班,降低了航班数据的处理效率,难以实现航班全貌信息识别。或者是采用根据机场进出港设计航班ID,此类设计存在对于起飞机场是D的出港航班对于落地机场是A的进港航班,因此此类ID设计原则不能满足全球化需求。所以,伴随大数据和技术应用推广,如何提高航班数据的处理效率成为了不容小觑的技术问题。After research, it is found that with the development of aviation information construction, airlines have built a large number of information and digital systems in terms of information and digitalization. At this stage, the flight ID is usually set according to the departure and landing of the flight. Since the complex flight such as CA1603 Beijing → Harbin → Jiansanjiang on June 25 has two departure and landing points, there will be two flight IDs, which means that the The ID only realizes the unique identification of a single take-off and landing of a flight, but it cannot identify two IDs as the same flight, which reduces the processing efficiency of flight data and makes it difficult to identify the overall information of the flight. Or use the design of flight IDs based on airport arrivals and departures. This type of design has an outbound flight with D as the departure airport and an inbound flight with A as the landing airport. Therefore, this type of ID design principle cannot meet the needs of globalization. Therefore, with the promotion of big data and technology applications, how to improve the processing efficiency of flight data has become a technical issue that cannot be underestimated.

基于此,本申请实施例提供了一种航班业务主键处理方法,保证了同一航班的不同飞行航段的航班业务主键相一致,以方便根据一个航班业务主键对应的航班数据了解到该航班的全貌数据,提高了航班数据处理的效率。Based on this, the embodiment of the present application provides a method for processing flight service primary keys, which ensures that the flight service primary keys of different flight segments of the same flight are consistent, so as to facilitate the understanding of the whole picture of a flight according to the flight data corresponding to the flight service primary key data, improving the efficiency of flight data processing.

请参阅图1,图1为本申请实施例所提供的一种航班业务主键处理方法的流程图之一。如图1中所示,本申请实施例提供的航班业务主键处理方法,包括:Please refer to FIG. 1 . FIG. 1 is one of the flow charts of a method for processing a flight business primary key provided by an embodiment of the present application. As shown in Figure 1, the flight business primary key processing method provided by the embodiment of the present application includes:

S101:检测当前航班数据的航班运行状态信息是否满足标准航班运行条件。S101: Detect whether the flight operation status information of the current flight data satisfies the standard flight operation conditions.

该步骤中,检测当前航班数据的航班运行状态信息是否满足标准航班运行条件。In this step, it is detected whether the flight operation status information of the current flight data satisfies the standard flight operation conditions.

其中,若前航班数据的航班运行状态信息为航班临时取消、航班长期取消、航班备降、航班返航等其他航班发生的特殊情况,则该航班运行状态信息是不满足标准航班运行条件,所以,不需要对航班业务主键的生成。Among them, if the flight operation status information of the previous flight data is a special case of other flights such as temporary flight cancellation, long-term flight cancellation, flight alternate landing, flight return, etc., the flight operation status information does not meet the standard flight operation conditions. Therefore, There is no need to generate the primary key for the flight business.

S102:若是,则获取当前航班数据的航班号信息、航司信息、计划执行日期,基于航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述当前航班数据的目标航班业务主键,并将所述当前航班数据以及相对应的所述目标航班业务主键存储至航班数据库之中,以使根据所述航班业务主键获取到所述当前航班的全面业务数据信息。S102: If yes, obtain the flight number information, airline company information, and plan execution date of the current flight data, process the flight number information, the airline company information, and the plan execution date based on the flight business primary key generation rules, and generate The target flight business key of the current flight data, and store the current flight data and the corresponding target flight business key in the flight database, so that the current flight business key can be obtained according to the flight business key Comprehensive business data information.

该步骤中,若当前航班数据的航班运行状态信息满足标准航班运行条件,则获取到当前航班数据的航班号信息、航司信息、计划执行日期,根据航班业务主键生成规则对航班号信息、航司信息以及计划执行日期进行处理,生成当前航班数据的目标航班业务主键,并将当前航班数据以及相对应的目标航班业务主键存储至航班数据库之中,以使根据航班业务主键获取到当前航班的全面业务数据信息。In this step, if the flight operation status information of the current flight data meets the standard flight operation conditions, the flight number information, airline company information, and plan execution date of the current flight data are obtained, and the flight number information, airline Company information and plan execution date are processed to generate the target flight business key of the current flight data, and the current flight data and the corresponding target flight business key are stored in the flight database, so that the current flight’s business key can be obtained according to the flight business key Comprehensive business data information.

其中,航班业务主键生成规则为对航班号信息、航司信息以及计划执行日期进行数据组合生成航班业务主键,如,航班业务主键为CA-1110-20220520、ZH-9115-20221012、SC-312X-20221128等,这里,CA、ZH、SC均为航司信息、1110、9115、312X均为航班号信息,20220520、20221012、20221128均为计划执行日期。Among them, the flight business primary key generation rule is to combine the flight number information, airline information and plan execution date to generate the flight business primary key. For example, the flight business primary key is CA-1110-20220520, ZH-9115-20221012, SC-312X- 20221128, etc. Here, CA, ZH, and SC are airline company information, 1110, 9115, and 312X are flight number information, and 20220520, 20221012, and 20221128 are plan execution dates.

其中,航班业务主键生成规则可为航班号信息-航司信息-计划执行日期,航司信息-航班号信息-计划执行日期,或者是计划执行日期-航司信息-航班号信息等。Among them, the flight business primary key generation rule can be flight number information-airline company information-planned execution date, airline company information-flight number information-planned execution date, or planned execution date-airline company information-flight number information, etc.

其中,航司信息是由国际航空运输协会(IATA)分配给航空公司的两字字母代码用于识别和区分不同的航空公司。航班号信息由3-4位数字及可能存在最后一位字母组成的字符构成。Among them, airline company information is a two-letter letter code assigned to airlines by the International Air Transport Association (IATA) to identify and distinguish different airlines. The flight number information consists of 3-4 digits and possibly the last letter.

其中,所述目标航班业务主键为航班相对应的多个飞行航段的唯一业务账号信息。Wherein, the service primary key of the target flight is the unique service account information of multiple flight segments corresponding to the flight.

其中,将目标航班业务主键以及前航班数据存储至航班数据库之中,如:飞行航段主键:Case-222,航司信息:CA,航班信息:2222,计划执行日期:2023/6/1,计划起飞时刻:2023/6/1/10:00,起飞站信息:首都机场,落地站信息:天府机场,计划落地时刻:2023/6/1/13:00; 实际落地时刻:2023/6/1/13:10;航班业务主键:CA-2222-20230601。Among them, the target flight business key and previous flight data are stored in the flight database, such as: flight segment key: Case-222, airline company information: CA, flight information: 2222, plan execution date: 2023/6/1, Planned departure time: 2023/6/1/10:00, departure station information: Capital Airport, landing station information: Tianfu Airport, planned landing time: 2023/6/1/13:00; actual landing time: 2023/6/ 1/13:10; flight business primary key: CA-2222-20230601.

如北京-成都-拉萨的某航班,拥有两个飞行航段,现有的方案中是北京出港id、成都进港id、成都出港id、拉萨进港id,也就是说一个航班有四个id,因此难以从任何一个id对应的数据了解该航班全貌,所以根据本方案中确定出航班的航班业务主键,即,两个飞行航段对应的航班业务主键为同一个,可以实现根据航班业务主键获取到该航班在整个飞行航段对应的数据。打破航司运控根据航班单次起落的航节设计模式,实现多航节(飞行航段)航班的唯一数据主键GID(航班业务主键),消除传统系统中多航节航班对应多个业务主键的技术问题及业务认知差异。For example, a Beijing-Chengdu-Lhasa flight has two flight segments. In the existing scheme, there are Beijing departure id, Chengdu arrival id, Chengdu departure id, and Lhasa arrival id. That is to say, a flight has four ids , so it is difficult to know the whole picture of the flight from the data corresponding to any id, so the flight business primary key of the flight is determined according to this scheme, that is, the flight business primary key corresponding to the two flight segments is the same, and it can be realized according to the flight business primary key Obtain the data corresponding to the flight in the entire flight segment. Break the flight control design mode based on a single take-off and landing of a flight, realize the unique data master key GID (flight business master key) of multi-segment (flight segment) flights, and eliminate multiple business master keys corresponding to multi-segment flights in the traditional system Technical problems and business cognition differences.

本申请实施例提供的一种航班业务主键处理方法,所述航班业务主键处理方法包括:检测当前航班数据的航班运行状态信息是否满足标准航班运行条件;若是,则获取当前航班数据的航班号信息、航司信息、计划执行日期,基于航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述当前航班数据的目标航班业务主键,并将所述当前航班数据以及相对应的所述目标航班业务主键存储至航班数据库之中,以使根据所述航班业务主键获取到所述当前航班的全面业务数据信息;其中,所述目标航班业务主键为航班相对应的多个飞行航段的唯一业务账号信息。保证了同一航班的不同飞行航段的航班业务主键相一致,以方便根据一个航班业务主键对应的航班数据了解到该航班的全貌数据,提高了航班数据处理的效率。An embodiment of the present application provides a flight business primary key processing method, the flight business primary key processing method includes: detecting whether the flight operation status information of the current flight data meets the standard flight operation conditions; if so, obtaining the flight number information of the current flight data , airline company information, plan execution date, based on flight business primary key generation rules, process the flight number information, the airline company information and the plan execution date, generate the target flight business primary key of the current flight data, and The current flight data and the corresponding target flight business key are stored in the flight database, so that the comprehensive business data information of the current flight can be obtained according to the flight business key; wherein, the target flight business key It is the unique business account information of multiple flight segments corresponding to the flight. It ensures that the flight service primary keys of different flight segments of the same flight are consistent, so that the overall data of a flight can be learned according to the flight data corresponding to a flight service primary key, and the efficiency of flight data processing is improved.

请参阅图2,图2为本申请实施例所提供的一种航班业务主键处理方法的流程图之二。如图2中所示,本申请实施例提供的航班业务主键处理方法,包括:Please refer to FIG. 2 . FIG. 2 is the second flow chart of a method for processing a flight service primary key provided by an embodiment of the present application. As shown in Figure 2, the flight business primary key processing method provided by the embodiment of the present application includes:

S201:检测当前航班数据的航班运行状态信息是否满足标准航班运行条件。S201: Detect whether the flight operation status information of the current flight data satisfies the standard flight operation conditions.

S202:若是,则在飞行航段主键检测、起飞落地站检测、计划起飞时刻检测以及航线拼接检测之中确定出目标检测方式,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键。S202: If yes, determine the target detection method among the primary key detection of the flight segment, the take-off and landing station detection, the planned take-off time detection, and the flight line splicing detection, and the target detection method is based on the flight number information and the airline company information And the plan execution date determines the target flight business primary key of the current flight data.

该步骤中,若当前航班数据的航班运行状态信息满足标准航班运行条件,则在飞行航段主键检测、起飞落地站检测、计划起飞时刻检测以及航线拼接检测之中筛选出任意检测方式作为目标检测方式,目标检测方式根据航班号信息、航司信息以及计划执行日期确定出当前航班数据的目标航班业务主键。In this step, if the flight operation status information of the current flight data meets the standard flight operation conditions, any detection method is selected from the primary key detection of the flight segment, the detection of the takeoff and landing station, the detection of the planned departure time, and the detection of the route splicing as the target detection method, the target detection method determines the target flight business primary key of the current flight data according to the flight number information, airline company information and plan execution date.

其中,所述飞行航段主键检测为在航班数据库中检测是否存在所述当前航班数据的飞行航段主键。Wherein, the detection of the primary key of the flight segment is to detect whether the primary key of the flight segment of the current flight data exists in the flight database.

其中,所述起飞落地站检测在所述航班数据库中检测是否存在所述当前航班数据的起飞站信息以及落地站信息。Wherein, the take-off and landing station detection detects whether there is departure station information and landing station information of the current flight data in the flight database.

其中,所述计划起飞时刻检测为在航班数据库中检测是否存在所述当前航班数据的计划起飞时刻。Wherein, the detection of the planned departure time is detecting whether the planned departure time of the current flight data exists in the flight database.

其中,所述航线拼接检测在所述航班数据库中检测是否存在与所述当前航班数据进行拼接的航班数据。Wherein, the route splicing detection detects whether there is flight data spliced with the current flight data in the flight database.

这里,还可以根据飞行航段主键检测、起飞落地站检测、计划起飞时刻检测以及航线拼接检测之中的至少两种检测确定出当前航班数据的目标航班业务主键。Here, the target flight service primary key of the current flight data can also be determined according to at least two detections among flight segment primary key detection, takeoff and landing station detection, planned takeoff time detection, and route stitching detection.

在一种可能的实施方式之中,针对于所述目标检测方式为所述飞行航段主键检测,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键,包括:In a possible implementation manner, the target detection method is the primary key detection of the flight segment, and the target detection method is determined according to the flight number information, the airline company information, and the plan execution date Output the target flight business primary key of the current flight data, including:

A:检测所述航班数据库中是否存在与所述当前航班数据的飞行航段主键相一致的参考飞行航段主键。A: Detect whether there is a reference flight segment primary key consistent with the flight segment primary key of the current flight data in the flight database.

这里,检测航班数据库中是否存在与当前航班数据的飞行航段主键相一致的参考飞行航段主键。Here, it is detected whether there is a reference flight segment primary key consistent with the flight segment primary key of the current flight data in the flight database.

其中,飞行航段主键为航班在一个飞行航段过程中航班的业务账号信息。Wherein, the primary key of the flight segment is the business account information of the flight during a flight segment.

B:若是,则所述当前航班数据通过所述飞行航段主键检测,并将所述参考飞行航段主键的参考航班业务主键确定为所述当前航班数据的航班业务主键。B: If yes, the current flight data is detected by the primary key of the flight segment, and the reference flight service primary key of the reference flight segment primary key is determined as the flight service primary key of the current flight data.

这里,若存在,则当前航班数据通过飞行航段主键检测,并将参考飞行航段主键的参考航班业务主键确定为当前航班数据的航班业务主键。Here, if it exists, the current flight data is detected by the primary key of the flight segment, and the reference flight service primary key of the reference flight segment primary key is determined as the flight service primary key of the current flight data.

其中,若当前航班数据的飞行航段主键在航班数据库中存在,则说明航班数据库中已经有当前航班数据对应的飞行航段了,只需要将当前航班数据的信息更新至参考航班业务主键下相对应的参考飞行航段主键的数据之中。Among them, if the primary key of the flight segment of the current flight data exists in the flight database, it means that the flight segment corresponding to the current flight data already exists in the flight database, and it is only necessary to update the information of the current flight data to the corresponding one under the reference flight business primary key. Among the data corresponding to the primary key of the reference flight segment.

C:若否,则所述当前航班数据未通过所述飞行航段主键检测,则基于所述航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述目标航班业务主键。C: If not, the current flight data has not passed the primary key detection of the flight segment, then process the flight number information, the airline company information, and the planned execution date based on the flight business primary key generation rules , to generate the target flight business primary key.

这里,若不存在,则当前航班数据未通过所述飞行航段主键检测,则根据航班业务主键生成规则对航班号信息、航司信息以及计划执行日期进行处理,生成目标航班业务主键,并将目标航班业务主键以及相对应的当前航班数据更新至航班数据库中。Here, if it does not exist, the current flight data has not passed the primary key detection of the flight segment, then process the flight number information, airline company information and plan execution date according to the flight business primary key generation rules, generate the target flight business primary key, and The target flight business primary key and the corresponding current flight data are updated to the flight database.

在一种可能的实施方式之中,针对于所述目标检测方式为起飞落地站检测,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键,包括:In a possible implementation manner, the target detection method is takeoff and landing station detection, and the target detection method determines the The target flight business primary key of the current flight data, including:

a:检测所述航班数据库中是否存在所述当前航班数据中的航班起飞站信息以及航班落地站信息。a: Detecting whether the flight departure station information and flight landing station information in the current flight data exist in the flight database.

这里,检测航班数据库中是否存在当前航班数据中的航班起飞站信息以及航班落地站信息。Here, it is detected whether there is flight departure station information and flight arrival station information in the current flight data in the flight database.

b:若均存在,则所述当前航班数据通过所述起飞落地站检测,并对所述当前航班数据进行所述计划起飞时刻检测,生成所述当前航班数据相对应的目标航班业务主键。b: If both exist, then the current flight data is detected by the take-off and landing station, and the planned departure time is detected for the current flight data, and the target flight business key corresponding to the current flight data is generated.

这里,若均存在,则当前航班数据通过起飞落地站检测,并对当前航班数据进行计划起飞时刻检测,生成当前航班数据相对应的目标航班业务主键。Here, if both exist, the current flight data is detected by the departure and landing stations, and the planned departure time is detected on the current flight data to generate the target flight business key corresponding to the current flight data.

在一种可能的实施方式之中,所述当前航班数据通过所述起飞落地站检测,并对所述当前航班数据进行所述计划起飞时刻检测,生成所述当前航班数据相对应的目标航班业务主键,包括:In a possible implementation manner, the current flight data is detected by the take-off and landing station, and the planned departure time is detected on the current flight data to generate the target flight service corresponding to the current flight data primary key, including:

I:检测所述航班数据库中是否存在所述当前航班数据的计划起飞时刻相一致的参考计划起飞时刻。I: Detecting whether there is a reference planned departure time consistent with the planned departure time of the current flight data in the flight database.

这里,检测航班数据库中是否存在当前航班数据的计划起飞时刻相一致的参考计划起飞时刻。Here, it is detected whether there is a reference planned departure time consistent with the planned departure time of the current flight data in the flight database.

II:若是,则确定出所述参考计划起飞时刻相对应的航班数据与所述当前航班数据指向同一个航班,并将所述参考计划起飞时刻相对应的参考航班业务主键确定为所述当前航班数据相对应的目标航班业务主键。II: If yes, determine that the flight data corresponding to the reference planned departure time and the current flight data point to the same flight, and determine the reference flight business key corresponding to the reference planned departure time as the current flight The primary key of the target flight business corresponding to the data.

这里,若是,则确定出参考计划起飞时刻相对应的航班数据与当前航班数据指向同一个航班,并将参考计划起飞时刻相对应的参考航班业务主键确定为当前航班数据相对应的目标航班业务主键。Here, if yes, it is determined that the flight data corresponding to the reference planned departure time and the current flight data point to the same flight, and the reference flight business key corresponding to the reference planned departure time is determined as the target flight business key corresponding to the current flight data .

其中,当航班数据库中存在与当前航班数据“航司信息、航班号信息、计划执行日期信息、起飞站信息、落地站信息、计划起飞时刻信息”完全一样但飞行航段主键不一样的飞行航段记录。根据生产业务实际情况,两条数据实际指的是同一个航班,因此将当前航班数据的信息覆盖航班数据库中相同飞行航段的数据信息。Among them, when there is a flight in the flight database that is exactly the same as the current flight data "airline company information, flight number information, plan execution date information, departure station information, landing station information, and plan departure time information" but the primary key of the flight segment is different segment records. According to the actual situation of the production business, the two data actually refer to the same flight, so the information of the current flight data overwrites the data information of the same flight segment in the flight database.

III:若否,则基于所述航班号信息、航司信息、计划执行日期生成所述航班业务主键。III: If not, generate the flight business primary key based on the flight number information, airline company information, and planned execution date.

这里,若否,则根据航班号信息、航司信息、计划执行日期生成航班业务主键。Here, if not, generate a flight business primary key based on flight number information, airline company information, and planned execution date.

其中,当航班数据库中存在与当前航班数据“航司信息、航班号信息、计划执行日期信息、起飞站信息、落地站信息”,但“计划起飞时刻信息”不一样的航节记录,说明航班数据库中记录的航班与当前数据对应的航班不是同一个航班。因此当前航班数据需要新生成班业务主键GID,生成规则“航司信息-航班号信息(含后缀G)-计划执行日期信息”,此处会在航班号后面添加大写G,代表由于上游某些特殊的原因导致同一天有两个航班号一样但计划起飞时刻不一样的两个航班。使用新生成的带G的航班业务主键GID将本条数据插入到航班数据库之中。Among them, when there is a flight date record in the flight database that is different from the current flight data "airline company information, flight number information, plan execution date information, departure station information, and landing station information", but the "planned departure time information" indicates that the flight The flight recorded in the database is not the same flight as the flight corresponding to the current data. Therefore, the current flight data needs to generate a new flight business primary key GID, and generate the rule "airline company information - flight number information (including suffix G) - plan execution date information". Due to special reasons, there are two flights with the same flight number but different scheduled departure times on the same day. Use the newly generated flight business primary key GID with G to insert this data into the flight database.

c:若任一不存在,则所述当前航班数据未通过所述起飞落地站检测,对所述当前航班数据进行所述航线拼接检测,生成所述当前航班数据相对应的目标航班业务主键。c: If any one does not exist, the current flight data has not passed the detection of the take-off and landing station, and the route splicing detection is performed on the current flight data to generate the target flight business key corresponding to the current flight data.

这里,若任一不存在,则当前航班数据未通过起飞落地站检测,对当前航班数据进行航线拼接检测,生成当前航班数据相对应的目标航班业务主键。Here, if any one does not exist, the current flight data has not passed the detection of the take-off and landing stations, and the route splicing detection is performed on the current flight data to generate the target flight business key corresponding to the current flight data.

在一种可能的实施方式之中,所述当前航班数据未通过所述起飞落地站检测,对所述当前航班数据进行所述航线拼接检测,生成所述当前航班数据相对应的目标航班业务主键,包括:In a possible implementation manner, the current flight data has not passed the detection of the take-off and landing station, and the route splicing detection is performed on the current flight data to generate a target flight service primary key corresponding to the current flight data ,include:

i:基于航班拼接规则检测所述当前航班数据与航班数据库中的参考航班数据是否进行航班拼接。i: Detecting whether flight splicing is performed between the current flight data and the reference flight data in the flight database based on flight splicing rules.

这里,根据航班拼接规则检测当前航班数据与航班数据库中的参考航班数据是否进行航班拼接。Here, according to the flight splicing rules, it is detected whether the flight splicing is performed between the current flight data and the reference flight data in the flight database.

在一种可能的实施方式之中,所述航班拼接规则包括以下任意一种:In a possible implementation manner, the flight splicing rules include any of the following:

所述当前航班数据的落地站信息与所述参考航班数据对应的起飞站信息相一致;The landing station information of the current flight data is consistent with the departure station information corresponding to the reference flight data;

或者,所述当前航班数据的起飞站信息与所述参考航班数据对应的落地站信息相一致。Alternatively, the departure station information of the current flight data is consistent with the landing station information corresponding to the reference flight data.

ii:若是,则确定出所述前航班数据对应的航班与所述参考航班数据对应的航班是同一航班的不同飞行航段,将所述参考航班数据的参考航班业务主键确定为所述当前航班数据相对应的目标航班业务主键。ii: If yes, determine that the flight corresponding to the previous flight data and the flight corresponding to the reference flight data are different flight segments of the same flight, and determine the reference flight business primary key of the reference flight data as the current flight The primary key of the target flight business corresponding to the data.

这里,若是,则确定出前航班数据对应的航班与参考航班数据对应的航班是同一航班的不同飞行航段,将参考航班数据的参考航班业务主键确定为当前航班数据相对应的目标航班业务主键。Here, if yes, it is determined that the flight corresponding to the previous flight data and the flight corresponding to the reference flight data are different flight segments of the same flight, and the reference flight service primary key of the reference flight data is determined as the target flight service primary key corresponding to the current flight data.

在具体实施例之中,可以进行航班拼接时,即航班数据库中的参考航班数据中与当前航班数据的“航司信息、航班号信息、计划执行日期信息”完全一样但飞行航段主键不一样,二者之间可以进行航班拼接,说明航班数据库记录的飞行航段与当前航班数据的飞行航段是同一个航班的不同飞行航段数据,所以当前航班数据需要使用航班数据库中的参考航班业务主键GID进行数据更新。In a specific embodiment, when flight splicing is possible, that is, the reference flight data in the flight database is exactly the same as the "airline company information, flight number information, and plan execution date information" of the current flight data but the primary key of the flight segment is different , the flight can be spliced between the two, indicating that the flight segment recorded in the flight database and the flight segment of the current flight data are different flight segment data of the same flight, so the current flight data needs to use the reference flight business in the flight database Primary key GID for data update.

iii:若否,则确定出所述前航班数据对应的航班与所述参考航班数据对应的航班不是同一航班,基于所述航班号信息、航司信息、计划执行日期生成所述目标航班业务主键。iii: If not, it is determined that the flight corresponding to the previous flight data is not the same flight as the flight corresponding to the reference flight data, and the business primary key of the target flight is generated based on the flight number information, airline company information, and planned execution date .

这里,若否,则确定出前航班数据对应的航班与参考航班数据对应的航班不是同一航班,将根据航班号信息、航司信息、计划执行日期生成目标航班业务主键。Here, if not, it is determined that the flight corresponding to the previous flight data and the flight corresponding to the reference flight data are not the same flight, and the target flight business primary key will be generated according to the flight number information, airline company information, and planned execution date.

在具体实施例之中,不可以进行航班拼接时,即航班数据库中的参考航班数据中与当前航班数据的“航司信息、航班号信息、计划执行日期信息”完全一样但飞行航段主键不一样,二者之间不可以进行航班拼接,说明航班数据库记录的飞行航段与当前航班数据的飞行航段是不是同一个航班,所以需要根据当前航班数据生成目标航班业务主键。In a specific embodiment, when flight splicing is not possible, that is, the reference flight data in the flight database is exactly the same as the "airline company information, flight number information, and plan execution date information" of the current flight data, but the primary key of the flight segment is different. Similarly, flight splicing is not allowed between the two, indicating whether the flight segment recorded in the flight database is the same flight segment as the current flight data, so it is necessary to generate the target flight business primary key based on the current flight data.

在另一具体实施例之中,检测航班数据库中是否存在与当前航班数据的飞行航段主键相一致的参考飞行航段主键;若是,则通过飞行航段主键检测,并将参考飞行航段主键的参考航班业务主键确定为当前航班数据的目标航班业务主键。若未通过飞行航段主键检测,则检测航班数据库中是否均存在当前航班数据中的航班号信息、航司信息以及计划执行日期;若均存在航班号信息、航司信息以及计划执行日期,则当前航班数据未通过航班信息检测;若任一个上述信息不存在,则当前航班数据通过航班信息检测,并基于航班号信息、航司信息以及计划执行日期生成当前航班数据相对应的目标航班业务主键。若未通过航班信息检测,检测航班数据库中是否存在当前航班数据中的航班起飞站信息以及航班落地站信息,若航班起飞站信息以及航班落地站信息均存在,检测航班数据库中是否存在当前航班数据的计划起飞时刻相一致的参考计划起飞时刻;若计划起飞时刻相一致,则将参考计划起飞时刻相对应的参考航班业务主键确定为当前航班数据相对应的航班业务主键;若计划起飞时刻不一致,则基于当前航班数据生成当前航班数据相对应的航班业务主键。若航班起飞站信息以及航班落地站信息任一不存在,基于航班拼接规则检测当前航班数据与航班数据库中的参考航班数据是否进行航班拼接;若能拼接,则确定出前航班数据对应的航班与参考航班数据对应的航班是同一航班的不同航节,将参考航班数据的参考航班业务主键确定为当前航班数据相对应的航班业务主键;若不能拼接,则确定出前航班数据对应的航班与参考航班数据对应的航班不是同一航班,将基于当前航班数据确定出当前航班数据相对应的航班业务主键。In another specific embodiment, it is detected whether there is a reference flight segment primary key consistent with the flight segment primary key of the current flight data in the flight database; if so, it is detected by the flight segment primary key, and the reference flight segment primary key is The reference flight business primary key of is determined as the target flight business primary key of the current flight data. If the primary key detection of the flight segment is not passed, check whether the flight number information, airline company information, and plan execution date in the current flight data exist in the flight database; if there are flight number information, airline company information, and plan execution date, then The current flight data does not pass the flight information detection; if any of the above information does not exist, the current flight data passes the flight information detection, and generates the target flight business primary key corresponding to the current flight data based on the flight number information, airline company information and plan execution date . If the flight information detection fails, check whether the flight departure station information and the flight landing station information in the current flight data exist in the flight database, and if the flight departure station information and the flight landing station information exist, check whether the current flight data exists in the flight database The reference planned departure time that is consistent with the planned departure time of the current flight data; if the planned departure time is consistent, the reference flight business primary key corresponding to the reference planned departure time is determined as the flight business primary key corresponding to the current flight data; if the planned departure time is inconsistent, The flight service primary key corresponding to the current flight data is generated based on the current flight data. If neither the flight departure station information nor the flight landing station information exists, check whether the current flight data and the reference flight data in the flight database are spliced based on the flight splicing rules; The flights corresponding to the flight data are different sections of the same flight, and the reference flight business primary key of the reference flight data is determined as the flight business primary key corresponding to the current flight data; if it cannot be spliced, the flight corresponding to the previous flight data and the reference flight data are determined If the corresponding flight is not the same flight, the flight business primary key corresponding to the current flight data will be determined based on the current flight data.

其中,不限制本方案的航班业务主键处理流程只为上述实施例,可以将任意多个检测方式(飞行航段主键检测、起飞落地站检测、计划起飞时刻检测以及航线拼接检测)进行结合得到当前航班数据相对应的目标航班业务主键,执行过程和上述处理过程相一致,此部分不再进行赘述。Among them, the flight service primary key processing flow of this solution is not limited to the above-mentioned embodiment, and any number of detection methods (flight segment primary key detection, takeoff and landing station detection, planned departure time detection, and route splicing detection) can be combined to obtain the current The primary key of the target flight business corresponding to the flight data, the execution process is consistent with the above-mentioned processing process, and will not be repeated in this part.

本申请实施例提供的航班业务主键处理方法,检测当前航班数据的航班运行状态信息是否满足标准航班运行条件,若是,则在飞行航段主键检测、起飞落地站检测、计划起飞时刻检测以及航线拼接检测之中确定出目标检测方式,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键。保证了同一航班的不同飞行航段的航班业务主键相一致,以方便根据一个航班业务主键对应的航班数据了解到该航班的全貌数据,提高了航班数据处理的效率。The flight business primary key processing method provided by the embodiment of the present application detects whether the flight operation status information of the current flight data meets the standard flight operation conditions, and if so, performs primary key detection, takeoff and landing station detection, planned takeoff time detection, and route splicing A target detection mode is determined during the detection, and the target detection mode determines the target flight business key of the current flight data according to the flight number information, the airline company information, and the planned execution date. It ensures that the flight service primary keys of different flight segments of the same flight are consistent, so that the overall data of a flight can be learned according to the flight data corresponding to a flight service primary key, and the efficiency of flight data processing is improved.

请参阅图3、图4,图3为本申请实施例所提供的一种航班业务主键处理装置的结构示意图之一;图4为本申请实施例所提供的一种航班业务主键处理装置的结构示意图之二。如图3中所示,所述航班业务主键处理装置300包括:Please refer to Fig. 3 and Fig. 4, Fig. 3 is one of the schematic structural diagrams of a kind of flight business master key processing device provided by the embodiment of the present application; Fig. 4 is the structure of a kind of flight business master key processing device provided by the embodiment of the present application The second diagram. As shown in Figure 3, the flight business master key processing device 300 includes:

检测模块310,用于检测当前航班数据的航班运行状态信息是否满足标准航班运行条件;The detection module 310 is used to detect whether the flight operation status information of the current flight data meets the standard flight operation conditions;

产生模块320,用于若是,则获取当前航班数据的航班号信息、航司信息、计划执行日期,基于航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述当前航班数据的目标航班业务主键,并将所述当前航班数据以及相对应的所述目标航班业务主键存储至航班数据库之中,以使根据所述航班业务主键获取到所述当前航班的全面业务数据信息;其中,所述目标航班业务主键为航班相对应的多个飞行航段的唯一业务账号信息。The generation module 320 is used to obtain the flight number information, airline company information, and plan execution date of the current flight data, and generate the flight number information, the airline company information, and the plan execution date based on the flight business master key generation rule. Perform processing to generate the target flight business key of the current flight data, and store the current flight data and the corresponding target flight business key in the flight database, so that all The comprehensive business data information of the current flight; wherein, the target flight business key is the unique business account information of multiple flight segments corresponding to the flight.

进一步的,如图4所示,航班业务主键处理装置 300还包括确定模块330,确定模块330用于:Further, as shown in Figure 4, the flight business master key processing device 300 also includes a determination module 330, and the determination module 330 is used for:

若是,则在飞行航段主键检测、起飞落地站检测、计划起飞时刻检测以及航线拼接检测之中确定出目标检测方式,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键。If so, determine the target detection mode among the main key detection of the flight segment, the take-off and landing station detection, the planned take-off time detection and the route stitching detection, and the target detection mode is based on the flight number information, the airline company information and the The target flight business primary key of the current flight data is determined according to the plan execution date.

进一步的,确定模块330在用于对于所述目标检测方式为所述飞行航段主键检测,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键时,确定模块330具体用于:Further, the determining module 330 is used to detect the primary key of the flight segment for the target detection method, and the target detection method determines the target date according to the flight number information, the airline company information and the plan execution date. When describing the target flight business primary key of the current flight data, the determination module 330 is specifically used for:

检测所述航班数据库中是否存在与所述当前航班数据的飞行航段主键相一致的参考飞行航段主键;Detecting whether there is a reference flight segment primary key consistent with the flight segment primary key of the current flight data in the flight database;

若是,则所述当前航班数据通过所述飞行航段主键检测,并将所述参考飞行航段主键的参考航班业务主键确定为所述当前航班数据的航班业务主键;If so, the current flight data is detected by the primary key of the flight segment, and the reference flight service primary key of the reference flight segment primary key is determined as the flight service primary key of the current flight data;

若否,则所述当前航班数据未通过所述飞行航段主键检测,则基于所述航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述目标航班业务主键。If not, then the current flight data has not passed the primary key detection of the flight segment, then process the flight number information, the airline company information, and the planned execution date based on the flight business primary key generation rules to generate The primary key of the target flight business.

进一步的,确定模块330在用于针对于所述目标检测方式为起飞落地站检测,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键时,确定模块330具体用于:Further, the determination module 330 is used to detect the takeoff and landing station for the target detection mode, and the target detection mode determines the current When the target flight business primary key of the flight data, the determining module 330 is specifically used for:

检测所述航班数据库中是否存在所述当前航班数据中的航班起飞站信息以及航班落地站信息;Detecting whether the flight departure station information and flight landing station information in the current flight data exist in the flight database;

若均存在,则所述当前航班数据通过所述起飞落地站检测,并对所述当前航班数据进行所述计划起飞时刻检测,生成所述当前航班数据相对应的目标航班业务主键;If both exist, the current flight data is detected by the take-off and landing station, and the planned departure time is detected for the current flight data, and the corresponding target flight business key is generated for the current flight data;

若任一不存在,则所述当前航班数据未通过所述起飞落地站检测,对所述当前航班数据进行所述航线拼接检测,生成所述当前航班数据相对应的目标航班业务主键。If any of them does not exist, the current flight data has not passed the detection of the take-off and landing stations, and the flight route splicing detection is performed on the current flight data to generate the target flight business key corresponding to the current flight data.

进一步的,确定模块330在用于所述当前航班数据通过所述起飞落地站检测,并对所述当前航班数据进行所述计划起飞时刻检测,生成所述当前航班数据相对应的目标航班业务主键时,确定模块330具体用于:Further, the determination module 330 is used to detect the current flight data through the take-off and landing station, and perform the planned departure time detection on the current flight data, and generate the target flight business key corresponding to the current flight data , the determining module 330 is specifically used for:

检测所述航班数据库中是否存在所述当前航班数据的计划起飞时刻相一致的参考计划起飞时刻;Detecting whether there is a reference planned departure time consistent with the planned departure time of the current flight data in the flight database;

若是,则确定出所述参考计划起飞时刻相对应的航班数据与所述当前航班数据指向同一个航班,并将所述参考计划起飞时刻相对应的参考航班业务主键确定为所述当前航班数据相对应的目标航班业务主键;If so, it is determined that the flight data corresponding to the reference planned departure time and the current flight data point to the same flight, and the reference flight service master key corresponding to the reference planned departure time is determined as the current flight data. The corresponding target flight business primary key;

若否,则基于所述航班号信息、航司信息、计划执行日期生成所述航班业务主键。If not, the flight business primary key is generated based on the flight number information, airline company information, and planned execution date.

进一步的,确定模块330在用于所述当前航班数据未通过所述起飞落地站检测,对所述当前航班数据进行所述航线拼接检测,生成所述当前航班数据相对应的目标航班业务主键时,确定模块330具体用于:Further, when the determination module 330 is used for the current flight data not passing the detection of the take-off and landing stations, the route splicing detection is performed on the current flight data, and the target flight business key corresponding to the current flight data is generated , the determination module 330 is specifically used for:

基于航班拼接规则检测所述当前航班数据与航班数据库中的参考航班数据是否进行航班拼接;Detecting whether flight splicing is performed between the current flight data and the reference flight data in the flight database based on flight splicing rules;

若是,则确定出所述前航班数据对应的航班与所述参考航班数据对应的航班是同一航班的不同飞行航段,将所述参考航班数据的参考航班业务主键确定为所述当前航班数据相对应的目标航班业务主键;If so, it is determined that the flight corresponding to the previous flight data and the flight corresponding to the reference flight data are different flight segments of the same flight, and the reference flight service primary key of the reference flight data is determined as the corresponding flight segment of the current flight data. The corresponding target flight business primary key;

若否,则确定出所述前航班数据对应的航班与所述参考航班数据对应的航班不是同一航班,基于所述航班号信息、航司信息、计划执行日期生成所述目标航班业务主键。If not, it is determined that the flight corresponding to the previous flight data is not the same flight as the flight corresponding to the reference flight data, and the target flight business key is generated based on the flight number information, airline company information, and planned execution date.

本申请实施例提供的一种航班业务主键处理装置,所述航班业务主键处理装置包括:检测模块,用于检测当前航班数据的航班运行状态信息是否满足标准航班运行条件;产生模块,用于若是,则获取当前航班数据的航班号信息、航司信息、计划执行日期,基于航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述当前航班数据的目标航班业务主键,并将所述当前航班数据以及相对应的所述目标航班业务主键存储至航班数据库之中,以使根据所述航班业务主键获取到所述当前航班的全面业务数据信息;其中,所述目标航班业务主键为航班相对应的多个飞行航段的唯一业务账号信息。保证了同一航班的不同飞行航段的航班业务主键相一致,以方便根据一个航班业务主键对应的航班数据了解到该航班的全貌数据,提高了航班数据处理的效率。An embodiment of the present application provides a flight business master key processing device, the flight business master key processing device includes: a detection module, used to detect whether the flight operation status information of the current flight data meets the standard flight operation conditions; a generation module, used to , then obtain the flight number information, airline company information, and plan execution date of the current flight data, process the flight number information, the airline company information, and the plan execution date based on the flight business primary key generation rules, and generate the current The target flight business key of the flight data, and store the current flight data and the corresponding target flight business key in the flight database, so that the comprehensive business data of the current flight can be obtained according to the flight business key information; wherein, the target flight business key is the unique business account information of multiple flight segments corresponding to the flight. It ensures that the flight service primary keys of different flight segments of the same flight are consistent, so that the overall data of a flight can be learned according to the flight data corresponding to a flight service primary key, and the efficiency of flight data processing is improved.

请参阅图5,图5为本申请实施例所提供的一种电子设备的结构示意图。如图5中所示,所述电子设备500包括处理器510、存储器520和总线530。Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 5 , the electronic device 500 includes a processor 510 , a memory 520 and a bus 530 .

所述存储器520存储有所述处理器510可执行的机器可读指令,当电子设备500运行时,所述处理器510与所述存储器520之间通过总线530通信,所述机器可读指令被所述处理器510执行时,可以执行如上述图1以及图2所示方法实施例中的航班业务主键处理方法的步骤,具体实现方式可参见方法实施例,在此不再赘述。The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 communicates with the memory 520 through the bus 530, and the machine-readable instructions are executed by When the processor 510 executes, it can execute the steps of the flight service primary key processing method in the above method embodiments shown in FIG. 1 and FIG.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时可以执行如上述图1以及图2所示方法实施例中的航班业务主键处理方法的步骤,具体实现方式可参见方法实施例,在此不再赘述。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, it can execute the method in the above-mentioned embodiments shown in FIG. 1 and FIG. 2 . For the steps of the method for processing the flight business primary key, the specific implementation may refer to the method embodiments, and will not be repeated here.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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 may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the 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 Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, and various media capable of storing program codes.

最后应说明的是:以上所述实施例,仅为本申请的具体实施方式,用以说明本申请的技术方案,而非对其限制,本申请的保护范围并不局限于此,尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本申请实施例技术方案的精神和范围,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。Finally, it should be noted that: the above-described embodiments are only specific implementations of the application, used to illustrate the technical solutions of the application, rather than limiting it, and the scope of protection of the application is not limited thereto, although referring to the aforementioned The embodiment has described this application in detail, and those of ordinary skill in the art should understand that any person familiar with this technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in this application Changes can be easily imagined, or equivalent replacements can be made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be covered by this application. within the scope of protection. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (10)

1.一种航班业务主键处理方法,其特征在于,所述航班业务主键处理方法包括:1. A method for processing a flight service primary key, characterized in that, the method for processing a flight service primary key comprises: 检测当前航班数据的航班运行状态信息是否满足标准航班运行条件;Detect whether the flight operation status information of the current flight data meets the standard flight operation conditions; 若是,则获取当前航班数据的航班号信息、航司信息、计划执行日期,基于航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述当前航班数据的目标航班业务主键,并将所述当前航班数据以及相对应的所述目标航班业务主键存储至航班数据库之中,以使根据所述航班业务主键获取到所述当前航班的全面业务数据信息;If so, obtain the flight number information, airline company information, and plan execution date of the current flight data, process the flight number information, the airline company information, and the plan execution date based on the flight business primary key generation rules, and generate the The target flight service primary key of the current flight data, and store the current flight data and the corresponding target flight service primary key in the flight database, so that the comprehensive services of the current flight can be obtained according to the flight service primary key Data information; 其中,所述目标航班业务主键为航班相对应的多个飞行航段的唯一业务账号信息。Wherein, the service primary key of the target flight is the unique service account information of multiple flight segments corresponding to the flight. 2.根据权利要求1所述的航班业务主键处理方法,其特征在于,在所述检测当前航班数据的航班运行状态信息是否满足标准航班运行条件之后,所述航班业务主键处理方法还包括:2. The flight business master key processing method according to claim 1, characterized in that, after the flight operation state information of the detection current flight data satisfies the standard flight operation conditions, the flight business master key processing method also includes: 若是,则在飞行航段主键检测、起飞落地站检测、计划起飞时刻检测以及航线拼接检测之中确定出目标检测方式,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键。If so, determine the target detection mode among the main key detection of the flight segment, the take-off and landing station detection, the planned take-off time detection and the route stitching detection, and the target detection mode is based on the flight number information, the airline company information and the The target flight business primary key of the current flight data is determined according to the plan execution date. 3.根据权利要求2所述的航班业务主键处理方法,其特征在于,针对于所述目标检测方式为所述飞行航段主键检测,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键,包括:3. The flight service master key processing method according to claim 2, characterized in that, the detection method for the target is the detection of the flight segment master key, and the target detection method is based on the flight number information, the voyage Company information and the planned execution date to determine the target flight business primary key of the current flight data, including: 检测所述航班数据库中是否存在与所述当前航班数据的飞行航段主键相一致的参考飞行航段主键;Detecting whether there is a reference flight segment primary key consistent with the flight segment primary key of the current flight data in the flight database; 若是,则所述当前航班数据通过所述飞行航段主键检测,并将所述参考飞行航段主键的参考航班业务主键确定为所述当前航班数据的航班业务主键;If so, the current flight data is detected by the primary key of the flight segment, and the reference flight service primary key of the reference flight segment primary key is determined as the flight service primary key of the current flight data; 若否,则所述当前航班数据未通过所述飞行航段主键检测,则基于所述航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述目标航班业务主键。If not, then the current flight data has not passed the primary key detection of the flight segment, then process the flight number information, the airline company information, and the planned execution date based on the flight business primary key generation rules to generate The primary key of the target flight business. 4.根据权利要求2所述的航班业务主键处理方法,其特征在于,针对于所述目标检测方式为起飞落地站检测,所述目标检测方式根据所述航班号信息、所述航司信息以及所述计划执行日期确定出所述当前航班数据的目标航班业务主键,包括:4. The flight business master key processing method according to claim 2, characterized in that, the detection method for the target is take-off and landing station detection, and the target detection method is based on the flight number information, the airline company information and The plan execution date determines the target flight business primary key of the current flight data, including: 检测所述航班数据库中是否存在所述当前航班数据中的航班起飞站信息以及航班落地站信息;Detecting whether the flight departure station information and flight landing station information in the current flight data exist in the flight database; 若均存在,则所述当前航班数据通过所述起飞落地站检测,并对所述当前航班数据进行所述计划起飞时刻检测,生成所述当前航班数据相对应的目标航班业务主键;If both exist, the current flight data is detected by the take-off and landing station, and the planned departure time is detected for the current flight data, and the corresponding target flight business key is generated for the current flight data; 若任一不存在,则所述当前航班数据未通过所述起飞落地站检测,对所述当前航班数据进行所述航线拼接检测,生成所述当前航班数据相对应的目标航班业务主键。If any of them does not exist, the current flight data has not passed the detection of the take-off and landing stations, and the flight route splicing detection is performed on the current flight data to generate the target flight business key corresponding to the current flight data. 5.根据权利要求4所述的航班业务主键处理方法,其特征在于,所述当前航班数据通过所述起飞落地站检测,并对所述当前航班数据进行所述计划起飞时刻检测,生成所述当前航班数据相对应的目标航班业务主键,包括:5. The flight business primary key processing method according to claim 4, characterized in that, the current flight data is detected by the take-off and landing station, and the current flight data is detected at the planned departure time to generate the The primary key of the target flight business corresponding to the current flight data, including: 检测所述航班数据库中是否存在所述当前航班数据的计划起飞时刻相一致的参考计划起飞时刻;Detecting whether there is a reference planned departure time consistent with the planned departure time of the current flight data in the flight database; 若是,则确定出所述参考计划起飞时刻相对应的航班数据与所述当前航班数据指向同一个航班,并将所述参考计划起飞时刻相对应的参考航班业务主键确定为所述当前航班数据相对应的目标航班业务主键;If so, it is determined that the flight data corresponding to the reference planned departure time and the current flight data point to the same flight, and the reference flight service master key corresponding to the reference planned departure time is determined as the current flight data. The corresponding target flight business primary key; 若否,则基于所述航班号信息、航司信息、计划执行日期生成所述航班业务主键。If not, the flight business primary key is generated based on the flight number information, airline company information, and planned execution date. 6.根据权利要求4所述的航班业务主键处理方法,其特征在于,所述当前航班数据未通过所述起飞落地站检测,对所述当前航班数据进行所述航线拼接检测,生成所述当前航班数据相对应的目标航班业务主键,包括:6. The flight business primary key processing method according to claim 4, characterized in that, the current flight data has not passed the detection of the take-off and landing station, and the route splicing detection is performed on the current flight data to generate the current flight data. The primary key of the target flight business corresponding to the flight data, including: 基于航班拼接规则检测所述当前航班数据与航班数据库中的参考航班数据是否进行航班拼接;Detecting whether flight splicing is performed between the current flight data and the reference flight data in the flight database based on flight splicing rules; 若是,则确定出所述前航班数据对应的航班与所述参考航班数据对应的航班是同一航班的不同飞行航段,将所述参考航班数据的参考航班业务主键确定为所述当前航班数据相对应的目标航班业务主键;If so, it is determined that the flight corresponding to the previous flight data and the flight corresponding to the reference flight data are different flight segments of the same flight, and the reference flight service primary key of the reference flight data is determined as the corresponding flight segment of the current flight data. The corresponding target flight business primary key; 若否,则确定出所述前航班数据对应的航班与所述参考航班数据对应的航班不是同一航班,基于所述航班号信息、航司信息、计划执行日期生成所述目标航班业务主键。If not, it is determined that the flight corresponding to the previous flight data is not the same flight as the flight corresponding to the reference flight data, and the target flight business key is generated based on the flight number information, airline company information, and planned execution date. 7.根据权利要求6所述的航班业务主键处理方法,其特征在于,所述航班拼接规则包括以下任意一种:7. The flight service primary key processing method according to claim 6, wherein the flight splicing rules include any of the following: 所述当前航班数据的落地站信息与所述参考航班数据对应的起飞站信息相一致;The landing station information of the current flight data is consistent with the departure station information corresponding to the reference flight data; 或者,所述当前航班数据的起飞站信息与所述参考航班数据对应的落地站信息相一致。Alternatively, the departure station information of the current flight data is consistent with the landing station information corresponding to the reference flight data. 8.一种航班业务主键处理装置,其特征在于,所述航班业务主键处理装置包括:8. A flight service master key processing device, characterized in that the flight service master key processing device comprises: 检测模块,用于检测当前航班数据的航班运行状态信息是否满足标准航班运行条件;The detection module is used to detect whether the flight operation status information of the current flight data meets the standard flight operation conditions; 产生模块,用于若是,则获取当前航班数据的航班号信息、航司信息、计划执行日期,基于航班业务主键生成规则对所述航班号信息、所述航司信息以及所述计划执行日期进行处理,生成所述当前航班数据的目标航班业务主键,并将所述当前航班数据以及相对应的所述目标航班业务主键存储至航班数据库之中,以使根据所述航班业务主键获取到所述当前航班的全面业务数据信息;其中,所述目标航班业务主键为航班相对应的多个飞行航段的唯一业务账号信息。A generation module, used to obtain the flight number information, airline company information, and plan execution date of the current flight data, and perform the flight number information, the airline company information, and the plan execution date based on the flight business master key generation rule processing, generating the target flight business key of the current flight data, and storing the current flight data and the corresponding target flight business key in the flight database, so that the Comprehensive business data information of the current flight; wherein, the target flight business key is the unique business account information of multiple flight segments corresponding to the flight. 9.一种电子设备,其特征在于,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过所述总线进行通信,所述机器可读指令被所述处理器运行时执行如权利要求1至7任一所述的航班业务主键处理方法的步骤。9. An electronic device, comprising: a processor, a memory and a bus, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the The memories communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the flight service master key processing method according to any one of claims 1 to 7. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如权利要求1至7任一所述的航班业务主键处理方法的步骤。10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the flight service according to any one of claims 1 to 7 is executed The steps of the primary key processing method.
CN202310961856.4A 2023-08-02 2023-08-02 A flight business primary key processing method, device, electronic equipment and storage medium Active CN116701408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310961856.4A CN116701408B (en) 2023-08-02 2023-08-02 A flight business primary key processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310961856.4A CN116701408B (en) 2023-08-02 2023-08-02 A flight business primary key processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116701408A true CN116701408A (en) 2023-09-05
CN116701408B CN116701408B (en) 2023-10-20

Family

ID=87841711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310961856.4A Active CN116701408B (en) 2023-08-02 2023-08-02 A flight business primary key processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116701408B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090216746A1 (en) * 2006-01-25 2009-08-27 Francois Aubin Method, System, and Apparatus for Aggregation System for Searchable Travel Data
CN106205219A (en) * 2016-08-31 2016-12-07 北京招通致晟科技有限公司 Aircraft monitoring method and device based on fusion of multiple radar information
CN111078687A (en) * 2019-11-14 2020-04-28 青岛民航空管实业发展有限公司 Flight operation data fusion method, device and equipment
CN113486164A (en) * 2021-06-30 2021-10-08 中国民航信息网络股份有限公司 Hybrid flight query method, system, electronic equipment and storage medium
CN114579586A (en) * 2022-01-18 2022-06-03 中国南方航空股份有限公司 Data association method of flight life process based on flight identification number
CN115688785A (en) * 2022-11-02 2023-02-03 西北工业大学 Multi-source knowledge fused aviation equipment model named entity identification method
CN116089907A (en) * 2023-04-13 2023-05-09 民航成都信息技术有限公司 Fusion method and device of aviation multi-source data, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090216746A1 (en) * 2006-01-25 2009-08-27 Francois Aubin Method, System, and Apparatus for Aggregation System for Searchable Travel Data
CN106205219A (en) * 2016-08-31 2016-12-07 北京招通致晟科技有限公司 Aircraft monitoring method and device based on fusion of multiple radar information
CN111078687A (en) * 2019-11-14 2020-04-28 青岛民航空管实业发展有限公司 Flight operation data fusion method, device and equipment
CN113486164A (en) * 2021-06-30 2021-10-08 中国民航信息网络股份有限公司 Hybrid flight query method, system, electronic equipment and storage medium
CN114579586A (en) * 2022-01-18 2022-06-03 中国南方航空股份有限公司 Data association method of flight life process based on flight identification number
CN115688785A (en) * 2022-11-02 2023-02-03 西北工业大学 Multi-source knowledge fused aviation equipment model named entity identification method
CN116089907A (en) * 2023-04-13 2023-05-09 民航成都信息技术有限公司 Fusion method and device of aviation multi-source data, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PENGLINYANG 等: "Simulation data lifecycle management based on engineering flight simulation platform", 《APPLIED MECHANICS AND MATERIALS》, pages 385 - 390 *
屈景怡 等: "基于轻量化网络Mobilenetv2的航班延误预测模型", 《信号处理》, vol. 38, no. 5, pages 973 - 982 *

Also Published As

Publication number Publication date
CN116701408B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
US7685280B2 (en) Populating requests to multiple destinations using a mass request
US20190251638A1 (en) Identification of life events within social media conversations
EP4123618A1 (en) System and method for processing vehicle event data for journey analysis
US20230252400A1 (en) Supply chain management, tracking, and integration platform
US20160241497A1 (en) Invoking an application to perform a service based on message content
CN113326095B (en) Commission data processing method and device
CN113360556A (en) Data processing method, device, equipment and storage medium
CN116521866B (en) A training sample construction method, device, electronic device and medium
CN116342004B (en) Method and device for processing waybill data
CN114207639A (en) Management connection service for public transportation luggage
US11961039B2 (en) Linked blockchain structures for accelerated multi-chain verification
CN114493799B (en) Method and system for managing special vehicle order data by library and table
CN112231327B (en) Flight information updating method, device, server and storage medium
CN114265877A (en) Information pushing method and device, electronic equipment and storage medium
US20130226670A1 (en) Method and system for automatically partitioning and processing a business process
CN116308616A (en) Teletype message processing method, device, electronic equipment and computer storage medium
CN116701408A (en) Flight service primary key processing method and device, electronic equipment and storage medium
CN111291051A (en) Freight rate data processing method and device, storage medium and electronic equipment
JP2020194477A (en) Platoon organization apparatus, platoon organization method and platoon organization program
CN114817246A (en) Aviation data processing method and device
CN109410077B (en) Method and device for defining rule flow, computer storage medium and electronic equipment
EP4629158A1 (en) Aviation order message processing method and apparatus
CN111581457A (en) Data processing method and device
CN118211989A (en) Freight rate data processing method, device, equipment and storage medium
CN114331529B (en) Freight rate data cut-off method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Zhou Tianlu

Inventor after: Zhao Jingjie

Inventor after: Fang Rui

Inventor after: Wu Wanbing

Inventor after: Chen Jian

Inventor after: Liu Weidong

Inventor after: Qing Bo

Inventor after: Li Wang

Inventor after: Fang Tianmou

Inventor after: Deng Dingyu

Inventor after: Zhang Chao

Inventor after: Ni Jia

Inventor before: Zhou Tianlu

Inventor before: Zhao Jingjie

Inventor before: Fang Rui

Inventor before: Wu Wanbing

Inventor before: Chen Jian

Inventor before: Liu Weidong

Inventor before: Qing Bo

Inventor before: Li Wang

Inventor before: Fang Tianmou

Inventor before: Deng Dingyu

Inventor before: Zhang Chao

Inventor before: Ni Jia