CN115129489A - Structural display method, system, storage medium and electronic equipment for retreating and changing rules - Google Patents

Structural display method, system, storage medium and electronic equipment for retreating and changing rules Download PDF

Info

Publication number
CN115129489A
CN115129489A CN202210726403.9A CN202210726403A CN115129489A CN 115129489 A CN115129489 A CN 115129489A CN 202210726403 A CN202210726403 A CN 202210726403A CN 115129489 A CN115129489 A CN 115129489A
Authority
CN
China
Prior art keywords
data table
rule
change
processing
freight rate
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
CN202210726403.9A
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 CN202210726403.9A priority Critical patent/CN115129489A/en
Publication of CN115129489A publication Critical patent/CN115129489A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
    • 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/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/04Inference or reasoning models
    • 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/01Customer relationship services
    • G06Q30/015Providing customer assistance, e.g. assisting a customer within a business location or via helpdesk
    • G06Q30/016After-sales
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • 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)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a structural display method, a structural display system, a storage medium and electronic equipment for a change-canceling rule, and relates to the technical field of data processing. The change-quitting rule is a change-quitting rule of freight rate of airplane shipping, and the method comprises the following steps: receiving a request message, wherein the request message comprises freight rate information which is used for matching a corresponding change quitting rule; matching a corresponding data table set from a database according to the freight rate information in the request message, wherein a quit rule is stored in the data table set, and the data table set comprises at least two data tables; when all the data tables in the data table set are subjected to structural processing, assembling to form a response message so as to perform structural display on the data table set stored with the modification rule; and when the data tables which do not finish the structured processing exist in the data table set, assembling to form an error report message, wherein the error report message is used for indicating the structured content of the temporary non-reversion rule. The scheme can structurally display the retreating and changing rules to improve the shipping efficiency.

Description

