CN114372070B - Data consistency checking method and device - Google Patents

Data consistency checking method and device Download PDF

Info

Publication number
CN114372070B
CN114372070B CN202210023332.6A CN202210023332A CN114372070B CN 114372070 B CN114372070 B CN 114372070B CN 202210023332 A CN202210023332 A CN 202210023332A CN 114372070 B CN114372070 B CN 114372070B
Authority
CN
China
Prior art keywords
data
category
checking
inspection
request
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.)
Active
Application number
CN202210023332.6A
Other languages
Chinese (zh)
Other versions
CN114372070A (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.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky Technology Co Ltd
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 China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN202210023332.6A priority Critical patent/CN114372070B/en
Publication of CN114372070A publication Critical patent/CN114372070A/en
Application granted granted Critical
Publication of CN114372070B publication Critical patent/CN114372070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • Computer Security & Cryptography (AREA)
  • Game Theory and Decision Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a data consistency checking method, which comprises the following steps of: the first data system and the second data system may send a data inspection request to the inspection system when the first data system needs to perform data consistency inspection, where the data inspection request includes a data type and data to be inspected (first data). And the checking system checks the data consistency by using the first data and the second data according to the second data matched with the data category in the second data system, and obtains a checking result. That is, the inspection system is deployed in the passenger service system, and when the first data system needs to perform data consistency inspection, the first data system can actively send a data inspection request to the inspection system so as to trigger the inspection system to perform data consistency inspection operation, thereby improving inspection efficiency and accuracy.

Description

Data consistency checking method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for checking data consistency.
Background
With the rapid development of civil aviation markets, the departure link is used as a link for final delivery of passenger service of an airline company, and higher requirements are put forward on the business processing capacity of the departure system while differentiated service and accurate marketing are ensured. On one hand, the backup system of the departure system needs to be perfected; on the other hand, the checking capability of data consistency is improved, and the safe operation of the departure system is ensured.
However, the data consistency check of the existing departure system needs to be manually participated, so that the working efficiency is low, and the accuracy of the check result can be influenced under the condition of manual participation.
Disclosure of Invention
In view of this, the embodiments of the present application provide a method and an apparatus for checking data consistency, so as to improve efficiency and accuracy of data consistency checking.
In order to achieve the above object, the technical solution provided in the embodiments of the present application is as follows:
in a first aspect of embodiments of the present application, there is provided a data consistency check method, the method including:
receiving a data checking request sent by a first data system, wherein the data checking request comprises a data category and first data, the data category is used for indicating the category of the first data, and the data category comprises flight data, passenger data, ticket data and additional service data;
acquiring second data matched with the data category from a second data system according to the data checking request, wherein the first data system and the second data system are subsystems of a passenger service system respectively;
and carrying out data consistency check by using the first data and the second data to obtain a check result.
In a second aspect of embodiments of the present application, there is provided a data consistency check apparatus, the apparatus including:
the system comprises a receiving module, a first data system and a second data system, wherein the receiving module is used for receiving a data checking request sent by the first data system, the data checking request comprises a data category and first data, the data category is used for indicating the category of the first data, and the data category comprises flight data, passenger data, ticket data and additional service data;
the acquisition module is used for acquiring second data matched with the data category from a second data system according to the data checking request, and the first data system and the second data system are subsystems of a passenger service system respectively;
and the checking module is used for checking the data consistency by utilizing the first data and the second data to obtain a checking result.
In a third aspect of embodiments of the present application, there is provided a passenger service system, the system including a first data system, a second data system, and the data consistency check device of the second aspect, the first data system and the second data system being respectively configured to store one or more of flight data, passenger data, ticket data, and additional service data;
the data consistency checking device is used for carrying out consistency checking on the data in the first data system and the data in the second data system.
In a fourth aspect of embodiments of the present application, there is provided an electronic device, including: a processor, a memory;
the memory is used for storing computer readable instructions or computer programs;
the processor is configured to read the computer readable instructions or the computer program, so as to cause the apparatus to implement the data consistency check method according to the first aspect.
In a fifth aspect of embodiments of the present application, a computer-readable storage medium is provided, comprising instructions or a computer program, which when run on a computer, cause the computer to perform the data consistency check method.
In a sixth aspect of embodiments of the present application, there is provided a computer program product comprising a computer program which, when executed by a processor, causes the processor to implement the data consistency check method of the first aspect.
From this, the embodiment of the application has the following beneficial effects:
in the embodiment of the present application, for two subsystems included in a passenger service system: the first data system and the second data system may send a data inspection request to the inspection system when the first data system needs to perform data consistency inspection, where the data inspection request includes a data type and data to be inspected (first data). And the checking system checks the data consistency by using the first data and the second data according to the second data matched with the data category in the second data system, and obtains a checking result. That is, the inspection system is deployed in the passenger service system, and when the first data system needs to perform data consistency inspection, the first data system can actively send a data inspection request to the inspection system so as to trigger the inspection system to perform data consistency inspection operation, thereby improving inspection efficiency and accuracy.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of a data consistency check provided in an embodiment of the present application;
FIG. 2a is a schematic diagram of an inspection system according to an embodiment of the present application;
FIG. 2b is a diagram of a data alignment framework according to an embodiment of the present disclosure;
FIG. 3 is a block diagram of a data consistency check device according to an embodiment of the present application;
fig. 4 is a block diagram of a passenger service system according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
In order to facilitate understanding of the technical solutions provided in the present application, the techniques related to the embodiments of the present application will be described below.
The passenger service system (Passenger Service System forAirline, PSS) is the core system of the civil aviation passenger business system, carrying business applications of airlines from various aspects related to passenger travel, such as flight management, ticket booking, airport passenger service, etc., like the brain of the central nervous system. The heaviest parts of the PSS are a booking system and an departure control system, wherein the booking system can control the seat sales of each flight of an airline company in real time. The departure control system (departure system for short) mainly refers to services before the aircraft takes off, including passenger boarding, ground services and the like.
Departure control systems (Departure Control System, DCS), which are large online transaction systems for airline passenger services, are divided into three major parts, namely a Check-In (CKI) system, a Load balancing (LDP) system, and a flight data control (Flight data control, FDC) system. Wherein, the CKI of the passenger boarding system is a system for automatically controlling and recording the boarding process of the passenger, can record the flight, voyage and seat confirmation of the passenger, and record additional passenger data (such as luggage weight, middle-turn station, etc.), etc. The load balancing system LDP is used by airlines and airport load staff. It can be used in combination with a machine-in-machine function module (CKI) of an departure control system, or can be used alone. The aircraft loading is a necessary program before taking off, and the aircraft industry load distribution is determined by comprehensively considering various factors influencing the aircraft balance, so that the necessary weight, gravity center and other numerical values before taking off the aircraft are obtained. The flight data control system FDC is mainly responsible for the data management work of the check-in system; normally, the passenger check-in flights are edited by a flight data control system, and a seasonal flight table is generated in the system to prepare for the check-in of the passengers. An important task of FDC is to apply for a list of passengers to the booking system.
In practical applications, to ensure safe operation of the departure system and provide good quality service for passengers, it is necessary to ensure that data managed by the departure system is consistent with data stored by other management systems. Based on this, according to the data consistency check method provided by the embodiment of the application, an independent check system is deployed in the passenger service system, so that consistency check is performed on data managed by the departure system through the check system.
In order to facilitate understanding of the technical solutions provided in the embodiments of the present application, the following description will be given with reference to the accompanying drawings.
Referring to fig. 1, the flowchart of a data consistency check method provided in an embodiment of the present application, as shown in fig. 1, the method may include:
s101: and receiving a data check request sent by the first data system.
In this embodiment, when the first data system needs to perform data consistency check, a data check request is sent to the check system, where the data check request includes a data type and first data. Wherein the data category is used to indicate a category of the first data, and the data category may include flight data, passenger data, ticket data, additional service data, and the like. That is, the first data system may request that the inspection system inspect any one or more of flight data, passenger data, ticket data, and additional service data.
Wherein, when the data category is flight data, the first data may be all flight data or flight data of a specified flight. When the first data is flight data of the appointed flight, the data category also needs to carry the flight identification. When the data category is passenger data, the first data may be passenger data corresponding to all flights, or may be passenger data in an appointed flight, or may be appointed passenger data. When the first data is all the passenger data in the appointed flight, the data category also needs to carry the flight identification, or when the first data is the appointed passenger data, the data category also needs to carry the passenger identification.
Specifically, the first data system sends a data inspection request to the inspection system, which can be achieved by a maintenance person setting a period for the first data system to perform data consistency inspection, and the first data system sends the data inspection request to the inspection system in response to the arrival of the inspection period. Alternatively, the first data system sends a data inspection request to the inspection system in response to an inspection operation triggered by a maintenance person.
S102: and acquiring second data matched with the data category from a second data system according to the data checking request.
And after receiving the data checking request sent by the first data system, the checking system acquires the matched second data from the second data system according to the data category in the data checking request. For example, when the data category is flight data, the second data is all flight data stored in the second data system or specified flight data. Wherein the first data system and the second data system are respectively two subsystems in the passenger service system PSS. For example, the first data system is a flight data control system in the departure system, and the second data system is a reservation system.
Specifically, after receiving a data inspection request sent by a first data system, the inspection system sends a data request to a second data system according to the data inspection request, wherein the data request comprises a data type; and after receiving the data request, the second data system searches matched second data from the local storage according to the data request and sends the second data to the checking system through a response message.
S103: and performing data consistency check by using the first data and the second data to obtain a check result.
After the first data and the second data are acquired, the inspection system performs data comparison according to the first data and the second data so as to obtain an inspection result.
When the inspection system performs data consistency inspection, the first data and the second data are compared according to the comparison rule corresponding to the first data, so that an inspection result is obtained.
Optionally, when the inspection result is inconsistent, the first data and the second data may be stored locally, so as to facilitate subsequent manual inspection. Further, in order to avoid occupation of the storage space of the inspection system, when the time length of the first data and the second data stored locally reaches the preset time length, the first data and the second data are deleted, so that occupation of the local storage space is reduced.
Optionally, if the inspection result is inconsistent, a prompt message may also be sent to perform manual approval through the prompt message. That is, an alarm may be triggered when the first data and the second data are checked to be not matched. Specifically, the prompt message may be sent by means of mail or short message.
Optionally, when the checking result is consistent, it may also be determined whether the data indicated by the data category needs to be checked in a polling manner; if a poll check is required, the first data is retrieved from the first data system and the second data is retrieved from the second data system and a subsequent consistency check operation is performed.
Specifically, upon determining that a polling check is required, the check system may send data requests to the first data system and the second data system, respectively, to retrieve the first data from the first data system and the second data from the second data system via the data requests.
It can be seen that for any two subsystems included in the passenger service system: the first data system and the second data system may send a data inspection request to the inspection system when the first data system needs to perform data consistency inspection, where the data inspection request includes a data type and data to be inspected (first data). And the checking system checks the data consistency by using the first data and the second data according to the second data matched with the data category in the second data system, and obtains a checking result. That is, the inspection system is deployed in the passenger service system, and when the first data system needs to perform data consistency inspection, the first data system can actively send a data inspection request to the inspection system so as to trigger the inspection system to perform data consistency inspection operation, thereby improving inspection efficiency and accuracy.
For easy understanding of the technical solution of the present application, refer to the inspection system structure diagram shown in fig. 2a and the data alignment frame diagram shown in fig. 2 b. The inspection system may include a comparison module, a data acquisition module, an alarm module, and a storage module, and the inspection system may specifically perform the following steps:
step S1: the comparison module accepts a data comparison request (data check request).
Step S2: and identifying the data comparison type in the request information.
Step S3: the comparison module sends a query comparison data request to the data acquisition module.
Step S4: the comparison module sends a query calibration data request to the data acquisition module.
The comparison data may be first data, and the calibration data may be second data.
Step S5: the comparison module receives the comparison data and the calibration data sent by the data acquisition module; and according to the comparison rule of the first data (different data objects have different comparison rules), performing data comparison.
Step S6: if the data are consistent, step S7 is performed, otherwise S8 is performed.
Step S7: and judging whether polling comparison is needed, if so, repeating the step S2 according to a polling rule, otherwise, executing the step S10.
Step S8: when the data are inconsistent, the comparison module sends an alarm request to the alarm module to trigger an alarm.
Step S9: when the alarm is received, the reasons of inconsistent data are manually checked, and when the problem is checked, the comparison data and the calibration data can be obtained through the storage module.
Step S10: and comparing the data.
It is noted that the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The names of messages or information interacted between the various devices in the embodiments of the present application are for illustrative purposes only and are not intended to limit the scope of such messages or information. Although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present application may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present application is not limited in this respect.
Based on the above method embodiments, the present application provides a data consistency checking apparatus, which will be described below with reference to the accompanying drawings.
Referring to fig. 3, which is a block diagram of a data consistency check apparatus according to an embodiment of the present application, as shown in fig. 3, the apparatus 300 may include: a receiving module 301, an acquiring module 302 and a checking module 303.
The receiving module 301 is configured to receive a data inspection request sent by a first data system, where the data inspection request includes a data category and first data, where the data category is used to indicate a category of the first data, and the data category includes flight data, passenger data, ticket data, and additional service data. For a specific implementation of the receiving module 301, reference may be made to the description of S101 in the above method embodiment.
And the acquiring module 302 is configured to acquire, according to the data inspection request, second data matched with the data category from a second data system, where the first data system and the second data system are subsystems of a passenger service system respectively. For a specific implementation of the acquisition module 302, reference may be made to the description related to S102 in the above method embodiment.
And the checking module 303 is configured to perform data consistency checking by using the first data and the second data, so as to obtain a checking result. For a specific implementation of the checking module 303, reference may be made to the description of S103 in the above-mentioned method embodiment.
In a specific implementation, the first data system is a flight data control system and the second data system is a booking system.
In a specific implementation, the apparatus further includes: a storage module and a deletion module;
the storage module is used for storing the first data and the second data locally when the check result is inconsistent;
the deleting module is used for deleting the first data and the second data in response to the storage duration reaching a preset duration.
In a specific implementation, the apparatus further includes: a judging module;
the judging module is used for determining whether the data indicated by the data category need to be checked in a polling way when the checking results are consistent;
the acquiring module 302 is further configured to acquire, when a polling check is required, first data from the first data system and second data from the second data system, and perform a subsequent consistency check operation.
In a specific implementation, the obtaining module 302 is specifically configured to send a data request to the second data system, where the data request includes the data category; and receiving a response message sent by the second data system, wherein the response message comprises second data corresponding to the data category.
In a specific implementation, the apparatus further includes: a transmitting module;
and the sending module is used for sending prompt information when the checking result is inconsistent so as to carry out manual approval through the prompt information.
In a specific implementation manner, the inspection module 303 is specifically configured to perform data consistency inspection on the first data and the second data according to the comparison rule corresponding to the first data, so as to obtain an inspection result, where different data correspond to different comparison rules.
It should be noted that, the implementation of each unit in this embodiment may refer to the related description in the foregoing method embodiment, and this embodiment is not described herein again.
Referring to fig. 4, a passenger service system is provided according to an embodiment of the present application, the system includes a first data system 401, a second data system 402, and the data consistency check apparatus 300 described in fig. 3.
Wherein the first data system 401 and the second data system 402 are respectively used for storing one or more of flight data, passenger data, ticket data and additional service data;
the data consistency checking means is configured to perform consistency checking on the data in the first data system 401 and the data in the second data system 402.
Optionally, the first data system is a flight data control system, and the second data system is a booking system.
The specific implementation of the data consistency check apparatus 300 may be referred to as related description in the embodiment shown in fig. 3.
The units or modules described in the embodiments of the present application may be implemented by software, or may be implemented by hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Referring to fig. 5, a schematic structural diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 606 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 606 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
Embodiments of the present application provide a computer readable storage medium comprising instructions or a computer program which, when run on a computer, cause the computer to perform the data consistency check method.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The present application provides a computer program product comprising a computer program which, when executed by a processor, causes the processor to implement the described data consistency check method.
In particular, according to embodiments of the application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 606, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
According to one or more embodiments of the present application, there is provided a data consistency check method, the method comprising:
receiving a data checking request sent by a first data system, wherein the data checking request comprises a data category and first data, the data category is used for indicating the category of the first data, and the data category comprises flight data, passenger data, ticket data and additional service data;
acquiring second data matched with the data category from a second data system according to the data checking request, wherein the first data system and the second data system are subsystems of a passenger service system respectively;
and carrying out data consistency check by using the first data and the second data to obtain a check result.
According to one or more embodiments of the present application, the first data system is a flight data control system and the second data system is a booking system.
According to one or more embodiments of the present application, the method further comprises:
when the checking result is inconsistent, storing the first data and the second data locally;
and deleting the first data and the second data in response to the storage duration reaching a preset duration.
According to one or more embodiments of the present application, after obtaining the detection result, the method further comprises:
when the checking results are consistent, determining whether the data indicated by the data category need to be checked in a polling way;
if polling checking is required, acquiring first data from the first data system and second data from the second data system, and performing subsequent consistency checking operations.
According to one or more embodiments of the present application, the obtaining, according to the data inspection request, second data matching the data category from a second data system includes:
transmitting a data request to the second data system, the data request including the data category;
and receiving a response message sent by the second data system, wherein the response message comprises second data corresponding to the data category.
According to one or more embodiments of the present application, the method further comprises:
and when the checking result is inconsistent, sending prompt information so as to carry out manual approval through the prompt information.
According to one or more embodiments of the present application, the performing data consistency check using the first data and the second data to obtain a detection result includes:
and carrying out data consistency check on the first data and the second data according to the comparison rule corresponding to the first data to obtain a check result, wherein different data correspond to different comparison rules.
According to one or more embodiments of the present application, there is provided a data consistency check apparatus, the apparatus comprising:
the system comprises a receiving module, a first data system and a second data system, wherein the receiving module is used for receiving a data checking request sent by the first data system, the data checking request comprises a data category and first data, the data category is used for indicating the category of the first data, and the data category comprises flight data, passenger data, ticket data and additional service data;
the acquisition module is used for acquiring second data matched with the data category from a second data system according to the data checking request, and the first data system and the second data system are subsystems of a passenger service system respectively;
and the checking module is used for checking the data consistency by utilizing the first data and the second data to obtain a checking result.
According to one or more embodiments of the present application, the first data system is a flight data control system and the second data system is a booking system.
According to one or more embodiments of the present application, the apparatus further comprises: a storage module and a deletion module;
the storage module is used for storing the first data and the second data locally when the check result is inconsistent;
the deleting module is used for deleting the first data and the second data in response to the storage duration reaching a preset duration.
According to one or more embodiments of the present application, the apparatus further comprises: a judging module;
the judging module is used for determining whether the data indicated by the data category need to be checked in a polling way when the checking results are consistent;
the acquisition module is further used for acquiring first data from the first data system and second data from the second data system when polling check is needed, and executing subsequent consistency check operation.
According to one or more embodiments of the present application, the obtaining module is specifically configured to send a data request to the second data system, where the data request includes the data category; and receiving a response message sent by the second data system, wherein the response message comprises second data corresponding to the data category.
According to one or more embodiments of the present application, the apparatus further comprises: a transmitting module;
and the sending module is used for sending prompt information when the checking result is inconsistent so as to carry out manual approval through the prompt information.
According to one or more embodiments of the present application, the inspection module is specifically configured to perform data consistency inspection on the first data and the second data according to the comparison rule corresponding to the first data, so as to obtain an inspection result, where different data correspond to different comparison rules.
According to one or more embodiments of the present application, there is provided a passenger service system comprising a first data system, a second data system and the data consistency check device of the second aspect, the first data system and the second data system being for storing one or more of flight data, passenger data, ticket data and additional service data, respectively;
the data consistency checking device is used for carrying out consistency checking on the data in the first data system and the data in the second data system.
According to one or more embodiments of the present application, there is provided an electronic device including: a processor, a memory;
the memory is used for storing computer readable instructions or computer programs;
the processor is configured to read the computer readable instructions or the computer program, so as to cause the apparatus to implement the data consistency check method according to the first aspect.
According to one or more embodiments of the present application, there is provided a computer-readable storage medium comprising instructions or a computer program which, when run on a computer, cause the computer to perform the described data consistency check method.
According to one or more embodiments of the present application, there is provided a computer program product comprising a computer program which, when executed by a processor, causes the processor to implement the data consistency check method of the first aspect.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).

