CN114372826A - Freight rate data processing method, system, equipment and storage medium - Google Patents

Freight rate data processing method, system, equipment and storage medium Download PDF

Info

Publication number
CN114372826A
CN114372826A CN202210023310.XA CN202210023310A CN114372826A CN 114372826 A CN114372826 A CN 114372826A CN 202210023310 A CN202210023310 A CN 202210023310A CN 114372826 A CN114372826 A CN 114372826A
Authority
CN
China
Prior art keywords
freight rate
rate data
processing module
module
target
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.)
Pending
Application number
CN202210023310.XA
Other languages
Chinese (zh)
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 CN202210023310.XA priority Critical patent/CN114372826A/en
Publication of CN114372826A publication Critical patent/CN114372826A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/0283Price estimation or determination
    • 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/24Querying
    • G06F16/242Query formulation
    • 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/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, a system, equipment and a storage medium for processing freight rate data, which comprise the following steps: the processing module generates a freight rate request according to the field information provided by the user; acquiring version information of a database in a storage module every a first preset time period; when the version information of the database changes, sending the freight rate request to a calculation module, and receiving a calculation result returned by the calculation module; preprocessing a calculation result to obtain the updating time of the target freight rate data; and judging whether the target freight rate data changes or not, when the target freight rate data changes, sending the target freight rate data to a sending module, and sending the target freight rate data to the user by the sending module. The processing method of the freight rate data, provided by the embodiment of the application, acquires the target freight rate data concerned by the user, and timely sends the target freight rate data to the user when the target freight rate data changes, so that the efficiency of acquiring the target freight rate data by the user is improved.

Description

