Disclosure of Invention
In view of this, the present application provides an order generation method, an order generation device, an electronic device, and a storage medium, which have solved the problem that, in the prior art, when a user changes an order, an airline usually only considers the service content of the order change, but does not consider the type of the user, and cannot reflect the difference between users of different types, which is not favorable for improving the loyalty of high-value users to the airline.
In order to achieve the above purpose, the present application provides the following technical solutions:
the first aspect of the present application discloses a method for generating an order, including:
receiving an order service change request of a user;
acquiring an initial order of the user and acquiring user information of the user;
judging whether the initial order can meet the order business change request or not;
if the initial order is judged to accord with the order business change request, determining the user type of the user based on the user information; wherein the user types include a regular passenger and a frequent passenger;
and generating an order after the user performs service change according to the order service change request based on the user type.
Optionally, in the method, after the obtaining of the user information of the user, the method further includes:
and checking the user information of the user to determine whether the user information of the user is correct.
Optionally, in the method, the determining whether the initial order can satisfy the order service change request includes:
acquiring the service information of the initial order;
analyzing the order service change request to obtain the service content required to be changed by the user;
and judging whether the service information of the initial order can be changed according to the service content which needs to be changed by the user based on the service content which needs to be changed by the user.
Optionally, in the method, the generating, based on the user type and according to the order service change request, an order after the user performs service change includes:
if the user type is a common passenger, directly generating an order after the user performs service change according to the order service change request;
if the user type of the user is frequent flyer, acquiring the frequent flyer level of the user;
and generating an order after the user performs service change according to the order service change request based on the frequent traveler level of the user.
Optionally, in the method, after the generating, based on the user type and according to the order service change request, an order after the user performs service change further includes:
and synchronizing the changed order information to the server.
A second aspect of the present application discloses an order generation apparatus, including:
the receiving unit is used for receiving an order business change request of a user;
the acquisition unit is used for acquiring the initial order of the user and acquiring the user information of the user;
a judging unit, configured to judge whether the initial order can satisfy the order service change request;
a determining unit, configured to determine a user type of the user based on the user information if it is determined that the initial order conforms to the order service change request; wherein the user types include a regular passenger and a frequent passenger;
and the generating unit is used for generating the order after the business change is performed by the user according to the order business change request based on the user type.
Optionally, the above apparatus further includes:
and the checking unit is used for checking the user information of the user and determining whether the user information of the user is correct or not.
Optionally, in the foregoing apparatus, the determining unit includes:
the first obtaining subunit is used for obtaining the service information of the initial order;
the analysis subunit is used for analyzing the order service change request to obtain the service content which needs to be changed by the user;
and the judging subunit is used for judging whether the service information of the initial order can be changed according to the service content which needs to be changed by the user based on the service content which needs to be changed by the user.
Optionally, in the foregoing apparatus, the generating unit includes:
the first generation subunit is used for directly generating an order after the user performs service change according to the order service change request if the user type is a common passenger;
the second obtaining subunit is configured to obtain a frequent traveler level of the user if the user type of the user is a frequent traveler;
and the second generation subunit is used for generating the order after the business change is performed by the user according to the order business change request based on the frequent traveler level of the user.
Optionally, the above apparatus further includes:
and a synchronization unit for synchronizing the changed order information to the server.
A third aspect of the present application discloses an electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of the first aspects.
A fourth aspect of the present application discloses a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any of the first aspects.
According to the technical scheme, in the order generation method provided by the application, the order service change request of the user is received, the initial order of the user is obtained, and the user information of the user is obtained. And then judging whether the initial order can meet the order business change request. If the initial order is judged to accord with the order business change request, determining the user type of the user based on the user information; the user types include a normal passenger and a frequent passenger, among others. And based on the user type, generating an order after the user performs the service change according to the order service change request. Therefore, by using the method of the application, when the user changes the order, the user type of the user can be identified, and the order after the user changes the service is generated by combining the user type of the user and the order service change request of the user. The problem that in the prior art, when a user changes an order, an airline usually only considers the business content of the order change, does not consider the type of the user, cannot reflect the difference of users of different types, and is not beneficial to improving the loyalty of the valuable user to the airline is solved.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units. [ ordinal words ]).
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise. [ SINGLE-COMPLEX ] is disclosed.
As known from the background art, when a user changes an order, an airline usually only considers the business content of the order change, but does not consider the type of the user, and cannot reflect the difference between different types of users, which is not favorable for improving the loyalty of the high-value user to the airline.
In view of this, the present application provides an order generation method, an order generation device, an electronic device, and a storage medium, which have solved the problem that, in the prior art, when a user changes an order, an airline usually only considers the business content of the order change, but does not consider the type of the user, and cannot reflect the difference between users of different types, which is not favorable for improving the loyalty of high-value users to the airline.
The embodiment of the application discloses a method for generating an order, which specifically includes, as shown in fig. 1:
s101, receiving an order business change request of a user.
It should be noted that, when the user needs to change the order, the user sends an order service change request to the e-commerce system of the airline company, and after receiving the order service change request of the user, the system changes the order based on the request.
The electronic commerce system of the airline company can comprise an order management module, a rephrased flight inquiry module, a rephrased bill module, a rephrased payment and ticket issuing module and the like. The order management module means that after the user successfully takes a ticket from an airline official website, the user can search a reserved order on the airline official website, can check information such as user, travel and price in the order, and in the order management module, the user can select the user and the travel in the order to carry out time-changing cabin-lifting operation. The rephrased flight inquiry module is used for inquiring when a user needs to reprint an order through the module. And the period change order generation module is used for generating a new order after the order business is changed by the user. And the time-change payment ticket issuing module is used for calculating the fee due by the user according to the selected travel and the user type of the user, and after the completion of the payment of the user is confirmed, the system issues an et ticket to the user so that the user can go out, and the data are stored in a website order to facilitate the follow-up user to inquire and select the navigation department service.
S102, obtaining an initial order of the user, and obtaining user information of the user.
It should be noted that, after receiving the order service change request of the user, the initial order corresponding to the order service change request of the user is obtained, so as to view the initial order information of the user. And simultaneously acquiring the user information of the user for identifying the identity information of the user.
Optionally, in another embodiment of the present application, after the step S102 is executed, the method may further include:
and checking the user information of the user to determine whether the user information of the user is correct.
It should be noted that after the user information of the user is acquired, the acquired user information is compared with the user information stored in the database, the identity of the user is verified, and whether the user information of the current user is correct is determined.
S103, judging whether the initial order can meet the order business change request.
It should be noted that after the initial order of the user is obtained, the order information and the order type of the initial order of the user are checked, and then whether the initial order of the user can satisfy the order service change request is judged. For example, some orders do not support fallback, and if the user sends a request for order change, the order cannot be changed as well as the user order change request. If the user's order supports fallback, the user sends a request for order change, then the order is allowed to be changed.
Optionally, in another embodiment of the present application, an implementation manner of step S103 may include:
and acquiring the service information of the initial order.
And analyzing the order service change request to obtain the service content required to be changed by the user.
And judging whether the service information of the initial order can be changed according to the service content required to be changed by the user or not based on the service content required to be changed by the user.
It should be noted that, the service information in the initial order of the user is obtained, and the type of the service transacted by the user and the attribute of the service are determined. And then analyzing the order service change request of the user to obtain the service content which needs to be changed by the user, for example, determining whether the user needs to change the sign or return the order. After the business content required to be changed by the user is clarified, whether the business transacted by the initial order of the user can be changed according to the business content required to be changed by the user is judged according to the obtained business type or business attribute of the initial order of the user.
S104, if the initial order is judged to accord with the order business change request, determining the user type of the user based on the user information; the user types include a normal passenger and a frequent passenger, among others.
It should be noted that, if it is determined that the service transacted by the initial order of the user can be changed according to the service content that the user needs to change, it indicates that the order of the user can be modified. However, in order to distinguish the cost for different types of users to handle the change order service, the user type of the user needs to be determined based on the acquired user information; the user types include a normal passenger and a frequent passenger, among others. Frequent flyers refer to users in the frequent flyer system of an airline, and different users may have different membership grades.
And S105, generating an order after the user performs the service change according to the order service change request based on the user type.
It should be noted that after the user type of the user is determined, the cost standard corresponding to the user type of the user may be determined according to the user type of the user and the order service change request, and then the order after the service change is performed by the user is generated. In the order, the expense standards corresponding to other user types can be displayed, so that the users can feel different, and the frequent flyers can feel preferential and attach to the airline companies, so that the goodness and loyalty of the frequent flyers to the airline companies are increased, the frequent flyers can preferentially select the airline companies when selecting next journey, and the opportunity of secondary sales of the airline companies is improved.
Optionally, in another embodiment of the present application, an implementation manner of step S105 may include:
and if the user type is a common passenger, directly generating an order after the user performs service change according to the order service change request.
And if the user type of the user is frequent flyer, acquiring the frequent flyer grade of the user.
And generating an order after the user performs the service change according to the order service change request based on the frequent traveler level of the user.
It should be noted that, if the user type of the user is a general traveler, the user directly generates an order after the user performs a service change according to the order service change request. If the user type of the user is frequent flyer, the frequent flyer level of the user is firstly acquired. And then generating an order after the user performs service change according to the order service change request based on the cost standard corresponding to the frequent traveler level of the user.
Optionally, in another embodiment of the present application, after performing step S105, the method may further include:
and synchronizing the changed order information to the server.
It should be noted that after the order after the user performs the service change is generated, the changed order information is synchronized to the server to ensure the timely update of the data, and the user may also perform the query in the order management module.
In the order generation method provided by the embodiment of the application, an order service change request of a user is received, an initial order of the user is obtained, and user information of the user is obtained. And then judging whether the initial order can meet the order business change request. If the initial order is judged to accord with the order business change request, determining the user type of the user based on the user information; the user types include a normal passenger and a frequent passenger, among others. And based on the user type, generating an order after the user performs the service change according to the order service change request. Therefore, by using the method of the application, when the user changes the order, the user type of the user can be identified, and the order after the user changes the service is generated by combining the user type of the user and the order service change request of the user. The problem that in the prior art, when a user changes an order, an airline usually only considers the business content of the order change, does not consider the type of the user, cannot reflect the difference of users of different types, and is not beneficial to improving the loyalty of the valuable user to the airline is solved.
While the operations in the above embodiments are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
In embodiments of the present application, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Another embodiment of the present application further discloses an order generation apparatus, as shown in fig. 2, including:
the receiving unit 201 is configured to receive an order service change request of a user.
The obtaining unit 202 is configured to obtain an initial order of a user and obtain user information of the user.
The judging unit 203 is configured to judge whether the initial order can satisfy the order service change request.
A determining unit 204, configured to determine a user type of the user based on the user information if it is determined that the initial order conforms to the order service change request; the user types include a normal passenger and a frequent passenger, among others.
A generating unit 205, configured to generate an order after the service change is performed by the user according to the order service change request based on the user type.
In an order generating apparatus provided in an embodiment of the present application, first, a receiving unit 201 receives an order service change request of a user, and an obtaining unit 202 obtains an initial order of the user and obtains user information of the user. The judgment unit 203 then judges whether the initial order can satisfy the order service change request. If the initial order is judged to conform to the order service change request, the determining unit 204 determines the user type of the user based on the user information; the user types include a normal passenger and a frequent passenger, among others. The generating unit 205 generates an order after the user performs the service change according to the order service change request based on the user type. Therefore, by using the method of the application, when the user changes the order, the user type of the user can be identified, and the order after the user changes the service is generated by combining the user type of the user and the order service change request of the user. The problem that in the prior art, when a user changes an order, an airline usually only considers the business content of the order change, does not consider the type of the user, cannot reflect the difference of users of different types, and is not beneficial to improving the loyalty of the valuable user to the airline is solved.
In this embodiment, for specific implementation processes of the receiving unit 201, the obtaining unit 202, the judging unit 203, the determining unit 204, and the generating unit 20, reference may be made to the contents of the method embodiment corresponding to fig. 1, and details are not described here.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, a receiving unit may also be described as a "unit receiving data".
Optionally, in another embodiment of the application, the order generating device may further include:
and the checking unit is used for checking the user information of the user and determining whether the user information of the user is correct.
In this embodiment, the specific execution process of the verification unit may refer to the content of the corresponding method embodiment described above, and is not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the determining unit 203 includes:
and the first obtaining subunit is used for obtaining the service information of the initial order.
And the analysis subunit is used for analyzing the order service change request to obtain the service content required to be changed by the user.
And the judging subunit is used for judging whether the service information of the initial order can be changed according to the service content which needs to be changed by the user based on the service content which needs to be changed by the user.
In this embodiment, for the specific execution processes of the first obtaining subunit, the parsing subunit, and the determining subunit, reference may be made to the contents of the above corresponding method embodiments, and details are not described here.
Optionally, in another embodiment of the present application, an implementation manner of the generating unit 205 includes:
and the first generation subunit is used for directly generating the order after the user performs the service change according to the order service change request if the user type is a common passenger.
And the second acquiring subunit is used for acquiring the frequent traveler level of the user if the user type of the user is a frequent traveler.
And the second generation subunit is used for generating the order after the business change is performed by the user according to the order business change request based on the frequent traveler level of the user.
In this embodiment, for specific execution processes of the first generating subunit, the second obtaining subunit, and the second generating subunit, reference may be made to the contents of the above corresponding method embodiments, and details are not described here again.
Optionally, in another embodiment of the application, the order generating device may further include:
and a synchronization unit for synchronizing the changed order information to the server.
In this embodiment, the specific execution process of the synchronization unit may refer to the content of the corresponding method embodiment described above, and is not described herein again.
Another embodiment of the present application further provides an electronic device, as shown in fig. 3, specifically including:
one or more processors 301.
A storage device 302 having one or more programs stored thereon.
The one or more programs, when executed by the one or more processors 301, cause the one or more processors 301 to implement the method as in any one of the embodiments described above.
Another embodiment of the present application further provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of the above embodiments.
It should be noted that in the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Another embodiment of the present application provides a computer program product, which when executed, is configured to perform any one of the above methods for evaluating system performance.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.