Flight information display method and device, electronic device and storage medium
By creating data tables and data sources in the flight information display system, generating and binding data source files and display templates, the problem of fixed and difficult to modify display templates in the prior art is solved, and more efficient maintenance and lower costs are achieved.
Patent Information
- Application Number
- CN202411570666.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-04-08
AI Technical Summary
In the existing flight information display system, the display template is fixed and difficult to modify, resulting in high cost and inconvenient maintenance during use at the airport.
By obtaining the target flight information, creating data tables and data sources, performing data loading processing, generating target data source files, and binding them with pre-created display templates, and finally sending the bound templates to the display device.
It realizes the ability to flexibly adjust the display content without redesigning the display template, reducing maintenance costs and improving convenience.
Smart Images

Figure CN119781706A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display control technology, and in particular to a flight information display method and device, an electronic device, and a storage medium. Background Art
[0002] The flight information display system is a system that collects, stores, controls, and publishes flight information, advertisements, and public information through a centralized platform, and distributes and controls information display according to passenger processes and the functions of various areas of the terminal. Through the high-speed airport network, it provides passengers and staff with real-time dynamic information on incoming and outgoing flights, and guides passengers and staff to go through check-in procedures, waiting, boarding, transfer, baggage collection and other inbound and outbound processes. However, the inventors have found that the display templates of the existing flight display system are usually fixed, and the corresponding templates are displayed according to the processes of check-in procedures, waiting, boarding, transfer, baggage collection, etc. The fields in the templates are relatively fixed, mainly including airline logo, flight number, departure station / destination station, departure time / arrival time, check-in counter / boarding gate / baggage carousel, and flight status. These templates are usually designed through web page files or through component combination design; once the fields that can be displayed are determined, it is difficult to modify; with the use of airports, the existing display templates can no longer meet the relevant needs. If a new display field needs to be added, or other display content needs to be added, then a system upgrade is required; this increases the cost of the airport, while the efficiency and convenience are low. Summary of the invention
[0003] In view of this, the purpose of the present application is to provide a flight information display method and device, an electronic device and a storage medium to improve the problems of relatively high cost and relatively low maintenance convenience of flight information display in the prior art.
[0004] To achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0005] A flight information display method, comprising:
[0006] Get the target flight information that needs to be displayed;
[0007] Creating at least one data table based on the target flight information, wherein each of the data tables is used to store the target flight information to be displayed;
[0008] Creating at least one data source based on the at least one data table, wherein each of the data sources is configured with a data table to be displayed or a target field in the data table to be displayed;
[0009] Determine a target data source from the at least one data source, and obtain a corresponding target data source file by performing data loading processing on the target data source, wherein the target data source file contains target flight information in a data table corresponding to the target data source;
[0010] Binding the target data source file to a pre-created target display template;
[0011] In response to a display request of a target display device, a target display template bound with the target data source file is sent to the target display device, wherein the target display device is used to perform a corresponding flight information display operation based on the acquired target display template.
[0012] In a preferred embodiment of the present application, in the above-mentioned flight information display method, the step of creating at least one data source based on the at least one data table includes:
[0013] Based on the at least one data table, configuring a data source of the data source, wherein the data source is used to indicate a data table to be displayed;
[0014] Based on the at least one data table, configuring a metadata column of the data source, wherein the metadata column is used to indicate a data field to be displayed in the data table to be displayed;
[0015] A data provider is configured for the data source, wherein the data provider is used to convert the coded information in the data table so that the converted information has a different form.
[0016] In a preferred embodiment of the present application, in the above-mentioned flight information display method, the step of configuring the metadata column of the data source based on the at least one data table includes:
[0017] After configuring the data source of the data source, determining the data field to be displayed from the data table indicated by the data source, and configuring the metadata column of the data source based on the data field so that the metadata column includes the field name of the data field;
[0018] Configuring filtering conditions for at least some of the data fields in the metadata column of the data source;
[0019] Sorting conditions are configured for at least some of the data fields in the metadata column of the data source.
[0020] In a preferred embodiment of the present application, in the above-mentioned flight information display method, the step of determining a target data source from the at least one data source, and obtaining a corresponding target data source file by performing data loading processing on the target data source includes:
[0021] determining a target data source from the at least one data source;
[0022] Performing data loading processing on the target data source to obtain a candidate data source file corresponding to the target data source, wherein the candidate data source file contains target flight information in a data table corresponding to the target data source;
[0023] The candidate data source file is subjected to entity class conversion processing to obtain a target data source file corresponding to the candidate data source file.
[0024] In a preferred embodiment of the present application, in the above-mentioned flight information display method, the step of binding the target data source file with the pre-created target display template includes:
[0025] Determine the content type of each data field in the target data source file, wherein the content type includes text type, picture type, table type and video type;
[0026] Based on the content type of each data field in the target data source file, each data field in the target data file is bound to each display control in a pre-created target display template, wherein each display control in the target display template includes at least one of a text control, a picture control, a table control, and a video control.
[0027] In a preferred embodiment of the present application, in the above-mentioned flight information display method, the step of obtaining the target flight information to be displayed includes:
[0028] Obtain at least one flight information to be displayed, including airline logo, flight number, departure airport, shared flights, stopover airport, scheduled departure time, and flight status;
[0029] The at least one acquired flight information is determined as target flight information to be displayed.
[0030] The present application also provides a flight information display device, including:
[0031] The flight information acquisition module is used to acquire the target flight information to be displayed;
[0032] A data table creation module, used to create at least one data table based on the target flight information, wherein each of the data tables is used to store the target flight information to be displayed;
[0033] A data source creation module, used to create at least one data source based on the at least one data table, wherein each of the data sources is configured with a data table to be displayed or a target field in the data table to be displayed;
[0034] A data source loading module, used to determine a target data source from the at least one data source, and obtain a corresponding target data source file by performing data loading processing on the target data source, wherein the target data source file contains target flight information in a data table corresponding to the target data source;
[0035] A display template binding module, used to bind the target data source file to a pre-created target display template;
[0036] The display device binding module is used to send the target display template bound with the target data source file to the target display device in response to the display request of the target display device, wherein the target display device is used to perform corresponding flight information display operations based on the acquired target display template.
[0037] In a preferred embodiment of the present application, in the above-mentioned flight information display device, the data source creation module is specifically used for:
[0038] Based on the at least one data table, configuring a data source of the data source, wherein the data source is used to indicate a data table to be displayed;
[0039] Based on the at least one data table, configuring a metadata column of the data source, wherein the metadata column is used to indicate a data field to be displayed in the data table to be displayed;
[0040] A data provider is configured for the data source, wherein the data provider is used to convert the coded information in the data table so that the converted information has a different form.
[0041] Based on the above, an embodiment of the present application further provides an electronic device, including:
[0042] Memory for storing computer programs;
[0043] The processor connected to the memory is used to execute the computer program stored in the memory to implement the above-mentioned flight information display method.
[0044] On the basis of the above, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is run, each step of the above-mentioned flight information display method is executed.
[0045] The flight information display method and device, electronic device and storage medium provided by the present application first obtain the target flight information to be displayed; secondly, create at least one data table based on the target flight information; then, create at least one data source based on at least one data table; thereafter, determine the target data source in at least one data source, and obtain the corresponding target data source file by loading data on the target data source; further, bind the target data source file with a pre-created target display template; finally, in response to the display request of the target display device, send the target display template bound with the target data source file to the target display device. Based on the above content, when the displayed content needs to be changed, it is only necessary to adjust the data source (such as adjusting the corresponding data table or the fields therein). Compared with the conventional solution that requires the display template to be redesigned, it has higher maintenance convenience and lower maintenance cost. Therefore, it can improve the problem of relatively high cost and relatively low maintenance convenience of flight information display in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings.
[0047] Figure 1 A structural block diagram of an electronic device provided in an embodiment of the present application.
[0048] Figure 2 A flowchart of a method for displaying flight information provided in an embodiment of the present application.
[0049] Figure 3 A block diagram of a flight information display device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0051] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0052] like Figure 1 As shown, an embodiment of the present application provides an electronic device, wherein the electronic device may include a memory, a processor, and a flight information display device.
[0053] In detail, the memory and the processor are electrically connected directly or indirectly to achieve data transmission or interaction. For example, the memory and the processor can be electrically connected through one or more communication buses or signal lines. The flight information display device includes at least one software function module stored in the memory in the form of software or firmware. The processor is used to execute an executable computer program stored in the memory, for example, the software function module and computer program included in the flight information display device, so as to implement the flight information display method provided in the embodiment of the present application.
[0054] Optionally, the memory can be, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
[0055] Furthermore, the processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a system on chip (SoC), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0056] Understandably, Figure 1 The structure shown is for illustration only, and the electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 The different configurations shown, for example, may also include a communication unit for exchanging information with other devices (such as a display device).
[0057] Combination Figure 2 The present application also provides a flight information display method applicable to the above electronic device. The method steps defined in the process related to the flight information display method can be implemented by the electronic device. Figure 2 The specific process shown is explained in detail.
[0058] Step S110, obtaining target flight information to be displayed.
[0059] In the embodiment of the present application, the electronic device can obtain the target flight information that needs to be displayed, for example, the target flight information can be obtained from a connected database.
[0060] Step S120: creating at least one data table based on the target flight information.
[0061] In an embodiment of the present application, the electronic device may create at least one data table based on the target flight information. Each of the data tables is used to store the target flight information to be displayed. In other words, one data table may be created, or multiple data tables may be created. In addition, the multiple created data tables may be associated with each other to facilitate subsequent associated search and other processing.
[0062] Step S130: creating at least one data source based on the at least one data table.
[0063] In an embodiment of the present application, the electronic device may create at least one data source based on the at least one data table. Wherein, each of the data sources is configured with a data table to be displayed or a target field in the data table to be displayed. In other words, the data source is used to indicate a data table to be displayed, or to indicate a target field to be displayed.
[0064] Step S140, determining a target data source from the at least one data source, and obtaining a corresponding target data source file by performing data loading processing on the target data source.
[0065] In an embodiment of the present application, the electronic device can determine a target data source from the at least one data source (such as randomly determining a data source as the target data source, or determining a corresponding data source according to current display needs), and obtain a corresponding target data source file by performing data loading processing on the target data source. Among them, the target data source file contains target flight information in a data table corresponding to the target data source. In other words, by performing data loading processing, the corresponding specific target flight information can be obtained. It should be noted that the target flight information obtained by performing data loading processing can be part of the target flight information obtained in step S110, or can be all of the target flight information obtained in step S110, and can be selected or configured according to actual needs.
[0066] Step S150: Bind the target data source file to the pre-created target display template.
[0067] In an embodiment of the present application, the electronic device may bind the target data source file to a pre-created target display template. That is, after obtaining specific target flight information, the specific target flight information may be bound to the target display template, so that the specific target flight information may be displayed based on the target display model.
[0068] Step S160 , in response to a display request of a target display device, sending a target display template bound with the target data source file to the target display device.
[0069] In an embodiment of the present application, the electronic device can respond to a display request of a target display device (such as a display device at an airport) by sending a target display template bound with the target data source file to the target display device. The target display device is used to perform corresponding flight information display operations based on the acquired target display template. In this way, the convenient operation of performing corresponding display configuration at the back end and directly displaying at the front end can be realized.
[0070] Based on the above content, when the displayed content needs to be changed, it is only necessary to adjust the data source (such as adjusting the corresponding data table or the fields therein). Compared with the conventional solution that requires the display template to be redesigned, it has higher maintenance convenience and lower maintenance cost. Therefore, it can improve the relatively high cost and relatively low maintenance convenience of flight information display in the prior art.
[0071] First, it should be noted that the specific method of obtaining the target flight information is not limited and can be selected according to actual needs.
[0072] For example, in an alternative implementation, in order to improve the reliability and comprehensiveness of flight information display and provide users with reliable and comprehensive flight information, the above step S110 may further include the following specific implementation process:
[0073] First, the airline logo to be displayed can be obtained (the airline logo usually refers to the logo or logo of the airline, which is generally the trademark or LOGO of the airline. This logo is usually used for brand display and identification on the airline's aircraft, tickets, websites, applications, etc. The airline logo can be text, graphics, patterns or combinations, representing the identity and image of the airline. For example, the logo of American Airlines is a blue and red eagle pattern, while the logo of British Airways is a design including a flight speed logo and the British flag), flight number (such as "AA123"), departure station (such as "JFK", New York Kennedy International Airport), shared flight (such as "DL456", Delta Airlines shared flight number), stopover station (such as "LAX", Los Angeles International Airport), scheduled departure time (such as 2024-07-17 08:30AM), flight status (such as "Scheduled") at least one of the flight information, that is, one or more of these flight information can be obtained;
[0074] Secondly, the at least one acquired flight information may be determined as target flight information to be displayed, that is, the target flight information may include the at least one acquired flight information.
[0075] Secondly, it should be noted that for step S120, the specific method of creating at least one data table based on the target flight information is not limited and can be selected according to actual needs.
[0076] For example, in an alternative implementation, in order to facilitate better targeting in subsequent display control and to facilitate subsequent maintenance and management, a corresponding data table can be created for each type of flight information, such as flight information 1 corresponds to data table 1, flight information 2 corresponds to data table 2, flight information 3 corresponds to data table 3, and flight information 4 corresponds to data table 4.
[0077] Thirdly, it should be noted that for step S130, the specific method of creating at least one data source based on the data table is not limited and can be selected according to actual needs.
[0078] For example, in an alternative implementation, in order to improve the reliability of flight information display and facilitate subsequent maintenance and management, the above-mentioned step S130 may further include step S131, step S132 and step S133, and the main contents of each step are described as follows.
[0079] Step S131: configuring the data source of the data source based on the at least one data table.
[0080] In an embodiment of the present application, after at least one data table is created, the data source of the data source can be configured based on the at least one data table. The data source is used to indicate the data table that needs to be displayed. Exemplarily, the data table that needs to be displayed can be determined in the at least one data table, and then the data table can be used as the data source of the data source to be created. Specifically, the table name, alias, association relationship with other tables, associated conditions and other information can be configured in the data source. In addition, the purpose of the data source can also be configured.
[0081] Step S132: configuring the metadata columns of the data source based on the at least one data table.
[0082] In an embodiment of the present application, after configuring the data source, that is, after determining the corresponding data table, the metadata column of the data source can be configured based on the at least one data table. The metadata column is used to indicate the data fields to be displayed in the data table to be displayed. That is to say, after determining the data table to be displayed, the specific fields to be displayed in the data table can also be configured.
[0083] Step S133: configuring a data provider for the data source.
[0084] In the embodiment of the present application, a data provider can also be configured for the data source. The data provider is used to convert the coded information in the data table so that the converted information has different forms. Exemplarily, the codes corresponding to the corresponding flight information can be converted so that they can be displayed in a friendly way (easy for users to understand), so that users can choose conveniently in later maintenance, such as the three-character airport code. For example, the data provider can include a name, a query statement, and a query parameter, such as:
[0085] Name: AirportNameProvider;
[0086] Query statement: sql
[0087] {SELECT name FROM airport_codes WHERE code=?}
[0088] Query parameters:
[0089] Parameter 1: The three-letter airport code (e.g. JFK)
[0090] illustrate:
[0091] The function of this data provider is to convert the three-letter airport code to the airport name. It uses a simple SQL query to retrieve the airport name from the database. The "?" in the query statement represents a placeholder, which will be replaced by the specific three-letter code during actual operation. In the database, there may be a table called airport_codes, which stores the three-letter airport code and the corresponding full name.
[0092] Based on this, the configuration of the data provider allows the system to dynamically obtain and transform data from the database when needed, ensuring that the data displayed on the user interface is intuitive and easy to understand.
[0093] It can be understood that, in the above step S132, the specific manner of configuring the metadata column of the data source based on at least one data table is not limited and can be selected according to actual needs.
[0094] For example, in an alternative implementation, in order to make the displayed flight information more reliable, the above step S132 may further include the following contents:
[0095] First, after configuring the data source of the data source, the data field to be displayed can be determined from the data table indicated by the data source, and the metadata column of the data source can be configured based on the data field, so that the metadata column includes the field name of the data field; in addition, when configuring the data field, other relevant information can also be configured, such as alias, display label, type (text, number, date), whether multi-language, multi-language prefix, etc.;
[0096] Secondly, filtering conditions may be configured for at least some of the data fields in the metadata column of the data source. For example, if outbound flights within 8 hours need to be filtered, a filtering condition may be added that the flight attribute is outbound and the scheduled take-off time is less than or equal to 8 hours.
[0097] Then, sorting conditions may be configured for at least part of the data fields in the metadata column of the data source, such as sorting by scheduled take-off time.
[0098] After the configuration is completed, you can also save the corresponding configuration content and test it. You can create corresponding query statements based on the configuration content, including which tables to query, which fields to query, query conditions, and sorting conditions. Then, execute the query and return the results.
[0099] Fourthly, it should be noted that for step S140, the specific method of performing data loading processing to obtain the corresponding target data source file is not limited and can be selected according to actual needs.
[0100] For example, in an alternative implementation, in order to facilitate corresponding display control directly based on the target data source file in subsequent steps, the above-mentioned step S140 may further include step S141, step S142 and step S143, and the specific content of each step is described as follows.
[0101] Step S141: determining a target data source from the at least one data source.
[0102] In an embodiment of the present application, after at least one data source is created, a target data source may be determined from the at least one data source. For example, one data source may be arbitrarily determined as the target data source, or the target data source may be determined based on displayed requirements, or all created data sources may be used as target data sources.
[0103] Step S142: performing data loading processing on the target data source to obtain a candidate data source file corresponding to the target data source.
[0104] In the embodiment of the present application, after determining the target data source, data loading processing can be performed on the target data source to obtain a candidate data source file corresponding to the target data source. The candidate data source file contains the target flight information in the data table corresponding to the target data source. In other words, the specific target flight information is obtained.
[0105] Step S143, performing entity class conversion processing on the candidate data source file to obtain a target data source file corresponding to the candidate data source file.
[0106] In an embodiment of the present application, the candidate data source file may be subjected to entity class conversion processing to obtain a target data source file corresponding to the candidate data source file. For example, the target data source file obtained by performing entity class conversion processing may include the following contents:
[0107] 1) Title: Describe the purpose of the data source;
[0108] 2) Data source table: including table name, alias, relationship with other tables, and associated conditions;
[0109] 3) Data provider: including name, query statement, and query parameters;
[0110] 4) Data element fields: including field name, alias, display label, type (text, number, date), whether multi-language, multi-language prefix, formatting template, whether to filter, whether to sort, and data provider;
[0111] 5) Subquery: includes field name, alias, display label, whether it is multilingual, and multilingual prefix;
[0112] 6) Complex field: contains field name, alias, display label, type, and separator.
[0113] Among them, converting data content into entity classes can make it easier to process and manipulate data in programming. The following is a specific step and example showing how to map data in the database to entity classes:
[0114] Suppose we have a flight information system and need to map the flight information in the database to entity classes. Database table design, considering the flight information mentioned earlier:
[0115] Table name: flights
[0116] Fields:
[0117] flight_id (flight number)
[0118] airline_logo (storage path of airline logo)
[0119] departure_airport(departure station)
[0120] departure_time (planned departure time)
[0121] flight_status (flight status)
[0122] Entity class design:
[0123] In programming, you can define a flight entity class to represent these flight information, as follows:
[0124] Create entity class;
[0125] Mapping database to entity class: In actual programming, use ORM (object-relational mapping) tools such as Hibernate or manually write code to convert data in the database into objects of entity class.
[0126] Based on this, through the entity class, data can be organized and managed more clearly, making the processing of flight information in the application more convenient and intuitive. At the same time, the definition of the entity class also conforms to the principles of object-oriented programming, improving the readability and maintainability of the code.
[0127] In the fifth aspect, it should be noted that for step S150, the specific method of binding the target data source file with the pre-created target display template is not limited and can be selected according to actual needs.
[0128] For example, in an alternative implementation, in order to improve the efficiency and reliability of binding the target data source file and the target display template, the above-mentioned step S150 may further include step S151 and step S152, and the specific content of each step is described as follows.
[0129] Step S151, determining the content type of each data field in the target data source file.
[0130] In an embodiment of the present application, after obtaining the target data source file, the content type of each data field in the target data source file may be determined, where, exemplarily, the content type may include text type, picture type, table type, and video type.
[0131] Step S152: Binding each data field in the target data file to each display control in a pre-created target display template based on the content type of each data field in the target data source file.
[0132] In an embodiment of the present application, after determining the content type, each data field in the target data file can be bound to each display control in a pre-created target display template based on the content type of each data field in the target data source file. Wherein, each display control in the target display template includes at least one of a text control, a picture control, a table control, and a video control. That is, the text content in the target data source file can be bound to the text control in the target display template, the data content in the target data source file can be bound to the picture control in the target display template, the table content in the target data source file can be bound to the table control in the target display template, and the video content in the target data source file can be bound to the video control in the target display template. Based on this, in an actual application scenario, the display control can be double-clicked to set the properties of the control so that the fields to be displayed can be bound, and thus the corresponding data can be displayed.
[0133] In a sixth aspect, it should be noted that for step S160, the specific method of sending the target display template to the target display device is not limited and can be selected according to actual needs.
[0134] For example, in an alternative implementation, after the target data source file is bound to a pre-created target display template, the address of the target display template bound to the target data source file can be published, so that the target display device can make a display request based on the address, so that the electronic device can send the target display template bound to the target data source file to the target display device, so that the target display device can render the target display template bound to the target data source file to display flight information.
[0135] Combination Figure 3 The present application also provides a flight information display device applicable to the above electronic device. The flight information display device may include a flight information acquisition module, a data table creation module, a data source creation module, a data source loading module, a display template binding module, and a display device binding module.
[0136] The flight information acquisition module is used to acquire the target flight information that needs to be displayed. In the embodiment of the present application, the flight information acquisition module can be used to execute Figure 2 As shown in step S110, the relevant contents of the flight information acquisition module can refer to the above description of step S110.
[0137] The data table creation module is used to create at least one data table based on the target flight information, wherein each of the data tables is used to store the target flight information to be displayed. In the embodiment of the present application, the data table creation module can be used to execute Figure 2 As shown in step S120, the relevant contents of the data table creation module can refer to the above description of step S120.
[0138] The data source creation module is used to create at least one data source based on the at least one data table, wherein each of the data sources is configured with a data table to be displayed or a target field in the data table to be displayed. In the embodiment of the present application, the data source creation module can be used to execute Figure 2 As shown in step S130, the relevant contents of the data source creation module can refer to the above description of step S130.
[0139] The data source loading module is used to determine a target data source from the at least one data source, and obtain a corresponding target data source file by performing data loading processing on the target data source, wherein the target data source file contains target flight information in a data table corresponding to the target data source. In the embodiment of the present application, the data source loading module can be used to execute Figure 2As shown in step S140, the relevant contents of the data source loading module can refer to the above description of step S140.
[0140] The display template binding module is used to bind the target data source file to the pre-created target display template. In the embodiment of the present application, the display template binding module can be used to execute Figure 2 As shown in step S150, the relevant contents of the display template binding module can refer to the above description of step S150.
[0141] The display device binding module is used to respond to the display request of the target display device and send the target display template bound with the target data source file to the target display device, wherein the target display device is used to perform the corresponding flight information display operation based on the acquired target display template. Figure 2 As shown in step S60, the relevant contents of the display device binding module can refer to the description of step S160 above.
[0142] It can be understood that, in an alternative implementation, the data source creation module can be specifically used to: configure the data source of the data source based on the at least one data table, wherein the data source is used to indicate the data table to be displayed; configure the metadata column of the data source based on the at least one data table, wherein the metadata column is used to indicate the data field to be displayed in the data table to be displayed; configure a data provider for the data source, wherein the data provider is used to convert the encoded information in the data table so that the converted information has a different form.
[0143] In the embodiment of the present application, corresponding to the flight information display method applied to the electronic device, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is run, each step of the flight information display method is executed. Among them, each step executed when the aforementioned computer program is run is not described one by one here, and reference can be made to the explanation of the flight information display method in the previous text.
[0144] In summary, the flight information display method and device, electronic device and storage medium provided by the present application first obtain the target flight information to be displayed; secondly, create at least one data table based on the target flight information; then, create at least one data source based on the at least one data table; thereafter, determine the target data source in at least one data source, and obtain the corresponding target data source file by loading data on the target data source; further, bind the target data source file to a pre-created target display template; finally, in response to the display request of the target display device, send the target display template bound with the target data source file to the target display device. Based on the above content, when the displayed content needs to be changed, only the data source needs to be adjusted. Compared with the conventional solution that requires the display template to be redesigned, it has higher maintenance convenience and lower maintenance cost. Therefore, it can improve the problems of relatively high cost and relatively low maintenance convenience of flight information display in the prior art.
[0145] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device and method embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0146] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0147] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an 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, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0148] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A flight information display method, characterized in that: include: Get the target flight information that needs to be displayed; Creating at least one data table based on the target flight information, wherein each of the data tables is used to store the target flight information to be displayed; Creating at least one data source based on the at least one data table, wherein each of the data sources is configured with a data table to be displayed or a target field in the data table to be displayed; Determine a target data source from the at least one data source, and obtain a corresponding target data source file by performing data loading processing on the target data source, wherein the target data source file contains target flight information in a data table corresponding to the target data source; Binding the target data source file to a pre-created target display template; In response to a display request of a target display device, a target display template bound with the target data source file is sent to the target display device, wherein the target display device is used to perform a corresponding flight information display operation based on the acquired target display template.
2. The flight information display method according to claim 1, characterized in that: The step of creating at least one data source based on the at least one data table comprises: Based on the at least one data table, configuring a data source of the data source, wherein the data source is used to indicate a data table to be displayed; Based on the at least one data table, a metadata column of the data source is configured, wherein the metadata column is used to indicate a data field to be displayed in the data table to be displayed; A data provider is configured for the data source, wherein the data provider is used to convert the coded information in the data table so that the converted information has a different form.
3. The flight information display method according to claim 2, characterized in that: The step of configuring the metadata column of the data source based on the at least one data table includes: After configuring the data source of the data source, determining the data field to be displayed from the data table indicated by the data source, and configuring the metadata column of the data source based on the data field so that the metadata column includes the field name of the data field; Configuring filtering conditions for at least some of the data fields in the metadata column of the data source; Sorting conditions are configured for at least some of the data fields in the metadata column of the data source.
4. The flight information display method according to claim 1, characterized in that: The step of determining a target data source from the at least one data source and obtaining a corresponding target data source file by performing data loading processing on the target data source includes: determining a target data source from the at least one data source; Performing data loading processing on the target data source to obtain a candidate data source file corresponding to the target data source, wherein the candidate data source file contains target flight information in a data table corresponding to the target data source; The candidate data source file is subjected to entity class conversion processing to obtain a target data source file corresponding to the candidate data source file.
5. The flight information display method according to claim 1, characterized in that: The step of binding the target data source file with the pre-created target display template includes: Determine the content type of each data field in the target data source file, wherein the content type includes text type, picture type, table type and video type; Based on the content type of each data field in the target data source file, each data field in the target data file is bound to each display control in a pre-created target display template, wherein each display control in the target display template includes at least one of a text control, a picture control, a table control, and a video control.
6. The flight information display method according to any one of claims 1 to 5, characterized in that: The step of obtaining the target flight information to be displayed includes: Obtain at least one flight information to be displayed, including airline logo, flight number, departure airport, shared flights, stopover airport, scheduled departure time, and flight status; The at least one acquired flight information is determined as target flight information to be displayed.
7. A flight information display device, characterized in that: include: The flight information acquisition module is used to acquire the target flight information to be displayed; A data table creation module, used to create at least one data table based on the target flight information, wherein each of the data tables is used to store the target flight information to be displayed; A data source creation module, used to create at least one data source based on the at least one data table, wherein each of the data sources is configured with a data table to be displayed or a target field in the data table to be displayed; A data source loading module, used to determine a target data source from the at least one data source, and obtain a corresponding target data source file by performing data loading processing on the target data source, wherein the target data source file contains target flight information in a data table corresponding to the target data source; A display template binding module, used to bind the target data source file to a pre-created target display template; The display device binding module is used to send the target display template bound with the target data source file to the target display device in response to the display request of the target display device, wherein the target display device is used to perform corresponding flight information display operations based on the acquired target display template.
8. The flight information display device according to claim 7, characterized in that: The data source creation module is specifically used for: Based on the at least one data table, configuring a data source of the data source, wherein the data source is used to indicate a data table to be displayed; Based on the at least one data table, configuring a metadata column of the data source, wherein the metadata column is used to indicate a data field to be displayed in the data table to be displayed; A data provider is configured for the data source, wherein the data provider is used to convert the coded information in the data table so that the converted information has a different form.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor connected to the memory is used to execute the computer program stored in the memory to implement the flight information display method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run, each step of the flight information display method according to any one of claims 1 to 6 is executed.