CN112465400A - Resource adjusting method, device, server and storage medium - Google Patents

Resource adjusting method, device, server and storage medium Download PDF

Info

Publication number
CN112465400A
CN112465400A CN202011490878.XA CN202011490878A CN112465400A CN 112465400 A CN112465400 A CN 112465400A CN 202011490878 A CN202011490878 A CN 202011490878A CN 112465400 A CN112465400 A CN 112465400A
Authority
CN
China
Prior art keywords
resource
adjustment
target object
adjusting
residual quantity
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
CN202011490878.XA
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.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software Technology 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 Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN202011490878.XA priority Critical patent/CN112465400A/en
Publication of CN112465400A publication Critical patent/CN112465400A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a resource adjusting method, a resource adjusting device, a server and a storage medium. The method comprises the following steps: acquiring the resource residual amount of a target object; when the resource residual quantity meets the adjustment condition, determining an adjustment strategy corresponding to the resource residual quantity; and adjusting the resources of the target object according to the adjustment strategy. The technical scheme of the embodiment of the invention realizes the real-time monitoring of the resource surplus of the target object and greatly improves the accuracy of the resource adjustment of the target object.

Description

Resource adjusting method, device, server and storage medium
Technical Field
The embodiment of the invention relates to the technical field of information, in particular to a resource adjusting method, a resource adjusting device, a server and a storage medium.
Background
In recent years, with the globalization of economy, the number of accounts owned by a company increases from tens to hundreds, and each account supports different services, and in order to ensure that the company services can operate normally, the balance management of the account of the company is important.
At present, account balance of a company is managed mostly through manual monitoring and manual allocation of financial staff, and the problems of poor monitoring real-time performance, high labor cost and easy repetition of allocation operation exist, so that the account balance of the company cannot be managed timely and accurately.
Disclosure of Invention
The invention provides a resource adjusting method, a resource adjusting device, a server and a storage medium, which are used for realizing more rapid, convenient and accurate management of balance of a company account.
In a first aspect, an embodiment of the present invention provides a resource adjustment method, where the method includes:
acquiring the resource residual amount of a target object;
when the resource residual quantity meets the adjustment condition, determining an adjustment strategy corresponding to the resource residual quantity;
and adjusting the resources of the target object according to the adjustment strategy.
In a second aspect, an embodiment of the present invention further provides a resource adjusting apparatus, where the apparatus includes:
the resource surplus acquiring module is used for acquiring the surplus of the resources of the target object;
the strategy determining module is used for determining an adjusting strategy corresponding to the resource residual quantity when the resource residual quantity meets an adjusting condition;
and the resource adjusting module is used for adjusting the resources of the target object according to the adjusting strategy.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs which, when executed by the processor, cause the processor to implement a resource adjustment method as provided by any of the embodiments of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a resource adjustment method as provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the resource residual quantity of the target object is obtained, when the resource residual quantity meets the adjustment condition, the adjustment strategy corresponding to the resource residual quantity is determined, and the resource adjustment is carried out on the target object according to the adjustment strategy. The technical problems that the manual monitoring real-time performance of the existing resource surplus of the target object is poor and the manual adjustment error rate is high are solved, the resource surplus of the target object is monitored in real time, and the accuracy of the resource adjustment of the target object is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a resource adjustment method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a resource adjustment method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a resource adjustment method according to a third embodiment of the present invention;
fig. 4 is a schematic flowchart of a resource adjustment method according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a resource adjusting apparatus module according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a resource adjustment method according to an embodiment of the present invention, where the present embodiment is applicable to a situation where a resource of a target object is adjusted according to an adjustment condition corresponding to a resource remaining amount of the target object, and the method may be executed by a resource adjustment apparatus, where the resource adjustment apparatus may be implemented by software and/or hardware, and the resource adjustment apparatus may be integrated in an electronic device such as a computer or a server.
As shown in fig. 1, the method of the present embodiment includes:
and S110, acquiring the resource residual quantity of the target object.
The object may be a target thing, and may be a mapping of an entity such as a person, thing, object, etc. existing in the objective world in computer logic. The resource refers to a general term of various material elements such as material resources, financial resources, and human resources owned by a country or a certain region, wherein the resource may include natural resources and social resources, the social resources may include human resources, information resources, and various material wealth created through labor, and in this embodiment, the resource may be understood as various material wealth created through labor.
Different target objects are configured with certain resources, and the resources of the target objects are monitored and adjusted to meet the requirements of resource balance and the like among the different target objects. The different types of resources may correspond to different resource adjustment rules and resource adjustment modes, which are not limited herein.
In one embodiment, the target object is a resource account, and the resource is a virtual resource, a data resource, a financial resource, or the like in the resource account. The resource residual amount is the current resource amount under the target account. For example, the resource remaining amount may be a balance. In other embodiments, the resource may also be goods, space, memory, and the like.
Specifically, the target object identification is compared with each object identification in the object set based on the object identification of the target object, and when the object identifications are consistent in comparison, the resource residual amount of the target object is obtained according to the incidence relation between the object and the resource residual amount, wherein the corresponding relation between the object and the resource residual amount is one-to-one or one-to-many.
Illustratively, the account identifier is compared with the account identifiers of the accounts in the account set according to the account information of the target account, such as the target account identifier, and when the target account identifier is consistent with the account identifiers in the account set, the account balance corresponding to the target account is obtained according to the corresponding relationship between the account identifier and the account balance.
In order to reduce the duration of resource adjustment and improve the efficiency of resource adjustment, optionally, the obtaining the remaining amount of the resource of the target object includes: extracting the resource residual amount of the target object from a buffer area according to the basic information of the target object; or acquiring the resource residual quantity of the target object through an information query interface according to the basic information of the target object, and storing the resource residual quantity of the target object to the cache region.
The basic information may be understood as the basic information of the account, and the basic information of the account may include an identification of the account and information content of the account, where the information content of the account may include a user name, an account password, and the like of the account.
The obtaining of the resource remaining amount of the target object may be extracting the resource remaining amount of the target object from the buffer area according to the basic information of the target object.
Specifically, account information of all accounts and resource surplus corresponding to the account information are acquired, the account information of all accounts and resource surplus storage values corresponding to the account information are cached in advance, and according to the basic information of the target account, resource surplus corresponding to the account information consistent with the basic information of the target account is acquired from a cache, so that the resource surplus of the target account is acquired.
The acquiring of the resource residual amount of the target object may also be acquiring the resource residual amount of the target object through an information query interface according to the basic information of the target object, and storing the resource residual amount of the target object in a cache region.
Specifically, the basic information of the target account is obtained, the resource surplus of the target account is obtained through the account information query interface according to the basic information of the target account, and the resource surplus of the target account is stored in the cache region, so that a user can obtain the resource surplus of the target account from the cache region conveniently. Optionally, when detecting that the resource remaining amount of the target object is updated, generating result information for reminding a service person of completion of updating the resource remaining amount of the target object, so that the service person can know the resource remaining amount of the target object in time.
And S120, when the resource residual quantity meets the adjustment condition, determining an adjustment strategy corresponding to the resource residual quantity.
The adjustment condition may be a condition preset artificially according to actual needs, and the adjustment condition may be set in the form of a threshold, where the threshold may include at least a maximum threshold, a minimum threshold, and at least one comparison threshold between the maximum threshold and the minimum threshold. The adjustment policy may be understood as a specific adjustment scheme for the resource remaining amount, and the specific adjustment scheme may include increasing the resource remaining amount of the target object or decreasing the resource remaining amount of the target object. The corresponding relationship between the adjustment condition and the adjustment policy may be many-to-one, one-to-many, or many-to-many.
Specifically, whether the resource residual amount of the target object meets a preset adjusting condition is judged based on the obtained resource residual amount of the target object, and when the resource residual amount of the target object meets the preset adjusting condition, an adjusting strategy corresponding to the resource residual amount of the target object is determined according to the corresponding relation between the adjusting condition and the adjusting strategy.
In an embodiment, the account balance of the target account is obtained according to the account information of the target account, if the account balance of the target account is 500 yuan and meets a preset adjustment condition that the account balance is less than 1000 yuan, an adjustment policy of 1000 yuan is added to the account balance when the account balance is less than 1000 yuan is obtained according to an adjustment policy corresponding to the account balance being less than 1000 yuan, that is, an adjustment policy of 1000 yuan is added on the basis of the account balance of the target account.
In another embodiment, the account balance of the target account is obtained according to the account information of the target account, for example, the account balance of the target account is 3000 yuan, and the preset adjustment condition that the account balance is greater than 2000 yuan is met, then according to the adjustment policy that the account balance is greater than 2000 yuan and the account balance is greater than 2000 yuan, an adjustment policy that 500 yuan is subtracted from the account balance is obtained when the account balance is greater than 2000 yuan, that is, the adjustment policy that 500 yuan is subtracted from the account balance of the target account.
S130, adjusting the resources of the target object according to the adjustment strategy.
The resource adjustment may be understood as adjusting the resource remaining amount of the target object, which may be increasing the resource remaining amount of the target object or decreasing the resource remaining amount of the target object, so as to ensure the resource amount in the target object and avoid too much or too little resource in the target object.
Specifically, an adjustment policy corresponding to the resource residual amount of the target object is determined according to the resource residual amount of the target object, wherein the adjustment policy may be to increase the resource residual amount of the target object or to decrease the resource residual amount of the target object, and the resource residual amount of the target object is adjusted according to the determined adjustment policy. In one embodiment, when the adjustment policy corresponding to the account balance 500 yuan of the target account is to increase the account amount of the target account by 1000 yuan, the amount of 1000 yuan is transferred to the target account, and the amount of the target account is changed from 500 to 500+1000 to 1500 yuan.
In another embodiment, when the adjustment policy corresponding to the account amount of the target account of 3000 yen is to reduce the account amount of the target account by 500 yen, 500 yen is transferred from the target account to another account, and the target account amount is changed from 3000 to 3000 and 500 to 2500 yen.
The adjustment policy in this embodiment further includes determining a resource source and a resource destination, and for example, the resource adjustment may be a resource adjustment between any two or more target objects, and may also be a resource adjustment between a target object and a preset resource storage object.
The resource adjustment of the target objects may be to perform resource scheduling between the target objects or between the target objects and the resource storage objects according to an adjustment policy, and adaptively adjust the resource remaining amount of the target objects and/or the resource storage objects.
According to the technical scheme of the embodiment of the invention, the resource residual quantity of the target object is obtained, when the resource residual quantity meets the adjustment condition, the adjustment strategy corresponding to the resource residual quantity is determined, and the resource adjustment is carried out on the target object according to the adjustment strategy. The technical problems that the manual monitoring real-time performance of the existing resource surplus of the target object is poor and the manual adjustment error rate is high are solved, the resource surplus of the target object is monitored in real time, and the accuracy of the resource adjustment of the target object is greatly improved.
Example two
Fig. 2 is a schematic flow chart of a resource adjustment method provided in the second embodiment of the present invention, and on the basis of the foregoing embodiment, optionally, determining an adjustment policy corresponding to the remaining amount of the resource when the remaining amount of the resource meets the adjustment condition in this embodiment may include: comparing the resource residual quantity with at least one adjusting threshold value, and determining that an adjusting condition is met when the resource residual quantity meets any adjusting threshold value; and determining an adjustment strategy according to the priority of at least one adjustment threshold value met by the resource residual quantity.
The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method of the embodiment may specifically include:
s210, acquiring the resource residual quantity of the target object.
S220, comparing the resource residual quantity with at least one adjusting threshold, and determining that an adjusting condition is met when the resource residual quantity meets any adjusting threshold.
The adjustment threshold may be different adjustment thresholds set according to different service types, and the adjustment threshold may be a threshold preset according to human experience.
Specifically, a service type corresponding to the target object is obtained according to the resource remaining amount of the target object, for example, the service type may include services such as supply, production, sales, accounting, and the like, an adjustment threshold value of the type is obtained according to the service type corresponding to the target object, the resource remaining amount of the target object is compared with the adjustment threshold value of the type, and when it is detected that the resource remaining amount of the target object satisfies any one of the adjustment threshold values of the type, the adjustment threshold value that the resource remaining amount of the target object satisfies is taken as an adjustment condition of the target object. When the resource residual quantity of the target object meets one adjustment threshold, the adjustment threshold is an adjustment condition, when the resource residual quantity of the target object meets two adjustment thresholds, the two adjustment thresholds are used as the adjustment condition, and so on, the number of the adjustment thresholds met by the resource residual quantity of the target object is the same as the number of the adjustment conditions.
Illustratively, the account balance of the target account is 600 yuan, the service type corresponding to the target account is service type 1, according to the service type 1, all adjustment thresholds corresponding to the service type 1 are obtained, that is, lower than 500 yuan, lower than 1000 yuan and lower than 1500 yuan, the account balance of the target account is 600 yuan and the adjustment thresholds are compared, that is, 600 yuan and lower than 500 yuan are respectively compared, lower than 1000 yuan and lower than 1500 yuan are compared, through comparison, it is obtained that the adjustment thresholds of 600 yuan and 600 yuan are lower than 1000 yuan and lower than 1500 yuan, and then the adjustment thresholds lower than 1000 yuan and lower than 1500 yuan are used as adjustment conditions.
In order to guarantee the reasonableness of the remaining resources of any object, optionally, the adjustment threshold includes at least one lower threshold and at least one upper threshold, and correspondingly, the adjustment policy includes at least one call-in policy and at least one call-out policy.
Wherein the lower threshold may be lower than a preset threshold. The upper threshold may be higher than a preset threshold. The call-in policy may be understood as calling a resource from a resource cache region to a target object so that the remaining amount of the resource of the target object is increased. The invoking policy may be understood as invoking a resource exceeding an upper threshold from the remaining resources of the target object to the resource cache region.
In one embodiment, when it is detected that the resource surplus of the target object meets at least one upper threshold, the upper threshold met by the resource surplus of the target object is determined according to the priority of the preset upper threshold, and the calling-out strategy of the resource surplus of the target object is determined according to the corresponding relation between the upper threshold and the calling-out strategy corresponding to the upper threshold.
For example, when the account balance of the target account is 5000 yuan, the upper limit threshold is more than 3000 yuan and more than 4000 yuan, according to the priority preset by the upper limit threshold, the priority with the upper limit threshold being more than 3000 yuan is higher than the priority with the upper limit threshold being more than 4000 yuan, so that the upper limit threshold which is met by the account balance of the target account is 5000 yuan is determined to be more than 3000 yuan, according to the upper limit threshold being 3000 yuan, the upper limit threshold being 3000 yuan is determined to correspond to the call-out policy, optionally, the call-out policy may be to call the amount of money exceeding the upper limit threshold into an account for storing spare funds.
In another embodiment, when it is detected that the resource residual amount of the target object meets at least one lower threshold, the lower threshold met by the resource residual amount of the target object is determined according to the priority of a preset lower threshold, and the call-in strategy of the resource residual amount of the target object is determined according to the corresponding relation between the lower threshold and the call-in strategy corresponding to the lower threshold.
For example, when the account balance of the target account is 500 yuan, the lower limit threshold is less than 1000 yuan and less than 800 yuan, according to the preset priority of the lower limit threshold, the priority of the lower limit threshold less than 800 yuan is higher than the priority of the lower limit threshold less than 1000 yuan, so that the lower limit threshold that the account balance of the target account is 500 yuan is determined to be less than 800 yuan, according to the lower limit threshold less than 800 yuan, the lower limit threshold is determined to be 800 yuan corresponding to the call-in policy, optionally, the call-in policy may be to call the amount of a preset amount from an account for storing spare funds into the target account.
S230, determining an adjustment strategy according to the priority of at least one adjustment threshold value met by the resource residual quantity.
Specifically, when the threshold in the adjustment threshold is smaller, the priority corresponding to the adjustment threshold is higher, for example, the adjustment threshold is lower than 300, lower than 500, and lower than 1000, the priorities corresponding to the adjustment thresholds are arranged from large to small as the adjustment threshold is lower than 300, the adjustment threshold is lower than 500, and the adjustment threshold is lower than 1000, respectively.
Specifically, based on the association relationship between the adjustment threshold and the adjustment policy, the adjustment policy for the resource residual amount of the target object is obtained according to the priority of the adjustment threshold that is satisfied by the resource residual amount of the target object.
S240, adjusting the resources of the target object according to the adjustment strategy.
According to the technical scheme of the embodiment of the invention, the resource residual quantity of the target object is obtained, the resource residual quantity is compared with at least one adjusting threshold value, when the resource residual quantity meets any adjusting threshold value, the adjusting condition is determined to be met, the adjusting strategy is determined according to the priority of the at least one adjusting threshold value met by the resource residual quantity, and the resource of the target object is adjusted according to the adjusting strategy, so that the technical problems that the resource residual quantity of the existing target object is poor in real-time performance due to manual monitoring and high in error rate of manual adjustment are solved, the resource residual quantity of the target object is monitored in real time, and the accuracy of resource adjustment of the target object is greatly improved.
EXAMPLE III
Fig. 3 is a schematic flow chart of a resource adjustment method provided by a third embodiment of the present invention, where on the basis of the foregoing embodiment, optionally, the resource adjustment on the target object according to the adjustment policy in this embodiment may include: determining a resource scheduling plan according to the adjustment strategy, wherein the resource scheduling plan comprises a transfer quota, a scheduling object and a scheduling direction; and executing the resource scheduling plan to adjust the resources of the target object.
The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 3, the method of the present embodiment may specifically include:
s310, acquiring the resource residual quantity of the target object.
S320, when the resource residual quantity meets the adjusting condition, determining an adjusting strategy corresponding to the resource residual quantity.
S330, determining a resource scheduling plan according to the adjustment strategy, wherein the resource scheduling plan comprises a transfer quota, a scheduling object and a scheduling direction.
The resource scheduling is to reasonably and effectively regulate, measure, analyze and use various resources. The resource scheduling plan can be understood as one resource scheduling plan or a plurality of resource scheduling plans, which are made to ensure that the resources are reasonably and effectively adjusted and used. The resource scheduling plan may include at least the following information: calling quota, dispatching object and dispatching direction. The allocation quota can be understood as the amount of the resource to be allocated and the amount of the resource to be allocated. The scheduling object may include at least a resource buffer and a target object. The scheduling direction may be that the resource buffer region schedules to the target object, or that the target object schedules to the resource buffer region.
Specifically, a scheduling strategy corresponding to the resource surplus of the target object is determined according to the resource surplus of the target object, and a resource scheduling plan corresponding to the resource surplus of the target object is determined according to an adjusting strategy corresponding to the resource surplus of the target object.
In one embodiment, when the account balance of the target account is 500 yuan, the adjustment strategy corresponding to the account balance of the target account is to increase the account balance of the target account, a resource scheduling plan corresponding to the account balance of the target account is determined according to the increased account balance of the target account, and 1000 yuan of funds are transferred from the fund cache area to the target account.
In another embodiment, when it is detected that the account amount of the target account is 5000 yuan, the adjustment policy corresponding to the account balance of the target account is to reduce the account balance of the target account, a resource scheduling plan corresponding to the account balance of the target account is determined according to the reduced account balance of the target account, and the amount of money with the account balance exceeding the upper limit threshold of the target account is called out and stored in the fund cache region, so that the fund in the fund cache region is transferred to other accounts.
S340, executing the resource scheduling plan to adjust the resources of the target object.
Specifically, a resource scheduling plan corresponding to the target object is determined according to an adjustment strategy corresponding to the resource surplus of the target object, and the resource scheduling plan is executed according to the resource scheduling plan corresponding to the target object and according to the allocation quota, the scheduling object and the scheduling direction in the resource scheduling plan, so that the resource surplus of the target object is adjusted.
In order to effectively manage the remaining amount of resources of each object, optionally, before executing the resource scheduling plan, the effectiveness of the resource scheduling plan may be verified. Further, optionally, the verifying the validity of the resource scheduling plan includes: and verifying the validity of the approval result of the resource scheduling plan, the validity of the allocation time, the validity of the allocation quota and the validity of the task list of the allocation plan.
The effectiveness of the resource scheduling plan can be understood as the feasibility of the resource scheduling plan corresponding to the resource residual amount of the target object. The judgment condition of the effectiveness of the resource scheduling plan at least comprises the effectiveness of the approval result of the resource scheduling plan, the effectiveness of the transfer time, the effectiveness of the transfer quota and the effectiveness of the task list of the transfer plan. According to the technical scheme of the embodiment of the invention, the resource surplus of the target object is obtained, when the resource surplus meets the adjustment condition, the adjustment strategy corresponding to the resource surplus is determined, and the resource scheduling plan is determined according to the adjustment strategy, wherein the resource scheduling plan comprises a transfer quota, a scheduling object and a scheduling direction, and the resource scheduling plan is executed so as to adjust the resource of the target object. The technical problems that the manual monitoring real-time performance of the existing resource surplus of the target object is poor and the manual adjustment error rate is high are solved, the resource surplus of the target object is monitored in real time, and the accuracy of the resource adjustment of the target object is greatly improved.
On the basis of the above embodiments, a preferred embodiment of validity verification of a resource scheduling plan is further provided, referring to fig. 4, fig. 4 is a flowchart illustrating the preferred embodiment of validity verification of a resource scheduling plan, and this embodiment may be adapted to a case where balance adjustment of an account balance is implemented by executing a resource scheduling plan.
The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 4, the method of the present embodiment includes:
s401, checking the parameters, executing S402 when the parameters are detected to be correct, and executing S412 when the parameters are detected to be incorrect.
The parameters may be account information and a transfer plan identifier, where the account information may include an account name, an account balance, an account identifier, and the like.
S402, judging whether the allocation plan exists or not, executing S403 when the allocation plan exists, and executing S412 when the allocation plan does not exist.
And S403, judging whether the allocation plan is offline or not, executing S404 when detecting that the allocation plan is offline, and executing S412 when detecting that the allocation plan is not offline.
And S404, judging whether the examination and approval result corresponding to the transfer plan passes or not, executing S405 when detecting that the examination and approval result corresponding to the transfer plan passes, and detecting that the examination and approval result corresponding to the transfer plan does not pass. S412 is performed.
S405, judging whether the allocation plan is within the allocation deadline, executing S406 when the allocation plan is detected to be within the allocation deadline, and executing S412 when the allocation plan is detected not to be within the allocation deadline.
S406, determining whether the quota of the allocation plan satisfies the allocation quota, if it is detected that the quota of the allocation plan satisfies the allocation quota, executing S407, and if it is detected that the quota of the allocation plan does not satisfy the allocation quota, executing S412.
And S407, judging whether the payment order generated by the transfer plan is still in payment, executing S408 when detecting that the payment order generated by the transfer plan is still in payment, and executing S412 when detecting that the payment order generated by the transfer plan is not still in payment.
S408, judging whether the reids lock is unique, if the reids lock is detected to be unique, executing S409, and if the reids lock is detected to be not unique, executing S412.
And S409, initiating payment.
And S410, deducting the quota.
And S411, sending dial prompting information.
And S412, ending.
The technical scheme of the embodiment of the invention comprises the steps of carrying out parameter verification on parameters such as account information, a transfer plan identifier and the like, inquiring the transfer plan when the parameter verification is correct, judging whether the transfer plan is off-line or not, judging whether an approval result corresponding to the transfer plan passes or not when detecting that the transfer plan does not go off-line, judging whether the transfer plan is in transfer time or not when detecting that the approval result corresponding to the transfer plan passes or not, judging whether the quota of the transfer plan meets transfer or not when detecting that the transfer plan is in transfer time, judging the payment state of the transfer plan when detecting that the quota of the transfer plan meets transfer, judging whether a reids lock is unique or not when detecting that the payment state of the transfer plan is still in payment, and realizing automatic account balance scheduling by initiating payment, deducting the quota and sending transfer prompt information when detecting that the reids lock is unique, adjusting an account balance of the account.
Example four
Fig. 5 is a schematic diagram of a resource adjustment apparatus module according to a fourth embodiment of the present invention, where the present invention provides a resource adjustment apparatus, including:
a resource surplus obtaining module 510, configured to obtain a resource surplus of the target object;
a policy determining module 520, configured to determine, when the remaining amount of resources meets an adjustment condition, an adjustment policy corresponding to the remaining amount of resources;
a resource adjusting module 530, configured to perform resource adjustment on the target object according to the adjustment policy.
According to the technical scheme of the embodiment of the invention, the resource surplus of the target object is obtained through the resource surplus obtaining module, the adjustment strategy corresponding to the resource surplus is determined through the strategy determining module when the resource surplus meets the adjustment condition, and the resource of the target object is adjusted through the resource adjusting module according to the adjustment strategy. The technical problems that the manual monitoring real-time performance of the existing resource surplus of the target object is poor and the manual adjustment error rate is high are solved, the resource surplus of the target object is monitored in real time, and the accuracy of the resource adjustment of the target object is greatly improved.
Optionally, the resource surplus obtaining module 510 is configured to extract the resource surplus of the target object from the buffer area according to the basic information of the target object; or acquiring the resource residual quantity of the target object through an information query interface according to the basic information of the target object, and storing the resource residual quantity of the target object to the cache region.
Optionally, the policy determining module 520 is configured to compare the remaining amount of the resource with at least one adjustment threshold, and determine that an adjustment condition is met when the remaining amount of the resource meets any adjustment threshold; and determining an adjustment strategy according to the priority of at least one adjustment threshold value met by the resource residual quantity.
Optionally, the policy determining module 520 is configured to determine that the adjustment threshold includes at least one lower threshold and at least one upper threshold, and correspondingly, the adjustment policy includes at least one call-in policy and at least one call-out policy.
Optionally, the resource adjusting module 530 is configured to determine a resource scheduling plan according to the adjusting policy, where the resource scheduling plan includes a transfer quota, a scheduling object, and a scheduling direction; and executing the resource scheduling plan to adjust the resources of the target object.
Optionally, the resource adjusting module 530 is configured to verify the validity of the resource scheduling plan.
Optionally, the resource adjusting module 530 is configured to verify the validity of the resource scheduling plan, and includes: and verifying the validity of the approval result of the resource scheduling plan, the validity of the allocation time, the validity of the allocation quota and the validity of the task list of the allocation plan.
The device can execute the resource adjusting method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the resource adjusting method.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a server according to a fifth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention. The server 12 shown in fig. 6 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 6, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the server 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the server 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement a resource adjustment method provided by the embodiment of the present invention, the method includes:
acquiring the resource residual amount of a target object;
when the resource residual quantity meets the adjustment condition, determining an adjustment strategy corresponding to the resource residual quantity;
and adjusting the resources of the target object according to the adjustment strategy.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the resource adjustment method provided in any embodiment of the present invention.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a resource adjustment method.
The method comprises the following steps:
acquiring the resource residual amount of a target object;
when the resource residual quantity meets the adjustment condition, determining an adjustment strategy corresponding to the resource residual quantity;
and adjusting the resources of the target object according to the adjustment strategy.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for resource adjustment, comprising:
acquiring the resource residual amount of a target object;
when the resource residual quantity meets the adjustment condition, determining an adjustment strategy corresponding to the resource residual quantity;
and adjusting the resources of the target object according to the adjustment strategy.
2. The method of claim 1, wherein obtaining the remaining amount of resources of the target object comprises:
extracting the resource residual amount of the target object from a buffer area according to the basic information of the target object; alternatively, the first and second electrodes may be,
and acquiring the resource residual quantity of the target object through an information query interface according to the basic information of the target object, and storing the resource residual quantity of the target object to the cache region.
3. The method according to claim 1, wherein when the remaining amount of resources meets an adjustment condition, determining an adjustment policy corresponding to the remaining amount of resources comprises:
comparing the resource residual quantity with at least one adjusting threshold, and determining that an adjusting condition is met when the resource residual quantity meets any adjusting threshold;
and determining an adjustment strategy according to the priority of at least one adjustment threshold value met by the resource residual quantity.
4. The method of claim 3, wherein the adjustment thresholds comprise at least one lower threshold and at least one upper threshold, and wherein the adjustment policies comprise at least one call-in policy and at least one call-out policy, respectively.
5. The method of claim 1, wherein the resource adjustment of the target object according to the adjustment policy comprises:
determining a resource scheduling plan according to the adjustment strategy, wherein the resource scheduling plan comprises a transfer quota, a scheduling object and a scheduling direction;
and executing the resource scheduling plan to adjust the resources of the target object.
6. The method of claim 5, wherein prior to executing the resource scheduling plan, the method further comprises:
and verifying the effectiveness of the resource scheduling plan.
7. The method of claim 6, wherein verifying the validity of the resource scheduling plan comprises:
and verifying the validity of the approval result of the resource scheduling plan, the validity of the allocation time, the validity of the allocation quota and the validity of the task list of the allocation plan.
8. A resource adjustment apparatus, comprising:
the resource surplus acquiring module is used for acquiring the surplus of the resources of the target object;
the strategy determining module is used for determining an adjusting strategy corresponding to the resource residual quantity when the resource residual quantity meets an adjusting condition;
and the resource adjusting module is used for adjusting the resources of the target object according to the adjusting strategy.
9. A server, characterized in that the server comprises:
one or more processors;
storage means for storing one or more programs which, when executed by said processor, cause said processor to carry out a method of resource adjustment as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a resource adjustment method according to any one of claims 1 to 7.
CN202011490878.XA 2020-12-16 2020-12-16 Resource adjusting method, device, server and storage medium Pending CN112465400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011490878.XA CN112465400A (en) 2020-12-16 2020-12-16 Resource adjusting method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011490878.XA CN112465400A (en) 2020-12-16 2020-12-16 Resource adjusting method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN112465400A true CN112465400A (en) 2021-03-09

Family

ID=74804374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011490878.XA Pending CN112465400A (en) 2020-12-16 2020-12-16 Resource adjusting method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN112465400A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115331412A (en) * 2022-08-10 2022-11-11 支付宝(杭州)信息技术有限公司 Resource processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934372A (en) * 2017-12-19 2019-06-25 阿里巴巴集团控股有限公司 A kind of paths planning method, device and equipment
CN110009358A (en) * 2018-12-25 2019-07-12 阿里巴巴集团控股有限公司 Resource allots risk prevention system method, apparatus and server
CN111459678A (en) * 2020-04-02 2020-07-28 上海极链网络科技有限公司 Resource scheduling method and device, storage medium and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934372A (en) * 2017-12-19 2019-06-25 阿里巴巴集团控股有限公司 A kind of paths planning method, device and equipment
CN110009358A (en) * 2018-12-25 2019-07-12 阿里巴巴集团控股有限公司 Resource allots risk prevention system method, apparatus and server
CN111459678A (en) * 2020-04-02 2020-07-28 上海极链网络科技有限公司 Resource scheduling method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115331412A (en) * 2022-08-10 2022-11-11 支付宝(杭州)信息技术有限公司 Resource processing method and device
CN115331412B (en) * 2022-08-10 2024-04-05 支付宝(中国)网络技术有限公司 Resource processing method and device

Similar Documents

Publication Publication Date Title
CN110782240B (en) Business data processing method and device, computer equipment and storage medium
WO2020057300A1 (en) Transaction monitoring method, device, and apparatus
US20150095075A1 (en) Method, Apparatus and System for Automated Funding
CN109285069B (en) Resource transfer method, device and server
CN112350438A (en) Method, device, equipment and storage medium for electric quantity management
CN112465400A (en) Resource adjusting method, device, server and storage medium
US20210272190A1 (en) Intraday resource management system
CN108694588B (en) Virtual resource request method and terminal equipment
US20210286649A1 (en) Processing future-dated resource reservation requests
CN111161052B (en) Bank operation data processing method and device
CN104899725A (en) Intelligent workflow system for decision support and event feedback and circulation method of intelligent workflow system
CN116662387A (en) Service data processing method, device, equipment and storage medium
CN111260479A (en) Financing application processing method, device, equipment and storage medium
CN112685377B (en) Detection processing method, device, server and medium based on historical object data
CN111522843B (en) Control method, system, equipment and storage medium of data platform
US11044167B2 (en) Intraday resource management system
CN113034285A (en) Request processing method and device, computer equipment and storage medium
CN107563888B (en) System and method for uniformly managing online bills
CN112581282A (en) Method, device, electronic equipment and medium for monitoring loss and gain change of estimation result
CN115269208B (en) Resource processing method and system based on formula configuration
CN117911158A (en) Data processing method, device, equipment and storage medium
CN115860402A (en) Vehicle management method, device, equipment and storage medium
CN114398384A (en) Financial data processing method, device, equipment and storage medium
CN115578176A (en) Method, device and equipment for creating resource account and storage medium
CN117891441A (en) Method, device, equipment and storage medium for establishing operation management system

Legal Events

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