Freight rate data processing method, system, equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, a system, a device, and a storage medium for processing freight rate data.
Background
Along with the development of civil aviation industry, the scales of various airlines are gradually enlarged, airports are continuously added in various parts of the world, various routes are generated, and various freight rate rules derived under the background result in that the freight rate data are increased in an exponential mode. Many of the less common airline, etc. derived freight rate data gradually affect the proportion of core airline, etc. freight rate data that an airline or agent is interested in.
Conventionally, when an airline company or an agent wants to know whether or not the concerned freight rate data has changed, the concerned freight rate data needs to be manually inquired from a large amount of freight rate data. Because the time for storing the change of the database of the freight rate data cannot be known, whether the freight rate data changes or not cannot be known quickly, and only the query operation can be executed manually and regularly, the efficiency of the process for acquiring the freight rate data is low.
Disclosure of Invention
The embodiment of the application provides a method, a system, equipment and a storage medium for processing freight rate data, so that the efficiency of obtaining concerned freight rate data by a user is improved.
In a first aspect, an embodiment of the present application provides a method for processing freight rate data, where the method includes:
the processing module generates a freight rate request according to field information provided by a user, wherein the freight rate request is used for selecting target freight rate data required by the user;
the processing module acquires version information of a database in a storage module at intervals of a first preset time period, wherein the database is used for acquiring and storing freight rate data at intervals of a second preset time period, and the version information is used for indicating the time for storing the freight rate data in the database;
when the version information of the database changes, the processing module sends the freight rate request to a calculation module and receives a calculation result returned by the calculation module, wherein the freight rate request corresponds to the calculation result one by one;
the processing module is used for preprocessing the calculation result to acquire the updating time of the target freight rate data;
the processing module judges whether the target freight rate data changes or not, and when the target freight rate data changes, the processing module sends the target freight rate data to a sending module so that the sending module can send the target freight rate data to the user.
In a second aspect, an embodiment of the present application provides a system for processing freight rate data, where the system includes: the device comprises a processing module, a storage module, a calculation module and a sending module;
the processing module is used for generating a freight rate request according to field information provided by a user, wherein the freight rate request is used for selecting target freight rate data required by the user;
the processing module is further configured to acquire version information of a database in the storage module every first preset time period, where the version information is used to indicate the time for storing the freight rate data in the database;
the storage module is used for acquiring freight rate data every second preset time period and storing the freight rate data in the database;
the processing module is further used for sending the freight rate request to a calculating module when the version information of the database changes;
the calculation module is used for calculating based on the freight rate request sent by the processing module and returning a calculation result to the processing module, wherein the freight rate request corresponds to the calculation result one by one;
the processing module is further used for preprocessing the calculation result to obtain the update time of the target freight rate data;
the processing module is further configured to determine whether the target freight rate data changes, and send the target freight rate data to the sending module when the target freight rate data changes;
and the sending module is used for sending the target freight rate data to the user.
In a third aspect, an embodiment of the present application provides a device for processing freight rate data, where the device includes: a memory and a processor;
the memory is used for storing relevant program codes;
the processor is configured to invoke the program code to execute the method for processing the freight rate data according to any one of the embodiments of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is used to execute the processing method of the freight rate data described in any one of the above-mentioned embodiments of the first aspect.
Therefore, the embodiment of the application has the following beneficial effects:
in the implementation manner of the embodiment of the application, the processing module generates a freight rate request according to field information provided by a user, wherein the freight rate request is used for selecting target freight rate data required by the user; acquiring version information of a database in a storage module every a first preset time period, wherein the database is used for acquiring and storing freight rate data every a second preset time period, and the version information of the database is used for indicating the time for storing the freight rate data in the database; when the version information of the database changes, the processing module sends the freight rate request to the calculating module; the calculation module calculates based on the freight rate request sent by the processing module and returns the calculation result to the processing module, wherein the freight rate request corresponds to the calculation result one by one; the processing module is used for preprocessing the calculation result to obtain the updating time of the target freight rate data; and judging whether the target freight rate data changes or not, when the target freight rate data changes, sending the target freight rate data to a sending module, and sending the target freight rate data to the user by the sending module. According to the processing method of the freight rate data, the processing module is used for obtaining the target freight rate data concerned by the user, and when the target freight rate data changes, the target freight rate data is sent to the user in time, so that the efficiency of obtaining the target freight rate data by the user is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present application will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flowchart of a method for processing freight rate data according to an embodiment of the present application;
FIG. 2 is a schematic diagram of one embodiment of the present application for generating a request for a rate of operation;
fig. 3 is a signaling interaction diagram for processing freight rate data according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a system for processing freight rate data in an embodiment of the present application;
fig. 5 is a schematic diagram of a device for processing freight rate data in an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are for illustration purposes only and are not intended to limit the scope of the present application.
The term "include" and its variants, as used herein, are intended to be inclusive in an open-ended manner, 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".
It should be noted that the terms "first", "second", and the like in the present application are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
In the present application, the freight rate data represents data related to calculating a transportation price, including but not limited to data related to airports, airlines, sales strategies, calculation rules, and the like. Most of the data are stored according to certain rules and in a specific file format, so that the data can be called conveniently when the freight rate is calculated.
Due to the sharp increase of the freight rate data, when an airline company or an agent wants to know whether the concerned freight rate data changes, the concerned freight rate data needs to be manually inquired in the massive freight rate data. Because the time of the change of the database cannot be known, whether the freight rate data changes or not cannot be known quickly, and only manual query operation can be executed regularly, the efficiency of the process of obtaining the freight rate data is low.
Based on this, the embodiment of the application provides a method for processing freight rate data, so as to improve the efficiency of obtaining the freight rate data by a user. During specific implementation, the processing module generates a freight rate request according to field information provided by a user, wherein the freight rate request is used for selecting target freight rate data required by the user; acquiring version information of a database in a storage module every a first preset time period, wherein the database is used for acquiring and storing freight rate data every a second preset time period, and the version information of the database is used for indicating the time for storing the freight rate data in the database; when the version information of the database changes, the processing module sends the freight rate request to the calculating module; the calculation module calculates based on the freight rate request sent by the processing module and returns the calculation result to the processing module, wherein the freight rate request corresponds to the calculation result one by one; the processing module is used for preprocessing the calculation result to obtain the updating time of the target freight rate data; and judging whether the target freight rate data changes or not, when the target freight rate data changes, sending the target freight rate data to a sending module, and sending the target freight rate data to the user by the sending module. According to the processing method of the freight rate data, the processing module is used for obtaining the target freight rate data concerned by the user, and when the target freight rate data changes, the target freight rate data is sent to the user in time, so that the efficiency of obtaining the target freight rate data by the user is improved.
It should be noted that the "user" in the embodiment of the present application may refer to an airline company or an agent who wants to query the freight rate data, and this is not limited thereto.
The following describes a method for processing freight rate data provided in an embodiment of the present application with reference to the drawings.
Referring to fig. 1, fig. 1 is a flowchart of a method for processing freight rate data in an embodiment of the present application.
The method specifically comprises the following steps:
s101: and the processing module generates a freight rate request according to the field information provided by the user, wherein the freight rate request is used for selecting target freight rate data required by the user.
For different users, the target freight rate data concerned by the users in the massive freight rate data may be different. The processing module can generate a corresponding freight rate request according to the field information provided by the user, and target freight rate data required by the user is obtained through the freight rate request.
The field information provided by the user may include: airline, agent, airline, and airport information. In a possible implementation manner, when the processing module generates the freight rate request, the field information provided by the user may be classified, and then the field information of each category is cross-combined, where each combined field information corresponds to one freight rate request.
As shown in fig. 2, fig. 2 is a schematic diagram of a method for generating a rate request in the embodiment of the present application. In this embodiment, the field information provided by the user includes: the system comprises an airport, an airline and an airline company, wherein the airport concerned by a user comprises an airport 1 and an airport 2, the airline concerned comprises an airline 1 and an airline 2, the airline concerned comprises an airline department 1 and an airline department 2, all field information concerned by the user is subjected to cross combination according to different categories, each combination corresponds to a freight rate request, and a processing module can acquire target freight rate data required by the user through the generated freight rate request.
In a preferred implementation, the processing module may further store the field information provided by the user in a table, and generate the request for the rate of freight using the table.
In specific implementation, the processing module may generate two tables, that is, a first table and a second table, where the first table is used to store information of an agent, and mainly includes the agent, an OFFICE number, and an International Air Transport Association (IATA) number, where the IATA number and the OFFICE number are unique identifiers of the agent. The second table is used to store field information of interest to the user, i.e. mainly including field information of agents, origin and destination (airlines), and airlines. Because the rights owned by different agents may be different, when the processing module generates the freight rate request, the processing module may use information in a column of the agents of the two forms as an associated item, and then cross-arrange and combine field information in the forms, thereby generating the corresponding freight rate request.
Compared with the existing method for inquiring the freight rate data, the method for generating the freight rate request provided by the embodiment has the advantages that when the processing module generates the freight rate request, according to the actual requirements of the user, the required parameters are less, the range of inquiring the freight rate data is wider, and therefore more and more comprehensive freight rate data can be acquired.
S102: and the processing module acquires the version information of the database in the storage module at intervals of a first preset time period, wherein the database is used for acquiring and storing the freight rate data at intervals of a second preset time period, and the version information of the database is used for indicating the time for storing the freight rate data in the database.
The database of the storage module stores massive freight rate data, and the processing module can select target freight rate data required by a user from the database.
Specifically, the database may obtain and store the freight rate data again at intervals of a second preset time period, and the version information of the database is used to indicate the time for storing the freight rate data in the database.
In one possible implementation, the storage module is deployed in a freight rate cluster, and the database may obtain freight rate data from the freight rate cluster. In this embodiment, the freight rate cluster represents a set of devices with multiple functions, which can implement receiving, checking, storing, calculating, and the like of freight rate data, and the freight rate cluster can also provide some interfaces for inquiring status information externally.
Based on this, when the processing module acquires the version information of the database of the storage module, at intervals of a first preset time period, a request for inquiring the state of the database is sent to the storage module through the state interface of the freight cluster, and the storage module returns the state information of the database to the processing module. The processing module analyzes the state information and acquires a first key field for representing the version information of the database, so that the version information of the database is obtained.
S103: when the version information of the database changes, the processing module sends the freight rate request to the calculation module and receives the calculation result returned by the calculation module, wherein the freight rate request corresponds to the calculation result one by one.
The processing module acquires the version information of the database every a first preset time interval, compares the version information with the version information of the database stored last time, and sends the generated freight rate request to the calculating module when the change of the version information of the database is monitored, namely the change of the time for acquiring the freight rate data by the database.
In a possible implementation manner, when the number of the freight rate requests is multiple, the processing module may divide all the freight rate requests into a plurality of subtasks according to a certain number, where each subtask includes one or more freight rate requests. It should be noted that each subtask may include one rate request or a plurality of rate requests, the number of rate requests included in each subtask may be the same or different, and the number may be set according to specific requirements in practical applications, which is not limited in the embodiment of the present application.
The processing module sends the divided subtasks to the computing module in a multithreading mode, wherein multithreading refers to a technology of realizing concurrent execution of multiple threads on software or hardware, and a computer with multithreading capability can execute more than one thread at the same time due to hardware support, so that the overall processing efficiency can be improved. The number of threads can be managed in the form of a configuration file, and an appropriate number of threads is set in conjunction with the processing performance of the processing module.
After the processing module sends the freight rate request to the calculation module, the calculation module can distribute the freight rate request to a background calculation engine, the calculation engine performs calculation processing by combining with preset freight rate rules to obtain a calculation result, and the calculation result is returned to the processing module. When the number of the freight rate requests is multiple, the calculation module returns the calculation results of the corresponding number, namely the freight rate requests correspond to the calculation results one by one.
S104: and the processing module is used for preprocessing the calculation result and acquiring the updating time of the target freight rate data.
And after receiving the calculation result, the processing module carries out preprocessing on the calculation result. In a possible implementation manner, the calculation result is sent in the form of a message, after the processing module receives the message containing the calculation result, the message is decompressed and formatted, then data information in the message is analyzed, and a second key field used for representing the update time of the target freight rate data is obtained.
The data parsing format provided by the embodiment of the application is JSON (javascript Object notification), which is a lightweight data exchange format and stores and represents data by adopting a text format completely independent of a programming language. The network transmission method is easy to read and write by people and easy to analyze and generate by machines, and can effectively improve the network transmission efficiency.
S105: the processing module judges whether the target freight rate data changes or not, and when the target freight rate data changes, the target freight rate data is sent to the sending module so that the sending module can send the target freight rate data to the user.
In a possible implementation manner, after the processing module acquires the first key field and the second key field, preset version information of the database, that is, version information stored in the database last time, is acquired based on the first key field. And acquiring the current update time of the target freight rate data, namely the latest update time of the target freight rate data based on the second key field. And comparing the time indicated by the preset version information of the database with the current updating time of the target freight rate data, and when the time indicated by the preset version information is earlier than the current updating time of the target freight rate data, indicating that the target freight rate data changes.
It should be noted that, in this embodiment, the reason why the current update time of the target freight rate data is compared with the preset version information of the database is that if some airlines update the target freight rate data in the second preset time period when the freight rate data is obtained last time and the freight rate data is obtained this time by the database, the processing module sends the freight rate request only when the version information of the database changes, that is, the version information of the database obtained by the processing module is the current version information, and the time indicated by the current version information is later than the update time of the target freight rate data. Even if the target freight rate data is not updated within the second preset time period, the time indicated by the current version information of the database is later than the update time of the target freight rate data, so that the time cannot be used for judging whether the target freight rate data is updated.
When the target freight rate data changes, the processing module sends the target freight rate data to the sending module, so that the sending module sends the target freight rate data to the user.
In a possible implementation manner, when the target freight rate data changes, the processing module classifies and stores the target freight rate data according to a preset rule based on an airline company or an agent to which the target freight rate data belongs, and sends the classified and stored target freight rate data to the sending module.
When the processing module receives and processes the freight rate requests of a plurality of users, the same part of freight rate requests among different users may exist, based on the classified and stored target freight rate data, the processing module can send the same part of freight rate data to the sending module, and the sending module sends the classified target freight rate data to the corresponding users, so that the target data required among different users is prevented from being leaked, and the confidentiality of the freight rate data is improved.
In addition, in the embodiment of the application, the processing module can also store the target freight rate data into different message formats for different users, and make storage templates for different users, so that different users can conveniently process the acquired target freight rate data.
For some users, the target freight rate data that needs to be paid attention to may not change in a short period of time, that is, the freight rate request of the user may not change, so in order to improve the processing efficiency of the processing module, the processing module may update only the date field corresponding to the freight rate request at zero point every day, and when the user provides new field information, the processing module regenerates the corresponding freight rate request.
According to the processing method of the freight rate data, the target freight rate data required by the user is obtained through the processing module, and when the target freight rate data changes, the target freight rate data is sent to the user in time, so that the efficiency of obtaining the target freight rate data by the user is improved.
The interaction between the modules in processing the freight rate data will be described with reference to the drawings.
Referring to fig. 3, fig. 3 is a signaling interaction diagram for processing freight rate data according to an embodiment of the present application.
In the signaling interaction process, the method mainly comprises the following steps:
s301: the processing module generates a freight rate request according to the field information provided by the user;
s302: the processing module sends a request for inquiring the state of the database to the storage module every a first preset time period;
s303: the storage module returns the state information of the database to the processing module;
s304: when the version information of the database changes, the processing module sends the freight rate request to the calculating module;
s305: the calculation module calculates based on the freight rate request sent by the processing module and returns the calculation result to the processing module;
s306: the processing module is used for preprocessing the calculation result to obtain the updating time of the target freight rate data;
s307: the processing module judges whether the target freight rate data changes;
s308: when the target freight rate data changes, the processing module sends the target freight rate data to the sending module;
s309: and the sending module sends the target freight rate data to the user.
The flowchart 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 application. 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.
Although the 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. Under 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 in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of protection of the present application is not limited in this respect.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Based on the method embodiment, the embodiment of the application also provides a system for processing the freight rate data. Referring to fig. 4, fig. 4 is a schematic diagram of a system for processing freight rate data according to an embodiment of the present application.
The system 400 includes: a processing module 401, a storage module 402, a calculation module 403 and a sending module 404;
the processing module 401 is configured to generate a freight rate request according to field information provided by a user, where the freight rate request is used to select target freight rate data required by the user;
the processing module 401 is further configured to obtain version information of the database in the storage module 402 every first preset time period;
the storage module 402 is configured to obtain the freight rate data every second preset time period and store the freight rate data in the database, and the version information is used to indicate the time for storing the freight rate data in the database;
the processing module 401 is further configured to send a freight rate request to the calculating module 403 when the version information of the database changes;
the calculation module 403 is configured to perform calculation based on the freight rate request sent by the processing module 401, and return a calculation result to the processing module 401, where the freight rate request corresponds to the calculation result one by one;
the processing module 401 is further configured to pre-process the calculation result, and obtain the update time of the target freight rate data;
the processing module 401 is further configured to determine whether the target freight rate data changes, and send the target freight rate data to the sending module 404 when the target freight rate data changes;
a sending module 404, configured to send the target freight rate data to the user.
When generating the freight rate request, the processing module 401 is specifically configured to classify the field information according to the field information provided by the user, and perform cross combination on the field information of each category to generate a corresponding freight rate request.
The processing module 401 is specifically configured to send a request for querying a database state to the storage module every first preset time period, and receive state information of the database returned by the storage module; and analyzing the state information to acquire a first key field for representing the version information of the database.
When the version information of the database changes, the processing module 401 sends a rate request to the calculation module 403. When the number of the freight rate requests is multiple, the processing module 401 is specifically configured to divide the freight rate requests into multiple subtasks, where any subtask includes one or more freight rate requests; the multiple subtasks are then sent to the computation module 403 in the form of multiple threads.
The processing module 401, when sending the rate request, may send the rate request to the calculation module 403 using a black screen tool. The embodiment of the application provides a blanking tool, which is used for calling an interface of a computing module 403 to realize communication between a processing module 401 and the computing module 403.
In the prior art, a user can query original price data by using an ETERM client, the ETERM is simulation terminal software which is developed for an agent or an airline company and is based on a personal computer, and the user can complete the function of a dumb terminal through a webpage of the ETERM. But the communication based on the ETERM terminal involves the interaction of the third party system and the airline company and is easily interfered.
The blank screen tool, the method and the system avoid interference factors such as network delay caused by the fact that a user uses an ETERM client, and save time and labor for processing freight rate data.
The processing module 401 is specifically configured to perform preprocessing on the calculation result, and acquire a second key field used for indicating the update time of the target freight rate data.
The processing module 401 is specifically configured to obtain preset version information of the database based on the first key field; acquiring the current updating time of the target freight rate data based on the second key field; comparing the time indicated by the preset version information of the database with the current updating time of the target freight rate data; when the time indicated by the preset version information is earlier than the current update time of the target freight rate data, it indicates that the target freight rate data is changed.
The processing module 401 is specifically configured to, when the target freight rate data changes, perform classified storage on the target freight rate data according to a preset rule, and send the classified stored target freight rate data to the sending module 404.
The processing module 401 is further configured to update the date field corresponding to the freight rate request at zero point every day.
In one possible implementation, the processing module 401 may be deployed in a server built by using a framework of a host and a standby.
After the server is built by adopting the framework of the main machine and the standby machine, the main machine is mainly responsible for the following work:
(1) generating a freight rate request according to field information provided by a user;
(2) acquiring version information of a database in a storage module every a first preset time period;
(3) when the version information of the database changes, sending a freight rate request to a calculation module;
(4) receiving a calculation result returned by the calculation module, preprocessing the calculation result, and acquiring the update time of the target freight rate data;
(5) judging whether the target freight rate data changes or not, and sending the target freight rate data to a sending module when the target freight rate data changes;
(6) and sending the temporary information in the freight rate data processing process to the standby machine and monitoring the state of the standby machine.
All the deployment servers are used as standby machines when being started for the first time, and when the servers do not find the role of the 'host', the server which is started first automatically changes from the standby machine to the host. The standby machine is mainly responsible for synchronizing the temporary information sent by the host machine and monitoring the state of the host machine, and is the same as the data information stored by the host machine except that the request and the analysis result are not sent.
When the standby machine monitors that the host machine crashes, the standby machine can be automatically changed into the host machine, whether unfinished processing tasks exist is judged, and background daemon programs exist in both the host machine and the standby machine, so that the programs can be recovered to be normal in the first time. For example, when the host goes down in the process of generating the target freight rate data, the standby machine may repeatedly generate the target freight rate data.
The beneficial effects of the processing system of the freight rate data provided by the embodiment of the present application are referred to the above method embodiment, and are not described herein again.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The modules described in the embodiments of the present application may be implemented by software or hardware. Wherein the name of a module in some cases does not constitute a limitation on the module itself.
The functions described above in the embodiments of the present application may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
Based on the above method embodiment and system embodiment, an embodiment of the present application further provides a device for processing freight rate data, referring to fig. 5, where fig. 5 is a schematic diagram of a device for processing freight rate data in the embodiment of the present application.
The apparatus 500 comprises: a memory 501 and a processor 502;
the memory 501 is used for storing relevant program codes;
the processor 502 is configured to call the program code, and execute the processing method of the freight rate data provided by the above method embodiment.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is used to execute the method for processing the freight rate data according to any one of the above-mentioned embodiments of the first aspect.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having 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. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart.
Example 1 provides, in accordance with one or more embodiments of the present application, a method of processing tariff data, the method comprising:
the processing module generates a freight rate request according to field information provided by a user, wherein the freight rate request is used for selecting target freight rate data required by the user;
the processing module acquires version information of a database in a storage module at intervals of a first preset time period, wherein the database is used for acquiring and storing freight rate data at intervals of a second preset time period, and the version information is used for indicating the time for storing the freight rate data in the database;
when the version information of the database changes, the processing module sends the freight rate request to a calculation module and receives a calculation result returned by the calculation module, wherein the freight rate request corresponds to the calculation result one by one;
the processing module is used for preprocessing the calculation result to acquire the updating time of the target freight rate data;
the processing module judges whether the target freight rate data changes or not, and when the target freight rate data changes, the processing module sends the target freight rate data to a sending module so that the sending module can send the target freight rate data to the user.
Example 2 provides, in accordance with one or more embodiments of the present application, a method of processing tariff data, the method comprising:
and the processing module classifies the field information according to the field information provided by the user, and cross-combines the field information of each category to generate a corresponding freight rate request.
Example 3 provides, in accordance with one or more embodiments of the present application, a method of processing tariff data, the method comprising:
the processing module sends a request for inquiring the state of the database to the storage module every a first preset time period, and receives state information of the database returned by the storage module;
and the processing module analyzes the state information and acquires a first key field for representing the version information of the database.
Example 4 provides, in accordance with one or more embodiments of the present application, a method of processing tariff data, the method comprising:
and the processing module is used for preprocessing the calculation result and acquiring a second key field for representing the update time of the target freight rate data.
Example 5 provides, in accordance with one or more embodiments of the present application, a method of processing tariff data, the method comprising:
the processing module acquires preset version information of the database based on the first key field; acquiring the current updating time of the target freight rate data based on the second key field;
comparing the time indicated by the preset version information of the database with the current updating time of the target freight rate data;
when the time indicated by the preset version information is earlier than the current updating time of the target freight rate data, the target freight rate data is changed.
Example 6 provides, in accordance with one or more embodiments of the present application, a method of processing tariff data, the method comprising:
when the number of the freight rate requests is multiple, the processing module divides the freight rate requests into a plurality of subtasks, wherein any subtask comprises one or more freight rate requests;
and sending the plurality of subtasks to the computing module in a multi-thread mode.
Example 7 provides, in accordance with one or more embodiments of the present application, a method of processing tariff data, the method comprising:
when the target freight rate data changes, the processing module stores the target freight rate data in a classified manner according to a preset rule, and sends the target freight rate data stored in the classified manner to the sending module.
Example 8 provides a method of processing tariff data, the method further comprising:
and the processing module updates the date field corresponding to the freight rate request at zero point every day.
Example 9 provides, in accordance with one or more embodiments of the present application, a system for processing rate data, the system comprising: the device comprises a processing module, a storage module, a calculation module and a sending module;
the processing module is used for generating a freight rate request according to field information provided by a user, wherein the freight rate request is used for selecting target freight rate data required by the user;
the processing module is further configured to acquire version information of a database in the storage module every first preset time period, where the version information is used to indicate the time for storing the freight rate data in the database;
the storage module is used for acquiring freight rate data every second preset time period and storing the freight rate data in the database;
the processing module is further used for sending the freight rate request to a calculating module when the version information of the database changes;
the calculation module is used for calculating based on the freight rate request sent by the processing module and returning a calculation result to the processing module, wherein the freight rate request corresponds to the calculation result one by one;
the processing module is further used for preprocessing the calculation result to obtain the update time of the target freight rate data;
the processing module is further configured to determine whether the target freight rate data changes, and send the target freight rate data to the sending module when the target freight rate data changes;
and the sending module is used for sending the target freight rate data to the user.
Example 10 provides, in accordance with one or more embodiments of the present application, a system for processing rate data, the system comprising:
the processing module is specifically configured to send the freight rate request to the computing module by using a black screen tool when the version information of the database changes, where the black screen tool is configured to call an interface of the computing module to implement communication between the processing module and the computing module.
Example 11 provides, in accordance with one or more embodiments of the present application, a system for processing rate data, the system comprising:
the processing module is deployed in a server which is built by adopting a framework of a host and a standby machine.
Example 12 provides, in accordance with one or more embodiments of the present application, an apparatus for processing rate data, the apparatus comprising: a memory and a processor;
the memory is used for storing relevant program codes;
the processor is configured to call the program code to perform the method for processing the freight rate data according to any one of examples 1 to 8.
Example 13 provides, according to one or more embodiments of the present application, a computer-readable storage medium for storing a computer program for executing the processing method of the freight rate data of any one of examples 1 to 8.
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 disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the application. 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 above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
The embodiments in the present specification are described in a progressive manner, and similar parts between the embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the device embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and the relevant portions can be referred to the partial description of the method embodiment. The above-described embodiments of the apparatus are merely illustrative, where units or modules described as separate components may or may not be physically separate, and components displayed as the units or modules may or may not be physical modules, that is, may be located in one place, or may also be distributed on multiple network units, and some or all of the units or modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and is not intended to limit the present application in any way. Equivalent changes or modifications of the above embodiments are within the scope of the present application.