Structural display method and system of change-back rule, storage medium and electronic equipment
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, a system, a storage medium, and an electronic device for displaying a structural change-back rule.
Background
The airplane shipping is an important part in transportation, and occupies important transportation market share by virtue of the characteristics of rapidness and high efficiency. One of the most important core contents of the shipping freight rate has important significance for maintaining the stability of shipping.
The rules of changing back freight rate are important components of the ticket service. The diversity of the change-back rule is one of the important factors of the flexibility and changeability of the international civil aviation ticket price. In the current international freight rate field, in order to support the automatic calculation of freight rates, most of the freight rate calculation systems used by airlines use a uniform data format to issue, receive, and process freight rate data. The rate change rule also follows this format. In this format, the freight rate back-off rules are again divided into two types, namely Category 16 and Category 31/33. Wherein Category 31/33 is highly formatted, computer-processed data that is not normally intended for user-oriented presentation. The Category 16 is a small amount of simple formatted change-back rule data, and is added with a change-back rule text described in the english natural language.
These reverse regular text composed of natural english language is difficult to translate accurately into the local language, for example, into chinese. Because these languages are highly simplified or highly-termed fragments of civil aviation tickets rather than natural languages, direct machine translation is easily impossible; and because the natural language does not have a certain standard, the words and phrases of each airline hostess are different, and the sentence break and the segmentation have no general rule, so that the current change-back rule of the freight rate is difficult to be displayed to passengers or ticket sellers, and further the shipping efficiency is possibly reduced. Therefore, a scheme for performing structured display on the change-back rule is needed at present to improve shipping efficiency.
Disclosure of Invention
In order to solve the above problem, the present application provides a structural display method, a structural display system, a storage medium, and an electronic device for a change-quitting rule, which can perform structural display on the change-quitting rule so as to improve shipping efficiency.
In a first aspect, the present application provides a structured display method for a change-quitting rule, where the change-quitting rule is a change-quitting rule for freight rate of aircraft shipping, and the method includes: receiving a request message, wherein the request message comprises freight rate information which is used for matching a corresponding change quitting rule; matching a corresponding data table set from a database according to the freight rate information in the request message, wherein the data table set stores the change-back rule and comprises at least two data tables; when all the data tables in the data table set are subjected to structural processing, assembling to form a response message so as to perform structural display on the data table set stored with the correction rule; and when the data sheet which does not finish the structured processing exists in the data sheet set, assembling to form an error report message, wherein the error report message is used for indicating whether the structured content of the change quitting rule is available temporarily.
According to the scheme provided by the application, the user can automatically and accurately search and match the corresponding change-back rule by providing the query content related to the freight rate information through the request message. The background is not text information directly stored because the language reusability in the change-back rule is high. The revocation rules are stored partly in the R3C016 table in fixed format code and partly in the R3T996 table in free text. In addition, there are some auxiliary data such as an R3T994 table storing travel/ticket out/reservation date restrictions, an R3C014 table storing travel date restrictions, an R3C015 table storing ticket out and reservation date restrictions, an R3C019 table storing discount information, and the like. Therefore, according to the scheme of the application, the corresponding data table set is matched from the database according to the freight rate information in the request message. The modification rule text is generally assembled by a plurality of R3C016 tables. Since the database only stores various tables such as R3C016, the text of the revocation rule is dynamically generated when a user requests. Therefore, it is not suitable to directly perform the structuring process on the text with the modification rule, and the scheme performs the structuring process with the R3C016 as the starting point. Except for the R3T996 quoted by the R3C016, the rest is structural information, and the structural information is only required to be stored for subsequent assembly. And the R3T996 needs to determine whether the structuring process is completed, and for each data table included in the data table set, such as the R3C016 and R3T996 tables, when each data table has completed the structuring process, the data tables that have completed the structuring are assembled to form a response message, and the response message is returned to the user, so as to perform the structuring display on the data table set in which the reversion rule is stored. And when the data sheet which does not finish the structured processing exists in the data sheet set, assembling to form an error report message, wherein the error report message is used for indicating the structured content of the temporary non-retroflex rule. In conclusion, the scheme can structurally display the quit-change rule, and is convenient for users to develop on the basis, so that the quit-change rule is convenient to translate, the content is convenient to recombine, and the shipping efficiency is convenient to improve.
In a second aspect, the present application further provides a system for displaying a revocation rule in a structured manner, where the system includes: the system comprises an entrance service module, a quit-change rule inquiry module and a processing module; wherein, the first and the second end of the pipe are connected with each other,
the portal service module is used for receiving a request message, wherein the request message comprises freight rate information, and the freight rate information is used for matching a corresponding change-back rule;
the change-quitting rule query module is used for matching a corresponding data table set from a database according to the freight rate information in the request message, wherein the change-quitting rule is stored in the data table set, and the data table set comprises at least two data tables;
the processing module is used for splicing and forming a response message when each data table in the data table set completes structural processing so as to structurally display the data table set stored with the change-back rule; and when the data sheet which does not finish the structured processing exists in the data sheet set, assembling to form an error report message, wherein the error report message is used for indicating whether the structured content of the change quitting rule is available temporarily.
By utilizing the system, the retrogression rules can be structurally displayed, so that a user can conveniently develop the retrogression rules on the basis, translation and content recombination are facilitated, and shipping efficiency is further facilitated to be improved.
In a third aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a structured presentation method for a fallback rule.
In a fourth aspect, the present application further provides an electronic device, where the electronic device is configured to run a program, and the electronic device executes a structural display method of a quit-change rule when the program runs.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to 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 components are not necessarily drawn to scale.
Fig. 1 is a flowchart of a structured display method for a modification rule according to an embodiment of the present application;
fig. 2 is a flowchart of another method for displaying a structure of a modification rule according to an embodiment of the present application;
FIG. 3 is an architecture diagram of a structural display system for rules of modification provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a structural display system of a modification rule provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a structured display system of another modification rule provided in an embodiment of the present application;
fig. 6 is a schematic view of an electronic device according to an embodiment of the present application.
Detailed Description
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to 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.
In order to make the technical solution more clearly understood by those skilled in the art, an application scenario of the technical solution of the present application is first described below.
The freight price changing rule is an important component of civil aviation passenger ticket service. The diversity of the change-back rule is one of the important factors of the flexibility and changeability of the international civil aviation ticket price. For example, the same itinerary, flight, one renewables ticket and one non-renewables ticket, are significantly different in price. And the freight rate change-back rule is not limited to simple scenes of change-back and change-back. Plus a series of conditions such as reservation/ticketing/travel date, pre/post takeoff, bay level, whether there is a discount on children, etc., the price reversal rules become very complex.
The exhibition of the freight rate returning and changing rules runs through the long period of ticket buying, traveling and returning and changing of the ticket of the passenger. At multiple time nodes, passengers, ticket sales personnel, and the freight rate automation system all have a need to view freight rate revocation rules.
In the current international freight rate field, in order to support the automatic calculation of freight rates, most of the freight rate calculation systems used by airlines use a uniform data format to issue, receive, and process freight rate data. The rate reversal rules also follow this format. In this format, the freight rate back-off rules are again divided into two types, namely Category 16 and Category 31/33. Of these, Category 31/33 is highly formatted, computer-processed data that is not typically used for user-oriented presentation. The Category 16 is a small amount of simple formatted change-back rule data, and is added with a change-back rule text described in the english natural language.
These reverse regular texts in english-natural language are difficult to translate accurately into local language, such as chinese. Because these languages are rather highly simplified or highly tokenized segments of civil airline tickets than they are natural languages. Direct machine translation is easily mishaped. In addition, because the system is a natural language and has no certain specification, the terms of the various airline drivers are used differently, and there is no general rule for sentence break and segmentation, so that it is difficult for the ticket selling system to split and format the terms and then recombine the terms for display.
In order to make users better utilize the freight rate returning rule data, a scheme for structurally displaying Category 16 content is needed at present and provided for the users through an interface, so that the users can conveniently develop the content on the basis, translation of the content is facilitated, and content reorganization is facilitated.
In order to solve the above problems, embodiments of the present application provide a structural display method, a system, a storage medium, and an electronic device for a change-quitting rule, which can perform structural display on the change-quitting rule, so that a user can conveniently develop the change-quitting rule on the basis, and the change-quitting rule is convenient for translation and content recombination, thereby facilitating improvement of shipping efficiency.
The term "include" and variations thereof as used herein are 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". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure 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.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The embodiments of the present application provide the first, and are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, the figure is a flowchart of a method for displaying a structure of a modification rule according to an embodiment of the present application.
The method is used for carrying out structured display on the change-back rule of the freight rate of the airplane shipping, namely the change-back rule is displayed by adopting a fixed logic expression, and comprises the following steps:
s101: and receiving a request message, wherein the request message comprises freight rate information which is used for matching a corresponding change quitting rule.
The freight rate information may include one or more of an airline two-letter code to which the fallback rule belongs, an origin of the freight rate, a destination of the freight rate, a tariff (tariff) number of the freight rate, a rule number of the freight rate, a Freight Base Code (FBC), a one-way round trip attribute of the freight rate, a route map number of the freight rate, a footnote number of the freight rate, a type of the freight rate, a travel date of the freight rate, a ticketing date of the freight rate, seller information of the freight rate, a passenger type code of the freight rate, a data source of the freight rate, and other unnecessary information. And other unnecessary information is used for assisting in inquiring the freight rate, so that the matched result of the change-back rule is more accurate.
S102: and matching a corresponding data table set from the database according to the freight rate information in the request message, wherein a correction rule is stored in the data table set, and the data table set comprises at least two data tables.
The background is not text information which is directly stored because the language reusability in the freight rate quit and change rule is high. The revocation rules are stored partly in the R3C016 table in a fixed format code and partly in the R3T996 table in a free text format. In addition, there are some auxiliary data such as an R3T994 table storing travel/ticket out/reservation date restrictions, an R3C014 table storing travel date restrictions, an R3C015 table storing ticket out and reservation date restrictions, an R3C019 table storing discount information, and the like.
Wherein, a section of quit-and-modification rule text is generally assembled by a plurality of R3C016 tables. The R3C016 tables are all structural information except the R3T996 table they refer to. And the R3T996 table referred by the R3C016 table needs to be determined whether the structuring process is completed or not.
S103: and when the data tables which do not complete the structured processing exist in the data table set, assembling to form an error report message.
The response message is a response to the request message and is used for performing structured display on the data table set in which the change-back rule is stored.
The error report message is used for indicating whether the structured content of the quit-change rule is temporarily absent.
Since the database generally stores only various tables such as R3C016, the revocation rule text is dynamically generated when requested by the user. Therefore, it is not suitable to directly perform the structuring process on the text of the revocation rule, and in this embodiment, the R3C016 is used as the starting point to perform the structuring process. Except for the R3T996 quoted by the R3C016, the rest is structural information, and the structural information is only required to be stored for subsequent assembly. And the R3T996 needs to determine whether the structuring process is completed, and for each data table included in the data table set, such as the R3C016 and R3T996 tables, when each data table has completed the structuring process, the data tables that have completed the structuring are assembled to form a response message, and the response message is returned to the user.
And when the data table which does not finish the structured processing exists in the data table set, namely R3T996 exists for finishing the formatted processing, assembling to form an error report.
In summary, by using the method provided by the embodiment of the application, the retrogression rule can be structurally displayed, so that a user can conveniently develop the retrogression rule on the basis, translation and content recombination are facilitated, and further, the shipping efficiency is conveniently improved.
The following description is made with reference to specific implementations.
The database in the embodiment of the application comprises at least two types of data tables as follows: a first type data table and a second type data table. Wherein the first type data table refers to the second type data table, and the first type data table is already structured. For example, the first type data table may be an R3C016 table, and the R3C016 table is structured information except for the R3T996 table cited by the R3C016 table; the first type data table can also be an R3C019 table, wherein the R3C019 table is used for providing discount information, and the contents of the discount information are all structured information.
Referring to fig. 2, the figure is a flowchart of another structural presentation method for a modification rule provided in the embodiment of the present application.
The method provided by the embodiment of the application comprises the following steps:
s201: and receiving a request message, wherein the request message comprises freight rate information.
The freight rate information is used for matching the corresponding change quit rule.
S202, determining each first type data table corresponding to the freight rate information.
The first type data table in the embodiment of the present application is an R3C016 table and an R3C019 table. Except the R3T996 table quoted by the R3C016 table, the rest is structural information, manual processing is not needed, and the structural information only needs to be stored for subsequent assembly. The R3C019 table provides discount information, and the contents of the discount information are all structured information.
S203, second data tables respectively quoted by the first data tables are inquired from the database, and the first data tables and the second data tables form a data table set.
Attempts are made to query the existing R3C016 table in the database. If so, the library is further queried for the R3T996 table referenced by the R3C016 table.
Each first type data table may refer to one or more second type data tables, and the specific number of references is not limited in the embodiments of the present application.
Each R3C016 table can reference one or more R3T996 tables.
And S204, determining whether all the data tables in the data table set have completed the structuring processing.
If yes, go to S205; otherwise, S206 is executed.
In some embodiments, when at least one second type data table in the data table set does not complete the structured processing, it is determined that the data table in the data table set does not complete the structured processing. That is, when there is an R3T996 table which does not complete the structuring process, it is determined that there is a data table which does not complete the structuring process in the data table set
S205, assembling to form a response message so as to carry out structured display on the data table set stored with the correction rule.
S206, assembling to form an error report message to indicate whether the structured content of the quit-change rule is available temporarily.
And S207, carrying out manual structuring on the second type data table which is not subjected to structuring.
That is, the processor performs the structuring process on the R3T996 table which is not subjected to the structuring process.
And S208, verifying the authenticity of the second type data table after the manual structuring processing.
Through the verification of the authenticity, in some embodiments, the verification of the authenticity is used for verifying whether the data in the second type data table after the artificial structured processing is authentic and whether tampering occurs.
S209: and when the verification is passed, storing the second type data table after the artificial structuring processing in a database.
The second type data after the structuring processing is marked as a structured state in the database, and can be displayed in a structured mode when being referred by the R3C016 table next time. That is, although the structural display fails, after one iteration, the next structural display on the R3T996 table may be successful. The user only needs to send the request message once again.
In one possible implementation, when there is a second type data table referenced by the first type data table missing in the database, the method further comprises the steps of:
acquiring a missing second type data table according to at least one item of freight rate information or a specified time range in the request message; carrying out artificial structuralization processing on the acquired missing second-class data table; verifying the authenticity of the missing second type data table after the artificial structuring processing; and when the verification is passed, storing the missing second-class data table after the artificial structuring processing in the database.
That is, the R3T996 table referenced by the R3C016 table is not stored in the database, and at this time, after the missing R3T996 table is obtained through query, the R3T996 table is subjected to manual structuring processing, and when the authenticity verification passes, the R3T996 table is stored in the database, and when the R3T 016 table is referenced next time, the structured display can be performed. That is, although the current structured display fails, after one iteration, the next structured display of the R3T996 table can be successful. The user only needs to send the request message once again.
In one possible implementation, the method further comprises the steps of:
updating a first type data table stored in a database according to a preset period; if detecting that a second type data table quoted by a newly stored first type data table is missing in the database, acquiring the missing second type data table; carrying out artificial structuralization processing on the acquired missing second-class data table; verifying the authenticity of the missing second type data table after the artificial structuring processing; and when the verification is passed, storing the missing second-class data table after the artificial structuring processing in the database.
By automatically updating the database according to the preset period, the number of first-class data tables which are not stored in the database can be reduced, the number of second-class data tables which are not subjected to structured processing in the database is reduced, the success probability of carrying out structured processing on the change quitting rule is improved, the number of required request messages is reduced, and the shipping efficiency is improved.
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 disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Computer program code for carrying out operations for the present disclosure 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).
The following describes an implementation of the structured presentation system for removing rules.
Referring to fig. 3, the drawing is an architecture diagram of a structural display system for changing rules according to an embodiment of the present application.
The illustrated structural presentation system 10 for the modification rule mainly includes an external interface layer 11, a service processing layer 21, and a Data Access Object (DAO) layer 31.
The external interface layer 11 comprises an entrance service, an exit service and a quit-change rule inquiry service;
the service processing layer 21: the method comprises a change quitting rule processing service, a data query service, a task file receiving service, a task file sending service and a new freight rate change quitting rule data polling service.
External systems can also be coordinated: the revocation rules manually split the system 20.
The external interface layer 11 will be first explained.
The portal service of the external interface layer 11 provides a request interface: structuredTranslateRuleText _ RQ.
The portal service of the external interface layer 11 provides a response interface: structuredtranlateruletext _ RS.
The system can automatically and accurately search and match corresponding change quit rules.
The information that needs to be provided specifically in the request can be seen in the table below.
Table 1: portal service requests information to be provided
Name (R) Means of
Carrier Two-character code of airline company to which revocation and modification rule belongs
Origin Origin of freight rate
Destination Freight rate destination
RuleTariff Tariff number of freight rate
Rule Freight rateRule numbering of
Fbc The fare bases of freight rates can be understood as the names of freight rates
Owrt One-way round trip attribute of freight rate
Routing Route chart numbering of freight rates
Ftnt Footnote numbering of freight rates
FareType Type of freight rate
TravelDate Date of travel of freight rate
TicketingDate Date of the fare draw
Seller Seller information of freight rate
PTC Passenger type coding of freight rates
Source Data source of freight rates
Other unnecessary information Auxiliary inquiry of freight rate to make the matched backThe rule changing result is more accurate
The field structure of the egress service response is shown in the following table:
table 2: field structure table of egress structure response
Cat16 Fixed field, chapter 16 representing freight rules
Refund/Change/Noshow Ticket refund/change/mismachine classification
ChargeApplication Return ticket applicable scenario, i.e. before/after take-off
TimingApplication Time limit requirement for ticket refunding
Permission Whether or not to permit the refund
Rbd Cabin applicable to the ticket refunding clause
Location Geographic information applicable to the terms of the refund (originating arrival)
Io The terms of this refund are applicable toTrip condition
FareBasis Freight rate foundation applicable to the ticket refunding clause
FareType Freight rate type applicable to the refund clause
TravelDate Travel origination date to which the refund terms apply
TicketingDate Date of drawing a bill that this terms of returning a bill is suitable for
ReservationDate Reservation date applicable to the ticket refunding clause
ChargePortion Flight section condition applicable to the ticket refund clause
Charges The fee applicable to the ticket refunding clause
Administration Management fee applicable to the ticket refunding clause
Discount Discount of commission charge suitable for the terms of the refund
OtherInfo Other information that cannot be structured
Referring to the relevant description of the portal service, the user only needs to provide freight rate information, and the change quitting rule is automatically matched by the system. The change quitting rule query service provides a change quitting rule query function, and the freight rate change quitting rule is accurately matched from the freight rate database according to the freight rate information.
Because the language reusability in the freight rate quit-change rule is higher, the background is not text information directly stored. The revocation rules are stored partly in the R3C016 table in a fixed format code and partly in the R3T996 table in a free text format. In addition, there are some supplementary data such as an R3T994 table storing travel/ticketing/reservation date restrictions, an R3C014 table storing travel date restrictions, an R3C015 table storing ticketing and reservation date restrictions, an R3C019 table storing discount information, and the like.
The change quitting rule query service can automatically query English original texts of the change quitting rules related in the request and the corresponding R3C016 number, and transmits subsequent change quitting rule processing services.
The information provided by the fallback rule query service to the business handling layer 21 includes the R3C016 table number and the R3C019 table number.
A section of the quit-modification rule text is assembled by a plurality of R3C016 tables. The database of the international freight rate calculation engine only stores various tables such as R3C016 and the like, and the correction rule text is dynamically generated when a user requests. Therefore, it is not suitable to directly perform the structuring process on the text with the revocation rule, so the system performs the structuring process with the R3C016 as the starting point.
Except for the R3T996 quoted by the R3C016, the rest is structural information, manual processing is not needed, and the structural information only needs to be stored for subsequent assembly. Only the R3C016 table number is passed here.
The R3C019 table provides discount information, the contents of which are also structured information, and here the R3C019 table number is passed.
The service processing layer 21 is responsible for processing the content transferred from the external interface layer 11, and for transferring the structured content and/or the translated content back to the external interface layer 11.
The business processing layer 21 sends the unstructured content generation task file to the modification rule manual splitting system 20 for structured splitting, and the business processing layer 21 also stores the structured data in a database for recall. Meanwhile, the pure request driving can cause the probability of hitting the contents in the library to be too low, and the delay problem of manual processing always exists, so the service processing layer 21 also has a timing polling mechanism to autonomously find the newly added content of the change-back rule in the freight rate data so as to send the content to the manual processing as soon as possible.
The following is a detailed description for each service in the business process layer 21.
The following first explains the revocation rule processing service.
For a request that needs to be structured, an attempt is made to search the existing R3C016 tables in the query library. If so, the R3T996 table referenced by the table is further queried in the library to complete the structuring process.
If the R3T996 finishes the structuring processing, auxiliary tables such as R3T994, R3C014, R3C015, R3C019 and the like are inquired in the library (if the auxiliary tables are not found, the data inquiry service inquiry is called), and a response message is assembled and transmitted to the upper layer.
If the R3T996 does not complete the structuring processing, an error report message (prompting the user to temporarily have no structured content) is assembled and transmitted to the upper layer.
If the R3T996 is not inquired, calling a data inquiry service to inquire the R3T996, and informing a task file sending service to send the task file generated by the R3T996 to a manual disassembly system for processing after the inquiry. And assembling an error report message (prompting a user to have no structured content temporarily) to the upper layer of the tradition.
The data query service is explained below.
Unlike the change canceling rule query service, the data query service does not contain complex business logic, and only retrieves and returns results for original data. The data query service includes the following two types of queries:
1. and inquiring the table record according to the table name and the table number. For example, look up the R3C016 table with the record number 12345678.
2. And querying a new warehousing table in the international freight rate calculation system database according to the specified time range. For example, look up a list of table numbers for R3C016 that are newly binned during a specified period of time.
The task file receiving service is explained below.
And receiving the files which are sent by the quit-change rule manual splitting system and are subjected to the structured splitting. The data query service is invoked to check the authenticity of R3T996 in the file. And stores it in the corresponding R3T996 field in the library of the present system and marks the bar R3T996 as structured.
The task file transmission service is explained below.
And the task file sending service is used for receiving the notice sent by the quit-change rule processing service and the polling new freight rate quit-change rule data service, generating a R3T996 task file and sending the task file to the quit-change rule manual splitting system for processing.
The polling new tariff fallback rule data service is described below.
And polling a new freight rate quit and change rule data service for automatically and regularly calling a data query service to check whether a new R3C016 enters the international freight rate calculation system database. If the detection is detected, a new list of the R3C016 table numbers is obtained and is put into the system library. And sequentially checking whether the R3T996 referred by the user is in the system library (the new R3C016 can reuse the old R3T996), if not, calling a data query service to query the R3T996, and after the query is finished, informing a task file sending service to send the R3T996 generated task file to a fallback rule manual splitting system for processing.
The DAO layer 31 is explained below.
The DAO layer 31 is a database access object layer. The database is edb, also known as Exchange, and is used for persisting data such as R3C 016. The DAO layer 31 uses redis as a buffer. When the upper layer queries data, the upper layer queries redis first, and if the data is not hit, the data is searched edb. Meanwhile, edb data is timed to be synchronized to redis through a syndbCache (syndb cache) service.
The syncdb command is a simple method of synchronizing data to a database. The syncdb command checks the database and if a table does not exist, a table is created. It should be noted that the syncdb command does not synchronize the modification or deletion of data to the database; the syncdb does not do anything if a piece of data is modified or deleted and it is desired to commit it to the database.
The quit-change rule manual splitting system 20 is an external system, and is used for receiving the task file sent by the system 10 in real time and assigning the task file to a processor for structured splitting. After structuring is completed, the file is generated according to the agreed format and sent back to the system 10.
In order to enable those skilled in the art to understand the technical solution of the present application more clearly, the following describes a process of implementing the structured splitting of the international freight rate quit and change rule by the above system with reference to a scenario.
Scene one: R3C016 is already present in the database and each R3T996 referenced has completed the structuring process.
The user sends structure dtranslateretext _ RQ to the system 10 with the target language in simplified chinese stating that structured data is required.
Since the entry service of the external interface layer 11 provides a request interface, the external interface layer 11 receives the request, calls the fallback rule query service to obtain a plurality of R3C016, and transmits the information to the service processing layer 21.
These R3C016 are included in the database, and R3T996 they refer to is also structured in the library.
The service processing layer 21 assembles the structured content into a response message and transmits the response message to the external interface layer 11.
The external interface layer 11 encapsulates the response packet into a structured random path rule text _ RS, and returns the response packet to the user through a response interface provided by the export service of the external interface layer 11.
Scene two: the presence R3C016 is not present in the database.
The user sends structure language RuleText _ RQ to the system, and the target language is simplified Chinese.
The external interface layer 11 receives the request message, calls the fallback Rule query service to obtain Rule Text and a plurality of R3C016, and transmits the information to the service processing layer 21.
The business process layer 21 finds that one of R3C016 is not in the database.
The service processing layer 21 invokes a data query service to query the R3C016, and stores the queried R3C016 in a database.
Business process layer 21 finds that the R3T996 referenced by this R3C016 is not in the library.
The business processing layer 21 calls a data query service to query the R3T996, and stores the queried R3T996 into a database, and the database is marked as unstructured.
The business processing layer 21 notifies the task file sending service to send the R3T996 generated task file to the manual splitting system 20 for processing.
The service processing layer 21 assembles an error report message (prompting the user to temporarily have no structured content) and transmits the error report message to the external interface layer 11.
And the external interface layer encapsulates the 11 response messages into a structure dTranslateRuleText _ RS and returns the structure dTranslateRuleText _ RS to the user.
Based on the above description, the embodiments of the present application further provide a structural display system of a change-back rule, which is specifically described below with reference to the accompanying drawings.
Referring to fig. 4, this figure is a schematic diagram of a structured display system for a revocation rule according to an embodiment of the present application.
The structural display system of the change-canceling rule provided by the embodiment of the application comprises an entrance service module 401, a change-canceling rule query module 402 and a processing module 403.
The entry service module 401 is configured to receive a request message, where the request message includes freight rate information, and the freight rate information is used to match a corresponding change quitting rule. The portal service module 401 is used to implement the portal service in fig. 3.
And a change-quit rule query module 402, configured to match a corresponding data table set from the database according to the freight rate information in the request message, where a change-quit rule is stored in the data table set, and the data table set includes at least two data tables. The change-back rule query module 402 is used to implement the change-back rule query service in fig. 3.
A processing module 403, configured to assemble a response packet to perform structured display on the data table set in which the modification rule is stored when each data table in the data table set has completed structured processing; and when the data tables which do not finish the structured processing exist in the data table set, assembling to form an error report message, wherein the error report message is used for indicating the structured content of the temporary non-retroversion rule. The processing module 403 is used to implement the services of the application processing layer in fig. 3.
The implementation of the system is described in detail below.
Referring to fig. 5, this figure is a schematic diagram of a structured display system for a revocation rule according to an embodiment of the present application.
In some embodiments, the system for structured presentation of the dismissal rule further comprises: a DAO module 404 for implementing the DAO layer 31 functionality, and an egress service module 405 for implementing an egress service.
Further, in some embodiments, the processing module 403 specifically includes: a change quitting rule processing submodule 4031 for implementing the change quitting rule processing service, a data query submodule 4032 for implementing the data query service, a task file receiving module 4033 for implementing the task file receiving service, a polling submodule 4034 for implementing the polling new freight change quitting rule data service, and a task file sending submodule 4035 for implementing the task file sending service, and for the functions of the above submodules, reference may be made to the description in the above embodiments, and details are not repeated here.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the structural presentation method of the change-back rule in the above description.
In the context of this disclosure, a computer-readable storage 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. A 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 embodiment of the application further provides an electronic device, which is specifically described below with reference to the accompanying drawings.
Referring to fig. 6, the figure is a schematic view of an electronic device provided in an embodiment of the present application.
The illustrated electronic device 600 may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), etc., and a stationary terminal such as a digital TV, a desktop computer, etc. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from storage 606 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, 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. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
When the program stored in the electronic device is operated, the method is used for realizing the structural display method of the change-quitting rule described in the above embodiment, and the method can be used for performing structural display on the change-quitting rule, so that a user can conveniently develop the change-quitting rule on the basis, translation and content recombination are facilitated, and further the shipping efficiency is conveniently improved.
It should be understood that, in this application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. The above-described apparatus embodiments are merely illustrative, and the units and modules described as separate components may or may not be physically separate. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. One of ordinary skill in the art can understand and implement without inventive effort.
The foregoing is directed to embodiments of the present application and it is noted that numerous modifications and adaptations may be made by those skilled in the art without departing from the principles of the present application and are intended to be within the scope of the present application.

Claims (10)

1. A structured display method for a change-back rule is characterized in that the change-back rule is a change-back rule of freight rate of airplane shipping, and the method comprises the following steps:
receiving a request message, wherein the request message comprises freight rate information which is used for matching a corresponding change quitting rule;
matching a corresponding data table set from a database according to the freight rate information in the request message, wherein the data table set stores the change-back rule and comprises at least two data tables;
when all the data tables in the data table set are subjected to structural processing, assembling to form a response message so as to perform structural display on the data table set in which the modification quitting rule is stored; and when the data sheet which does not finish the structured processing exists in the data sheet set, assembling to form an error report message, wherein the error report message is used for indicating whether the structured content of the change quitting rule is available temporarily.
2. The method of claim 1, wherein the database comprises at least two types of data tables: a first type data table and a second type data table; the first type data table refers to the second type data table, and the first type data table is subjected to structural processing; the matching, according to the freight rate information in the request message, a corresponding data table set from a database specifically includes:
determining each first type data table corresponding to the freight rate information;
and querying the second type data tables respectively referred by the first type data tables from the database, so that the first type data tables and the second type data tables form the data table set.
3. The method according to claim 2, wherein when there is a data table in the data table set that does not complete the structured processing, assembling to form an error report message specifically includes:
and when at least one second type data table does not finish the structural processing in the data table set, determining that the data table which does not finish the structural processing exists in the data table set, and assembling to form the error report message.
4. The method of claim 3, wherein after the assembling forms an error message, the method further comprises:
and carrying out manual structuring processing on the second type data table which is not subjected to structuring processing.
5. The method according to claim 4, wherein after the manual structuring of the second type data table that is not structured completely, the method further comprises:
verifying the authenticity of the second type data table after the artificial structuring processing;
when the verification is passed, storing the second type data table after the artificial structuring processing in the database.
6. The method of claim 2, wherein when there is a second type of data table referenced by the first type of data table missing in the database, the method further comprises:
acquiring a missing second-class data table according to at least one item of the freight rate information or a specified time range in the request message;
carrying out artificial structuralization processing on the acquired missing second-class data table;
verifying the authenticity of the missing second type data table after the manual structuring processing;
when the verification is passed, storing the missing second-class data table after the artificial structuring processing in the database.
7. The method of claim 2, further comprising:
updating the first type data table stored in the database according to a preset period;
if detecting that a second type data table quoted by a newly stored first type data table is missing in the database, acquiring the missing second type data table;
carrying out artificial structuralization processing on the acquired missing second-class data table;
verifying the authenticity of the missing second type data table after the manual structuring processing;
when the verification is passed, storing the missing second-class data table after the artificial structuring processing in the database.
8. A structured presentation system for removing rules, the system comprising: the system comprises an entrance service module, a quit-change rule inquiry module and a processing module; wherein, the first and the second end of the pipe are connected with each other,
the entrance service module is used for receiving a request message, wherein the request message comprises freight rate information, and the freight rate information is used for matching a corresponding change quitting rule;
the change-quitting rule query module is used for matching a corresponding data table set from a database according to the freight rate information in the request message, wherein the change-quitting rule is stored in the data table set, and the data table set comprises at least two data tables;
the processing module is used for splicing and forming a response message when each data table in the data table set completes structural processing so as to structurally display the data table set stored with the change-back rule; and when the data tables which do not finish the structured processing exist in the data table set, assembling to form an error report message, wherein the error report message is used for indicating that the structured content of the change-back rule is temporarily absent.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, implements a structured presentation method of a revocation rule according to any of claims 1 to 7.
10. An electronic device, wherein the electronic device is configured to run a program, and when the program runs, the method for displaying the structural change-back rule in any one of claims 1 to 7 is performed.
CN202210726403.9A 2022-06-24 2022-06-24 Structural display method, system, storage medium and electronic equipment for retreating and changing rules Pending CN115129489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210726403.9A CN115129489A (en) 2022-06-24 2022-06-24 Structural display method, system, storage medium and electronic equipment for retreating and changing rules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210726403.9A CN115129489A (en) 2022-06-24 2022-06-24 Structural display method, system, storage medium and electronic equipment for retreating and changing rules

