Resource quantity determination method and device, equipment and storage medium
By identifying the business type of the target business and calculating the resource quantity using the business database, the problem of determining the resource quantity in multi-business scenarios is solved, data processing costs are reduced, and computing efficiency is improved.
Patent Information
- Application Number
- CN202511125511.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-12
- Publication Date
- 2025-12-12
AI Technical Summary
Existing technical solutions are difficult to extend in terms of functionality when dealing with billing business calculations in multiple business scenarios, resulting in high data processing costs.
By obtaining the business type of the target business, a matching target determination method is determined from multiple preset resource quantity determination methods based on the business type, and the resource quantity is calculated using the business database. The resource consumption information of sub-businesses is integrated to determine the resource quantity of the target business.
It enables precise determination of resource quantities in multiple business scenarios, reduces data processing costs, and improves computing efficiency.
Smart Images

Figure CN121120044A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of resource quantity determination technology, and in particular to a method, apparatus, device and storage medium for determining the quantity of resources. Background Technology
[0002] The development of non-core businesses in the aviation sector has led to an explosive growth in revenue and settlement data, resulting in a corresponding increase in the computational complexity of billing transactions. This ever-increasing volume of business data necessitates substantial human resources, and data processing costs are continuously rising.
[0003] Existing technical solutions are based on a fixed business model and a single data source architecture, enabling data computation in specific scenarios through preset processing rules. However, existing technologies struggle to expand functionality when facing multiple business scenarios. They also exhibit significant limitations in calculating billing services across multiple business scenarios.
[0004] Therefore, determining the amount of resources in multiple business scenarios to reduce data processing costs has become an urgent technical problem to be solved. Summary of the Invention
[0005] The purpose of this application is to provide a method, apparatus, device, and storage medium for determining the quantity of resources, aiming to solve the problem of how to determine the quantity of resources in multiple business scenarios in order to reduce data processing costs.
[0006] To achieve the above objectives, this application adopts the following technical solution:
[0007] Firstly, this application provides a method for determining the quantity of resources. The method includes: obtaining the business type of the target business; based on the business type, determining a target determination method that matches the business type from multiple preset resource quantity determination methods, wherein the preset resource quantity determination methods are used to determine the quantity of resources consumed by the business, and different preset resource quantity determination methods are related to the influence factor of the business type, wherein the influence factor is a factor that affects the method of determining the resource quantity; and determining the quantity of resources of the target business based on the target determination method and a business database, wherein the business database is a database that stores the business data of the target business.
[0008] Based on the aforementioned technical means, this application can determine a target determination method that matches the business type from multiple preset resource quantity determination methods, thereby enabling the selection of a matching target determination method to calculate the resource quantity of the target business according to different business types, meeting the needs of multi-business scenarios. This application determines the resource quantity of the target business based on the target determination method and a business database, allowing the selection of necessary data from the business database to calculate the resource quantity of the target business, thus accurately determining the resource quantity of the target business. Therefore, this application can determine the resource quantity in multi-business scenarios, reducing data processing costs.
[0009] In one possible approach, the target service comprises multiple sub-services. Based on the target determination method and the service database, the resource quantity of the target service is determined, including: determining multiple resource consumption information for multiple sub-services based on the target determination method and the service database, whereby the resource consumption information indicates the amount of resources consumed by each sub-service, with one resource consumption information corresponding to each sub-service; and integrating the multiple resource consumption information to determine the resource quantity of the target service.
[0010] Based on the aforementioned technical means, this application determines multiple resource consumption information for sub-services using a target determination method and a business database, and integrates these multiple resource consumption information to determine the resource quantity of the target service. First, resource consumption information is calculated for each sub-service, and then the resource consumption information of all sub-services is integrated to determine the resource quantity of the target service, thereby accurately determining the resource quantity of the target service.
[0011] In one possible approach, the target determination method includes multiple sub-business resource determination methods, with one sub-business corresponding to one sub-business resource determination method. Each sub-business resource determination method consists of multiple preset parameter types. Based on the target determination methods and the business database, multiple resource consumption information for the multiple sub-businesses is determined, including: for each sub-business, determining a sub-business resource determination method based on the sub-business's business scenario, where the business scenario includes influencing factors for the sub-business resource determination method; determining a resource parameter set based on the sub-business resource determination method, where the resource parameter set includes multiple preset parameter types required by the sub-business resource determination method; generating a target query statement based on the resource parameter set, which is used to query parameter data corresponding to multiple preset parameter types from the business database; determining multiple resource data sets from the business database using the target query statement, where each resource data set includes multiple parameter data corresponding to one preset parameter type; one preset parameter type corresponds to one resource data set; and determining the resource consumption information of the sub-business based on the sub-business resource determination methods and the multiple resource data sets.
[0012] Based on the aforementioned technical means, this application provides a method for determining the resource consumption information of each sub-service by defining a resource determination method for each sub-service based on its business scenario. This application also determines a set of resource parameters based on the sub-service resource determination method and generates a target query statement based on the resource parameter set, thereby determining multiple resource data sets from the business database. Based on the sub-service resource determination method and the resource parameter set, the resource consumption information of the sub-service is accurately determined, improving the accuracy of the resource quantity for subsequent target services.
[0013] In one possible approach, the resource consumption information of a sub-service is determined based on the sub-service resource determination method and multiple resource data sets. This includes: determining the resource data set corresponding to each preset parameter type in the sub-service resource determination method based on the sub-service resource determination method and multiple resource data sets; and processing the resource data set corresponding to each preset parameter type according to the sub-service resource determination method to obtain the resource consumption information of the sub-service.
[0014] Based on the aforementioned technical means, this application determines the resource data set corresponding to each preset parameter type in the sub-business resource determination method, based on the sub-business resource determination method and multiple resource data sets. This transforms the data in the business database and the preset parameter types in the sub-business resource determination method into a unified data dimension, enabling the data in the resource data sets to be accurately input into the sub-business resource determination method, thereby precisely determining the resource consumption information of the sub-business.
[0015] In one possible approach, the influencing factor of the business type is the resource parameter type; the resource quantity is determined by: obtaining multiple resource parameter types for the target business; and determining the resource quantity based on the multiple resource parameter types.
[0016] Based on the aforementioned technical means, this application obtains multiple resource parameter types for the target service and determines the resource quantity determination method based on these multiple resource parameter types. This enables the application to determine different resource quantity determination methods according to different types of services, thus meeting the resource quantity determination needs in multi-service scenarios.
[0017] In one possible approach, the target business types include: airport ground services, aviation training services, and site leasing services; the resource parameter types for airport ground services include flight type, flight time slot, and flight load capacity; the resource parameter types for aviation training services include training duration, training content, number of trainees, and training methods; and the resource parameter types for site leasing services include site size, site location, and lease duration.
[0018] Secondly, this application provides a resource quantity determination apparatus, the apparatus comprising:
[0019] The unit comprises: an acquisition unit for acquiring the business type of the target business; a processing unit for determining a target determination method that matches the business type from multiple preset resource quantity determination methods, based on the business type, wherein the preset resource quantity determination methods are used to determine the amount of resources consumed by the business, and different preset resource quantity determination methods are related to the influence factor of the business type, and the influence factor is the factor that affects the method of determining the resource quantity; and a processing unit for determining the resource quantity of the target business based on the target determination method and the business database, wherein the business database is a database that stores the business data of the target business.
[0020] In one possible approach, the processing unit is specifically used to determine multiple resource consumption information for multiple sub-services based on the target determination method and the business database. The resource consumption information is used to indicate the amount of resources consumed by the sub-services, with one resource consumption information corresponding to one sub-service. The multiple resource consumption information are then integrated to determine the amount of resources for the target service.
[0021] In one possible approach, the target determination method includes multiple sub-business resource determination methods, with one sub-business corresponding to one sub-business resource determination method. Each sub-business resource determination method consists of multiple preset parameter types. The processing unit, specifically, for each sub-business, determines the sub-business resource determination method based on the sub-business's business scenario, including influencing factors for the sub-business resource determination method. Based on the sub-business resource determination method, it determines a set of resource parameters, including multiple preset parameter types required by the sub-business resource determination method. Based on the resource parameter set, it generates a target query statement, which queries the business database for parameter data corresponding to multiple preset parameter types. The target query statement determines multiple resource data sets from the business database, each resource data set including multiple parameter data corresponding to one preset parameter type. One preset parameter type corresponds to one resource data set. Based on the sub-business resource determination method and the multiple resource data sets, it determines the resource consumption information of the sub-business.
[0022] In one possible approach, the processing unit is specifically configured to determine the resource data set corresponding to each preset parameter type in the sub-service resource determination method based on the sub-service resource determination method and multiple resource data sets; and process the resource data set corresponding to each preset parameter type according to the sub-service resource determination method to obtain the resource consumption information of the sub-service.
[0023] In one possible approach, the influencing factor of the business type is the resource parameter type; the processing unit is specifically used to obtain multiple resource parameter types of the target business; and based on the multiple resource parameter types, the method for determining the resource quantity is determined.
[0024] In one possible approach, the target business types include: airport ground services, aviation training services, and site leasing services; the resource parameter types for airport ground services include flight type, flight time slot, and flight load capacity; the resource parameter types for aviation training services include training duration, training content, number of trainees, and training methods; and the resource parameter types for site leasing services include site size, site location, and lease duration.
[0025] Thirdly, this application provides an electronic device including a memory and a processor; the memory and the processor are coupled; the memory is used to store instructions executable by the processor; when the processor executes the instructions, it performs the methods described in the first aspect and any possible implementation thereof.
[0026] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the methods described in the first aspect and any possible implementation thereof.
[0027] Fifthly, this application provides a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run computer programs or instructions to implement the methods described in the first aspect and any possible implementation thereof.
[0028] Sixthly, this application provides a computer program product containing instructions that, when executed by a computer, cause the computer to perform the methods described in the first aspect and any possible implementation thereof.
[0029] The technical problems that the resource quantity determination device, electronic device, computer storage medium, chip or computer program product can solve and the technical effects that can be achieved in the above solution can be found in the technical problems and technical effects solved in the first aspect above, and will not be repeated here. Attached Figure Description
[0030] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 A flowchart illustrating a method for determining the quantity of resources provided in an embodiment of this application;
[0032] Figure 2 A flowchart illustrating yet another method for determining the quantity of resources provided in this application embodiment;
[0033] Figure 3 A flowchart illustrating yet another method for determining the quantity of resources provided in this application embodiment;
[0034] Figure 4 This is a structural diagram of a resource quantity determination device provided in an embodiment of this application. Detailed Implementation
[0035] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0036] In the description of this application, it should be understood that the terms "upper," "lower," "left," "right," "front," "rear," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or relative positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and for simplification, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. Unless otherwise specified, the above-mentioned orientational descriptions can be flexibly set in practical applications, provided that the relative positional relationships shown in the accompanying drawings are satisfied.
[0037] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0038] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," and "communication" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection. They can refer to a direct connection or an indirect connection through an intermediate medium, or a connection within two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0039] In embodiments of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, article, or apparatus that includes that element.
[0040] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0041] In the description of this specification, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.
[0042] In some embodiments, such as Figure 1 As shown, this application provides a method for determining the quantity of resources, specifically including: S101-S103.
[0043] S101. Obtain the business type of the target business.
[0044] In one possible implementation, the resource quantity determination device stores multiple preset service types and multiple resource parameter sets corresponding to each preset service type, with one preset service type corresponding to one resource parameter set. Based on the service communication information of the target service, the resource parameter set of the target service is determined. The resource parameter set of the target service is compared with the multiple resource parameter sets of the multiple preset service types to determine the service type of the target service.
[0045] Among them, business transaction information includes contract information and other information used to record resource parameter types for the target business.
[0046] For example, taking airport ground services as the preset service type, the resource quantity determination device stores a set of resource parameters for airport ground services. The set of resource parameters for airport ground services includes flight type, flight operating time, maximum flight load capacity, etc.
[0047] In another possible implementation, the device for determining the amount of resources stores the service type of the target service. The service type of the target service can be identified based on its identifier.
[0048] It should be noted that multiple business types exist simultaneously in this application, such as airport ground services, aviation training, and airport site leasing. This embodiment only analyzes one business type. The methods for determining the quantity of resources for other businesses are consistent with the resource quantity determination method provided in this application.
[0049] S102. Based on the business type, determine the target determination method that matches the business type from multiple preset resource quantity determination methods.
[0050] The preset resource quantity determination method is used to determine the amount of resources consumed by the business.
[0051] For example, the amount of resources consumed by the business can be the cost required to complete the target business.
[0052] It should be noted that the different methods for determining the amount of pre-set resources are related to the influencing factors of the business type. Taking airport ground services as an example, the influencing factors of airport ground services include flight type, flight operating hours, and maximum flight capacity. Therefore, the method for determining the amount of resources for airport ground services is related to flight type, flight operating hours, and maximum flight capacity.
[0053] Among them, the maximum payload capacity of a flight is used to indicate the maximum payload capacity of a flight. It is the maximum total weight of passengers, baggage, cargo and mail that an aircraft can carry when performing a specific flight, based on the flight conditions at the time and under the premise of ensuring safe flight.
[0054] In one possible implementation, based on the business type of the target business, a target determination method that matches the business type of the target business is determined from multiple preset resource quantity determination methods.
[0055] S103. Based on the target determination method and the business database, determine the amount of resources for the target business.
[0056] The business database is a database that stores business data for the target business, which includes multiple sub-businesses.
[0057] In one possible implementation, based on the target determination method and the business database, multiple resource consumption information for multiple sub-businesses is determined. These multiple resource consumption information are then integrated to determine the resource quantity for the target business.
[0058] Among them, the resource consumption information is used to indicate the amount of resources consumed by the sub-service, with one resource consumption information corresponding to one sub-service.
[0059] For example, let's take airport ground services as the target service. The business database stores the business data for airport ground services. Airport ground services include multiple sub-services, such as international flight peak-hour billing, international flight off-peak billing, domestic flight peak-hour billing, and domestic flight off-peak billing. Based on the target determination method and the airport ground service business database, multiple resource consumption information for the multiple sub-services of airport ground services is determined. The multiple resource consumption information for the multiple sub-services of airport ground services is integrated to determine the resource quantity for airport ground services.
[0060] It should be noted that the above examples are merely illustrative, and different types of sub-businesses may exist in actual use.
[0061] As can be seen from the above technical solution, this application can determine the target determination method that matches the business type from multiple preset resource quantity determination methods based on the business type of the target business. This allows for the selection of the appropriate target determination method to calculate the resource quantity of the target business according to different business types, meeting the needs of multiple business scenarios. Based on the target determination method and the business database, this application determines the resource quantity of the target business. Therefore, it can select the necessary data from the business database according to the target determination method to calculate the resource quantity of the target business, thereby accurately determining the resource quantity of the target business. Thus, this application can determine the resource quantity in multiple business scenarios, reducing data processing costs.
[0062] In some embodiments, the resource parameter types of the target service can be obtained, and the target determination method of the target service can be determined based on the parameter types.
[0063] In one possible implementation, an intelligent matching model is used to determine the target determination method that matches the business type of the target business from multiple preset resource quantity determination methods, based on the business type of the target business.
[0064] The intelligent matching model is used to analyze business types and determine the appropriate resource quantity allocation method to match those types. The intelligent matching model is a trained neural network model, obtained by training an initial intelligent matching model using a training set. The training set includes multiple sets of parameter types and multiple preset allocation methods, with each set of parameter types corresponding to one preset allocation method.
[0065] Through training, the intelligent matching model can determine the target determination method that matches the target business type from multiple preset resource quantity determination methods, based on the target business type.
[0066] In some embodiments, such as Figure 2As shown, in the above method S103, the resource quantity of the target business is determined based on the target determination method and the business database, specifically including: S201-S205.
[0067] S201. For each sub-business, determine the method for determining sub-business resources based on the business scenario of the sub-business.
[0068] Among them, the business scenarios of sub-businesses include the influencing factors of how sub-business resources are determined.
[0069] For example, taking airport ground services as the target business and international flight peak-hour billing as the sub-business scenario, the influencing factors for determining the sub-business resources include flight type (i.e., international flights) and flight operating time (i.e., peak hours).
[0070] In one possible implementation, for each sub-business, based on the business scenario of the sub-business, the influencing factors of the sub-business resource determination method are analyzed to determine the sub-business resource determination method corresponding to the sub-business.
[0071] For example, taking airport ground services as the target business and international flight peak-hour billing as the sub-business scenario, the weighted billing method corresponding to international flight peak-hour billing is determined through the business matching module.
[0072] S202. Determine the set of resource parameters based on the sub-business resource determination method.
[0073] The resource parameter set includes multiple preset parameter types required for determining the sub-business resource.
[0074] For example, taking airport ground services as the target business and international flight peak-hour billing as the sub-business scenario, the international flight peak-hour fee satisfies the following formula:
[0075] P = (P base +Q×P rate )×K time ×K type Formula 1.
[0076] Where P represents the peak-hour cost for international flights, P base Q is used to represent the base cost, and P is used to indicate the maximum flight capacity. rate Used to represent the unit price of traffic volume, K time K is used to represent the flight segment coefficient. type Used to represent flight type coefficients.
[0077] Therefore, the set of resource parameters includes the maximum flight load capacity, flight time period, and flight type.
[0078] In one possible implementation, the data analysis module uses multiple preset parameter types required by the sub-business resource determination method as a set of resource parameters, based on the sub-business resource determination method.
[0079] S203. Generate the target query statement based on the resource parameter set.
[0080] In one possible implementation, multiple preset parameter types are determined based on a set of resource parameters. A query statement generation module then replaces the multiple undetermined parameters in the preset query statement with these preset parameter types to generate the target query statement.
[0081] For example, the preset query statement satisfies the following formula two:
[0082] SQL = SELECT F1, F2, ... F n FROM D WHERE C1 AND C2 AND…AND
[0083] C n Formula 2.
[0084] Where SQL is used to represent the target query statement, F n Used to represent the nth undetermined parameter, D is used to represent the business database, C n Used to represent the nth constraint.
[0085] It should be noted that constraints are used to constrain undetermined parameters, such as querying undetermined parameters by constraining a specific time period or a specific flight.
[0086] For example, taking airport ground services as the target business and international flight peak-hour billing as the sub-business scenario, the intelligent data matching engine replaces multiple undetermined parameters in the preset query statement with multiple preset parameter types based on the preset parameter set for international flight peak-hour billing, generating the target query statement. The target query statement satisfies the following formula three:
[0087] SQL tar =SELECT Q,Type,Time FROM D WHERE flight_date
[0088] BETWEEN′2025-05-01′AND′2025-05-31′Formula 3.
[0089] Among them, SQL tarUsed to represent the target query statement, Q to represent the maximum flight capacity, Type to represent the flight type, Time to represent the flight time period, D to represent the business database, and flight_date to represent the flight date.
[0090] It should be noted that the above target query means to retrieve the maximum load capacity, flight type, and flight time information of all flights from May 1, 2025 to May 31, 2025 from the business database.
[0091] S204. Determine multiple resource data sets from the business database using the target query statement.
[0092] The resource data set includes multiple parameter data corresponding to a preset parameter type. Each preset parameter type corresponds to one resource data set.
[0093] In one possible implementation, a target query statement is used to query the business database to determine multiple sets of resource data.
[0094] For example, taking airport ground services as the target business and international flight peak-hour billing as the sub-business scenario, multiple resource data sets are combined, including maximum flight load data set, flight type data set, and flight time information data set.
[0095] For example, the maximum load factor data set for flights contains multiple maximum load factor data sets for flights.
[0096] S205. Based on the sub-business resource determination method and multiple resource data sets, determine the resource consumption information of the sub-business.
[0097] In one possible implementation, based on the sub-service resource determination method and multiple resource data sets, the resource data set corresponding to each preset parameter type in the sub-service resource determination method is determined. The resource data set corresponding to each preset parameter type is then processed according to the sub-service resource determination method to obtain the resource consumption information of the sub-service.
[0098] For example, taking airport ground services as the target business and international flight peak-hour billing as the sub-business scenario, the preset parameter types for determining the resource allocation method for international flight peak-hour billing are flight type, flight flight time, and flight load capacity. Multiple resource data sets are defined as flight type data set, flight flight time data set, and flight load capacity data set. Data from these resource data sets is input into the resource data set corresponding to the sub-business resource allocation method to obtain the resource consumption information for the sub-business.
[0099] It should be noted that the preset parameter types in the sub-business resource determination method may differ in naming from the preset parameter types in the combination of multiple resource data. For example, the preset parameter type in the sub-business resource determination method may be flight load capacity Q, but the field name stored in the business database may be P_load. Therefore, the data in the business database needs to be matched with the preset parameter types in the sub-business resource determination method to ensure that the data can be accurately input into the sub-business resource determination method.
[0100] As described in the above technical solution, this application provides a method for determining the resource consumption information of each sub-service by defining the resource determination method based on the sub-service's business scenario. Furthermore, based on the sub-service resource determination method, this application determines a set of resource parameters and generates a target query statement based on the resource parameter set, thereby determining multiple resource data sets from the business database. Based on the sub-service resource determination method and the resource parameter set, the resource consumption information of the sub-service is accurately determined, improving the accuracy of the resource quantity for subsequent target services.
[0101] As can be seen from the above technical solution, this application, based on the sub-business resource determination method and multiple resource data sets, determines the resource data set corresponding to each preset parameter type in the sub-business resource determination method. This converts the data in the business database and the preset parameter types in the sub-business resource determination method into a unified data dimension, enabling the data in the resource data set to be accurately input into the sub-business resource determination method, thereby precisely determining the resource consumption information of the sub-business.
[0102] In some embodiments, such as Figure 3 As shown, the method for determining the preset resource quantity in the above method S102 is specifically implemented through S301-S302.
[0103] S301. Obtain multiple resource parameter types for the target business.
[0104] Among them, the influencing factor of business type is resource parameter type.
[0105] For example, taking airport ground services as the target business and international flight peak-hour billing as the sub-business scenario. The influencing factors of airport ground services are flight type, flight time, and flight load. Therefore, when the target business is airport ground services, the resource parameter types for airport ground services are flight type, flight time, and flight load.
[0106] In one possible implementation, detailed information about the target business is obtained, and based on this detailed information, the types of multiple resource parameters for the target business are determined.
[0107] It should be noted that, in the embodiments of this application, the business types of the target business include airport ground services, aviation training services, and site leasing services.
[0108] The resource parameters for airport ground services include flight type, flight time slot, and flight load capacity. The resource parameters for aviation training services include the training market, training content, number of trainees, and training methods. The resource parameters for venue leasing services include venue size, location, and lease duration.
[0109] It should be noted that the business types of the target services mentioned above are only some of the business types provided in the embodiments of this application, and may include other business types in actual use.
[0110] S302. Determine the method for determining the preset resource quantity based on multiple resource parameter types.
[0111] In one possible implementation, a data parser analyzes multiple resource parameter types to determine the methods for determining the quantity of resources for multiple sub-businesses. These methods are then integrated to determine the final resource quantity determination method.
[0112] It should be noted that the data parser is used to analyze multiple resource parameter types and, based on these types, determines a method for determining the resource quantity required to identify the target business. The data parser is a trained neural network model, obtained by training an initial data parser on a historical training dataset. This allows the trained data parser to analyze multiple resource parameter types and construct a method for determining the resource quantity required to identify the resource consumption information of sub-businesses.
[0113] The historical training dataset includes multiple resource parameter types and multiple methods for determining the resource quantity. Each set of resource parameter types corresponds to one method for determining the resource quantity.
[0114] It should be noted that the data parser constructs a method for determining the resource quantity based on the resource parameter type. The intelligent matching module in the above method is used to select a matching resource determination method according to the resource parameter type of the target business.
[0115] As can be seen from the above technical solution, this application obtains multiple resource parameter types of the target business and determines the resource quantity determination method based on these multiple resource parameter types. This enables the application to determine different resource quantity determination methods according to different types of businesses, thus meeting the needs of resource quantity determination in multi-business scenarios.
[0116] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. It is understood that the resource quantity determination device, in order to achieve the above functions, includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the resource quantity determination method steps described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0117] This application also provides a device for determining the quantity of resources. This device can be a server, a CPU within the server, a module within the server for determining the quantity of resources, or a client within the server for determining the quantity of resources.
[0118] This application embodiment can divide the resource quantity determination device into functional modules or functional units according to the above method example. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing unit. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0119] When dividing each function into modules according to its corresponding function. Figure 4 A structural diagram of a resource quantity determination device provided in this application is shown below. Figure 4 As shown, the device for determining the quantity of resources can be used to perform... Figure 1 , Figure 2 , Figure 3 The method for determining the quantity of resources shown. The resource quantity determining device 40 includes: an acquisition unit 401 and a processing unit 402.
[0120] Acquisition unit 401 is used to acquire the business type of the target business.
[0121] Processing unit 402 is used to determine a target determination method that matches the business type from multiple preset resource quantity determination methods based on the business type. The preset resource quantity determination method is used to determine the amount of resources consumed by the business. Different preset resource quantity determination methods are related to the influence factor of the business type. The influence factor is the factor that affects the method of determining the resource quantity.
[0122] The processing unit 402 is further configured to determine the resource quantity of the target business based on the target determination method and the business database, wherein the business database is a database that stores the business data of the target business.
[0123] In one possible approach, the processing unit 402 is specifically used to determine multiple resource consumption information for multiple sub-services based on the target determination method and the business database. The resource consumption information is used to indicate the amount of resources consumed by the sub-services, with one resource consumption information corresponding to one sub-service. The multiple resource consumption information are then integrated to determine the amount of resources for the target service.
[0124] In one possible approach, the target determination method includes multiple sub-business resource determination methods, with one sub-business corresponding to one sub-business resource determination method. Each sub-business resource determination method consists of multiple preset parameter types. The processing unit 402 is specifically used to, for each sub-business, determine a sub-business resource determination method based on the sub-business's business scenario, where the business scenario includes influencing factors for the sub-business resource determination method; determine a resource parameter set based on the sub-business resource determination method, where the resource parameter set includes multiple preset parameter types required by the sub-business resource determination method; generate a target query statement based on the resource parameter set, which is used to query parameter data corresponding to multiple preset parameter types from the business database; determine multiple resource data sets from the business database using the target query statement, where each resource data set includes multiple parameter data corresponding to one preset parameter type; one preset parameter type corresponds to one resource data set; and determine the resource consumption information of the sub-business based on the sub-business resource determination method and the multiple resource data sets.
[0125] In one possible approach, the processing unit 402 is specifically used to determine the resource data set corresponding to each preset parameter type in the sub-service resource determination method based on the sub-service resource determination method and multiple resource data sets; and to process the resource data set corresponding to each preset parameter type according to the sub-service resource determination method to obtain the resource consumption information of the sub-service.
[0126] In one possible approach, the influencing factor of the business type is the resource parameter type; the processing unit 402 is specifically used to obtain multiple resource parameter types of the target business; and based on the multiple resource parameter types, determine the method for determining the resource quantity.
[0127] In one possible approach, the target business types include: airport ground services, aviation training services, and site leasing services; the resource parameter types for airport ground services include flight type, flight time slot, and flight load capacity; the resource parameter types for aviation training services include training duration, training content, number of trainees, and training methods; and the resource parameter types for site leasing services include site size, site location, and lease duration.
[0128] This disclosure also provides a computer-readable storage medium storing instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the resource quantity determination method provided in the embodiments of this disclosure described above.
[0129] This disclosure also provides a computer program product containing instructions that, when run on an electronic device, cause the electronic device to execute the method for determining the number of resources provided in the above-described embodiments of this disclosure.
[0130] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections having one or more wires; portable computer disks; hard disks; random access memory (RAM); read-only memory (ROM); erasable programmable read-only memory (EPROM); registers; hard disks; optical fibers; portable compact disc read-only memory (CD-ROM); optical storage devices; magnetic storage devices; or any suitable combination thereof; or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0131] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0132] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0133] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the classified units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0134] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0135] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, essentially, or the part that contributes to the prior art, or a complete or partial classification of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0136] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for determining the quantity of resources, characterized in that, The method includes: Obtain the business type of the target business; Based on the business type, a target determination method matching the business type is determined from multiple preset resource quantity determination methods. The preset resource quantity determination method is used to determine the amount of resources consumed by the business. Different preset resource quantity determination methods are related to the influence factors of the business type. The influence factors are factors that affect the method of determining the resource quantity. Based on the target determination method and the business database, the resource quantity of the target business is determined, wherein the business database is a database that stores the business data of the target business.
2. The method according to claim 1, characterized in that, The target service comprises multiple sub-services. Determining the resource quantity of the target service based on the target determination method and the service database includes: Based on the target determination method and the business database, multiple resource consumption information of the multiple sub-businesses is determined. The resource consumption information is used to indicate the amount of resources consumed by the sub-business, and one resource consumption information corresponds to one sub-business. By integrating the multiple resource consumption information, the resource quantity of the target service is determined.
3. The method according to claim 2, characterized in that, The target determination method includes multiple sub-service resource determination methods, with one sub-service corresponding to one sub-service resource determination method, and each sub-service resource determination method is composed of multiple preset parameter types; The determination of multiple resource consumption information for the multiple sub-services based on the target determination method and the business database includes: For each of the sub-businesses, the resource allocation method for the sub-business is determined based on the business scenario of the sub-business, and the business scenario of the sub-business includes the influencing factors of the resource allocation method for the sub-business. Based on the sub-service resource determination method, a resource parameter set is determined, the resource parameter set including the multiple preset parameter types required by the sub-service resource determination method; Based on the resource parameter set, the target query statement is generated, and the target query statement is used to determine the parameter data corresponding to the multiple preset parameter types from the business database; Multiple resource data sets are determined from the business database using the target query statement. Each resource data set includes multiple parameter data corresponding to a preset parameter type; each preset parameter type corresponds to one resource data set. Based on the sub-service resource determination method and the multiple resource data sets, the resource consumption information of the sub-service is determined.
4. The method according to claim 3, characterized in that, The step of determining the resource consumption information of the sub-service based on the sub-service resource determination method and the multiple resource data sets includes: Based on the sub-service resource determination method and the multiple resource data sets, determine the resource data set corresponding to each preset parameter type in the sub-service resource determination method; The resource data set corresponding to each preset parameter type is processed according to the sub-service resource determination method to obtain the resource consumption information of the sub-service.
5. The method according to claim 1, characterized in that, The influencing factor for the business type is the resource parameter type; the preset resource quantity is determined in the following way: Obtain multiple resource parameter types for the target service; Based on the multiple resource parameter types, the method for determining the preset resource quantity is determined.
6. The method according to claim 1, characterized in that, The target business includes the following business types: airport ground services; aviation training services; and venue leasing services. The resource parameters for airport ground services include flight type, flight time slot, and flight load capacity. The resource parameters for the aviation training service include training duration, training content, number of trainees, and training methods. The resource parameters for the venue rental service include venue size, venue location, and rental duration.
7. A device for determining the quantity of resources, characterized in that, The device includes: The acquisition unit is used to acquire the service type of the target service; The processing unit is configured to determine a target determination method that matches the business type from multiple preset resource quantity determination methods based on the business type. The preset resource quantity determination method is used to determine the amount of resources consumed by the business. Different preset resource quantity determination methods are related to the influence factor of the business type. The influence factor is a factor that affects the method of determining the resource quantity. The processing unit is further configured to determine the resource quantity of the target service based on the target determination method and the business database, wherein the business database is a database storing the business data of the target service.
8. An electronic device, characterized in that, It includes a memory and a processor; the memory and the processor are coupled; the memory is used to store instructions executable by the processor; when the processor executes the instructions, it performs the method as described in any one of claims 1-6.
9. A computer storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-6.
10. A computer program product, characterized in that, When the computer program product is run on the natural gas import quantity determination device, the resource quantity determination device performs the method as described in any one of claims 1-6.