Claims (13)

1. A method of processing freight rate data, the method comprising:
the processing module generates a freight rate request according to field information provided by a user, wherein the freight rate request is used for selecting target freight rate data required by the user;
the processing module acquires version information of a database in a storage module at intervals of a first preset time period, wherein the database is used for acquiring and storing freight rate data at intervals of a second preset time period, and the version information is used for indicating the time for storing the freight rate data in the database;
when the version information of the database changes, the processing module sends the freight rate request to a calculation module and receives a calculation result returned by the calculation module, wherein the freight rate request corresponds to the calculation result one by one;
the processing module is used for preprocessing the calculation result to acquire the updating time of the target freight rate data;
the processing module judges whether the target freight rate data changes or not, and when the target freight rate data changes, the processing module sends the target freight rate data to a sending module so that the sending module can send the target freight rate data to the user.
2. The method of claim 1, wherein the processing module generating the rate request based on the field information provided by the user comprises:
and the processing module classifies the field information according to the field information provided by the user, and cross-combines the field information of each category to generate a corresponding freight rate request.
3. The method of claim 1, wherein the obtaining, by the processing module, version information of the database in the storage module every interval of a first preset time period comprises:
the processing module sends a request for inquiring the state of the database to the storage module every a first preset time period, and receives state information of the database returned by the storage module;
and the processing module analyzes the state information and acquires a first key field for representing the version information of the database.
4. The method of claim 3, wherein the processing module preprocesses the calculation result, and obtaining the update time of the target freight rate data comprises:
and the processing module is used for preprocessing the calculation result and acquiring a second key field for representing the update time of the target freight rate data.
5. The method of claim 4, wherein the processing module determining whether the target tariff data has changed comprises:
the processing module acquires preset version information of the database based on the first key field; acquiring the current updating time of the target freight rate data based on the second key field;
comparing the time indicated by the preset version information of the database with the current updating time of the target freight rate data;
when the time indicated by the preset version information is earlier than the current updating time of the target freight rate data, the target freight rate data is changed.
6. The method of claim 1, wherein the processing module sending the rate request to a calculation module comprises:
when the number of the freight rate requests is multiple, the processing module divides the freight rate requests into a plurality of subtasks, wherein any subtask comprises one or more freight rate requests;
and sending the plurality of subtasks to the computing module in a multi-thread mode.
7. The method of any of claims 1 to 6, wherein sending the target rate data to a sending module when the target rate data changes comprises:
when the target freight rate data changes, the processing module stores the target freight rate data in a classified manner according to a preset rule, and sends the target freight rate data stored in the classified manner to the sending module.
8. The method of claim 1, further comprising:
and the processing module updates the date field corresponding to the freight rate request at zero point every day.
9. A system for processing freight rate data, the system comprising: the device comprises a processing module, a storage module, a calculation module and a sending module;
the processing module is used for generating a freight rate request according to field information provided by a user, wherein the freight rate request is used for selecting target freight rate data required by the user;
the processing module is further configured to acquire version information of a database in the storage module every first preset time period, where the version information is used to indicate the time for storing the freight rate data in the database;
the storage module is used for acquiring freight rate data every second preset time period and storing the freight rate data in the database;
the processing module is further used for sending the freight rate request to a calculating module when the version information of the database changes;
the calculation module is used for calculating based on the freight rate request sent by the processing module and returning a calculation result to the processing module, wherein the freight rate request corresponds to the calculation result one by one;
the processing module is further used for preprocessing the calculation result to obtain the update time of the target freight rate data;
the processing module is further configured to determine whether the target freight rate data changes, and send the target freight rate data to the sending module when the target freight rate data changes;
and the sending module is used for sending the target freight rate data to the user.
10. The system according to claim 9, wherein the processing module is specifically configured to send the request for the freight rate to the computing module by using a black screen tool when version information of the database changes, wherein the black screen tool is configured to call an interface of the computing module to implement communication between the processing module and the computing module.
11. The system according to any one of claims 8 to 10, wherein the processing module is deployed in a server built using a host and standby architecture.
12. A device for processing rate data, the device comprising: a memory and a processor;
the memory is used for storing relevant program codes;
the processor is used for calling the program code and executing the freight rate data processing method of any one of claims 1 to 8.
13. A computer-readable storage medium for storing a computer program for executing the method of processing tariff data of any of claims 1 to 8.
CN202210023310.XA 2022-01-10 2022-01-10 Freight rate data processing method, system, equipment and storage medium Pending CN114372826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210023310.XA CN114372826A (en) 2022-01-10 2022-01-10 Freight rate data processing method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210023310.XA CN114372826A (en) 2022-01-10 2022-01-10 Freight rate data processing method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114372826A true CN114372826A (en) 2022-04-19

