CN118229412A - Resource allocation method, device, computer equipment and storage medium - Google Patents

Resource allocation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN118229412A
CN118229412A CN202410443095.8A CN202410443095A CN118229412A CN 118229412 A CN118229412 A CN 118229412A CN 202410443095 A CN202410443095 A CN 202410443095A CN 118229412 A CN118229412 A CN 118229412A
Authority
CN
China
Prior art keywords
resource
service
allocation
coefficients
coefficient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410443095.8A
Other languages
Chinese (zh)
Inventor
刘大龙
谢发川
范云云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202410443095.8A priority Critical patent/CN118229412A/en
Publication of CN118229412A publication Critical patent/CN118229412A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a resource allocation method, a resource allocation device, computer equipment, a storage medium and a computer program product, and relates to the technical field of big data processing. The method comprises the following steps: responding to a resource allocation instruction, determining service types corresponding to a target service point, wherein resource coefficients corresponding to different service types are different; performing resource allocation of a single service type in the target service point: acquiring unit resource quantity corresponding to the single service type, and calculating a resource coefficient of the single service type; obtaining the resources of the single service type based on the resource coefficient, the unit resource amount and the allocation rule; after the resource allocation of the single service type is completed, the resources allocated by other different service types are obtained, and the resources of the service types corresponding to the target service point are added to obtain the resources allocated by the target service point. The method can be used for carrying out resource allocation aiming at various service types.

Description

