Product transaction processing method and device, storage medium and electronic equipment
By receiving and processing target transaction requests initiated by the airline sales front-end, querying passenger order data and verifying product information, and generating target transaction information, it solves the problem of complex processes when airlines sell additional service products, and improves user experience and work efficiency.
Patent Information
- Application Number
- CN202411782624.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-04-01
AI Technical Summary
In the prior art, when an airline sells additional service products that are not related to passenger segments, it must be associated with the segment information of passenger order data, resulting in a complicated process for passengers to purchase additional service products.
By receiving the target transaction request from the message queue, determining the target database based on the request type, querying passenger order data, and verifying the product information when the data is consistent, and generating target transaction information.
It solves the problem of the complex process of passengers purchasing additional service products, improves user experience and airline work efficiency, and realizes that passengers can purchase additional service products that are not related to the flight segment without the information of the flight segment.
Smart Images

Figure CN119741122A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of aviation services, and more specifically, to a method, device, storage medium and electronic device for processing product transactions. Background Art
[0002] In the prior art, additional service products such as baggage, seat selection, and cabin upgrades that are strongly related to passenger segments in airlines have gradually matured. From product definition, product sales, product delivery, to the final settlement, there is a set of mature technical solutions. In the technical solution of the IATA industry standard, according to the actual market application needs and in order to better improve the level of passenger service, if a passenger purchases an additional service product that is not related to the segment, it is necessary to add the segment information to the passenger order in order to provide services to the passenger as soon as possible when boarding the plane. However, this method requires that the passenger's segment information must be obtained during the process of purchasing the additional service product, which increases the complexity of the process of passengers purchasing additional service products. At the same time, the additional service products purchased by passengers can only be related to the segment information selected by the passenger, so that passengers cannot enjoy the additional service products throughout the entire journey, which reduces the passenger's experience. In addition, in the prior art, additional service products that are not related to the passenger's segment, such as VIP lounges, in-flight WIFI, discount coupons, etc., do not have a complete sales process and cannot meet the existing needs of users.
[0003] Regarding the problem in related technologies that when airlines sell additional service products that are not related to passenger flight segments, they must be associated with the flight segment information of passenger order data, which makes the process of passengers purchasing additional service products more complicated. No effective solution has been proposed yet. Summary of the invention
[0004] The main purpose of this application is to provide a product transaction processing method, device, storage medium and electronic device to solve the problem in the related art that when an airline sells additional service products that are not related to the passenger's flight segment, they must be associated with the flight segment information of the passenger's order data, resulting in a more complicated process for passengers to purchase additional service products.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for processing product transactions is provided, the method comprising: receiving a target transaction request from a message queue, wherein the target transaction request is a transaction request for a target product, the target product is an additional service product in a passenger's itinerary that is unrelated to passenger flight segment information, and the target transaction request includes at least a target field, the target field characterizing the request type of the target transaction request; determining a target database based on the target field, and querying passenger order data in the target database; when the request data in the target transaction request is consistent with the passenger order data, verifying the product information of the target product to obtain a verification result; when the verification result indicates that the verification is passed, generating target transaction information based on the target transaction request.
[0006] Furthermore, a target database is determined based on the target field, and passenger order data is queried in the target database, including: converting the request data contained in the target transaction request into a preset message format based on the header message of the message queue to obtain a target message; parsing the target message to obtain the field value of the target field and identification information of the target passenger, wherein the target passenger is a passenger who uses the target product; determining the target database based on the field value of the target field; and querying the passenger order data of the target passenger in the target database based on the identification information of the target passenger.
[0007] Furthermore, the request type is a first type, which is a transaction request initiated after a preset time, and querying the passenger order data of the target passenger in the target database based on the identification information of the target passenger, including: determining a first database corresponding to the first type of transaction request, and taking the first database as the target database; querying the target information of the target passenger in the target database based on the identification information of the target passenger, wherein the target information includes at least: passenger information and order information; merging the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0008] Furthermore, the request type is of the second type, and the second type is a transaction request initiated before a preset time. The target database is queried for the passenger order data of the target passenger based on the identification information of the target passenger, including: obtaining a configuration file, and determining the operating status of the host direct reading tool through the configuration file; determining a second database corresponding to the second type of transaction request, and using the second database as the target database; when the operating status is the first status, querying the target information of the target passenger in the target database through the host direct reading tool, wherein the target information includes at least passenger information and order information; when the operating status is the second status, querying the target information of the target passenger in the target database through a preset interface, wherein the target information includes at least passenger information and order information; merging the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0009] Furthermore, the product information of the target product is verified to obtain a verification result, including: determining the product information of the target product in the target transaction request, wherein the product information includes at least: airline information, service name, service type, product type, sub-product type, and the airline information includes at least one of the following: first airline information and second airline information, the first airline information represents the airline information that directly sells the target product, and the second airline information represents the airline information that acts as an agent to sell the target product; matching the target field and the product information of the target product with the field information in a preset data table to obtain a matching result; and when the matching result is not empty, determining that the verification is passed as the verification result.
[0010] Furthermore, after generating target transaction information according to the target transaction request, the method also includes: updating the target database according to the target transaction information; in the case where the target transaction information fails to be generated, generating prompt information, and returning the prompt information to the target object; in the case where the target database fails to be updated, generating rollback information, and processing the target transaction information according to the rollback information.
[0011] Furthermore, after verifying the product information of the target product and obtaining the verification result, the method also includes: determining whether the target transaction request contains the passenger's flight segment information; when the target transaction request contains the passenger's flight segment information, determining the target database for processing the target transaction request based on the target field; obtaining the passenger's flight segment information in the target database, and generating the target transaction information based on the passenger's flight segment information and the target transaction request.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a product transaction processing device is provided, the device comprising: a receiving unit, used to receive a target transaction request from a message queue, wherein the target transaction request is a transaction request for a target product, the target product is an additional service product in the passenger's itinerary that is unrelated to the passenger's flight segment information, and the target transaction request at least includes a target field, the target field represents the request type of the target transaction request; a query unit, used to determine a target database based on the target field, and query the passenger order data in the target database; a verification unit, used to verify the product information of the target product when the request data in the target transaction request is consistent with the passenger order data, and obtain a verification result; a first generating unit, used to generate target transaction information according to the target transaction request when the verification result indicates that the verification is passed.
[0013] Furthermore, the query unit includes: a conversion subunit, used to convert the request data contained in the target transaction request into a preset message format according to the header message of the message queue to obtain a target message; a parsing subunit, used to parse the target message to obtain the field value of the target field and the identification information of the target passenger, wherein the target passenger is a passenger who uses the target product; a first determination subunit, used to determine the target database according to the field value of the target field; and a query subunit, used to query the passenger order data of the target passenger in the target database according to the identification information of the target passenger.
[0014] Furthermore, the request type is a first type, which is a transaction request initiated after a preset time. The query subunit includes: a first determination module, used to determine a first database corresponding to the first type of transaction request, and use the first database as the target database; a first query module, used to query the target information of the target passenger in the target database based on the identification information of the target passenger, wherein the target information includes at least: passenger information and order information; a first merging module, used to merge the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0015] Furthermore, the request type is of the second type, and the second type is a transaction request initiated before a preset time. The query subunit includes: an acquisition module, used to acquire a configuration file, and determine the operating status of the host direct-reading tool through the configuration file; a second determination module, used to determine the second database corresponding to the second type of transaction request, and use the second database as the target database; a second query module, used to query the target information of the target passenger in the target database through the host direct-reading tool when the operating status is the first status, wherein the target information includes at least passenger information and order information; a third query module, used to query the target information of the target passenger in the target database through a preset interface when the operating status is the second status, wherein the target information includes at least passenger information and order information; a second merging module, used to merge the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0016] Furthermore, the verification unit includes: a second determination subunit, used to determine the product information of the target product in the target transaction request, wherein the product information includes at least: airline information, service name, service type, product type, sub-product type, and the airline information includes at least one of the following: first airline information and second airline information, the first airline information represents the airline information that directly sells the target product, and the second airline information represents the airline information that acts as an agent to sell the target product; a matching subunit, used to match the target field and the product information of the target product with the field information in a preset data table to obtain a matching result; a third determination subunit, used to determine the verification pass as the verification result if the matching result is not empty.
[0017] Furthermore, the device also includes: an updating unit, which is used to update the target database according to the target transaction information after generating the target transaction information according to the target transaction request; a second generating unit, which is used to generate prompt information when the generation of the target transaction information fails, and return the prompt information to the target object; a processing unit, which is used to generate rollback information when the update of the target database fails, and process the target transaction information according to the rollback information.
[0018] Furthermore, the device also includes: a judgment unit, which is used to verify the product information of the target product and, after obtaining the verification result, determine whether the target transaction request contains the passenger's flight segment information; a determination unit, which is used to determine the target database for processing the target transaction request based on the target field when the target transaction request contains the passenger's flight segment information; and a third generation unit, which is used to obtain the passenger's flight segment information from the target database and generate the target transaction information based on the passenger's flight segment information and the target transaction request.
[0019] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the product transaction processing method described in any one of the above items, and which, when executed by a processor, implements the steps of the product transaction processing method described in each embodiment of the present application.
[0020] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned product transaction processing methods is implemented.
[0021] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned product transaction processing methods.
[0022] Through the present application, the following steps are adopted: receiving a target transaction request from a message queue, wherein the target transaction request is a transaction request for a target product, the target product is an additional service product that is unrelated to the passenger's flight segment information in the passenger's itinerary, and the target transaction request at least includes a target field, and the target field represents the request type of the target transaction request; determining a target database based on the target field, and querying the passenger order data in the target database; when the request data in the target transaction request is consistent with the passenger order data, verifying the product information of the target product to obtain a verification result; when the verification result indicates that the verification is passed, generating target transaction information based on the target transaction request, which solves the problem in the related art that when an airline sells additional service products that are unrelated to the passenger's flight segment, they must be associated with the flight segment information of the passenger's order data, resulting in a more complicated process for passengers to purchase additional service products. By receiving the target transaction request initiated by the airline sales front end and obtaining the passenger transaction information and the product information of the target product, the request information in the target transaction request can be verified to ensure the data accuracy of the target transaction request. At the same time, by performing the ticketing process of the target transaction request after the data verification is successful, the needs of passengers to purchase additional service products unrelated to the flight segment without associating the flight segment information are met, thereby improving the user experience, achieving the effect of improving the execution efficiency of passengers purchasing additional service products, and further achieving the effect of improving the work efficiency of the airline. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0024] Figure 1 is a flow chart of a method for processing product transactions provided in Example 1 of the present application;
[0025] Figure 2 This is a schematic diagram of an optional product transaction processing method provided in Example 1 of the present application. Figure 1 ;
[0026] Figure 3 This is a schematic diagram of an optional product transaction processing method provided in Example 1 of the present application. Figure 2 ;
[0027] Figure 4 This is a schematic diagram of an optional product transaction processing method provided in Example 1 of the present application. Figure 3 ;
[0028] Figure 5 This is a schematic diagram of an optional product transaction processing method provided in Example 1 of the present application. Figure 4;
[0029] Figure 6 This is a schematic diagram of an optional product transaction processing method provided in Example 1 of the present application. Figure 5 ;
[0030] Figure 7 It is a schematic diagram of an electronic device provided according to Embodiment 5 of the present application. DETAILED DESCRIPTION
[0031] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0032] It should be noted that the user information (including but not limited to user device information, user personal information, collected data, used data, generated data, processed data, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, collected information, used information, generated information, processed information, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of relevant countries and regions, necessary confidentiality measures are taken, and public order and good morals are not violated, and corresponding operation portals are provided for users to choose to authorize or refuse. For example, an interface is set between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0033] It should be noted that this application provides users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] Embodiment 1
[0037] The present application is described below in conjunction with preferred implementation steps. Figure 1 is a flowchart of a method for processing product transactions according to the first embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0038] Step S101, receiving a target transaction request from a message queue, wherein the target transaction request is a transaction request for a target product, the target product is an additional service product in the passenger's flight that is unrelated to the passenger's flight segment information, and the target transaction request includes at least a target field, and the target field represents a request type of the target transaction request.
[0039] The product transaction processing method provided in Example 1 of the present application can be applied to the additional service sales system of an airline, by receiving target transaction requests from passengers to purchase additional service products, integrating and processing passenger data, completing transactions for additional service products, and generating transaction information, which is returned to the passengers.
[0040] In the first embodiment, in order to meet the needs of target passengers to purchase additional service products of the airline, the target passengers need to initiate a target transaction request at the sales front end of the airline. The sales front end collects relevant parameters of the target transaction request and sends them to the message queue, so that the additional service sales system of the airline can obtain the target transaction request from the message queue and process the target transaction request.
[0041] Step S102, determining a target database according to the target field, and querying the passenger order data in the target database.
[0042] In the first embodiment, in order to complete the target transaction request initiated by the target passenger, it is necessary to obtain the passenger order data of the target passenger in the target database of the airline, so as to process the target transaction request according to the passenger order data of the target passenger. The target database refers to the database in the airline that stores the passenger order data of the target passenger.
[0043] Step S103, when the request data in the target transaction request is consistent with the passenger order data, the product information of the target product is verified to obtain a verification result.
[0044] In the first embodiment of the present invention, after obtaining the passenger order data of the target passenger, it is necessary to compare the passenger information in the target transaction request with the passenger order data of the target passenger in the target database to verify whether the passenger information of the target passenger in the target transaction request is correct. When the passenger information in the target transaction request is consistent with the passenger order data of the target passenger in the target database, the product information of the target product that the target passenger intends to purchase in the target transaction request is verified according to the additional service product information of the airline to obtain the above-mentioned verification result.
[0045] Step S104: when the verification result indicates that the verification is passed, generating target transaction information according to the target transaction request.
[0046] In the first embodiment of the present invention, the additional service sales system verifies the passenger information and the product information of the target product in the target transaction request, and after the verification is passed, calls the electronic miscellaneous expense bill management system to issue a ticket according to the target transaction request, obtains the ticket information of the target transaction request, and completes the target transaction request of the target passenger.
[0047] In summary, the method for processing product transactions provided in the first embodiment of the present application receives a target transaction request from a message queue, wherein the target transaction request is a transaction request for a target product, the target product is an additional service product in the passenger's flight that is unrelated to the passenger's flight segment information, and the target transaction request includes at least a target field, the target field represents the request type of the target transaction request; the target database is determined based on the target field, and the passenger order data is queried in the target database; when the request data in the target transaction request is consistent with the passenger order data, the product information of the target product is verified to obtain a verification result; when the verification result indicates that the verification is passed, the target transaction information is generated based on the target transaction request, which solves the problem in the related art that when an airline sells additional service products that are unrelated to the passenger's flight segment, they must be associated with the flight segment information of the passenger order data, resulting in a more complicated process for passengers to purchase additional service products. By receiving the target transaction request initiated by the airline sales front end and obtaining the passenger transaction information and the product information of the target product, the request information in the target transaction request can be verified to ensure the data accuracy of the target transaction request. At the same time, by performing the ticketing process of the target transaction request after the data verification is successful, the needs of passengers to purchase additional service products unrelated to the flight segment without associating the flight segment information are met, thereby improving the user experience, achieving the effect of improving the execution efficiency of passengers purchasing additional service products, and further achieving the effect of improving the work efficiency of the airline.
[0048] Optionally, in the product transaction processing method provided in Example 1 of the present application, the target database is determined based on the target field, and the passenger order data is queried in the target database, including: converting the request data contained in the target transaction request into a preset message format based on the header message of the message queue to obtain the target message; parsing the target message to obtain the field value of the target field and the identification information of the target passenger, wherein the target passenger is a passenger who uses the target product; determining the target database based on the field value of the target field; and querying the passenger order data of the target passenger in the target database based on the identification information of the target passenger.
[0049] In the first embodiment of the present invention, messages can be transmitted between the business systems of the airline through the message queue. The additional service sales system of the airline obtains the target transaction request from the message queue, processes the target transaction request into a preset message format, and obtains the above-mentioned target message, thereby querying the passenger order data of the target passenger according to the target message.
[0050] In an optional embodiment, the SIH protocol is a message queue-based protocol, and each business system of the airline has its own INPUT (message receiving) queue and OUTPUT (message sending) queue. Before receiving or sending messages through the message queue, it is necessary to configure the header information of the SIH message queue, and then the sender and the receiver can communicate through the message queue. Inside the airline's additional service sales system, various components exchange messages through data streams. According to the SIH_EXT_FUNCCODE in the SIH header message, the target transaction request of the character stream type is converted into a specific object, that is, the above-mentioned preset message format, to obtain the above-mentioned target message message.
[0051] Then, if the content of the incoming target transaction request is empty or the conversion of the target transaction request fails during the conversion process, an error message will be displayed. If there is no error during the conversion process, the message content in the target message is parsed to obtain the field value of the target field and the identification information of the target passenger. The field value of the target field refers to the field value of the RequestType field in the target message. The identification information of the target passenger refers to the identification information of the target passenger in the airline, for example, the passenger number of the passenger order data of the target passenger.
[0052] Finally, the target database corresponding to the target transaction request is determined according to the field value of the RequestType field, and the passenger order data of the target passenger is queried in the target database according to the passenger number of the target passenger.
[0053] Optionally, in the product transaction processing method provided in Example 1 of the present application, the above-mentioned request type is a first type, and the above-mentioned first type is a transaction request initiated after a preset time, and the passenger order data of the target passenger is queried in the target database based on the identification information of the target passenger, including: determining the first database corresponding to the first type of transaction request, and taking the first database as the target database; querying the target information of the target passenger in the target database based on the identification information of the target passenger, wherein the target information includes at least: passenger information and order information; merging the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0054] In an optional embodiment, the target transaction request may be of the first type, i.e., a target transaction request generated after the flight information is initialized (i.e., the preset time mentioned above), for example, after the flight information of the target passenger is determined, the target passenger arrives at the airport and initiates a target transaction request for baggage check-in. If the target transaction request is of the first type, the RequestType field of the target transaction request is "FieldSales", and the target database corresponding to the target request is the database managed by the departure host system.
[0055] Then, a temporary data object is constructed according to the target message, and the departure host system is called to obtain the target message related to the target passenger from the database of the departure host system. The target message includes but is not limited to the passenger information, flight segment information and other host data of the target passenger. The departure host system returns the queried target data to the additional service sales system, and the additional service sales system encapsulates the received target data in a temporary data object, and then calls the order synchronization system to obtain the passenger booking record of the target passenger.
[0056] Finally, the temporary data object is integrated with the target passenger's passenger booking record according to the flight, passenger, and ID number. After the integration, the underlying data structure inside the additional service sales system is generated to obtain the above-mentioned passenger order data of the target passenger.
[0057] Optionally, in the product transaction processing method provided in Example 1 of the present application, the above-mentioned request type is the second type, and the above-mentioned second type is a transaction request initiated before a preset time, and the passenger order data of the target passenger is queried in the target database based on the identification information of the target passenger, including: obtaining a configuration file, and determining the operating status of the host direct reading tool through the configuration file; determining a second database corresponding to the second type of transaction request, and using the second database as the target database; when the operating status is the first status, querying the target information of the target passenger in the target database through the host direct reading tool, wherein the target information includes at least: passenger information and order information; when the operating status is the second status, querying the target information of the target passenger in the target database through a preset interface, wherein the target information includes at least: passenger information and order information; merging the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0058] In an optional embodiment, the target transaction request may be of the second type, i.e., a target transaction request generated before the flight information is initialized (i.e., the preset time mentioned above). For example, the target passenger's flight is in October, and the target customer initiates a target transaction request for luggage check-in in July. If the target transaction request is of the second type, the RequestType field of the target transaction request is "Online", and the target database corresponding to the target request is a database managed by the reservation host system.
[0059] Then, the additional service sales system sets a switch isDirectAccessToICS through the configuration file. The function of this switch is to prevent the host direct reading tool of the reservation host system from malfunctioning and failing to obtain the host data normally, which affects the sales. When the value of the switch isDirectAccessToICS is "false", it means that the host direct reading tool is operating normally (that is, the above-mentioned operating state is the first state), then the order query system is called to query the flight segment information, passenger information and host data of the target passenger through the host direct reading tool ANT to obtain the above-mentioned target information. When an emergency occurs in the host direct reading tool ANT, the value of the switch isDirectAccessToICS is "true". At this time, the flight segment information, passenger information and host data of the target passenger are obtained through the direct reading host interface of the reservation host system to obtain the above-mentioned target information.
[0060] Finally, according to the passenger number in the target information, the order synchronization system is called to obtain the passenger booking record, and the passenger booking record of the target passenger is integrated with the target information of the target passenger. After the integration, the underlying data logical structure inside ASOM will be generated to obtain the passenger order data of the above-mentioned target passenger.
[0061] Optionally, in the product transaction processing method provided in Example 1 of the present application, the product information of the target product is verified to obtain a verification result, including: determining the product information of the target product in the target transaction request, wherein the product information includes at least: airline information, service name, service type, product type, sub-product type, and the airline information includes at least one of the following: first airline information, second airline information, the first airline information represents the airline information that directly sells the target product, and the second airline information represents the airline information that acts as an agent to sell the target product; matching the target field and the product information of the target product with the field information in the preset data table to obtain a matching result; when the matching result is not empty, determining the verification pass as the verification result.
[0062] In the first embodiment, after verifying the passenger order data of the target passenger, it is necessary to verify the target product requested to be purchased by the target passenger in the target transaction request, so that the target transaction request of the target passenger can be executed after the product information of the target product is confirmed to be correct.
[0063] In an optional embodiment, product information of the target product can be stored in different data tables of the airline. For example, the first data table refers to the product table, which includes fields such as airline, reason code, service type and sub-product type. The second data table refers to the product definition table, which includes fields such as reason code, service type, request type and product type. The third data table refers to the interline agreement table, which includes fields such as selling airline, carrier airline and service name.
[0064] Then, the field values of the fields such as airline, reason code, service type and sub-product type in the product information of the target product in the target transaction request are matched with the field values of the fields such as airline, reason code, service type and sub-product type in the first data table. If the matching result is not empty and unique, it is determined that the product information of the target product is the same as the information in the product table, that is, the target product passes the verification of the first data table. In the case that the target product passes the verification of the first data table, the field values of the fields such as reason code, service type, request type and product type in the product information of the target product in the target transaction request are matched with the field values of the fields such as reason code, service type, request type and product type in the second data table. If the matching result is not empty and unique, it is determined that the product information of the target product is the same as the information in the product definition table, that is, the target product passes the verification of the second data table. When the target product passes the verification of the second data table, the field values of the selling airline, carrier airline, service name and other fields in the product information of the target product in the target transaction request are matched with the field values of the selling airline, carrier airline and service name and other fields in the third data table. If the matching result is not empty and unique, it is determined that the product information of the target product is the same as the information in the intermodal agreement table, that is, the target product passes the verification of the third data table.
[0065] Finally, when the product information of the target product in the target transaction request matches the data of the first data table, the second data table, and the third data table at the same time, it is determined that the verification result of the product information of the target product passes.
[0066] It should be noted that the product information of the above-mentioned target product (ie, the above-mentioned first data table, second data table and third data table) can be stored in databases of different business systems of the airline company, which is not specifically limited in the first embodiment.
[0067] Optionally, in the product transaction processing method provided in Example 1 of the present application, after generating target transaction information based on the target transaction request, the method further includes: updating the target database based on the target transaction information; in the event that the target transaction information fails to be generated, generating prompt information, and returning the prompt information to the target object; in the event that the target database update fails, generating rollback information, and processing the target transaction information based on the rollback information.
[0068] In the first embodiment, in order to avoid the transaction failure of the target product due to external reasons such as network failure, resulting in unnecessary losses, a rollback mechanism for the target product can be set up, so that when the transaction of the target product fails, the ticket issuance process of the target transaction request can be revoked to ensure the consistency of the transaction and the accuracy of the airline data.
[0069] In an optional embodiment, if calling the ticket system to generate the target transaction information according to the target transaction request fails, a rollback mechanism is triggered to undo all operations performed by calling the ticket system (e.g., data processing operations), and generate a prompt message of ticket issuance failure, which is sent to the target passengers and airline staff (i.e., the target objects mentioned above).
[0070] In an optional embodiment, if the ticket system is called according to the target transaction request and the target transaction information is successfully generated, but the synchronization of the target transaction information to the booking host system or the departure host system fails, the target database is updated, and rollback information of data synchronization failure is generated, and the rollback mechanism is triggered to undo all operations performed by calling the ticket system (for example, data processing operations). If part of the target transaction information is successfully synchronized, the part of the target transaction information that is successfully synchronized is also processed.
[0071] Optionally, in the product transaction processing method provided in Example 1 of the present application, after verifying the product information of the target product and obtaining the verification result, the above method also includes: determining whether the target transaction request contains the passenger's flight segment information; when the target transaction request contains the passenger's flight segment information, determining the target database for processing the target transaction request based on the target field; obtaining the passenger's flight segment information in the target database, and generating the target transaction information based on the passenger's flight segment information and the target transaction request.
[0072] In an optional embodiment, when the target transaction request transmitted from the airline sales front end does not contain the flight segment information, there is no need to verify the flight segment information of the target transaction request. When the target transaction request transmitted from the airline sales front end contains the flight segment information, the additional service sales system will determine the target database between the booking host system and the departure host system according to the target field in the target transaction request, query the flight segment information of the target passenger in the target database, and match the flight segment information in the target transaction request with the passenger flight segment information queried in the target database. If the passenger flight segment information does not match, the process is terminated, the product information of the target product in the target transaction request is no longer verified, the ticket issuance process of the target transaction request is no longer executed, and a prompt message indicating that the flight segment information is incorrect is generated; if the passenger flight segment information matches successfully, the product information of the target product in the target transaction request is verified.
[0073] Optionally, in the first embodiment, the process of executing the target transaction request by the additional service sales system in the present application can be as follows: Figure 2 As shown, the additional service sales system may include an input module, a query module, a rule management module, an external call module, and a rollback module.
[0074] The input module manages the input information of the airline sales front end. It splices and converts messages according to the passenger record number, converts the incoming message into the corresponding input stream to ensure the accuracy and security of the input stream, and then converts the corresponding input stream into the additional service sales system (abbreviated as ASOM system, such as Figure 2 The ASOM processing module in the query module) needs to use the message format required by the module, and pass the data of the current input module to the query module.
[0075] The main purpose of the query module is to integrate data and process and construct orders as the key content in the subsequent process. In the query module, specific fields (i.e. the target fields mentioned above) will be set in the interface according to the actual business scenario. The additional service sales system will identify the target fields to determine the request type and conduct passenger order data (such as Figure 2 The PNR in the ticket is obtained and integrated, and then it will be passed to the rule management module and the external system module will be called for ticketing processing, thereby completing the ticketing operation of this target transaction request.
[0076] The rule management module manages the verification rules for the product information of the airline's additional service products. The rule management module verifies the received target transaction request, and gives an error reply and prompt for the input that is not within the scope of the verification rules. For the processable verification rules, the additional service sales system will perform rule verification in sequence according to the passenger order data constructed by the query module (i.e. the first data table, the second data table, and the third data table, etc.). If the verification passes, the target transaction request is sent to the external call module.
[0077] Calling the external system module is a key step to execute the successful transaction of the target product, which determines whether the ticket can be successfully issued. After receiving the target transaction request sent by the rule management module, the electronic miscellaneous bill management system (abbreviated as EMDS system, such as Figure 2 The EMD ticket system in the target transaction completes the ticket issuance process of the target transaction request and updates the data in the target database.
[0078] The rollback module is used to ensure the consistency of transactions. If the target transaction request fails to issue a ticket, or the target transaction request succeeds but the synchronization data fails, the target transaction request's ticket issuance process is rolled back. The rollback module can ensure the stable and smooth operation of the system, the security, integrity and reliability of the data, and avoid unnecessary losses to users.
[0079] Optionally, in the first embodiment, the process of the additional service sales system in the present application acquiring the passenger order data can be as follows: Figure 3As shown, the request type of the target transaction request is determined according to the target field in the target transaction request, and the target database is determined to be the booking host system or the departure host system. When the field value of the target field is "FieldSales", the flight segment information, passenger information and host data (i.e., the target information of the target passenger mentioned above) of the target passenger are obtained from the departure host system according to the passenger number in the target transaction request, and the target information is obtained from the order synchronization system (such as Figure 3 CTR in) to obtain the target passenger's passenger booking record (such as Figure 3 In the CBR object in the target passenger's name, the target passenger's booking record and the target passenger's target information are integrated to obtain the passenger order data. When the field value of the target field is "Online", the host direct reading tool (such as Figure 3 If the preset field in the configuration file is false, the host direct reading tool is determined to be operating normally, and the host direct reading tool is called to obtain the flight segment information, passenger information and host data of the target passenger from the booking host system (i.e., the target information of the target passenger mentioned above); if the preset field in the configuration file is true, it is determined that the host direct reading tool is faulty, and the flight segment information, passenger information and host data of the target passenger are obtained through the interface of the booking host system (i.e., the target information of the target passenger mentioned above). After obtaining the target data of the target passenger, the passenger booking record of the target passenger is obtained from the order synchronization system, and the passenger booking record of the target passenger and the target information of the target passenger are integrated to obtain the passenger order data.
[0080] Optionally, in the first embodiment, the process of the additional service sales system in the present application verifying the request content in the target transaction request can be as follows: Figure 4 First, the passenger information in the target transaction request is compared with the passenger order data queried in the target database. If the comparison is consistent, the next step of verification is performed. Then, if the target transaction request contains flight segment information, the flight segment information in the target transaction request is compared with the passenger order data of the target passenger. If the comparison is consistent, the next step of verification is performed. Finally, the first data table (such as Figure 4 CATALOG check in), the second data table (such as Figure 4 Product definition verification in) and the third data table (such as Figure 4 The IEMD protocol verification in the target transaction request is matched with the product information of the target product in the target transaction request. When the matching results of the first data table, the second data table and the third data table are not empty and unique, it is determined that the request content in the target transaction request passes the verification.
[0081] Optionally, in the first embodiment, the process of rolling back the ticket information of the additional service sales system in the present application can be as follows: Figure 5 After obtaining the target passenger's passenger order data, call the electronic miscellaneous bill management system (such as Figure 5 The ticket is issued by using the EMD in the electronic miscellaneous bill management system to obtain the ticket issuance result. If the ticket issuance result is successful, the target database to be updated is determined between the departure host system and the reservation host system according to the field value of the target field, and the target database is updated according to the ticket issuance result. If the target database update fails, the ticket issuance process executed by the electronic miscellaneous bill management system is canceled, and the ticket issuance result generated by the electronic miscellaneous bill management system is deleted.
[0082] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0083] Embodiment 2
[0084] The second embodiment of the present application also provides a product transaction processing device. It should be noted that the product transaction processing device of the second embodiment of the present application can be used to execute the product transaction processing method provided in the first embodiment of the present application. The product transaction processing device provided in the second embodiment of the present application is introduced below.
[0085] Figure 6 Schematic diagram of a device for processing product transactions according to Embodiment 2 of the present application. Figure 6 As shown, the device includes: a receiving unit 601, a query unit 602, a verification unit 603 and a first generation unit 604.
[0086] Specifically, the receiving unit 601 is used to receive a target transaction request from a message queue, wherein the target transaction request is a transaction request for a target product, the target product is an additional service product in the passenger's itinerary that is unrelated to the passenger's flight segment information, and the target transaction request includes at least a target field, which represents the request type of the target transaction request.
[0087] The query unit 602 is used to determine the target database according to the target field and query the passenger order data in the target database.
[0088] The verification unit 603 is used to verify the product information of the target product when the request data in the target transaction request is consistent with the passenger order data, and obtain a verification result.
[0089] The first generating unit 604 is configured to generate target transaction information according to the target transaction request when the verification result indicates that the verification is passed.
[0090] The product transaction processing device provided in the second embodiment of the present application receives a target transaction request from a message queue through a receiving unit 601, wherein the target transaction request is a transaction request for a target product, and the target product is an additional service product that is unrelated to the passenger's flight segment information in the passenger's itinerary, and the target transaction request includes at least a target field, and the target field represents the request type of the target transaction request; the query unit 602 determines the target database based on the target field, and queries the passenger order data in the target database; the verification unit 603 verifies the product information of the target product when the request data in the target transaction request is consistent with the passenger order data, and obtains a verification result; the first generation unit 604 generates target transaction information based on the target transaction request when the verification result indicates that the verification is passed, thereby solving the problem in the related art that when an airline sells additional service products that are unrelated to the passenger's flight segment, they must be associated with the flight segment information of the passenger order data, resulting in a more complicated process for passengers to purchase additional service products. By receiving the target transaction request initiated by the airline sales front end and obtaining the passenger transaction information and the product information of the target product, the request information in the target transaction request can be verified to ensure the data accuracy of the target transaction request. At the same time, by performing the ticketing process of the target transaction request after the data verification is successful, the needs of passengers to purchase additional service products unrelated to the flight segment without associating the flight segment information are met, thereby improving the user experience, achieving the effect of improving the execution efficiency of passengers purchasing additional service products, and further achieving the effect of improving the work efficiency of the airline.
[0091] Optionally, in the product transaction processing device provided in Example 2 of the present application, the above-mentioned query unit 602 includes: a conversion subunit, used to convert the request data contained in the target transaction request into a preset message format according to the header message of the message queue, and obtain a target message; a parsing subunit, used to parse the target message to obtain the field value of the target field and the identification information of the target passenger, wherein the target passenger is a passenger who uses the target product; a first determination subunit, used to determine the target database according to the field value of the target field; and a query subunit, used to query the passenger order data of the target passenger in the target database according to the identification information of the target passenger.
[0092] Optionally, in the product transaction processing device provided in Example 2 of the present application, the above-mentioned request type is a first type, and the above-mentioned first type is a transaction request initiated after a preset time. The above-mentioned query subunit includes: a first determination module, used to determine the first database corresponding to the first type of transaction request, and use the first database as the target database; a first query module, used to query the target information of the target passenger in the target database based on the identification information of the target passenger, wherein the target information includes at least: passenger information and order information; a first merging module, used to merge the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0093] Optionally, in the product transaction processing device provided in Example 2 of the present application, the above-mentioned request type is the second type, and the above-mentioned second type is a transaction request initiated before a preset time, and the above-mentioned query sub-unit includes: an acquisition module, used to obtain a configuration file, and determine the operating status of the host direct-reading tool through the configuration file; a second determination module, used to determine the second database corresponding to the second type of transaction request, and use the second database as the target database; a second query module, used to query the target information of the target passenger in the target database through the host direct-reading tool when the operating status is the first status, wherein the target information includes at least: passenger information and order information; a third query module, used to query the target information of the target passenger in the target database through a preset interface when the operating status is the second status, wherein the target information includes at least: passenger information and order information; a second merging module, used to merge the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0094] Optionally, in the product transaction processing device provided in Example 2 of the present application, the above-mentioned verification unit 603 includes: a second determination sub-unit, used to determine the product information of the target product in the target transaction request, wherein the product information includes at least: airline information, service name, service type, product type, sub-product type, and the airline information includes at least one of the following: first airline information, second airline information, the first airline information represents the airline information that directly sells the target product, and the second airline information represents the airline information that acts as an agent to sell the target product; a matching sub-unit, used to match the target field and the product information of the target product with the field information in a preset data table to obtain a matching result; a third determination sub-unit, used to determine the verification pass as the verification result when the matching result is not empty.
[0095] Optionally, in the product transaction processing device provided in Example 2 of the present application, the above-mentioned device also includes: an updating unit, which is used to update the target database according to the target transaction information after generating the target transaction information according to the target transaction request; a second generating unit, which is used to generate prompt information when the target transaction information fails to be generated, and return the prompt information to the target object; a processing unit, which is used to generate rollback information when the target database update fails, and process the target transaction information according to the rollback information.
[0096] Optionally, in the product transaction processing device provided in Example 2 of the present application, the above-mentioned device also includes: a judgment unit, which is used to verify the product information of the target product and, after obtaining the verification result, determine whether the target transaction request contains the passenger's flight segment information; a determination unit, which is used to determine the target database for processing the target transaction request based on the target field when the target transaction request contains the passenger's flight segment information; and a third generation unit, which is used to obtain the passenger's flight segment information in the target database, and generate the target transaction information based on the passenger's flight segment information and the target transaction request.
[0097] The product transaction processing device includes a processor and a memory. The above-mentioned receiving unit 601, query unit 602, verification unit 603 and first generation unit 604 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0098] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the convenience of the airline's business process can be improved by adjusting the kernel parameters.
[0099] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0100] Embodiment 3 of the present application provides a computer-readable storage medium on which a program is stored, and when the program is executed by a processor, a method for processing product transactions is implemented.
[0101] A fourth embodiment of the present application provides a processor, which is used to run a program, wherein the program executes a method for processing product transactions when the program is running.
[0102] like Figure 7As shown, embodiment 5 of the present application provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: receiving a target transaction request from a message queue, wherein the target transaction request is a transaction request for a target product, the target product is an additional service product in the passenger's itinerary that is unrelated to the passenger's flight segment information, and the target transaction request includes at least a target field, and the target field represents the request type of the target transaction request; determining a target database based on the target field, and querying the passenger order data in the target database; when the request data in the target transaction request is consistent with the passenger order data, verifying the product information of the target product to obtain a verification result; when the verification result indicates that the verification is passed, generating target transaction information based on the target transaction request.
[0103] When the processor executes the program, the following steps are also implemented: determining the target database based on the target field, and querying the passenger order data in the target database, including: converting the request data contained in the target transaction request into a preset message format based on the header message of the message queue to obtain the target message; parsing the target message to obtain the field value of the target field and the identification information of the target passenger, wherein the target passenger is a passenger who uses the target product; determining the target database based on the field value of the target field; and querying the passenger order data of the target passenger in the target database based on the identification information of the target passenger.
[0104] When the processor executes the program, the following steps are also implemented: the above-mentioned request type is the first type, and the above-mentioned first type is a transaction request initiated after a preset time, and the passenger order data of the target passenger is queried in the target database based on the identification information of the target passenger, including: determining the first database corresponding to the first type of transaction request, and taking the first database as the target database; querying the target information of the target passenger in the target database based on the identification information of the target passenger, wherein the target information at least includes: passenger information and order information; merging the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0105] When the processor executes the program, the following steps are also implemented: the above-mentioned request type is the second type, and the above-mentioned second type is a transaction request initiated before a preset time, and the passenger order data of the target passenger is queried in the target database based on the identification information of the target passenger, including: obtaining a configuration file, and determining the operating status of the host direct reading tool through the configuration file; determining the second database corresponding to the second type of transaction request, and using the second database as the target database; when the operating status is the first status, querying the target information of the target passenger in the target database through the host direct reading tool, wherein the target information at least includes: passenger information and order information; when the operating status is the second status, querying the target information of the target passenger in the target database through a preset interface, wherein the target information at least includes: passenger information and order information; merging the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0106] When the processor executes the program, the following steps are also implemented: verifying the product information of the target product to obtain a verification result, including: determining the product information of the target product in the target transaction request, wherein the product information includes at least: airline information, service name, service type, product type, sub-product type, and the airline information includes at least one of the following: first airline information and second airline information, the first airline information represents the airline information that directly sells the target product, and the second airline information represents the airline information that acts as an agent to sell the target product; matching the target field and the product information of the target product with the field information in the preset data table to obtain a matching result; and if the matching result is not empty, determining the verification pass as the verification result.
[0107] The processor also implements the following steps when executing the program: after generating target transaction information according to the target transaction request, the above method also includes: updating the target database according to the target transaction information; in the case where the target transaction information fails to be generated, generating prompt information, and returning the prompt information to the target object; in the case where the target database fails to be updated, generating rollback information, and processing the target transaction information according to the rollback information.
[0108] When the processor executes the program, the following steps are also implemented: after verifying the product information of the target product and obtaining the verification result, the above method also includes: determining whether the target transaction request contains the passenger's flight segment information; when the target transaction request contains the passenger's flight segment information, determining the target database for processing the target transaction request based on the target field; obtaining the passenger's flight segment information in the target database, and generating the target transaction information based on the passenger's flight segment information and the target transaction request.
[0109] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0110] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: receiving a target transaction request from a message queue, wherein the target transaction request is a transaction request for a target product, the target product is an additional service product in the passenger's itinerary that is unrelated to the passenger's flight segment information, and the target transaction request includes at least a target field, and the target field represents the request type of the target transaction request; determining a target database based on the target field, and querying the passenger order data in the target database; when the request data in the target transaction request is consistent with the passenger order data, verifying the product information of the target product to obtain a verification result; when the verification result indicates that the verification is passed, generating target transaction information based on the target transaction request.
[0111] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: determining a target database based on a target field, and querying passenger order data in the target database, including: converting request data contained in a target transaction request into a preset message format based on a header message of a message queue to obtain a target message; parsing the target message to obtain a field value of a target field and identification information of a target passenger, wherein the target passenger is a passenger who uses a target product; determining a target database based on the field value of a target field; and querying the passenger order data of the target passenger in the target database based on the identification information of the target passenger.
[0112] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: the above-mentioned request type is the first type, the above-mentioned first type is a transaction request initiated after a preset time, and the passenger order data of the target passenger is queried in the target database based on the identification information of the target passenger, including: determining the first database corresponding to the first type of transaction request, and taking the first database as the target database; querying the target information of the target passenger in the target database based on the identification information of the target passenger, wherein the target information at least includes: passenger information and order information; merging the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0113] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: the above-mentioned request type is the second type, the above-mentioned second type is a transaction request initiated before a preset time, and the passenger order data of the target passenger is queried in the target database based on the identification information of the target passenger, including: obtaining a configuration file, and determining the operating status of the host direct reading tool through the configuration file; determining the second database corresponding to the second type of transaction request, and using the second database as the target database; when the operating status is the first status, querying the target information of the target passenger in the target database through the host direct reading tool, wherein the target information at least includes: passenger information and order information; when the operating status is the second status, querying the target information of the target passenger in the target database through a preset interface, wherein the target information at least includes: passenger information and order information; merging the target information of the target passenger and the booking data of the target passenger to obtain the passenger order data of the target passenger.
[0114] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: verifying the product information of the target product to obtain a verification result, including: determining the product information of the target product in the target transaction request, wherein the product information includes at least: airline information, service name, service type, product type, sub-product type, and the airline information includes at least one of the following: first airline information, second airline information, the first airline information represents the airline information that directly sells the target product, and the second airline information represents the airline information that acts as an agent to sell the target product; matching the target field and the product information of the target product with the field information in the preset data table to obtain a matching result; and when the matching result is not empty, determining the verification pass as the verification result.
[0115] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: after generating target transaction information based on a target transaction request, the above method also includes: updating the target database based on the target transaction information; in the case where the target transaction information fails to be generated, generating prompt information, and returning the prompt information to the target object; in the case where the target database fails to be updated, generating rollback information, and processing the target transaction information based on the rollback information.
[0116] When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: after verifying the product information of the target product and obtaining the verification result, the above method also includes: determining whether the target transaction request contains the passenger's flight segment information; when the target transaction request contains the passenger's flight segment information, determining the target database for processing the target transaction request based on the target field; obtaining the passenger's flight segment information in the target database, and generating the target transaction information based on the passenger's flight segment information and the target transaction request.
[0117] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0118] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0119] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0121] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0122] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0123] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0124] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0125] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0126] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for processing product transactions, characterized in that: include: Receive a target transaction request from a message queue, wherein the target transaction request is a transaction request for a target product, the target product is an additional service product in a passenger's itinerary that is unrelated to passenger segment information, and the target transaction request at least includes a target field, and the target field represents a request type of the target transaction request; Determine a target database according to the target field, and query the passenger order data in the target database; When the request data in the target transaction request is consistent with the passenger order data, verifying the product information of the target product to obtain a verification result; When the verification result indicates that the verification is passed, target transaction information is generated according to the target transaction request.
2. The method according to claim 1, characterized in that Determining a target database according to the target field, and querying the passenger order data in the target database, including: Converting the request data contained in the target transaction request into a preset message format according to the header message of the message queue to obtain a target message; Parsing the target message to obtain the field value of the target field and identification information of the target passenger, wherein the target passenger is a passenger who uses the target product; Determining the target database according to the field value of the target field; The passenger order data of the target passenger is queried in the target database according to the identification information of the target passenger.
3. The method according to claim 2, characterized in that The request type is a first type, which is a transaction request initiated after a preset time, and querying the passenger order data of the target passenger in the target database according to the identification information of the target passenger, including: Determine a first database corresponding to the first type of transaction request, and use the first database as the target database; Querying the target information of the target passenger in the target database according to the identification information of the target passenger, wherein the target information at least includes: passenger information and order information; The target information of the target passenger and the booking data of the target passenger are combined to obtain the passenger order data of the target passenger.
4. The method according to claim 2, characterized in that: The request type is the second type, which is a transaction request initiated before a preset time, and querying the passenger order data of the target passenger in the target database according to the identification information of the target passenger, including: Obtaining a configuration file, and determining the running status of the host direct reading tool through the configuration file; determining a second database corresponding to the second type of transaction request, and using the second database as the target database; When the operation state is the first state, querying the target information of the target passenger in the target database through the host direct reading tool, wherein the target information at least includes: passenger information and order information; When the operating state is the second state, querying the target information of the target passenger in the target database through a preset interface, wherein the target information at least includes: passenger information and order information; The target information of the target passenger and the booking data of the target passenger are combined to obtain the passenger order data of the target passenger.
5. The method according to claim 1, characterized in that Verify the product information of the target product to obtain a verification result, including: Determine product information of the target product in the target transaction request, wherein the product information at least includes: airline information, service name, service type, product type, and sub-product type, and the airline information at least includes one of the following: first airline information and second airline information, wherein the first airline information represents airline information that directly sells the target product, and the second airline information represents airline information that acts as an agent to sell the target product; Matching the target field and the product information of the target product with the field information in the preset data table to obtain a matching result; In the case that the matching result is not empty, the verification is determined to be passed as the verification result.
6. The method according to claim 1, characterized in that After generating target transaction information according to the target transaction request, the method further includes: updating the target database according to the target transaction information; In the case where the target transaction information fails to be generated, generating prompt information, and returning the prompt information to the target object; In the case that the target database fails to be updated, rollback information is generated, and the target transaction information is processed according to the rollback information.
7. The method according to claim 1, characterized in that After verifying the product information of the target product and obtaining the verification result, the method further includes: Determining whether the target transaction request includes the passenger's flight segment information; In the case where the target transaction request includes the passenger's flight segment information, determining the target database for processing the target transaction request according to the target field; The flight segment information of the passenger is obtained in the target database, and the target transaction information is generated according to the flight segment information of the passenger and the target transaction request.
8. A product transaction processing device, characterized in that: include: A receiving unit, configured to receive a target transaction request from a message queue, wherein the target transaction request is a transaction request for a target product, the target product is an additional service product in a passenger's itinerary that is unrelated to the passenger's flight segment information, and the target transaction request at least includes a target field, and the target field represents a request type of the target transaction request; A query unit, used to determine a target database according to the target field, and query the passenger order data in the target database; a verification unit, configured to verify the product information of the target product when the request data in the target transaction request is consistent with the passenger order data, and obtain a verification result; The first generating unit is configured to generate target transaction information according to the target transaction request when the verification result indicates that the verification is passed.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, the method for processing product transactions described in any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the product transaction processing method described in any one of claims 1 to 7.