Family

ID=81143553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210023310.XA Pending CN114372826A (en) 2022-01-10 2022-01-10 Freight rate data processing method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114372826A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114897478A (en) * 2022-06-06 2022-08-12 壹沓科技(上海)有限公司 Data processing method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114897478A (en) * 2022-06-06 2022-08-12 壹沓科技(上海)有限公司 Data processing method, device, equipment and storage medium
CN114897478B (en) * 2022-06-06 2023-12-22 壹沓科技(上海)有限公司 Data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111950988B (en) Distributed workflow scheduling method and device, storage medium and electronic equipment
CN110532322B (en) Operation and maintenance interaction method, system, computer readable storage medium and equipment
US20130013549A1 (en) Hardware-assisted approach for local triangle counting in graphs
CN110321252B (en) Skill service resource scheduling method and device
CN114372826A (en) Freight rate data processing method, system, equipment and storage medium
CN113704178A (en) Big data management method, system, electronic device and storage medium
CN111274032B (en) Task processing system and method, and storage medium
CN113378346A (en) Method and device for model simulation
CN113485890B (en) Service monitoring method, device, equipment and storage medium for flight inquiry system
CN107679096B (en) Method and device for sharing indexes among data marts
CN111046010A (en) Log storage method, device, system, electronic equipment and computer readable medium
CN112099937A (en) Resource management method and device
CN114625763A (en) Information analysis method and device for database, electronic equipment and readable medium
CN113282455A (en) Monitoring processing method and device
CN115220131A (en) Meteorological data quality inspection method and system
CN110941683B (en) Method, device, medium and electronic equipment for acquiring object attribute information in space
CN114691684A (en) Data display method, device and system
CN112749204B (en) Method and device for reading data
CN114035861A (en) Cluster configuration method and device, electronic equipment and computer readable medium
CN113535768A (en) Production monitoring method and device
CN112559001A (en) Method and device for updating application
CN111597156A (en) Civil aviation data processing method and device, electronic equipment and storage medium
CN112784195A (en) Page data publishing method and system
CN113449938B (en) System and method for vehicle monitoring
CN117312761B (en) Method and device for calculating data fragment processing time

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