Resource allocation method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data processing technology, and in particular, to a resource allocation method, apparatus, computer device, storage medium, and computer program product.
Background
In rural villages and villages, service points of cooperative merchants are designated, and payment services such as withdrawal, remittance, proxy payment and balance inquiry are provided for farmers through the forms of arranging bank card acceptance terminals and the like. The service departments can issue commissions according to the grade of the service points and the transaction details of the service points while improving the service of the service points of each place, so that the service quality of the service points of the pesticide assistance is improved.
In the related art, the existing commission calculation system is relatively fixed, commission calculation is performed according to information such as service point transaction details, service point grades and the like, orders which can be issued with commissions are screened out every day according to rules, then commission distribution is calculated according to fixed rules, and when commission calculation of various service types is carried out, the commission distribution system needs to be modified, so that the flexibility is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource allocation method, apparatus, computer device, storage medium, and computer program product. The technical scheme of the application obtains, stores, uses, processes and the like the data, which all meet the relevant regulations of national laws and regulations.
It should be noted that, in the embodiments of the present application, some existing solutions in the industry such as software, components, models, etc. may be mentioned, and they should be regarded as exemplary, only for illustrating the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or must not use the solution.
In a first aspect, the present application provides a resource allocation method. The method comprises the following steps:
responding to a resource allocation instruction, determining service types corresponding to a target service point, wherein resource coefficients corresponding to different service types are different;
performing resource allocation of a single service type in the target service point:
Acquiring unit resource quantity corresponding to the single service type, and calculating a resource coefficient of the single service type; the calculation process of the resource coefficient comprises the following steps: acquiring the transaction quantity, transaction resource quantity, service ranking and allocation rule of the single service type, and determining a resource coefficient;
Obtaining the resources of the single service type based on the resource coefficient, the unit resource amount and the allocation rule;
after the resource allocation of the single service type is completed, the resources allocated by other different service types are obtained, and the resources of the service types corresponding to the target service point are added to obtain the resources allocated by the target service point.
In one embodiment, the setting of the resource coefficient includes:
a traffic type comprises a plurality of resource coefficients, wherein the number of resource coefficients is associated with the allocation rule, and the initial value of the resource coefficient is one.
In one embodiment, the determining the number of resource coefficients includes:
Determining the allocation rule based on the service type, wherein the allocation rule is associated with the transaction quantity, the transaction resource quantity and the service ranking;
the number of resource coefficients is determined based on the allocation rule.
In one embodiment, the resource calculation process of the single service type includes:
Determining a transaction amount threshold value under the condition that the number of the resource coefficients is one;
Obtaining the resource coefficient based on the resource coefficient and the unit resource quantity; and obtaining the resources of the single service type based on the transaction amount threshold and the resource coefficient.
In one embodiment, the single service type resource calculation process further includes:
under the condition that the number of the resource coefficients is larger than one, determining a first resource corresponding to a first allocation rule, and comparing the first resource with a resource threshold value to obtain a comparison result;
And when the comparison result shows that the first resource is larger than the resource threshold value, acquiring a second allocation rule to calculate the corresponding allocated resource.
In one embodiment, the method further comprises:
Acquiring the service type of a target service point;
sorting the resources allocated based on the service types to obtain sorted resources;
And allocating resources based on the ordering.
In a second aspect, the present application also provides a resource allocation apparatus, where the apparatus includes:
The response module is used for responding to the resource allocation instruction, determining the service type corresponding to the target service point, and the resource coefficients corresponding to different service types are different;
An execution module, configured to execute resource allocation of a single service type in the target service point:
Acquiring unit resource quantity corresponding to the single service type, and calculating a resource coefficient of the single service type; the calculation process of the resource coefficient comprises the following steps: acquiring the transaction quantity, transaction resource quantity, service ranking and allocation rule of the single service type, and determining a resource coefficient;
Obtaining the resources of the single service type based on the resource coefficient, the unit resource amount and the allocation rule;
And the allocation module is used for acquiring the resources allocated by other different service types after the resource allocation of the single service type is completed, and adding the resources of the service types corresponding to the target service point to obtain the resources allocated by the target service point.
In one embodiment, the setting of the resource coefficient includes:
a traffic type comprises a plurality of resource coefficients, wherein the number of resource coefficients is associated with the allocation rule, and the initial value of the resource coefficient is one.
In one embodiment, the determining the number of resource coefficients includes:
Determining the allocation rule based on the service type, wherein the allocation rule is associated with the transaction quantity, the transaction resource quantity and the service ranking;
the number of resource coefficients is determined based on the allocation rule.
In one embodiment, the resource calculation process of the single service type includes:
Determining a transaction amount threshold value under the condition that the number of the resource coefficients is one;
Obtaining the resource coefficient based on the resource coefficient and the unit resource quantity; and obtaining the resources of the single service type based on the transaction amount threshold and the resource coefficient.
In one embodiment, the single service type resource calculation process further includes:
under the condition that the number of the resource coefficients is larger than one, determining a first resource corresponding to a first allocation rule, and comparing the first resource with a resource threshold value to obtain a comparison result;
And when the comparison result shows that the first resource is larger than the resource threshold value, acquiring a second allocation rule to calculate the corresponding allocated resource.
In one embodiment, the apparatus further comprises:
Acquiring the service type of a target service point;
sorting the resources allocated based on the service types to obtain sorted resources;
And allocating resources based on the ordering.
In a third aspect, the present disclosure also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the resource allocation method when the processor executes the computer program.
In a fourth aspect, the present disclosure also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of a resource allocation method.
In a fifth aspect, the present disclosure also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the resource allocation method.
The resource allocation method at least comprises the following beneficial effects:
According to the embodiment scheme provided by the disclosure, the service types corresponding to the target service points are determined, the resource coefficients corresponding to different service types are obtained, the resource allocation model is abstracted, three types of parameters including the transaction quantity, the transaction resource quantity and the service ranking are extracted, the parameters are used for adjusting the resource coefficients, and different allocation rules are formed through arrangement and combination of different resource coefficients. According to the parameter maintenance mode of resource allocation, each time the resource allocation rule is adjusted, the resource allocation system does not need to be repeatedly developed, and only the resource coefficient is configured. The resource allocation calculation can be performed for more service types, and new service types can be supported without modifying a resource allocation system.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments or the conventional techniques of the present disclosure, the drawings required for the descriptions of the embodiments or the conventional techniques will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to the drawings without inventive effort to those of ordinary skill in the art.
FIG. 1 is an application environment diagram of a resource allocation method in one embodiment;
FIG. 2 is a flow chart of a method of resource allocation in one embodiment;
FIG. 3 is a schematic diagram of a resource allocation method in one embodiment;
FIG. 4 is a flow diagram of resource allocation in one embodiment;
FIG. 5 is a block diagram of a resource allocation device in one embodiment;
FIG. 6 is an internal block diagram of a computer device in one embodiment;
fig. 7 is an internal structural diagram of a server in one embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises a described element. For example, if first, second, etc. words are used to indicate a name, but not any particular order.
The embodiment of the disclosure provides a resource allocation method, which can be applied to an application environment as shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In some embodiments of the present disclosure, as shown in fig. 2, a resource allocation method is provided, and the method is applied to the server in fig. 1 to process resources for illustration. It will be appreciated that the method may be applied to a server, and may also be applied to a system comprising a terminal and a server, and implemented by interaction of the terminal and the server. In a specific embodiment, the method may include the steps of:
s202: and responding to the resource allocation instruction, determining the service type corresponding to the target service point, wherein the resource coefficients corresponding to different service types are different.
The target service point can provide services of multiple service types, and the transaction quantity, the transaction resource quantity and the service ranking of different service types can be affected differently by the quality of the service point. The resource allocation can be performed aiming at the target service point, so that the service quality is improved.
The resource allocation instructions may be related to the traffic type, number of transactions, amount of transaction resources, traffic ranking, etc. of the target service point. And determining the service type corresponding to the target service point, wherein the service type can comprise the service of facilitating the withdrawal of money, the transfer of money, the loan service and the like. One type of service corresponds to one commission type, one commission type can correspond to a plurality of resource coefficients, the resource coefficients corresponding to different types of service are different, and the resource coefficients can be adjusted according to the quality of a target service point.
S204: performing resource allocation of a single service type in the target service point:
Acquiring unit resource quantity corresponding to the single service type, and calculating a resource coefficient of the single service type; the calculation process of the resource coefficient comprises the following steps: acquiring the transaction quantity, transaction resource quantity, service ranking and allocation rule of the single service type, and determining a resource coefficient;
and obtaining the resources of the single service type based on the resource coefficient, the unit resource amount and the allocation rule.
The unit resource amount may refer to a commission returned by the target service point when the single business is completed, and the final commission returned result is related to the transaction amount, the transaction resource amount and the business rank of the single business type, and a resource coefficient may be set to adjust the commission allocated by the target service point.
The number of resource coefficients of a single service type may be single or multiple. In the case where the number of resource coefficients of a single service type is one, an allocation rule, a resource coefficient, a unit resource amount are obtained, and the allocation rule may be used to specify the number of return commissions, the upper limit of the return commission amount, and the like, and the resource of the single service type is obtained based on the product of the resource coefficient and the unit resource amount. In the case that the number of the resource coefficients of the single service type is a plurality of, the allocation rule may include a plurality of sub-rules and resource thresholds, and when the resource thresholds are satisfied, the second sub-rule may be called to perform calculation after the calculation of the first sub-rule is completed.
S206, after the resource allocation of the single service type is completed, acquiring the resources allocated by other different service types, and adding the resources of the service type corresponding to the target service point to obtain the resources allocated by the target service point.
According to the parameter maintenance mode of commission distribution, each time the commission calculation rule is adjusted, the commission distribution system does not need to be repeatedly developed, and only the commission parameters are configured. The commission calculation model is as follows:
wherein x represents a certain service point; Representing the commission amount for service point x; representing the total number of service types; Representing the number of types of commission coefficients corresponding to each service type; representing the commission coefficient corresponding to each service type, and defaulting to 1 if the commission coefficient is not configured; Representing commissions corresponding to each business type, supporting a return commission in terms of transaction amount, or ranking in terms of total amount.
FIG. 3 is a diagram of resource allocation in one embodiment. Obtaining transaction details of the target service point to obtain service types of the target service point, wherein the commission coefficients of the service type 0 can comprise 6 and the commission types of the service type 1 can comprise 4 until the service type 6 is calculated, obtaining the number of the commission coefficients, and adding up resources of the service types corresponding to the target service point after all service type resources are allocated to obtain resources allocated by the target service point.
In the resource allocation method, the service types corresponding to the target service points are determined, the resource coefficients corresponding to different service types are obtained, the resource allocation model is abstracted, three types of parameters including the transaction quantity, the transaction resource quantity and the service ranking are extracted, the parameters are used for adjusting the resource coefficients, and different allocation rules are formed through arrangement and combination of different resource coefficients. According to the parameter maintenance mode of resource allocation, each time the resource allocation rule is adjusted, the resource allocation system does not need to be repeatedly developed, and only the resource coefficient is configured. The resource allocation calculation can be performed for more service types, and new service types can be supported without modifying a resource allocation system.
In some embodiments of the present disclosure, the setting of the resource coefficient includes:
a traffic type comprises a plurality of resource coefficients, wherein the number of resource coefficients is associated with the allocation rule, and the initial value of the resource coefficient is one.
A service type corresponds to a plurality of resource coefficients, and if a certain type of resource coefficient is not needed, the service type can be set to be 1, i.e. the resource coefficient does not influence the resource allocation result,Representing the number of categories of resource coefficients corresponding to each traffic type,Representing commission coefficients corresponding to each business type, the commission coefficients can be used toThe resource parameter is set to be 1, and the resource parameter can be flexibly adjusted without redevelopment.
In some embodiments of the present disclosure, the determining the number of resource coefficients includes:
Determining the allocation rule based on the service type, wherein the allocation rule is associated with the transaction quantity, the transaction resource quantity and the service ranking;
the number of resource coefficients is determined based on the allocation rule.
The allocation rules of different service types can be set according to the transaction quantity, the transaction resource quantity and the service ranking, the quantity of the resource coefficients is determined according to the allocation rules, and the resource threshold is set.
In some embodiments of the present disclosure, the single service type resource calculation process includes:
Determining a transaction amount threshold value under the condition that the number of the resource coefficients is one;
Obtaining the resource coefficient based on the resource coefficient and the unit resource quantity; and obtaining the resources of the single service type based on the transaction amount threshold and the resource coefficient.
The allocation rule of the agricultural withdrawal assisting is that the unit resource quantity B1 is set to be 1.3 yuan according to the transaction quantity, the resource parameter A11=0.5 is the transaction quantity, the agricultural withdrawal assisting quantity is more than other business types, and the first 5 transaction returns can be set according to the allocation rule.
In some embodiments of the present disclosure, the single service type resource calculation process further includes:
under the condition that the number of the resource coefficients is larger than one, determining a first resource corresponding to a first allocation rule, and comparing the first resource with a resource threshold value to obtain a comparison result;
And when the comparison result shows that the first resource is larger than the resource threshold value, acquiring a second allocation rule to calculate the corresponding allocated resource.
The transfer remittance business type may be ranked and returned according to the transaction amount, the unit resource amount B2 is 10 yuan, the resource parameter is set to a21= (service point number-ranking)/service point number, a22=transaction number >10 is 1, the transaction amount <10 is 0.7, and the transfer remittance returned coefficient is a21×a22.
The loan transaction type may be returned based on the transaction amount, with the unit resource amount B3 being 1 element, the resource parameter a31=transaction amount 0.01% and the transaction amount > 10000.
In some embodiments of the present disclosure, fig. 4 is a schematic flow chart of resource allocation in one embodiment, where the method further includes:
S402: acquiring the service type of a target service point;
sorting the resources allocated based on the service types to obtain sorted resources;
And allocating resources based on the ordering.
Different allocation rules are formed through the arrangement and combination of different resource parameters. According to the parameter maintenance mode of resource allocation, the allocation rule is adjusted every time, the resource allocation system does not need to be repeatedly developed, only the resource parameters are configured, and the resources can be allocated according to the transaction quantity, the transaction resource quantity and the service ranking.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiments of the present disclosure also provide a resource allocation apparatus for implementing the above-mentioned resource allocation method. The implementation scheme of the solution to the problem provided by the device is similar to that described in the above method, so the specific limitation in the embodiments of the resource allocation device provided below may refer to the limitation of the resource allocation method hereinabove, and will not be repeated here.
The apparatus may comprise a system (including a distributed system), software (applications), modules, components, servers, clients, etc. that employ the methods described in the embodiments of the present specification in combination with the necessary apparatus to implement the hardware. Based on the same innovative concepts, embodiments of the present disclosure provide for devices in one or more embodiments as described in the following examples. Because the implementation scheme and the method for solving the problem by the device are similar, the implementation of the device in the embodiment of the present disclosure may refer to the implementation of the foregoing method, and the repetition is not repeated. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
In one embodiment, as shown in fig. 5, a resource allocation apparatus 500 is provided, which may be the aforementioned server, or a module, component, device, unit, etc. integrated with the server. The apparatus 500 may include:
The response module 502 is configured to determine a service type corresponding to the target service point in response to the resource allocation instruction, where resource coefficients corresponding to different service types are different;
an execution module 504, configured to execute resource allocation of a single service type in the target service point:
Acquiring unit resource quantity corresponding to the single service type, and calculating a resource coefficient of the single service type; the calculation process of the resource coefficient comprises the following steps: acquiring the transaction quantity, transaction resource quantity, service ranking and allocation rule of the single service type, and determining a resource coefficient;
Obtaining the resources of the single service type based on the resource coefficient, the unit resource amount and the allocation rule;
And the allocation module 506 is configured to obtain the resources allocated by the different service types after the allocation of the resources of the single service type is completed, and add the resources of the service types corresponding to the target service point to obtain the resources allocated by the target service point.
In one embodiment, the setting of the resource coefficient includes:
a traffic type comprises a plurality of resource coefficients, wherein the number of resource coefficients is associated with the allocation rule, and the initial value of the resource coefficient is one.
In one embodiment, the determining the number of resource coefficients includes:
Determining the allocation rule based on the service type, wherein the allocation rule is associated with the transaction quantity, the transaction resource quantity and the service ranking;
the number of resource coefficients is determined based on the allocation rule.
In one embodiment, the resource calculation process of the single service type includes:
Determining a transaction amount threshold value under the condition that the number of the resource coefficients is one;
Obtaining the resource coefficient based on the resource coefficient and the unit resource quantity; and obtaining the resources of the single service type based on the transaction amount threshold and the resource coefficient.
In one embodiment, the single service type resource calculation process further includes:
under the condition that the number of the resource coefficients is larger than one, determining a first resource corresponding to a first allocation rule, and comparing the first resource with a resource threshold value to obtain a comparison result;
And when the comparison result shows that the first resource is larger than the resource threshold value, acquiring a second allocation rule to calculate the corresponding allocated resource.
In one embodiment, the apparatus further comprises:
Acquiring the service type of a target service point;
sorting the resources allocated based on the service types to obtain sorted resources;
And allocating resources based on the ordering.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The above-described respective modules in the resource allocation apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing resources. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a resource allocation method.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a resource allocation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the structures shown in fig. 6 and 7 are merely block diagrams of partial structures related to the disclosed aspects and do not constitute a limitation of the computer device on which the disclosed aspects are applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, implements the method of any of the embodiments of the present disclosure.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method described in any of the embodiments of the present disclosure.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided by the present disclosure may include at least one of non-volatile and volatile memory, among others. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the various embodiments provided by the present disclosure may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors involved in the embodiments provided by the present disclosure may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic, quantum computing-based data processing logic, etc., without limitation thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples have expressed only a few embodiments of the present disclosure, which are described in more detail and detail, but are not to be construed as limiting the scope of the present disclosure. It should be noted that variations and modifications can be made by those skilled in the art without departing from the spirit of the disclosure, which are within the scope of the disclosure. Accordingly, the scope of the present disclosure should be determined from the following claims.