Claims (6)

1. A method of data consistency check, the method comprising:
receiving a data checking request sent by a first data system, wherein the data checking request comprises a data category and first data, the data category is used for indicating the category of the first data, and the data category comprises flight data, passenger data, ticket data and additional service data;
acquiring second data matched with the data category from a second data system according to the data checking request, wherein the first data system and the second data system are subsystems of a passenger service system respectively;
performing data consistency check by using the first data and the second data to obtain a check result;
when the checking results are consistent, determining whether the data indicated by the data category need to be checked in a polling way;
if polling check is needed, acquiring first data from the first data system and second data from the second data system, and executing subsequent consistency check operation;
wherein the obtaining, according to the data inspection request, second data matching the data category from a second data system includes: transmitting a data request to the second data system, the data request including the data category; receiving a response message sent by the second data system, wherein the response message comprises second data corresponding to the data category;
and performing data consistency check by using the first data and the second data to obtain a detection result, wherein the method comprises the following steps: performing data consistency check on the first data and the second data according to the comparison rule corresponding to the first data to obtain a check result, wherein different data correspond to different comparison rules; the first data system is a flight data control system, and the second data system is a seat booking system.
2. The method according to claim 1, wherein the method further comprises:
when the checking result is inconsistent, storing the first data and the second data locally;
and deleting the first data and the second data in response to the storage duration reaching a preset duration.
3. The method according to claim 1, wherein the method further comprises:
and when the checking result is inconsistent, sending prompt information so as to carry out manual approval through the prompt information.
4. A data consistency check device, the device comprising:
the system comprises a receiving module, a first data system and a second data system, wherein the receiving module is used for receiving a data checking request sent by the first data system, the data checking request comprises a data category and first data, the data category is used for indicating the category of the first data, and the data category comprises flight data, passenger data, ticket data and additional service data;
the acquisition module is used for acquiring second data matched with the data category from a second data system according to the data checking request, and the first data system and the second data system are subsystems of a passenger service system respectively; the acquiring module is specifically configured to: transmitting a data request to the second data system, the data request including the data category; receiving a response message sent by the second data system, wherein the response message comprises second data corresponding to the data category;
the checking module is used for checking data consistency by utilizing the first data and the second data to obtain a checking result; wherein, the inspection module is specifically used for: performing data consistency check on the first data and the second data according to the comparison rule corresponding to the first data to obtain a check result, wherein different data correspond to different comparison rules; the first data system is a flight data control system, and the second data system is a seat booking system;
the judging module is used for determining whether the data indicated by the data category need to be checked in a polling way when the checking results are consistent;
the acquisition module is further used for acquiring first data from the first data system and second data from the second data system when polling check is needed, and executing subsequent consistency check operation.
5. A passenger service system, comprising a first data system, a second data system, and the data consistency check device of claim 4, the first data system and the second data system being operable to store one or more of flight data, passenger data, ticket data, and additional service data, respectively;
the data consistency checking device is used for carrying out consistency checking on the data in the first data system and the data in the second data system.
6. An electronic device, comprising: a processor, a memory;
the memory is used for storing computer readable instructions or computer programs;
the processor configured to read the computer readable instructions or the computer program to cause the apparatus to implement the data consistency check method according to any one of claims 1-3.
CN202210023332.6A 2022-01-10 2022-01-10 Data consistency checking method and device Active CN114372070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210023332.6A CN114372070B (en) 2022-01-10 2022-01-10 Data consistency checking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210023332.6A CN114372070B (en) 2022-01-10 2022-01-10 Data consistency checking method and device

Publications (2)

Publication Number Publication Date
CN114372070A CN114372070A (en) 2022-04-19
CN114372070B true CN114372070B (en) 2024-02-20

Family

ID=81144053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210023332.6A Active CN114372070B (en) 2022-01-10 2022-01-10 Data consistency checking method and device

Country Status (1)

Country Link
CN (1) CN114372070B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874587A (en) * 2018-06-06 2018-11-23 亚信科技(中国)有限公司 A kind of the final consistency support method and system of affairs
CN109873873A (en) * 2019-03-15 2019-06-11 北京恒赢智航科技有限公司 A kind of flight data delivery system, flight variation and message treatment method
CN110874363A (en) * 2019-11-19 2020-03-10 中国民航信息网络股份有限公司 Inventory management method and system for unmanned accompanying passenger
US10733145B1 (en) * 2014-12-16 2020-08-04 Amazon Technologies, Inc. Techniques for distributing verification checks incident to data deletion
CN111897862A (en) * 2020-07-30 2020-11-06 中国民航信息网络股份有限公司 Data synchronization system, method and storage medium for civil aviation data
CN113297178A (en) * 2021-05-31 2021-08-24 中国民航信息网络股份有限公司 Aviation product data processing method and related equipment
CN113486031A (en) * 2021-06-30 2021-10-08 中国民航信息网络股份有限公司 Method for updating departure flight data and related equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110225188A1 (en) * 2010-03-12 2011-09-15 Expert Travel Services, LLC Method and system for processing travel-related data
US10185736B2 (en) * 2015-04-27 2019-01-22 Microsoft Technology Licensing, Llc Replicable differential store data structure
US10089183B2 (en) * 2015-07-31 2018-10-02 Hiveio Inc. Method and apparatus for reconstructing and checking the consistency of deduplication metadata of a deduplication file system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10733145B1 (en) * 2014-12-16 2020-08-04 Amazon Technologies, Inc. Techniques for distributing verification checks incident to data deletion
CN108874587A (en) * 2018-06-06 2018-11-23 亚信科技(中国)有限公司 A kind of the final consistency support method and system of affairs
CN109873873A (en) * 2019-03-15 2019-06-11 北京恒赢智航科技有限公司 A kind of flight data delivery system, flight variation and message treatment method
CN110874363A (en) * 2019-11-19 2020-03-10 中国民航信息网络股份有限公司 Inventory management method and system for unmanned accompanying passenger
CN111897862A (en) * 2020-07-30 2020-11-06 中国民航信息网络股份有限公司 Data synchronization system, method and storage medium for civil aviation data
CN113297178A (en) * 2021-05-31 2021-08-24 中国民航信息网络股份有限公司 Aviation product data processing method and related equipment
CN113486031A (en) * 2021-06-30 2021-10-08 中国民航信息网络股份有限公司 Method for updating departure flight data and related equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于消息中间件的航班信息显示系统的设计与实现;李小智;陶勇;;计算机系统应用;20101015(10);全文 *
民航旅客服务系统交易模型及关键技术研究;梁海峰;黄恺;杜建国;;电子测试;20171115(22);全文 *

Also Published As

Publication number Publication date
CN114372070A (en) 2022-04-19

Similar Documents

Publication Publication Date Title
CN111506614B (en) Method and device for identifying civil aviation transfer baggage and storage medium
CN107633328B (en) Method and system for displaying time of arriving flight passenger leaving airport
CN112396340A (en) Method, apparatus, electronic device and computer storage medium for reserving luggage
CN114372070B (en) Data consistency checking method and device
CN112232653A (en) Method, device, server and computer storage medium for processing reserve landing flight
CN113312420B (en) Flight data processing method, device, equipment and storage medium
WO2023123755A1 (en) Information pushing method and apparatus, electronic device and storage medium
WO2023137890A1 (en) Passenger ticket filling control method and apparatus
CN116150216A (en) Stroke search method, device, electronic equipment and storage medium
CN112734263A (en) Flight candidate data processing method and device, electronic device and storage medium
CN113313392A (en) Airline ticket waiting and supplementing ticket registering method, related device and computer storage medium
CN112801325A (en) Enterprise group inspection reservation method, system, electronic device and medium
CN112651668A (en) Flight resource allocation method and device and server
CN118134573A (en) Method and device for generating ballot price
CN116596096A (en) Seat information matching control method and device, electronic equipment and storage medium
CN116385091A (en) Air ticket changing method, system, electronic equipment and storage medium
CN111860913B (en) Prepaid luggage processing method, reservation management system and device
CN117591048B (en) Task information processing method, device, electronic equipment and computer readable medium
CN115062022B (en) Aircraft manual splitting method, device, electronic equipment and computer readable medium
CN112579832B (en) Grouping verification method and device for voyage transportation data
CN115907789A (en) Luggage quota sharing method and device, electronic equipment and storage medium
CN116362947A (en) Seat map refreshing method and device
CN114817246A (en) Aviation data processing method and device
CN111784524A (en) Insurance order processing method and device and electronic equipment
CN118170810A (en) Method and device for generating associated report of aviation published freight rate and electronic equipment

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