Data processing method and device, computer readable storage medium and electronic equipment
By obtaining aviation protocol and agent group information, establishing a matching relationship between aviation protocol and agent group, and generating freight rate release data, the problem of excessive system resources occupies when freight rate release data is generated in the existing technology, and improving resource occupation and processing efficiency is achieved.
Patent Information
- Application Number
- CN202411782602.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-05
AI Technical Summary
In the prior art, when generating freight release data for proxy objects, there is a problem of occupying a large amount of system resources, which leads to waste of database resources and the time to generate and generate published data.
By obtaining multiple aviation protocols and protocol information of the target airline, as well as multiple agent groups, a matching relationship between the target airline protocol and the target agent group is established to generate target release data. This method uses one target publishing data to characterize the matching relationship between multiple freight data and the proxy object, reducing the number of publishing data that needs to be generated.
It effectively reduces the use of database resources used to store published data, and reduces the use of processing resources that depend on when generating published data, and improves the release efficiency of freight data.
Smart Images

Figure CN119728805A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a data processing method, device, computer-readable storage medium and electronic device. Background Art
[0002] With the continuous development of the economy, people's demand for travel has increased, and the demand for air passenger transport has increased. Airlines have increased their capacity, expanded their route networks, and increased flight frequencies. In order to better adapt to the rapid changes in the market, various airlines have introduced a variety of fare products, and they are quickly updated at any time according to the sales response of the market. Therefore, the flexible adjustment of fares has led to an increase in the amount of fare release data. At present, domestic private fares are published for different agent objects (such as agents, agents) according to the price dimension, that is, each fare corresponds to one or more release data (that is, the correspondence between the fare and the agent object). For example: if there are 100 fares that need to be published to 5 agents, then the published data is the Cartesian product of the number of fares and the number of agent objects, that is, 500. The amount of published data is extremely large in the system, which will waste a lot of database resources, and it takes a long time to generate the published data, so there is a problem of occupying a lot of system resources.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a data processing method, device, computer-readable storage medium and electronic device to at least solve the technical problem of occupying a large amount of system resources when generating freight rate publishing data for an agent object in the related technology.
[0005] According to one aspect of an embodiment of the present invention, a data processing method is provided, comprising: obtaining multiple air agreements and protocol information of the air agreements of a target airline, and obtaining multiple agent groups, wherein the air agreement includes multiple fare data of the target airline, the protocol information includes the effective time range and publishing status of the air agreement, and the agent group includes multiple agent objects; upon receiving a query request for an agreement to be published from a user, determining the air agreement to be published from the multiple air agreements according to the effective time range and publishing status in the protocol information; upon receiving a request to generate publishing data from the user, determining a target air agreement from the air agreements to be published according to the request to generate publishing data, and determining a target agent group from the multiple agent groups according to the request to generate publishing data; establishing a matching relationship between the target air agreement and the target agent group, and obtaining target publishing data.
[0006] Furthermore, the publishing status includes a published status and a to-be-published status, wherein the data processing method further includes: determining an ineffective aviation agreement from multiple aviation agreements based on an effective time range and a current time to obtain a candidate aviation agreement; and determining the candidate aviation agreement whose publishing status is to-be-published status as the to-be-published aviation agreement.
[0007] Furthermore, the data processing method also includes: determining whether there is authorization information for the proxy object in the target proxy group in the request for generating the published data, wherein the authorization information is used to indicate that the aviation agreement to be published is allowed to be published to the proxy object, or that the aviation agreement to be published is prohibited to be published to the proxy object; if there is no authorization information for the proxy object in the target proxy group, a matching relationship is established between the target aviation agreement and the target proxy group to obtain the target published data; if there is authorization information for the proxy object in the target proxy group, a first proxy object is determined from the target proxy group based on the authorization information; a matching relationship is established between the target aviation agreement and the target proxy group, and the identifier of the first proxy object is recorded in the matching relationship to obtain the target published data.
[0008] Furthermore, the data processing method also includes: after obtaining the target published data, in the case of receiving a fare query request of the second proxy object, determining the object identifier, target route, target space, and take-off time range of the second proxy object from the fare query request; screening the fare data in multiple aviation agreements according to the target route, target space, and take-off time range to obtain multiple first fare data; screening the multiple first fare data according to the publication status of the aviation agreements to which the multiple first fare data belong to obtain multiple second fare data; screening the multiple second fare data according to the object identifier and target published data of the second proxy object to obtain at least one third fare data; determining a request processing result for the fare query request based on the at least one third fare data, and feeding back the request processing result to the second proxy object.
[0009] Furthermore, the data processing method also includes: determining fare data including target routes and target space from multiple aviation agreements to obtain multiple candidate first fare data; for each candidate first fare data, if the take-off time range is within the valid time range in the candidate first fare data, determining the candidate first fare data as the first fare data to obtain multiple first fare data.
[0010] Furthermore, the publishing status includes a published status and a to-be-published status, wherein the data processing method further comprises: determining the first freight rate data in the published status among the plurality of first freight rate data as the second freight rate data, so as to obtain the plurality of second freight rate data.
[0011] Furthermore, the data processing method also includes: determining, according to the target published data, second fare data matching the second agent object from multiple second fare data, and obtaining at least one target second fare data; obtaining a target sales channel matching the agent group to which the second agent object belongs, wherein the target sales channel refers to a channel through which the target airline allows the agent objects in the agent group to sell fares; and when the target sales channel is the same as the sales channel in the fare query request, determining at least one target second fare data as at least one third fare data.
[0012] According to another aspect of an embodiment of the present invention, there is also provided a data processing device, including: an acquisition module, used to acquire multiple air agreements of a target airline and protocol information of the air agreements, and acquire multiple agent groups, wherein the air agreement includes multiple fare data of the target airline, the protocol information includes the effective time range and publishing status of the air agreement, and the agent group includes multiple agent objects; a first determination module, used to determine the air agreement to be published from multiple air agreements according to the effective time range and publishing status in the protocol information when receiving a query request for the agreement to be published from a user; a second determination module, used to determine the target air agreement from the air agreements to be published according to the publishing data generation request when receiving a publishing data generation request from the user, and determine the target agent group from multiple agent groups according to the publishing data generation request; a processing module, used to establish a matching relationship between the target air agreement and the target agent group to obtain the target publishing data.
[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned data processing method when running.
[0014] According to another aspect of an embodiment of the present invention, an electronic device is also provided, which includes one or more processors; a memory for storing one or more programs, so that when the one or more programs are executed by the one or more processors, the one or more processors are implemented to run the programs, wherein the programs are configured to execute the above-mentioned data processing method when running.
[0015] In an embodiment of the present invention, a method of generating fare publishing data based on airline agreements and agent groups is adopted. By obtaining multiple airline agreements of a target airline and the protocol information of the airline agreements, and obtaining multiple agent groups, and then, when receiving a query request for a to-be-published agreement from a user, the to-be-published airline agreement is determined from multiple airline agreements according to the effective time range and publishing status in the protocol information, and then, when receiving a request for generating publishing data from a user, the target airline agreement is determined from the to-be-published airline agreements according to the request for generating publishing data, and the target agent group is determined from multiple agent groups according to the request for generating publishing data, thereby establishing a matching relationship between the target airline agreement and the target agent group, and obtaining the target publishing data. Among them, the airline agreement includes multiple fare data of the target airline, the protocol information includes the effective time range and publishing status of the airline agreement, and the agent group includes multiple agent objects.
[0016] In the above process, by setting the airline agreement to include multiple fare data of the target airline, the agent group includes multiple agent objects, and when receiving the user's request to generate published data, a matching relationship between the target airline agreement and the target agent group is established to obtain the target published data, thereby achieving the matching relationship between multiple fare data and agent objects represented by one target published data, thereby effectively reducing the number of published data that needs to be generated, and further effectively reducing the occupancy of database resources used to store published data, as well as reducing the occupancy of processing resources relied on when generating published data.
[0017] It can be seen that the solution provided in the present application achieves the purpose of generating fare publishing data based on airline agreements and agent groups, thereby achieving the technical effect of reducing the occupation of system resources, and further solving the technical problem of occupying a large amount of system resources when the relevant technology generates fare publishing data for agent objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0019] Figure 1 is a schematic diagram of an optional data processing method according to an embodiment of the present invention Figure 1 ;
[0020] Figure 2 is a schematic diagram of an optional data processing method according to an embodiment of the present invention Figure 2 ;
[0021] Figure 3 is a schematic diagram of an optional data processing device according to an embodiment of the present invention;
[0022] Figure 4 is a schematic diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards in the relevant regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0026] Example 1
[0027] According to an embodiment of the present invention, an embodiment of a data processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0028] Figure 1 is a schematic diagram of an optional data processing method according to an embodiment of the present invention Figure 1 ,like Figure 1 As shown, the method comprises the following steps:
[0029] Step S101, obtaining multiple aviation agreements and agreement information of the aviation agreements of the target airline, and obtaining multiple agent groups, wherein the aviation agreement includes multiple freight rate data of the target airline, the agreement information includes the effective time range and release status of the aviation agreement, and the agent group includes multiple agent objects.
[0030] Optionally, electronic devices, application systems, servers and other devices can be used as the execution subject of the present application. In this embodiment, the target processing system is used as the execution subject to execute the data processing method. Among them, the above-mentioned airline company can be understood as an airline company.
[0031] In some embodiments, the process of maintaining the agreement information of the target airline is described. Optionally, the agreement information includes, but is not limited to, the airline to which the aviation agreement belongs, the agreement number, the agreement effective date, the agreement deadline, the release status, the business department, and other information. Among them, the time range between the aforementioned agreement effective date and the agreement deadline is the effective time range of the aviation agreement.
[0032] Optionally, when creating or updating agreement information, the target airline will perform a data validity check on the agreement information. The data validity check includes but is not limited to: (1) verifying that the agreement number is limited to 15 bytes; (2) verifying that the agreement effective date must be later than the current date; (3) verifying that the agreement expiration date must be later than or equal to the agreement effective date; (4) verifying that the publication status must be unpublished. After the above checks are passed, the target airline can save the agreement information to the target storage area, which can be a freight rate data cluster.
[0033] For example, assuming that the airline is XO, the agreement information maintained by the airline can be shown in Table 1:
[0034] Table 1
[0035]
[0036] In some embodiments, the process of maintaining an aviation agreement by a target airline is described. Optionally, the aviation agreement includes multiple fare data of the target airline, and the fare data includes but is not limited to the airline to which the fare data belongs, the agreement number to which the fare data belongs, the fare data effective date, the fare data expiration date, the earliest travel date, the latest travel date, the origin code, the destination code, the booking class, and the adult fare corresponding to the booking class.
[0037] In some embodiments, the airline to which the fare data belongs is the same as the airline in the agreement information of the aviation agreement to which the fare data belongs.
[0038] In some embodiments, the time range between the effective date of the fare data and the deadline of the fare data is within the time range between the effective date and the deadline of the agreement in the aviation agreement to which the fare data belongs. For example, assuming that the effective date of the agreement is 20231001 and the deadline of the agreement is 20241231, the effective date of the fare data can be 20241001, and the deadline of the fare data is 20241031. For another example, assuming that the effective date of the agreement is 20231001 and the deadline of the agreement is 20241231, the effective date of the fare data can be 20231001, and the deadline of the fare data is 20241231.
[0039] Optionally, the time range between the earliest travel date and the latest travel date is the effective time range of the cabin price.
[0040] Optionally, when creating or updating the fare data in the aviation agreement, the target airline will perform a data validity check on the fare data. The data validity check includes but is not limited to: (1) verifying that the agreement number is not in the unpublished or ineffective state; (2) verifying that the fare data effective date must be later than the current date; (3) verifying that the fare data deadline must be later than or equal to the fare data effective date; (4) verifying that the booking class can only be a single uppercase letter; (5) verifying that the maximum adult fare can only be 99999.999. After the above checks are passed, the target airline can save the fare data to the target storage area, which can be a fare data cluster.
[0041] For example, the freight rate data maintained by airline XO under the agreement numbered "Agreement 02" can be shown in Table 2:
[0042] Table 2
[0043]
[0044] The freight rate data maintained by airline XO under the agreement numbered "Agreement 03" can be shown in Table 3:
[0045] Table 3
[0046]
[0047] Optionally, the target processing system may obtain multiple aviation agreements of the target airline and protocol information of the aviation agreements from the above-mentioned target storage area.
[0048] In some embodiments, the process of maintaining an agent group by a target airline is described. The group information of the agent group includes but is not limited to the airline to which the group belongs, the group number, the group name, the number (i.e., the identifier) of the agent object in the agent group, the channel (e.g., online, offline), etc. Among them, the agent object can be an agent or an agent.
[0049] Optionally, when creating or updating an agent group, the target airline will perform a data validity check on the agent group's group information. The data validity check includes but is not limited to: (1) verifying that the group number cannot be empty; (2) verifying that the group number cannot be more than 37 bytes; (3) verifying that the agent number exists; and (4) verifying that the channel exists.
[0050] After the above verification is passed, the data is saved in the freight rate data cluster. After the above verification is passed, the target airline can save the freight rate data to the target storage area, which can be the freight rate data cluster.
[0051] For example, the group information of two newly created agent groups of airline XO can be shown in Table 4:
[0052] Table 4
[0053]
[0054] Optionally, the target processing system may obtain multiple proxy groups according to the group information in the target storage area.
[0055] Step S102, upon receiving a query request for a to-be-published agreement from a user, determining the to-be-published aviation agreement from a plurality of aviation agreements according to the effective time range and the publishing status in the agreement information.
[0056] Optionally, in some embodiments, the user refers to an administrator in the target airline, and the user can customize the release of each aviation agreement, for example, determine the release method according to its own fare strategy.
[0057] In this embodiment, the release of the freight rate data can be understood as a process of establishing a matching relationship between the freight rate data and the proxy object, which does not refer to a process of sending the freight rate data to the proxy object.
[0058] Optionally, the query request for protocols to be published is used to request a query for protocols to be published. When the target processing system receives the query request for protocols to be published, it can determine the effective time range and the publishing status from the protocol information of multiple aviation protocols, thereby determining the aviation protocol to be published from the multiple aviation protocols based on the effective time range and the publishing status.
[0059] For example, the target processing system may determine an unpublished, uneffective aviation agreement containing freight rate data as an aviation agreement to be published.
[0060] Step S103, upon receiving a user's publishing data generation request, determining a target aviation agreement from the aviation agreements to be published according to the publishing data generation request, and determining a target agent group from multiple agent groups according to the publishing data generation request.
[0061] Optionally, the publishing data generation request includes information of the target aviation protocol and information of the target proxy group, the information of the target aviation protocol may refer to the protocol number of the target aviation protocol, and the information of the target proxy group may refer to the group number of the target proxy group. Therefore, the target processing system may determine the target aviation protocol and the target proxy group according to the information of the target aviation protocol and the information of the target proxy group.
[0062] Step S104, establishing a matching relationship between the target aviation protocol and the target agent group, and obtaining target release data.
[0063] Optionally, after determining the target aviation protocol and the target agent group, the target processing system may establish a matching relationship between the target aviation protocol and the target agent group, obtain target publication data, and store the generated publication data into the target storage area.
[0064] Optionally, establishing a matching relationship between a target air agreement and a target agent group is equivalent to a process of quickly establishing a matching relationship between freight rate data and agent objects.
[0065] Optionally, the target processing system determines to complete the release of the fare data in the target air agreement when the target release data is obtained. That is, in this embodiment, the release of the fare data can be understood as the process of establishing a matching relationship between the fare data and the proxy object, which does not refer to the process of sending the fare data to the proxy object. It should be noted that after the matching relationship between a certain fare data and the proxy object is established, that is, after the certain fare data is released to the proxy object, it is equivalent to determining that the proxy object is allowed to sell the fare in the fare data, that is, determining that the proxy object is allowed to sell air tickets to passengers based on the fare data.
[0066] Optionally, after obtaining the target release data, the target processing system may update the release status in the protocol information of the target aviation protocol to released.
[0067] For example, assuming that the protocol numbered "Protocol 02" in Table 1 is determined as the target aviation protocol, and the group in Table 4 is determined as the target proxy group, the generated target release data may be as shown in Table 5:
[0068] Table 5
[0069] airline Agreement Number Group Number Sales restrictions Change restrictions XO Protocol 02 Group 01 allow allow XO Protocol 02 Group 02 allow Not allowed
[0070] Optionally, the user can set different sales and change permissions for different groups. The agreement with the agreement number "Agreement 03" in Table 1 above is not published, so the publishing status of the agreement with the agreement number "Agreement 03" is still "to be published", which can also be called "unpublished".
[0071] Optionally, the updated protocol information of the protocol with the protocol number "Protocol 02" may be as shown in Table 6:
[0072] Table 6
[0073]
[0074] It should be noted that, in the process of generating the freight rate release data, by avoiding directly establishing a matching relationship between the freight rate data and the proxy object, but establishing a matching relationship between the target airline agreement and the target proxy group, the storage of redundant data can be effectively reduced. For example, if 100 freight rate data are to be released to 5 proxy objects, then each operation data needs to establish a matching relationship with the 5 proxy objects respectively, that is, the number of published data is 500. In this embodiment, these 100 freight rate data can be combined into one airline agreement, and the 5 proxy objects can be combined into one proxy group, so that the number of published data is 1. This can greatly save database resources and save processing resources required to generate and release data, thereby improving the efficiency of freight rate data release and data push efficiency in subsequent applications.
[0075] Based on the scheme defined in the above steps S101 to S104, it can be known that in an embodiment of the present invention, a method of generating fare publishing data based on airline agreements and agent groups is adopted, by obtaining multiple airline agreements of the target airline and the protocol information of the airline agreements, and obtaining multiple agent groups, and then, when receiving the user's query request for the to-be-published agreement, according to the effective time range and publishing status in the protocol information, the to-be-published airline agreement is determined from the multiple airline agreements, and then, when receiving the user's request to generate publishing data, the target airline agreement is determined from the to-be-published airline agreements according to the request to generate publishing data, and the target agent group is determined from the multiple agent groups according to the request to generate publishing data, thereby establishing a matching relationship between the target airline agreement and the target agent group, and obtaining the target publishing data. Among them, the airline agreement includes multiple fare data of the target airline, the protocol information includes the effective time range and publishing status of the airline agreement, and the agent group includes multiple agent objects.
[0076] It is easy to notice that in the above process, by setting the airline agreement to include multiple fare data of the target airline, the agent group includes multiple agent objects, and when receiving the user's request to generate published data, a matching relationship between the target airline agreement and the target agent group is established to obtain the target published data, thereby achieving the matching relationship between multiple fare data and agent objects represented by one target published data, thereby effectively reducing the number of published data that needs to be generated, and then effectively reducing the occupancy of database resources used to store published data, as well as reducing the occupancy of processing resources relied on when generating published data.
[0077] It can be seen that the solution provided in the present application achieves the purpose of generating fare publishing data based on airline agreements and agent groups, thereby achieving the technical effect of reducing the occupation of system resources, and further solving the technical problem of occupying a large amount of system resources when the relevant technology generates fare publishing data for agent objects.
[0078] In an optional embodiment, the publishing status includes a published status and a to-be-published status, wherein, in the process of determining the to-be-published aviation agreement from multiple aviation agreements based on the effective time range and the publishing status in the protocol information, the target processing system can determine the ineffective aviation agreements from multiple aviation agreements based on the effective time range and the current time, obtain the candidate aviation agreements, and then determine the candidate aviation agreements whose publishing status is the to-be-published status as the to-be-published aviation agreements.
[0079] Optionally, the target processing system determines the aviation agreement whose starting time point of the effective time range is later than the current time as an ineffective aviation agreement. Thereafter, the candidate aviation agreement whose publishing status is the pending publishing status is determined as the pending publishing aviation agreement.
[0080] For example, if the current time is January 1, 2024, the aviation protocols to be released located from the aviation protocols in Table 1 are shown in Table 7:
[0081] Table 7
[0082] airline Agreement Number Effective Date expiration date Release Status XO Protocol 02 20241001 20241231 Unpublished XO Protocol 03 20241101 20241231 Unpublished
[0083] It should be noted that, through the above process, accurate determination of the aviation agreement to be issued is achieved.
[0084] In an optional embodiment, in the process of establishing a matching relationship between the target aviation protocol and the target proxy group and obtaining the target published data, the target processing system can determine whether there is authorization information for the proxy object in the target proxy group in the published data generation request. If there is no authorization information for the proxy object in the target proxy group, a matching relationship between the target aviation protocol and the target proxy group is established to obtain the target published data. If there is authorization information for the proxy object in the target proxy group, a first proxy object is determined from the target proxy group based on the authorization information, thereby establishing a matching relationship between the target aviation protocol and the target proxy group, and recording the identifier of the first proxy object in the matching relationship to obtain the target published data. The authorization information is used to indicate that the aviation protocol to be published is allowed to be published to the proxy object, or that the aviation protocol to be published is prohibited to be published to the proxy object.
[0085] Optionally, when publishing the aviation agreement to be published to the target proxy group, the user can specify in a more fine-grained manner which proxy objects in the target proxy group to publish to. Therefore, after receiving the publishing data generation request, the target processing system can determine whether there is authorization information for the proxy objects in the target proxy group in the publishing data generation request. If not, it is determined to publish the aviation agreement to be published to all persons in the target proxy group. Therefore, the matching relationship between the target aviation agreement and the target proxy group can be directly established to obtain the target publishing data.
[0086] If so, if there is authorization information for the proxy object in the target proxy group, a first proxy object is determined from the target proxy group based on the authorization information. For example, if the authorization information indicates that the aviation agreement to be published is allowed to be published to the proxy object, the proxy object pointed to by the authorization information in the target proxy group is determined as the first proxy object, and if the authorization information indicates that the aviation agreement to be published is prohibited to be published to the proxy object, the proxy object in the target proxy group that is not pointed to by the authorization information is determined as the first proxy object.
[0087] Afterwards, the target processing system may establish a matching relationship between the target aviation protocol and the target agent group, and record the identifier of the first agent object in the matching relationship to obtain the target release data.
[0088] It should be noted that, through the above process, the flexibility of the content of the published data is improved while ensuring the generation efficiency of the published data, thereby effectively improving the applicability of the method provided in this application.
[0089] In an optional embodiment, the fare data includes routes, cabin space, cabin space price and valid time range of the cabin space price. After obtaining the target publication data, the target processing system can determine the object identifier, target route, target cabin space and take-off time range of the second proxy object from the fare query request when receiving the fare query request of the second proxy object, and then filter the fare data in multiple aviation agreements according to the target route, target cabin space and take-off time range to obtain multiple first fare data, and then filter the multiple first fare data according to the publication status of the aviation agreements to which the multiple first fare data belong to obtain multiple second fare data, and filter the multiple second fare data according to the object identifier and target publication data of the second proxy object to obtain at least one third fare data, thereby determining the request processing result for the fare query request based on the at least one third fare data, and feeding back the request processing result to the second proxy object.
[0090] Optionally, the passenger may query the fare at the second proxy object, and the second proxy object may generate a fare query request for the target processing system based on the fare query request of the passenger when receiving the fare query request of the passenger. The fare query request of the passenger includes the target route, target class, and departure time range, and the fare query request of the second proxy object includes the object identifier of the second proxy object, the target route, target class, and departure time range.
[0091] For example, a passenger requests to purchase a ticket from the second agent on November 1, 2024, with a flight date of November 15, 2024. Then an optional fare inquiry request for the second agent may include the following content: the route is Beijing-Shanghai, the booking class is Y class, the agent number is XXX001, the sales channel is the online channel, and the flight date is 20241115.
[0092] Optionally, when receiving the fare query request from the second agent object, the target processing system extracts the target route, target space, and take-off time range from the fare query request from the second agent object, and then, based on the target route, target space, and take-off time range, filters out fare data with the same route, the same space, and an effective time range that includes the take-off time range from multiple aviation agreements to obtain first fare data.
[0093] Afterwards, the target processing system may verify the release status of the aviation agreement to which the first freight rate data belongs, so as to filter and obtain a plurality of second freight rate data according to the verification result.
[0094] Next, the target processing system may filter the plurality of second freight rate data according to the object identifier of the second proxy object and the target published data to obtain at least one third freight rate data. For example, if a certain second freight rate data is published to the second proxy object, the second freight rate data is determined to be the third freight rate data. On the contrary, if a certain second freight rate data is not published to the second proxy object, the second freight rate data is determined not to be the third freight rate data. For another example, the target processing system may also filter the second freight rate data based on the publishing relationship and in combination with the sales channel to obtain the third freight rate data.
[0095] After obtaining at least one third freight rate data, the target processing system may determine a request processing result for the freight rate query request based on the at least one third freight rate data, and feedback the request processing result to the second proxy object. For example, the request processing result is generated based on all contents in the third freight rate data, and for another example, the request processing result is generated based on the space price in the third freight rate data.
[0096] Optionally, after the target processing system feeds back the request processing result to the second proxy object, the second proxy object may feed back the cabin price in the request processing result to the passenger in a graphical manner, so that the passenger can purchase a ticket based on the cabin price.
[0097] It should be noted that, through the above process, when a fare query request from the second agent object is received, accurate and marketable fares are fed back to the second agent object based on the target release data, thereby improving the passenger experience.
[0098] In an optional embodiment, in the process of screening the fare data in multiple aviation agreements according to the target route, target class and take-off time range to obtain multiple first fare data, the target processing system can determine the fare data including the target route and target class from the multiple aviation agreements to obtain multiple candidate first fare data, so that for each candidate first fare data, if the take-off time range is within the valid time range in the candidate first fare data, the candidate first fare data is determined as the first fare data to obtain multiple first fare data.
[0099] For example, assume that the fare query request of the second proxy object includes the following content: the route (i.e., the target route) is Beijing-Shanghai, the booking class (i.e., the target class) is Y class, and the flight date (i.e., the departure time range) is 20241115, that is, November 15, 2024. Then, the fare data including the target route and the target class can be determined from multiple aviation agreements to obtain multiple candidate first fare data. After that, the candidate first fare data whose departure time range is within the valid time range in the candidate first fare data is found to determine it as the first fare data. For example, if the valid time range is 20230112-20230612, that is, from January 12, 2023 to June 12, 2023, the above departure time range is not within the valid time range. If the valid time is 20240101-20241201, the above departure time range is within the valid time range.
[0100] Based on the target route, target space and departure time range in the above example freight rate query request, the first freight rate data shown in Table 8 can be screened out from the freight rate data shown in Table 2 and Table 3:
[0101] Table 8
[0102]
[0103] Optionally, for each candidate first fare data, if the departure time range is not within the valid time range of the candidate first fare data, the candidate first fare data is not determined as the first fare data.
[0104] It should be noted that, through the above process, effective screening of fare data that meets passengers' needs for routes, cabin space and take-off time is achieved.
[0105] In an optional embodiment, the publishing status includes a published status and a to-be-published status, wherein, in the process of screening the multiple first fare data according to the publishing status of the aviation agreement to which the multiple first fare data belong to obtain the multiple second fare data, the target processing system can determine the first fare data in the published state among the multiple first fare data as the second fare data to obtain the multiple second fare data.
[0106] For example, assuming that protocol 02 in Table 2 and Table 3 is in the published state and protocol 03 is in the pending state, it can be determined that the first freight rate data in Table 8 is the second freight rate data, and the second freight rate data in Table 8 is not the second freight rate data.
[0107] It should be noted that, through the above process, effective screening of fare data that can be sold to passengers is achieved.
[0108] In an optional embodiment, in the process of screening multiple second fare data according to the object identifier of the second agent object and the target publication data to obtain at least one third fare data, the target processing system can determine the second fare data matching the second agent object from the multiple second fare data according to the target publication data to obtain at least one target second fare data, and then obtain the target sales channel matching the agent group to which the second agent object belongs, wherein the target sales channel refers to the channel through which the target airline allows the agent objects in the agent group to sell fares, so that when the target sales channel is the same as the sales channel in the fare query request, the at least one target second fare data is determined as the at least one third fare data.
[0109] Optionally, assuming that the freight rate query request of the second agent object includes the following content: the agent number is XXX001, and the sales channel is an online channel, then for each second freight rate data, the target processing system can determine whether the second freight rate data matches the "agent number XXX001" according to the target release data. If it matches, the second freight rate data is determined as the target second freight rate data; if it does not match, the second freight rate data is not determined as the target second freight rate data.
[0110] Optionally, after determining the target second freight rate data, the target processing system may determine the target sales channel matched by the agent group to which the second agent object belongs according to the group information. For example, in the above Table 4, the target sales channel matched by the group numbered XXX001 is an online channel. Therefore, the target processing system may determine whether the sales channel in the freight rate query request is an online channel. If so, the target second freight rate data is determined as the third freight rate data. If not, the target second freight rate data is not determined as the third freight rate data.
[0111] It should be noted that by screening the freight rate data according to the corresponding relationship between the agent object and the freight rate data, the freight rate that the agent object is allowed to sell is determined in a targeted manner, thereby further improving the accuracy of determining the third freight rate data.
[0112] In an optional embodiment, according to Figure 2 An optional data processing method of this embodiment is described. Figure 2 is a schematic diagram of an optional data processing method according to an embodiment of the present invention Figure 2 ,like Figure 2As shown, before the fare is released, the target airline can maintain the data, and the target airline can log in to the fare release front end (i.e., the target processing system front end) to maintain the agreement data (i.e., agreement information), fare data, group data, and corresponding sales rule data. In the fare release stage, the target airline is supported to publish a protocol containing fare data to one or more groups containing different agent objects, and it can specify whether the agent objects in the group are allowed to sell and whether the permission to change is allowed. Among them, the agreement data, fare data, group data, fare release data, sales rules and other data maintained by the target airline through the private fare front end can be stored in the fare data cluster. For example, the target airline locates the unpublished, ineffective and private fare data-containing agreements based on various query conditions such as the agreement number, effective status, and release status, and publishes them to the group containing the designated agent number based on the agreement itself. The generated release data is stored in the fare data cluster, and the release status of the agreement is updated to be released.
[0113] like Figure 2 As shown, after the freight rate is released, the freight rate calculation stage begins. In the freight rate calculation stage, the freight rate release system (i.e., the target processing system) is used to cache and load the data in the freight rate data cluster required for the freight rate calculation stage, and receive the calculation request (i.e., the freight rate query request) from the freight rate sales terminal (i.e., the terminal held by the agent object). According to the route, booking class, agent number, sales channel and other information in the request, the cache is searched for the freight rate data that meets the conditions, and then the release status of the agreement to which the freight rate belongs is verified, and the agent information and permissions contained in the agreement release group are verified (i.e., release data verification), so that after the verification is passed, the calculation result is returned to the freight rate sales terminal. Optional, such as Figure 2 As shown, the fare sales terminal is used to receive fare calculation requests from passengers from different channels, send calculation requests to the fare publishing system according to the calculation requests of the passengers to request fare inquiries, and return the fare calculation results to the fare sales terminal, which is finally displayed to the passengers in a graphical form by the fare sales terminal. Optionally, passengers can log in through various sales terminals such as mobile or computer applications, select the departure destination and flight date, trigger the domestic fare calculation request, and display the calculation results to passengers in a graphical form through different sales terminals.
[0114] It can be seen that the solution provided in the present application achieves the purpose of generating fare publishing data based on airline agreements and agent groups, thereby achieving the technical effect of reducing the occupation of system resources, and further solving the technical problem of occupying a large amount of system resources when the relevant technology generates fare publishing data for agent objects.
[0115] Example 2
[0116] According to an embodiment of the present invention, an embodiment of a data processing device is provided, wherein: Figure 3 is a schematic diagram of an optional data processing device according to an embodiment of the present invention. Figure 3 As shown, the device comprises:
[0117] The acquisition module 301 is used to acquire multiple air agreements of the target airline and the agreement information of the air agreements, and acquire multiple agent groups, wherein the air agreement includes multiple freight rate data of the target airline, the agreement information includes the effective time range and release status of the air agreement, and the agent group includes multiple agent objects;
[0118] The first determination module 302 is used to determine the aviation agreement to be published from multiple aviation agreements according to the effective time range and the publishing status in the agreement information when receiving the query request of the agreement to be published by the user;
[0119] The second determination module 303 is used to determine the target air protocol from the air protocols to be published according to the publishing data generation request when receiving the publishing data generation request from the user, and determine the target agent group from the multiple agent groups according to the publishing data generation request;
[0120] The processing module 304 is used to establish a matching relationship between the target aviation protocol and the target agent group to obtain target release data.
[0121] It should be noted that the above-mentioned acquisition module 301, first determination module 302, second determination module 303 and processing module 304 correspond to steps S101 to S104 in the above-mentioned embodiment, and the examples and application scenarios implemented by the four modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.
[0122] Optionally, the first determination module also includes: a first determination sub-module, used to determine an ineffective aviation agreement from multiple aviation agreements based on the effective time range and the current time to obtain a candidate aviation agreement; and a second determination sub-module, used to determine a candidate aviation agreement whose publishing status is a pending publishing status as a pending aviation agreement.
[0123] Optionally, the second determination module also includes: a judgment submodule, which is used to judge whether there is authorization information for the proxy object in the target proxy group in the release data generation request, wherein the authorization information is used to indicate that the aviation agreement to be released is allowed to be released to the proxy object, or that the aviation agreement to be released is prohibited to be released to the proxy object; a third determination submodule, which is used to establish a matching relationship between the target aviation agreement and the target proxy group if there is no authorization information for the proxy object in the target proxy group, and obtain the target release data; a fourth determination submodule, which is used to determine the first proxy object from the target proxy group based on the authorization information if there is authorization information for the proxy object in the target proxy group; and a processing submodule, which is used to establish a matching relationship between the target aviation agreement and the target proxy group, and record the identifier of the first proxy object in the matching relationship to obtain the target release data.
[0124] Optionally, the data processing device also includes: a third determination module, which is used to determine the object identifier, target route, target space, and take-off time range of the second proxy object from the fare query request when receiving the fare query request of the second proxy object; a first screening module, which is used to screen the fare data in multiple aviation agreements according to the target route, target space and take-off time range to obtain multiple first fare data; a second screening module, which is used to screen the multiple first fare data according to the publishing status of the aviation agreements to which the multiple first fare data belong, to obtain multiple second fare data; a third screening module, which is used to screen the multiple second fare data according to the object identifier and target publishing data of the second proxy object to obtain at least one third fare data; a fourth determination module, which is used to determine the request processing result for the fare query request based on the at least one third fare data, and to feed back the request processing result to the second proxy object.
[0125] Optionally, the first screening module also includes: a fifth determination submodule, used to determine the fare data including the target route and the target space from multiple aviation agreements, and obtain multiple candidate first fare data; a sixth determination submodule, used to, for each candidate first fare data, if the take-off time range is within the valid time range in the candidate first fare data, determine the candidate first fare data as the first fare data, so as to obtain multiple first fare data.
[0126] Optionally, the second screening module further includes: a seventh determination submodule, configured to determine the first freight rate data in a published state among the plurality of first freight rate data as the second freight rate data, so as to obtain the plurality of second freight rate data.
[0127] Optionally, the third screening module also includes: an eighth determination submodule, used to determine, based on the target release data, second fare data matching the second agent object from multiple second fare data, to obtain at least one target second fare data; an acquisition submodule, used to acquire a target sales channel matching the agent group to which the second agent object belongs, wherein the target sales channel refers to a channel through which the target airline allows the agent objects in the agent group to sell fares; a ninth determination submodule, used to determine at least one target second fare data as at least one third fare data when the target sales channel is the same as the sales channel in the fare query request.
[0128] Example 3
[0129] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned data processing method when running.
[0130] Example 4
[0131] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, wherein: Figure 4 is a schematic diagram of an optional electronic device according to an embodiment of the present invention, such as Figure 4 As shown, the electronic device includes one or more processors; a memory for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the above-mentioned data processing method when running.
[0132] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0133] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0134] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0135] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0136] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0137] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0138] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data processing method, characterized in that: include: Acquire multiple aviation agreements of a target airline and agreement information of the aviation agreements, and acquire multiple agent groups, wherein the aviation agreements include multiple fare data of the target airline, the agreement information includes the effective time range and release status of the aviation agreements, and the agent group includes multiple agent objects; Upon receiving a query request for to-be-published agreements from a user, determining the to-be-published aviation agreements from the multiple aviation agreements according to the effective time range and the publishing status in the agreement information; In case of receiving a publishing data generation request from the user, determining a target aviation agreement from the aviation agreements to be published according to the publishing data generation request, and determining a target agent group from the plurality of agent groups according to the publishing data generation request; A matching relationship between the target aviation protocol and the target agent group is established to obtain target release data.
2. The method according to claim 1, characterized in that: The publishing status includes a published status and a to-be-published status, wherein, according to the effective time range and the publishing status in the protocol information, determining the to-be-published aviation protocol from the multiple aviation protocols includes: According to the effective time range and the current time, determining an ineffective aviation agreement from the multiple aviation agreements to obtain a candidate aviation agreement; The candidate aviation protocol whose publishing status is the to-be-published status is determined as the to-be-published aviation protocol.
3. The method according to claim 1, characterized in that Establishing a matching relationship between the target aviation protocol and the target agent group to obtain target release data includes: Determine whether there is authorization information for the proxy object in the target proxy group in the publishing data generation request, wherein the authorization information is used to indicate that the aviation agreement to be published is allowed to be published to the proxy object, or that the aviation agreement to be published is prohibited to be published to the proxy object; If there is no authorization information for the agent object in the target agent group, a matching relationship between the target aviation protocol and the target agent group is established to obtain the target release data; If there is authorization information for the proxy object in the target proxy group, determining a first proxy object from the target proxy group based on the authorization information; A matching relationship between the target aviation protocol and the target proxy group is established, and the identifier of the first proxy object is recorded in the matching relationship to obtain the target release data.
4. The method according to claim 1, characterized in that: The freight rate data includes routes, space, space selling price and the effective time range of the space selling price. After obtaining the target release data, the method further includes: When receiving a freight rate query request from a second proxy object, determining an object identifier, a target route, a target space, and a take-off time range of the second proxy object from the freight rate query request; Filtering the fare data in the multiple aviation agreements according to the target route, the target space, and the take-off time range to obtain multiple first fare data; Filtering the plurality of first freight rate data according to the release status of the aviation agreement to which the plurality of first freight rate data belong to obtain a plurality of second freight rate data; Filter the plurality of second freight rate data according to the object identifier of the second proxy object and the target publishing data to obtain at least one third freight rate data; A request processing result for the freight rate query request is determined based on the at least one third freight rate data, and the request processing result is fed back to the second proxy object.
5. The method according to claim 4, characterized in that According to the target route, the target space and the take-off time range, the fare data in the multiple air agreements are screened to obtain multiple first fare data, including: Determine the freight rate data including the target route and the target space from the multiple air agreements to obtain multiple candidate first freight rate data; For each candidate first fare data, if the departure time range is within the valid time range of the candidate first fare data, the candidate first fare data is determined as the first fare data to obtain the plurality of first fare data.
6. The method according to claim 4, characterized in that The publishing status includes a published status and a to-be-published status, wherein the plurality of first fare data are screened according to the publishing status of the air agreement to which the plurality of first fare data belong to, to obtain a plurality of second fare data, including: The first freight rate data in the published state among the plurality of first freight rate data are determined as the second freight rate data to obtain the plurality of second freight rate data.
7. The method according to claim 4, characterized in that The plurality of second freight rate data are screened according to the object identifier of the second proxy object and the target published data to obtain at least one third freight rate data, including: According to the target published data, determining the second freight rate data matching the second proxy object from the plurality of second freight rate data, and obtaining at least one target second freight rate data; Obtaining a target sales channel that matches the agent group to which the second agent object belongs, wherein the target sales channel refers to a channel through which the target airline allows the agent objects in the agent group to sell fares; In a case where the target sales channel is the same as the sales channel in the freight rate query request, the at least one target second freight rate data is determined as the at least one third freight rate data.
8. A data processing device, characterized in that: include: An acquisition module, used to acquire multiple aviation agreements of a target airline and agreement information of the aviation agreements, and acquire multiple agent groups, wherein the aviation agreement includes multiple freight rate data of the target airline, the agreement information includes the effective time range and release status of the aviation agreement, and the agent group includes multiple agent objects; A first determination module is used to determine the aviation agreement to be published from the plurality of aviation agreements according to the effective time range and the publishing status in the agreement information when receiving a query request for the agreement to be published from the user; a second determination module, configured to, upon receiving a publishing data generation request from the user, determine a target aviation agreement from the aviation agreements to be published according to the publishing data generation request, and determine a target agent group from the plurality of agent groups according to the publishing data generation request; The processing module is used to establish a matching relationship between the target aviation protocol and the target agent group to obtain target release data.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the data processing method described in any one of claims 1 to 7 when executed.
10. An electronic device, characterized in that: The electronic device includes one or more processors; A memory for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the data processing method described in any one of claims 1 to 7 when running.
Citation Information
Patent Citations
Process-visualized freight rate calculation method, medium, equipment and system
CN112035200A
Data processing method and device and server
CN112307065A
Information management service platform for aviation freight rate system
CN116934392A