Claims (15)

1. A method of resource allocation, the method comprising:
responding to a resource allocation instruction, determining service types corresponding to a target service point, wherein resource coefficients corresponding to different service types are different;
performing resource allocation of a single service type in the target service point:
Acquiring unit resource quantity corresponding to the single service type, and calculating a resource coefficient of the single service type; the calculation process of the resource coefficient comprises the following steps: acquiring the transaction quantity, transaction resource quantity, service ranking and allocation rule of the single service type, and determining a resource coefficient;
Obtaining the resources of the single service type based on the resource coefficient, the unit resource amount and the allocation rule;
after the resource allocation of the single service type is completed, the resources allocated by other different service types are obtained, and the resources of the service types corresponding to the target service point are added to obtain the resources allocated by the target service point.
2. The method of claim 1, wherein the setting of the resource coefficients comprises:
a traffic type comprises a plurality of resource coefficients, wherein the number of resource coefficients is associated with the allocation rule, and the initial value of the resource coefficient is one.
3. The method of claim 2, wherein the determining of the number of resource coefficients comprises:
Determining the allocation rule based on the service type, wherein the allocation rule is associated with the transaction quantity, the transaction resource quantity and the service ranking;
the number of resource coefficients is determined based on the allocation rule.
4. A method according to claim 3, wherein the single traffic type resource calculation procedure comprises:
Determining a transaction amount threshold value under the condition that the number of the resource coefficients is one;
Obtaining the resource coefficient based on the resource coefficient and the unit resource quantity; and obtaining the resources of the single service type based on the transaction amount threshold and the resource coefficient.
5. The method of claim 3, wherein the single traffic type resource calculation process further comprises:
under the condition that the number of the resource coefficients is larger than one, determining a first resource corresponding to a first allocation rule, and comparing the first resource with a resource threshold value to obtain a comparison result;
And when the comparison result shows that the first resource is larger than the resource threshold value, acquiring a second allocation rule to calculate the corresponding allocated resource.
6. The method according to claim 1, wherein the method further comprises:
Acquiring the service type of a target service point;
sorting the resources allocated based on the service types to obtain sorted resources;
And allocating resources based on the ordering.
7. A resource allocation apparatus, the apparatus comprising:
The response module is used for responding to the resource allocation instruction, determining the service type corresponding to the target service point, and the resource coefficients corresponding to different service types are different;
An execution module, configured to execute resource allocation of a single service type in the target service point:
Acquiring unit resource quantity corresponding to the single service type, and calculating a resource coefficient of the single service type; the calculation process of the resource coefficient comprises the following steps: acquiring the transaction quantity, transaction resource quantity, service ranking and allocation rule of the single service type, and determining a resource coefficient;
Obtaining the resources of the single service type based on the resource coefficient, the unit resource amount and the allocation rule;
And the allocation module is used for acquiring the resources allocated by other different service types after the resource allocation of the single service type is completed, and adding the resources of the service types corresponding to the target service point to obtain the resources allocated by the target service point.
8. The apparatus of claim 7, wherein the setting of the resource coefficients comprises:
a traffic type comprises a plurality of resource coefficients, wherein the number of resource coefficients is associated with the allocation rule, and the initial value of the resource coefficient is one.
9. The apparatus of claim 8, wherein the determining of the number of resource coefficients comprises:
Determining the allocation rule based on the service type, wherein the allocation rule is associated with the transaction quantity, the transaction resource quantity and the service ranking;
the number of resource coefficients is determined based on the allocation rule.
10. The apparatus of claim 9, wherein the single traffic type resource calculation procedure comprises:
Determining a transaction amount threshold value under the condition that the number of the resource coefficients is one;
Obtaining the resource coefficient based on the resource coefficient and the unit resource quantity; and obtaining the resources of the single service type based on the transaction amount threshold and the resource coefficient.
11. The apparatus of claim 9, wherein the single traffic type resource calculation procedure further comprises:
under the condition that the number of the resource coefficients is larger than one, determining a first resource corresponding to a first allocation rule, and comparing the first resource with a resource threshold value to obtain a comparison result;
And when the comparison result shows that the first resource is larger than the resource threshold value, acquiring a second allocation rule to calculate the corresponding allocated resource.
12. The apparatus of claim 7, wherein the apparatus further comprises:
Acquiring the service type of a target service point;
sorting the resources allocated based on the service types to obtain sorted resources;
And allocating resources based on the ordering.
13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
15. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202410443095.8A 2024-04-12 2024-04-12 Resource allocation method, device, computer equipment and storage medium Pending CN118229412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410443095.8A CN118229412A (en) 2024-04-12 2024-04-12 Resource allocation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410443095.8A CN118229412A (en) 2024-04-12 2024-04-12 Resource allocation method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118229412A true CN118229412A (en) 2024-06-21