Publications (1)

Publication Number Publication Date
CN115129489A true CN115129489A (en) 2022-09-30

Family

ID=83379977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210726403.9A Pending CN115129489A (en) 2022-06-24 2022-06-24 Structural display method, system, storage medium and electronic equipment for retreating and changing rules

Country Status (1)

Country Link
CN (1) CN115129489A (en)

Similar Documents

Publication Publication Date Title
US20210239469A1 (en) Presenting information for a current location or time
CN102017662B (en) Information providing system, terminal for transmitting/receiving information, and information providing method
KR101618997B1 (en) Method and system for processing a search request
US20090012824A1 (en) Apparatus and method for supplying an aggregated and enhanced itinerary
CN109508805B (en) Method and system for providing flight change information, storage medium and electronic equipment
CN112199405B (en) Method and device for searching international air ticket change price
US20160180257A1 (en) Automatic conversion of formatted travel information
US20130297360A1 (en) Flight-price monitoring systems and methods
CN110930224A (en) Code sharing freight rate publishing method and device for airline company
CN108985672A (en) Information output method and device
CN113326095A (en) Commission data processing method and device
CN116860835A (en) Travel information query method, system, equipment and storage medium
CN115129489A (en) Structural display method, system, storage medium and electronic equipment for retreating and changing rules
CN112965943A (en) Data processing method and device, electronic equipment and storage medium
CN101384050A (en) Mobile terminal, method and system for resource management
CN116150216A (en) Stroke search method, device, electronic equipment and storage medium
CN115098558A (en) Flight data statistical method and device
CN113254835B (en) Intelligent scenic spot server architecture and data processing method thereof
US8805826B2 (en) System and method for processing complex queries
CN116931881A (en) Business process execution method and device, storage medium and electronic equipment
CN114091714A (en) Passenger ticket filling control method and device
CN109559078A (en) A kind of vehicle dispatching method, device, equipment and storage medium
CN107944587B (en) Packaging processing method, system, equipment and storage medium of travel product
CN115357620A (en) Luggage limit-free inquiry method, system, electronic equipment and storage medium
JPH0916624A (en) Method for retrieving hierarchical data

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