Order processing method, device, storage medium and computer equipment
By identifying user identification and consumption scenario type information, retrieving consumption limit requirements from the database, and determining whether the order consumption information meets the limit requirements, the problem of bloated code in the Internet cost control system is solved and the system response efficiency is improved.
Patent Information
- Application Number
- CN202211426013.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2042-11-15
AI Technical Summary
The existing Internet expense control system needs to set up special order validity control logic for different companies, resulting in bloated code volume and low response efficiency.
By receiving the order submission request, identifying the user ID and consumption scenario type information, retrieving the consumption restriction requirements in the database, determining whether the consumption information meets the restriction requirements, and processing the order only when the requirements are met.
This significantly reduces the code size of the expense control system, improves response efficiency, and avoids the repetitive work of setting up order validity control logic for each company separately.
Smart Images

Figure CN115689688B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of the Internet, and in particular to an order processing method, device, storage medium and computer equipment. Background Art
[0002] With the development of internet payment technology, placing orders for transportation, travel, and accommodation services through internet applications has become a mainstream trend. Major internet companies have established online commerce platforms and partnered with major companies to provide online transaction platforms for internal employees to purchase transportation, travel, and accommodation services. However, various companies often impose various restrictions on transportation and accommodation services purchased by internal employees, such as specific airfare class restrictions. If the services purchased by an internal employee do not meet these restrictions, the purchase order will be deemed invalid.
[0003] Currently, when building a cost control system for internet companies facing different restrictions, they need to implement specialized order validity control logic for each company to ensure that its personnel can purchase services that meet those restrictions. Furthermore, for online trading platforms, each time they include a partner company, their cost control system must include an additional set of control logic specific to that company. This results in an overly bloated cost control system code and reduces its responsiveness. Summary of the Invention
[0004] In view of this, the present application provides an order processing method, apparatus, storage medium and computer equipment, the main purpose of which is to solve the technical problems of bloated code volume and low response efficiency of the cost control system.
[0005] According to a first aspect of the present invention, there is provided an order processing method, the method comprising:
[0006] receiving an order submission request, wherein the order submission request carries user identification information, consumption scenario type information, and at least one consumption information corresponding to the consumption scenario type information;
[0007] Retrieving, from a database, pre-set consumption restriction requirements corresponding to the consumption information based on the consumption scenario type information and the user identification information;
[0008] Determining whether the consumption information meets corresponding consumption restriction requirements;
[0009] If the consumption information meets the corresponding consumption restriction requirements, the order submission request is processed to obtain order information.
[0010] According to a second aspect of the present invention, there is provided an order processing device, the device comprising:
[0011] A request receiving module, configured to receive an order submission request, wherein the order submission request carries user identification information, consumption scenario type information, and at least one consumption information corresponding to the consumption scenario type information;
[0012] An information retrieval module, configured to retrieve, from a database, pre-set consumption restriction requirements corresponding to the consumption information based on the consumption scenario type information and the user identification information;
[0013] A condition judgment module is used to judge whether the consumption information meets the corresponding consumption limit requirements;
[0014] The order processing module is used to process the order submission request and obtain order information if the consumption information meets the corresponding consumption limit requirements.
[0015] According to a third aspect of the present invention, there is provided a storage medium having a computer program stored thereon, wherein the program implements the above-mentioned order processing method when executed by a processor.
[0016] According to a fourth aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned order processing method when executing the program.
[0017] The present invention provides an order processing method, apparatus, storage medium, and computer device. First, by identifying a user's order information, the method extracts the user's user ID from the order information to obtain the principal information of the user or the user's company, and then identifies the consumption scenario type information and the consumption information corresponding to the consumption scenario type information in the order information. Then, based on the consumption scenario type information and user identification information, the method extracts the consumption requirements corresponding to the consumption scenario type information and user identification information from a database to determine whether the consumption information corresponding to the consumption scenario type information meets the consumption requirements. Finally, the method determines whether the consumption information meets the consumption requirements corresponding to the consumption information. If the consumption information meets the consumption requirements corresponding to the consumption information, the user's order is determined to be valid, the user's order is approved, and the order information is obtained. This application uses the user identification information and consumption scenario type information in the order to filter the requirement information corresponding to each consumption information contained in the order from the database, and determines whether each consumption information meets the requirement information to determine the validity of the order. Compared with the existing method of setting up dedicated order validity control logic for each company, this method can significantly reduce the code volume of the expense control system, thereby improving the response efficiency of the expense control system.
[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] 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:
[0020] Figure 1 A schematic diagram showing a flow chart of an order processing method provided by an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of the structure of an order processing device provided by an embodiment of the present invention is shown;
[0022] Figure 3 A schematic structural diagram of another order processing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0023] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other.
[0024] Currently, employees of companies and organizations often use online trading platforms built by major internet vendors to purchase transportation, travel, and accommodation services. However, different companies impose varying restrictions on the transportation and accommodation services their employees can purchase, such as specific restrictions on the cabin class of air tickets. If an employee's purchased service doesn't meet the company's service restrictions, the purchase order is deemed invalid. The core of online commerce platforms lies in the expense control system, which receives order submission requests from employees of various companies and organizations through the online platform. Based on the information contained in the order submission request, it processes the request, confirms the order information, and purchases the service. When building an expense control system for companies with different restrictions, internet vendors need to implement specialized order validity control logic for each company to ensure that its employees can purchase services that meet those restrictions. Furthermore, for each partner company included in the online trading platform, the expense control system must include an additional set of control logic specific to that company. This results in an excessively bloated code base and reduces the system's responsiveness.
[0025] In order to solve the above problems, in one embodiment, Figure 1 As shown, an order processing method is provided, which is described by taking the method applied to a computer device as an example, and includes the following steps:
[0026] 101. Receive an order submission request.
[0027] The order submission request carries user identification information, consumption scenario type information, and at least one piece of consumption information corresponding to the consumption scenario type information. Furthermore, the user identification information may be an identity document ID set for each company or group, used to identify the specific company to which the received order submission request belongs; the consumption scenario type information is used to identify the consumption scenario to which the purchased service belongs, such as an air travel scenario for transportation and a hotel accommodation scenario for business travel; and the consumption information is used to identify the specific service item information purchased by the company or group, and may include numerical information such as numerical information including cabin class fees in air travel scenarios, and textual information including cabin class information in air travel scenarios.
[0028] Specifically, when an order submission request is sent to the cost control system, the user identification information, consumption scenario type information and at least one consumption information corresponding to the consumption scenario type information carried in the received order submission request can be identified, and the user identification information, consumption scenario type information and at least one consumption information corresponding to the consumption scenario type information carried in the order submission request can be obtained, and the above information can be stored locally.
[0029] 102. Based on the consumption scenario type information and the user identification information, retrieve pre-set consumption restriction requirements corresponding to the consumption information from a database.
[0030] Among them, the database stores pre-set consumption restriction requirements for each company or group for different consumption scenario types such as purchasing transportation, travel and accommodation services. Furthermore, each consumption restriction requirement corresponds to specific consumption information in the order submission request. For example, cabin class fee information may correspond to the requirements of the company or group for its internal personnel to purchase air tickets and cabin class fees, which is used to determine whether the service purchased by the internal personnel meets the requirements of the company or group to which the personnel belongs for the service. Specifically, the consumption restriction requirement corresponds to the consumption information. If the consumption information is numerical information, such as the amount of hotel accommodation, the consumption restriction requirement corresponding to the consumption information may be a restriction requirement for the amount, such as a limited amount range, etc.; if the consumption information is text information, such as the name of the hotel accommodation, the consumption restriction requirement corresponding to the consumption information may be a restriction requirement for the name of the hotel. Furthermore, the consumption restriction requirement is associated with the consumption information corresponding to it, and is mapped to the consumption scenario type information and user identification information corresponding to the consumption information and stored in the database.
[0031] Specifically, after obtaining the user identification information, consumption scenario type information and at least one consumption information corresponding to the consumption scenario type information carried in the order submission request, the consumption limitation requirements corresponding to the consumption scenario type information and the user identification information can be retrieved from the database based on the consumption scenario type information and the user identification information.
[0032] 103. Determine whether the consumption information meets corresponding consumption restriction requirements.
[0033] Specifically, based on the consumption information in the order submission request and the association between the consumption information and the corresponding consumption limitation requirements, the consumption limitation requirements corresponding to the consumption information in the order submission request can be selected from the consumption limitation requirements retrieved from the database. Furthermore, for each piece of consumption information, it is determined whether the numerical information and / or text information in the consumption information meets the corresponding consumption limitation requirements. For example, if the consumption information is the amount of hotel accommodation, it is determined whether the amount meets the amount requirement in the corresponding consumption limitation requirements. If the consumption information is the name of the hotel for hotel accommodation, it is determined whether the hotel name is consistent with the hotel name requirement in the corresponding consumption limitation requirements (that is, the hotel name in the consumption information is the same as the hotel name in the consumption limitation requirements, or the text similarity exceeds a preset threshold).
[0034] 104. If the consumption information meets the corresponding consumption restriction requirements, the order submission request is processed to obtain order information.
[0035] Specifically, if the consumption information is the amount of hotel accommodation, it is determined whether the amount meets the amount requirement of the corresponding consumption limit requirement. If the amount meets the amount requirement of the corresponding consumption limit requirement, the cost control system is instructed to process the order submission request to obtain order information, so that the service involved in the order information can be purchased. If the consumption information is the name of the hotel accommodation, it is determined whether the hotel name matches the hotel name requirement of the corresponding consumption limit requirement. If the hotel name matches the hotel name requirement of the corresponding consumption limit requirement, the cost control system is instructed to process the order submission request to obtain order information, so that the service involved in the order information can be purchased. Conversely, if the amount does not meet the amount requirement of the corresponding consumption limit requirement, the cost control system can be instructed to suspend processing the order submission request; if the hotel name does not match the hotel name requirement of the corresponding consumption limit requirement, the cost control system can be instructed to suspend processing the order submission request.
[0036] The order processing method provided in this embodiment first identifies the user's order information, extracts the user's user ID from the order information to obtain the principal information of the user or the user's company, and identifies the consumption scenario type information and the consumption information corresponding to the consumption scenario type information in the order information. Then, based on the consumption scenario type information and user identification information, the consumption restriction requirements corresponding to the consumption scenario type information and user identification information are extracted from the database to determine whether the consumption information corresponding to the consumption scenario type information meets the consumption restriction requirements. Finally, it is determined whether the consumption information meets the consumption restriction requirements corresponding to the consumption information. If the consumption information meets the consumption restriction requirements corresponding to the consumption information, the user's order is determined to be valid, the user's order is approved, and the order information is obtained. This application uses the user identification information and consumption scenario type information in the order to filter the requirement information corresponding to each consumption information contained in the order from the database, and determines the validity of the order by determining whether each consumption information meets the requirement information. Compared with the existing method of setting up dedicated order validity control logic for each company, the code volume of the expense control system can be significantly reduced, thereby improving the response efficiency of the expense control system.
[0037] In an embodiment of the present application, the consumption scenario type information includes air ticket information, the consumption information includes at least one of cabin class information, cabin class fee information, and cabin class discount information, and the consumption qualification requirements include at least one of cabin class requirements, cabin class fee requirements, and cabin class discount requirements. Air ticket information may refer to information sent by a company or group when purchasing air transportation services; cabin class information may include first class, business class, and economy class cabins; cabin class fee information may include the purchase price for the flight service; and cabin class discount information may include the discount available for the flight. Accordingly, the cabin class requirement may define the cabin class required for purchasing the flight, such as requiring first class or business class for the order; the cabin fee requirement may define the purchase price for the flight service; and the cabin class discount requirement may include the discount required for the flight service. In actual operation, depending on the actual situation, the consumption information may include one or more of cabin class information, cabin fee information, and cabin class discount information. Accordingly, the consumption qualification requirements may also include one or more of cabin class requirements, cabin fee requirements, and cabin class discount requirements. It should be noted that the above embodiment only provides common consumption information and corresponding consumption restriction requirements in the aviation transportation consumption scenario type corresponding to the ticket information. Other consumption information related to the purchase of civil aviation transportation services and corresponding consumption restriction requirements are also applicable to this embodiment.
[0038] Furthermore, the determining whether the consumption information satisfies corresponding consumption restriction requirements includes:
[0039] Determine in sequence whether the cabin class information meets the cabin class requirements, whether the cabin class fee information meets the cabin class fee requirements, and whether the cabin class discount information meets the cabin class discount requirements. Specifically, first, obtain the cabin class information, cabin class fee information, and cabin class discount information corresponding to the air ticket information for the consumption scenario type information. Further, determine whether the cabin class information meets the cabin class requirements. If the cabin class requirement in the preset consumption limit requirement is economy class, then determine whether the cabin class information is economy class. Determine whether the cabin class fee information meets the cabin fee requirements. If the cabin class fee requirement in the preset consumption limit requirement is that the air ticket amount must be less than RMB 1,500, then determine whether the amount information in the cabin fee information is less than RMB 1,500. Determine whether the cabin class discount information meets the cabin class discount requirements. If the cabin class discount requirement in the preset consumption limit requirement is that the air ticket discount must be 20% or less, then determine whether the discount information in the cabin discount information is 20% or less.
[0040] Furthermore, if the consumption information meets the corresponding consumption restriction requirements, the order submission request is processed to obtain order information, including:
[0041] If the cabin class information meets the cabin class requirements, the cabin class fee information meets the cabin class fee requirements, and the cabin class discount information meets the cabin class discount requirements, the order submission request is processed to obtain order information. Specifically, if the cabin class requirement in the preset consumption limit requirements is economy class, and if the cabin class information is economy class, the order submission request is processed to obtain order information; if the cabin class fee requirement in the preset consumption limit requirements is less than 1,500 yuan, and if the air ticket amount information in the cabin class fee information is 1,400 yuan, the order submission request is processed to obtain order information; if the cabin class discount requirement in the preset consumption limit requirements is 20% or less, and if the air ticket discount in the cabin class discount information is 30%, the order submission request is processed to obtain order information. Conversely, if the cabin class requirement in the preset consumption limit is economy class, and the cabin class information is first class, the order submission request will be suspended; if the cabin fare requirement in the preset consumption limit is less than 1,500 yuan, and the air ticket amount information in the cabin fare information is 1,800 yuan, the order submission request will be suspended; if the cabin class discount requirement in the preset consumption limit is 20% or less, and the air ticket discount information shows a 10% discount, the order submission request will be suspended.
[0042] The embodiments provided in this application can retrieve the corresponding consumption restrictions preset for each consumption information from the database when the consumption scenario type information for each company or group is an air transportation service scenario corresponding to air ticket information, and determine whether the consumption information meets the consumption restriction requirements. When it is necessary to purchase air transportation services, it is determined whether the consumption information meets the preset consumption restriction requirements. If the consumption information meets the preset consumption restriction requirements, the order is determined to be valid, and subsequent order processing is allowed to purchase the corresponding service. This eliminates the need to set up air transportation service order validity control logic for each company in the cost control system, which can significantly reduce the code volume of the cost control system and thus improve the response efficiency of the cost control system.
[0043] In an embodiment of the present application, the consumption scenario type information also includes hotel information, the consumption information also includes at least one of credit limit information, hotel star information, and hotel name information, and the consumption restriction requirements also include at least one of a credit limit requirement, a hotel star requirement, and a hotel restriction requirement. Hotel information may refer to information sent by a company or group when purchasing hotel accommodation services; the credit limit information may be the amount required to purchase the hotel accommodation services; the hotel star information may be the star rating of the hotel for which the hotel accommodation services are purchased; and the hotel name information may be the name of the hotel for which the hotel accommodation services are purchased. Accordingly, the credit limit requirement may be a credit limit requirement for purchasing the hotel accommodation services, such as requiring the amount of the order to be within a specific numerical range; the hotel star requirement may be a credit limit for the hotel for which the hotel accommodation services are purchased; and the hotel restriction requirement may be the name of the hotel for which the hotel accommodation services are purchased, or may be a hotel with a negotiated rate with the company or group. In actual operation, the consumption information may include one or more of the credit limit information, hotel star information, and hotel name information, depending on the actual situation. Accordingly, the consumption restriction requirements may also include one or more of the credit limit requirement, hotel star requirement, and hotel restriction requirements. It should be noted that the above embodiment only provides common consumption information and corresponding consumption limitation requirements in hotel consumption scenario types corresponding to hotel information. Other consumption information related to purchasing hotel accommodation services and corresponding consumption limitation requirements are also applicable to this embodiment.
[0044] Furthermore, the determining whether the consumption information satisfies corresponding consumption restriction requirements includes:
[0045] It is determined in sequence whether the credit limit information meets the credit limit requirement, whether the hotel star information meets the hotel star requirement, and whether the hotel name information meets the hotel qualification requirement. Specifically, first, the credit limit information, hotel star information, and hotel name information under the hotel information are obtained for the consumption scenario type information. Further, it is determined whether the credit limit information meets the credit limit requirement. For example, if the preset credit limit requirement is that the amount of hotel accommodation needs to be less than 1,000 yuan, then it is determined whether the amount of hotel accommodation in the credit limit information is less than 1,000 yuan; it is determined whether the hotel star information meets the hotel star requirement. For example, if the preset hotel star requirement is that the hotel star needs to be above 3 stars, then it is determined whether the star of the hotel for which the hotel accommodation service is purchased in the hotel star information is above 3 stars; it is determined whether the hotel name information meets the hotel qualification requirement. For example, if the preset hotel qualification requirement is a specific target hotel, then it is determined whether the hotel name in the hotel name information matches the name of the target hotel.
[0046] Furthermore, if the consumption information meets the corresponding consumption restriction requirements, the order submission request is processed to obtain order information, including:
[0047] If the credit limit information meets the credit limit requirement, the hotel star information meets the hotel star requirement, and the hotel name information meets the hotel restriction requirement, the order submission request is processed to obtain order information. Specifically, if the credit limit requirement in the preset consumption restriction requirement is that the amount of hotel accommodation needs to be less than 1,000 yuan, if the hotel accommodation amount information in the credit limit information is 900 yuan, then the order submission request is processed to obtain order information; if the hotel star requirement in the preset consumption restriction requirement is 3 stars or above, if the hotel star in the hotel star information is 4 stars, then the order submission request is processed to obtain order information; if the hotel restriction requirement in the preset consumption restriction requirement is that the name of the hotel for the hotel accommodation service purchased is Hotel A, if the hotel name in the hotel name information is Hotel A, then the order submission request is processed to obtain order information. Conversely, if the preset consumption limit requirement requires that the amount of hotel accommodation must be less than 1,000 yuan, and the hotel accommodation amount information in the limit information is 1,200 yuan, the order submission request will be terminated; if the hotel star requirement in the preset consumption limit requirement is 3 stars or above, and the hotel star information shows 2 stars, the order submission request will be terminated; if the hotel limit requirement in the preset consumption limit requirement requires that the name of the hotel for the purchased hotel accommodation service is Hotel A, and the hotel name in the hotel name information is Hotel B, the order submission request will be terminated.
[0048] The embodiment provided by the present application can obtain the corresponding consumption limit requirements preset for each consumption information from the database when the consumption scenario type information of each company or group is a hotel accommodation service scenario corresponding to hotel information, and determine whether the consumption information meets the consumption limit requirements. When it is necessary to purchase hotel accommodation services, it is determined whether the consumption information meets the preset consumption limit requirements. If the consumption information meets the preset consumption limit requirements, the order is determined to be valid, and subsequent order processing is allowed to purchase the corresponding service. Therefore, it is not necessary to set the hotel accommodation service order validity control logic for each company in the expense control system, which can significantly reduce the code volume of the expense control system, thereby improving the response efficiency of the expense control system.
[0049] In an embodiment of the present application, the consumption scenario type information also includes vehicle usage information, and the consumption information also includes at least one of mileage information, vehicle model information, and boarding location information. The consumption limitation requirements also include: at least one of mileage requirements, vehicle model requirements, and boarding location requirements. Among them, the consumption scenario type corresponding to the vehicle usage information can be a vehicle transportation scenario. Specifically, the vehicle usage information can be extracted from the order submission request. If the order submission request contains information related to the vehicle service or the information type of vehicle usage information, the consumption scenario type is determined to be vehicle usage information. Mileage information can refer to the transportation mileage information when personnel in a company or group purchase vehicle transportation services; vehicle model information can be the vehicle model of the vehicle transportation service purchased by personnel in a company or group; and boarding location information can be the boarding location of the vehicle transportation service purchased by personnel in a company or group and whether it is cross-regional transportation. Accordingly, the mileage requirement may be mileage restriction information for the vehicle transportation service, such as limiting the mileage of the vehicle transportation service to less than 100 kilometers; the vehicle model information may be vehicle model restriction information for the vehicle transportation service, such as limiting the vehicle model of the vehicle transportation service to a medium-sized vehicle; the boarding location requirement may be that the boarding location of the vehicle transportation service is from place A to place B, and cross-regional transportation is not allowed. In actual operation, the consumption information may be one or more of mileage information, vehicle model information, and boarding location information, depending on the actual situation. Accordingly, the consumption limitation requirement may also be one or more of mileage requirements, vehicle model requirements, and boarding location requirements. It should be noted that the above embodiment only provides common consumption information and corresponding consumption limitation requirements in the vehicle transportation consumption scenario type corresponding to the vehicle use information. Other consumption information related to the purchase of vehicle transportation and corresponding consumption limitation requirements are also applicable to this embodiment.
[0050] Furthermore, the determining whether the consumption information satisfies corresponding consumption restriction requirements includes:
[0051] Determine in sequence whether the mileage information meets the mileage requirement, whether the vehicle model information meets the vehicle model requirement, and whether the boarding location information meets the boarding location requirement. Specifically, first, obtain the mileage information, vehicle model information, and boarding location information under the vehicle usage information under the consumption scenario type information. Further, determine whether the mileage information meets the mileage requirement. If the preset mileage requirement is that the mileage of the vehicle transportation service at that time needs to be less than 100 kilometers, then determine whether the mileage of the vehicle transportation service in the mileage information is less than 100 kilometers; determine whether the vehicle model information meets the vehicle model requirement. If the preset vehicle model requirement limits the vehicle transportation service vehicle model to a medium-sized vehicle, then determine whether the vehicle transportation service vehicle model in the vehicle model information is a medium-sized vehicle; determine whether the boarding location information meets the boarding location requirement. If the preset boarding location requirement requires that the boarding location of the vehicle transportation service at that time needs to be from place A to place B, and cross-regional transportation is not allowed, then determine whether the boarding information in the boarding location information is from place A to place B, and whether cross-regional transportation occurs.
[0052] Furthermore, if the consumption information meets the corresponding consumption restriction requirements, the order submission request is processed to obtain order information, including:
[0053] If the mileage information meets the mileage requirement, the vehicle model information meets the vehicle model requirement, and the boarding location information meets the boarding location requirement, the order submission request is processed to obtain order information. Specifically, if the mileage requirement in the preset consumption restriction requirement is that the mileage of the vehicle transportation service needs to be less than 100 kilometers, if the mileage of the vehicle transportation service in the mileage information is 50 kilometers, then the order submission request is processed to obtain order information; if the vehicle model requirement in the preset consumption restriction requirement is that the vehicle model of the vehicle transportation service needs to be a medium-sized vehicle, if the vehicle model of the vehicle transportation service in the vehicle model information is a medium-sized vehicle, then the order submission request is processed to obtain order information; if the boarding location requirement in the preset consumption restriction requirement is that the boarding location of the vehicle transportation service needs to be from place A to place B, and cross-regional transportation is not allowed, if the boarding information in the boarding location information is from place A to place B, and cross-regional transportation does not occur, then the order submission request is processed to obtain order information. Conversely, if the mileage requirement in the preset consumption limitation requirement is that the mileage of the vehicle transportation service needs to be less than 100 kilometers, if the mileage of the vehicle transportation service in the mileage information is 150 kilometers, the order submission request will be terminated; if the vehicle model requirement in the preset consumption limitation requirement is that the vehicle model of the vehicle transportation service needs to be a medium-sized vehicle, if the vehicle model of the vehicle transportation service in the vehicle model information is a medium-to-large vehicle, the order submission request will be terminated; if the boarding location requirement in the preset consumption limitation requirement is that the boarding location of the vehicle transportation service needs to be from place A to place B, and cross-regional transportation is not allowed, if the boarding information in the boarding location information is from place A to place C, and / or cross-regional transportation occurs, the order submission request will be terminated.
[0054] The embodiments provided in this application can retrieve the corresponding consumption restrictions preset for each consumption information from the database when the consumption scenario type information of each company or group is a vehicle use information vehicle transportation service scenario, and determine whether the consumption information meets the consumption restriction requirements. When it is necessary to purchase vehicle transportation services, it is determined whether the consumption information meets the preset consumption restriction requirements. If the consumption information meets the preset consumption restriction requirements, the order is determined to be valid, and subsequent order processing is allowed to purchase the corresponding service. This eliminates the need to set up vehicle transportation service order validity control logic for each company in the cost control system, which can significantly reduce the code volume of the cost control system, thereby improving the response efficiency of the cost control system.
[0055] In an embodiment of the present application, the consumption scenario type information also includes train information, the consumption information also includes seat class information, and the consumption limitation requirements also include seat class requirements. Among them, train information can refer to the consumption scenario type information of a company or group when it needs to purchase railway transportation services. Specifically, train information can be extracted in an order submission request. If the order submission request contains information related to train services or the information type of train information, the consumption scenario type is determined to be train information. Seat class information can be the seat class for purchasing railway transportation services, such as first-class seats, second-class seats, etc. Correspondingly, seat class requirements can be requirements for limiting the purchase of railway transportation seats, such as limiting the order to purchase first-class seats, second-class seats, etc. It should be noted that the above embodiment only provides common consumption information and corresponding consumption limitation requirements in the railway transportation consumption scenario type corresponding to train information. Other consumption information related to purchasing railway transportation services and corresponding consumption limitation requirements are also applicable to this embodiment.
[0056] Furthermore, the determining whether the consumption information satisfies corresponding consumption restriction requirements includes:
[0057] Determine whether the seat rank information meets the seat rank requirement. Specifically, first, obtain the seat rank information for the train information consumption scenario type information. Then, determine whether the seat rank information meets the seat rank requirement. If the preset consumption limit requirement requires that the seat rank of the railway transportation service be first-class or second-class, then determine whether the seat rank of the railway transportation service in the seat rank information is first-class or second-class.
[0058] Furthermore, if the consumption information meets the corresponding consumption restriction requirements, the order submission request is processed to obtain order information, including:
[0059] If the seat rank information satisfies the seat rank requirement, the order submission request is processed to obtain order information. If the seat rank requirement in the preset consumer restrictions specifies that the current railway transportation service must be first-class or second-class, and if the seat rank in the seat rank information indicates that the railway transportation service is first-class, the order submission request is processed to obtain order information. Conversely, if the seat rank requirement in the preset consumer restrictions specifies that the current railway transportation service must be first-class or second-class, and if the seat rank in the seat rank information indicates that the railway transportation service is premium class, the order submission request is aborted.
[0060] The embodiments provided in this application can retrieve the corresponding consumption restriction requirements preset for each consumption information from a database when the consumption scenario type information of each company or group is a railway transportation scenario corresponding to train information, and determine whether the consumption information meets the consumption restriction requirements. When it is necessary to purchase railway transportation services, it is determined whether the consumption information meets the preset consumption restriction requirements. If the consumption information meets the preset consumption restriction requirements, the order is determined to be valid, and subsequent order processing and purchase of the corresponding service are allowed. This eliminates the need to set up railway transportation service order validity control logic for each company in the cost control system, significantly reducing the code volume of the cost control system and thereby improving the response efficiency of the cost control system.
[0061] Furthermore, the number of days between the order time and the service time can be calculated based on the order time information and the information about the purchased service in the order submission request. The number of days can then be compared with the advance booking consumption limit set by the corresponding company or group in the database. If the number of days meets the advance booking consumption limit, the order submission request is processed to obtain order information. If the number of days does not meet the advance booking consumption limit, the order submission request is terminated.
[0062] It should be noted that the consumption scenarios corresponding to the embodiments of the present application may include other consumption scenarios besides the above-mentioned consumption scenario types, such as exhibition service scenarios, procurement scenarios, etc. The specific application process can be as described in the above steps and will not be repeated here.
[0063] In an embodiment of the present application, before retrieving the pre-set consumption restriction requirements corresponding to the consumption information from the database based on the consumption scenario type information and the user identification information in step 102, the method further includes: first, in response to an information entry request, displaying an information entry page. The information entry request includes user identification information and consumption scenario type information. Specifically, when it is necessary to configure restriction requirements for a company or group purchasing transportation and accommodation services on an online trading platform, an information entry request can be issued to the expense control system, and the user identification information and consumption scenario type information of the company or group can be entered into the expense control system to obtain an information entry page corresponding to the user identification information and consumption scenario type information. The information entry page can include a user identification information display column for displaying the identity identification number corresponding to the company or group; a consumption scenario type information display column for marking the consumption scenario type corresponding to the company or group; a consumption restriction requirement label column for entering the name of the consumption restriction requirement, such as cabin class fee requirement; and a consumption restriction requirement label value column for entering the specific requirements of the consumption restriction requirement, such as the required amount of the cabin class fee requirement. Then, the consumption restriction request input by the user is received, and the consumption restriction request, the user identification information, and the consumption scenario type information are mapped and stored. Specifically, the name of the consumption restriction request can be entered in the consumption restriction requirement label column, and the specific requirements of the consumption restriction request can be entered in the consumption restriction requirement label value column. Subsequently, the consumption restriction request, user identification information, and consumption scenario type information are mapped and stored. The embodiment provided in this application can flexibly and easily add and modify the restriction requirements of various companies and groups in the cost control system when purchasing transportation and accommodation services, thereby improving the operating efficiency of the cost control system.
[0064] In an embodiment of the present application, after step 104, the method further includes: if the consumption information does not meet the corresponding consumption limit requirements, the order submission request is terminated, and the consumption information that does not meet the consumption limit requirements is displayed. Specifically, when the consumption information does not meet the corresponding consumption limit requirements, the processing of the order submission request is stopped, so that employees within the company or group cannot purchase the corresponding transportation and accommodation services through the order. Further, the consumption information that does not meet the corresponding consumption limit requirements is identified and displayed. The embodiment provided by the present application can prevent relevant personnel from purchasing transportation and accommodation services that do not meet the limit requirements, and make relevant personnel aware of the specific reasons for not being able to purchase the corresponding transportation and accommodation services, so as to facilitate their further processing.
[0065] The order processing method provided in this embodiment first identifies the user's order information, extracts the user's user ID from the order information to obtain the principal information of the user or the user's company, and identifies the consumption scenario type information and the consumption information corresponding to the consumption scenario type information in the order information. Then, based on the consumption scenario type information and the user ID information, the consumption restriction requirements corresponding to the consumption scenario type information and the user ID information are extracted from the database to determine whether the consumption information corresponding to the consumption scenario type information meets the consumption restriction requirements. Finally, it is determined whether the consumption information meets the consumption restriction requirements corresponding to the consumption information. If the consumption information meets the consumption restriction requirements corresponding to the consumption information, the user's order is determined to be valid, the user's order is approved, and the order information is obtained. Furthermore, if the consumption information does not meet the consumption restriction requirements corresponding to the consumption information, the order submission request is terminated, preventing the relevant person from purchasing transportation and accommodation services that do not meet the restriction requirements, and displaying the specific matters that caused the inability to obtain order information and purchase related services, so that the relevant person knows the specific reasons for not being able to purchase the corresponding transportation and accommodation services, facilitating further processing. This application can cover most of the demand scenarios for transportation and accommodation services of companies and groups, such as aviation service scenarios, hotel accommodation service scenarios, vehicle transportation service scenarios and railway transportation service scenarios, and meet most of the needs of companies and groups for purchasing transportation and accommodation services. At the same time, based on the user identification information and consumption scenario type information in the order, the requirement information corresponding to each consumption information contained in the order can be filtered from the database, and the validity of the order can be determined by determining whether each consumption information meets the requirement information. Compared with the existing method of setting up a special order validity control logic for each company separately, the code volume of the expense control system can be significantly reduced, thereby improving the response efficiency of the expense control system.
[0066] Further, as Figure 1 The specific implementation of the method shown in this embodiment provides an order processing device, such as Figure 2 As shown, the device includes: a request receiving module 21, an information retrieving module 22, a condition judging module 23 and an order processing module 24.
[0067] The request receiving module 21 is configured to receive an order submission request, wherein the order submission request carries user identification information, consumption scenario type information, and at least one consumption information corresponding to the consumption scenario type information;
[0068] An information retrieval module 22 is configured to retrieve, from a database, pre-set consumption restriction requirements corresponding to the consumption information based on the consumption scenario type information and the user identification information;
[0069] The condition judgment module 23 can be used to judge whether the consumption information meets the corresponding consumption limit requirements;
[0070] The order processing module 24 is configured to process the order submission request and obtain order information if the consumption information meets the corresponding consumption limit requirements;
[0071] In a specific application scenario, the condition judgment module 23 can be used to sequentially judge whether the cabin class information meets the cabin class requirement, whether the cabin class fee information meets the cabin class fee requirement, and whether the cabin class discount information meets the cabin class discount requirement;
[0072] In a specific application scenario, the order processing module 24 may be configured to process the order submission request to obtain order information if the cabin class information meets the cabin class requirement, the cabin class fee information meets the cabin class fee requirement, and the cabin class discount information meets the cabin class discount requirement.
[0073] In a specific application scenario, the condition judgment module 23 may further be used to sequentially judge whether the credit limit information meets the credit limit requirement, whether the hotel star rating information meets the hotel star rating requirement, and whether the hotel name information meets the hotel restriction requirement;
[0074] In a specific application scenario, the order processing module 24 may be further configured to process the order submission request to obtain order information if the credit limit information meets the credit limit requirement, the hotel star information meets the hotel star requirement, and the hotel name information meets the hotel restriction requirement.
[0075] In a specific application scenario, the condition judgment module 23 may be further configured to sequentially judge whether the mileage information meets the mileage requirement, whether the vehicle model information meets the vehicle model requirement, and whether the boarding location information meets the boarding location requirement.
[0076] In a specific application scenario, the order processing module 24 may be further configured to process the order submission request to obtain order information if the mileage information meets the mileage requirement, the vehicle model information meets the vehicle model requirement, and the boarding location information meets the boarding location requirement.
[0077] In a specific application scenario, the condition judgment module 23 may be further configured to judge whether the seat waiting information satisfies the seat waiting requirement;
[0078] In a specific application scenario, the order processing module 24 may be further configured to process the order submission request to obtain order information if the seat waiting information meets the seat waiting requirement.
[0079] In specific application scenarios, such as Figure 3 As shown, the device further includes a data entry module 31, which is specifically configured to respond to an information entry request and display an information entry page, wherein the information entry request includes user identification information and consumption scenario type information; receive a consumption restriction request input by a user, and map and store the consumption restriction request, the user identification information, and the consumption scenario type information;
[0080] In specific application scenarios, such as Figure 3 As shown, the device further includes a problem display module 36, which can be used to terminate the order submission request if the consumption information does not meet the corresponding consumption limit requirements, and display the consumption information that does not meet the consumption limit requirements;
[0081] It should be noted that for other corresponding descriptions of the functional units involved in the order processing device provided in this embodiment, please refer to Figure 1 The corresponding description in will not be repeated here.
[0082] Based on the above Figure 1 The method shown in FIG. 1 is a method for performing the above-mentioned operation. Accordingly, this embodiment further provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned Figure 1 Order processing method shown.
[0083] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product. The software product to be identified can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0084] Based on the above Figure 1 The method shown, and Figure 2 and Figure 3 In order to achieve the above-mentioned purpose, the embodiment of the order processing device shown in the figure further provides a physical device for order processing, which can be a personal computer, a server, a smart phone, a tablet computer, a smart watch, or other network devices, etc. The physical device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 The method shown.
[0085] Optionally, the physical device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Wi-Fi interface), etc.
[0086] Those skilled in the art will understand that the physical device structure for order processing provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.
[0087] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the physical device hardware and the software resources to be identified, supporting the execution of the information processing program and other software and / or programs to be identified. The network communication module is used to enable communication between components within the storage medium and with other hardware and software in the physical information processing device.
[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by hardware. By applying the technical solution of the present application, first, an order submission request is received, wherein the order submission request carries user identification information, consumption scenario type information and at least one consumption information corresponding to the consumption scenario type information; then, based on the consumption scenario type information and the user identification information, the pre-set consumption limitation requirements corresponding to the consumption information are retrieved from the database; then, whether the consumption information meets the corresponding consumption limitation requirements is determined; finally, if the consumption information meets the corresponding consumption limitation requirements, the order submission request is processed to obtain the order information. Compared with the prior art, the code volume of the expense control system can be significantly reduced, thereby improving the response efficiency of the expense control system.
[0089] Those skilled in the art will understand that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required to implement the present application. Those skilled in the art will understand that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0090] The serial numbers of the above application are for descriptive purposes only and do not represent the advantages or disadvantages of the implementation scenarios. The above disclosure only discloses several specific implementation scenarios of the present application, but the present application is not limited thereto. Any changes that can be conceived by those skilled in the art should fall within the scope of protection of the present application.
Claims
1. An order processing method, characterized in that: The method comprises: receiving an order submission request, wherein the order submission request carries user identification information, consumption scenario type information, and at least one consumption information corresponding to the consumption scenario type information, the user identification information including an identification number for identifying a company to which the order submission request belongs; Based on the consumption scenario type information and the identity identification number, retrieving pre-set consumption restriction requirements corresponding to the consumption scenario type information and the identity identification number from a database; Determining whether the consumption information meets corresponding consumption restriction requirements; If the consumption information meets the corresponding consumption restriction requirements, the order submission request is processed to obtain order information.
2. The method according to claim 1, characterized in that The consumption scenario type information includes air ticket information, the consumption information includes at least one of cabin class information, cabin class fee information, and cabin class discount information, and the consumption restriction requirement includes at least one of cabin class requirement, cabin class fee requirement, and cabin class discount requirement; and determining whether the consumption information meets the corresponding consumption restriction requirement includes: Determine in sequence whether the cabin class information meets the cabin class requirement, whether the cabin class fee information meets the cabin class fee requirement, and whether the cabin class discount information meets the cabin class discount requirement; If the consumption information meets the corresponding consumption limit requirements, the order submission request is processed to obtain order information, including: If the cabin class information meets the cabin class requirement, the cabin class fee information meets the cabin class fee requirement, and the cabin class discount information meets the cabin class discount requirement, the order submission request is processed to obtain order information.
3. The method according to claim 1, characterized in that The consumption scenario type information further includes hotel information, the consumption information further includes at least one of credit limit information, hotel star information, and hotel name information, and the consumption limit requirement further includes at least one of credit limit requirement, hotel star requirement, and hotel limit requirement; and determining whether the consumption information meets the corresponding consumption limit requirement further includes: Determine in sequence whether the credit limit information meets the credit limit requirement, whether the hotel star information meets the hotel star requirement, and whether the hotel name information meets the hotel restriction requirement; If the consumption information meets the corresponding consumption limit requirements, the order submission request is processed to obtain order information, further comprising: If the credit limit information meets the credit limit requirement, the hotel star information meets the hotel star requirement, and the hotel name information meets the hotel restriction requirement, the order submission request is processed to obtain order information.
4. The method according to claim 1, wherein The consumption scenario type information also includes vehicle usage information, the consumption information also includes at least one of mileage information, vehicle model information, and boarding location information, and the consumption restriction requirement also includes at least one of mileage requirement, vehicle model requirement, and boarding location requirement; and determining whether the consumption information meets the corresponding consumption restriction requirement also includes: sequentially determining whether the mileage information meets the mileage requirement, whether the vehicle model information meets the vehicle model requirement, and whether the boarding location information meets the boarding location requirement; If the consumption information meets the corresponding consumption limit requirements, the order submission request is processed to obtain order information, further comprising: If the mileage information meets the mileage requirement, the vehicle model information meets the vehicle model requirement, and the boarding location information meets the boarding location requirement, the order submission request is processed to obtain order information.
5. The method according to claim 1, wherein The consumption scenario type information further includes train information, the consumption information further includes seat information, and the consumption restriction requirement further includes seat requirements. The determining whether the consumption information meets the corresponding consumption restriction requirement further includes: Determining whether the seat waiting information meets the seat waiting requirement; If the consumption information meets the corresponding consumption limit requirements, the order submission request is processed to obtain order information, further comprising: If the seat waiting information meets the seat waiting requirement, the order submission request is processed to obtain order information.
6. The method according to any one of claims 1 to 5, characterized in that Before retrieving, from a database, pre-set consumption restriction requirements corresponding to the consumption information based on the consumption scenario type information and the user identification information, the method further includes: In response to an information entry request, displaying an information entry page, wherein the information entry request includes user identification information and consumption scenario type information; A consumption restriction request input by a user is received, and the consumption restriction request, the user identification information, and the consumption scenario type information are mapped and stored.
7. The method according to any one of claims 1 to 5, characterized in that The method further comprises: If the consumption information does not meet the corresponding consumption restriction requirements, the order submission request is terminated, and the consumption information that does not meet the consumption restriction requirements is displayed.
8. An order processing device, characterized in that: The device comprises: a request receiving module, configured to receive an order submission request, wherein the order submission request carries user identification information, consumption scenario type information, and at least one consumption information corresponding to the consumption scenario type information, the user identification information including an identity identification number for identifying the company to which the order submission request belongs; An information retrieval module, configured to retrieve, from a database, pre-set consumption restriction requirements corresponding to the consumption scenario type information and the identity identification number based on the consumption scenario type information and the identity identification number; A condition judgment module is used to judge whether the consumption information meets the corresponding consumption limit requirements; The order processing module is used to process the order submission request and obtain order information if the consumption information meets the corresponding consumption limit requirements.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Order data processing method and device, storage medium and computer equipment
CN114219587A
Reservation system of business trip
KR1020170099580A