Family

ID=91497556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410443095.8A Pending CN118229412A (en) 2024-04-12 2024-04-12 Resource allocation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118229412A (en)

Similar Documents

Publication Publication Date Title
CN110750530A (en) Service system and data checking method thereof
CN116894721A (en) Index prediction method and device and computer equipment
CN117112942A (en) User interface adjustment method, device, computer equipment and storage medium
CN117035980A (en) Resource borrowing evaluation method, device, computer equipment and storage medium
CN116319576A (en) Access flow control method, device, computer equipment and storage medium
CN118229412A (en) Resource allocation method, device, computer equipment and storage medium
CN113326680A (en) Method and device for generating table
CN118096339A (en) Service data processing method, device, computer equipment and storage medium
CN117372152A (en) Resource return plan information generation method and device and computer equipment
CN114911835A (en) User information processing method, apparatus, device, storage medium, and program product
CN117314036A (en) Work order distribution method, apparatus, device, storage medium and program product
CN118154035A (en) Method, device, equipment, storage medium and product for evaluating value of business data
CN117555521A (en) Business requirement development method, device, computer equipment and storage medium
CN116521343A (en) Resource interaction information processing method, device, computer equipment and storage medium
CN117252380A (en) Data processing method, device and computer equipment for land resource replacement
CN117216164A (en) Financial data synchronous processing method, apparatus, device, medium and program product
CN117312405A (en) User anomaly level determination method, device, computer equipment, medium and product
CN116976606A (en) Method, device, equipment, medium and product for determining demand resources
CN117132335A (en) Method and device for determining resource transaction value in resource contract and computer equipment
CN117724830A (en) Method, device and computer equipment for configuring application resources
CN118195773A (en) Transaction data verification method, device, computer equipment, storage medium and product
CN116308386A (en) Service processing method, device, computer program product and readable storage medium
CN117390490A (en) Method, apparatus, device, storage medium and product for generating report for telecommunication
CN117519871A (en) Method, device and equipment for configuring operation layout of financial service application
CN117312653A (en) Service policy determination method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination