Resource adjustment method, device, server and storage medium

By automatically obtaining and adjusting the resource balance of the company's account and determining the strategy based on preset conditions to adjust the resource, the problem of poor real-time manual monitoring and high error rate of manual adjustment is solved, real-time accurate management of the account balance and efficient resource adjustment is achieved .

CN112465400BActive Publication Date: 2024-11-26SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011490878.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-16
Publication Date
2024-11-26
Estimated Expiration
2040-12-16

AI Technical Summary

Technical Problem

In the prior art, company account balance management relies on manual monitoring, resulting in poor real-time performance and high manual adjustment error rate, and it is impossible to manage the balance of company account in a timely and accurate manner.

Method used

By obtaining the resource remaining amount of the target object, determining the adjustment strategy based on the preset adjustment conditions, and adjusting the resources according to the strategy, automatic adjustment of resources is achieved.

Benefits of technology

Real-time monitoring and accurate adjustment of resource balances in company accounts have been achieved, significantly improving the accuracy of resource adjustments and reducing the manual error rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112465400B_ABST
    Figure CN112465400B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a resource adjustment method, device, server and storage medium. The method comprises: obtaining the remaining amount of resources of a target object; when the remaining amount of resources meets the adjustment condition, determining the adjustment strategy corresponding to the remaining amount of resources; and adjusting the resources of the target object according to the adjustment strategy. The technical solution of the embodiment of the present invention realizes real-time monitoring of the remaining amount of resources of the target object, greatly improving the accuracy of resource adjustment of the target object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of information technology, and in particular to a resource adjustment method, device, server and storage medium. Background Art

[0002] In recent years, with the globalization of the economy, the number of accounts owned by a company has grown from dozens to hundreds, and each account supports different businesses. In order to ensure the normal operation of the company's business, the balance management of the company's accounts is crucial.

[0003] At present, the management of a company's account balance is mostly done through manual monitoring and manual transfer by financial personnel. This has the problems of poor real-time monitoring, high labor costs, and easy duplication of transfer operations, resulting in the inability to manage the company's account balance in a timely and accurate manner. Summary of the invention

[0004] The present invention provides a resource adjustment method, device, server and storage medium to achieve faster, more convenient and more accurate management of the balance of a company account.

[0005] In a first aspect, an embodiment of the present invention provides a resource adjustment method, the method comprising:

[0006] Get the remaining amount of resources of the target object;

[0007] When the remaining amount of the resource meets the adjustment condition, determining an adjustment strategy corresponding to the remaining amount of the resource;

[0008] According to the adjustment strategy, resources of the target object are adjusted.

[0009] In a second aspect, an embodiment of the present invention further provides a resource adjustment device, the device comprising:

[0010] A resource remaining amount acquisition module is used to obtain the resource remaining amount of the target object;

[0011] A strategy determination module, used for determining an adjustment strategy corresponding to the remaining amount of resources when the remaining amount of resources meets the adjustment condition;

[0012] The resource adjustment module is used to adjust the resources of the target object according to the adjustment strategy.

[0013] In a third aspect, an embodiment of the present invention further provides a server, the server comprising:

[0014] one or more processors;

[0015] The storage device is used to store one or more programs. When the program is executed by the processor, the processor implements a resource adjustment method provided by any embodiment of the present invention.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a resource adjustment method as provided in any embodiment of the present invention.

[0017] The technical solution of the embodiment of the present invention obtains the remaining amount of resources of the target object, determines the adjustment strategy corresponding to the remaining amount of resources when the remaining amount of resources meets the adjustment conditions, and adjusts the resources of the target object according to the adjustment strategy. The technical problem that the remaining amount of resources of the existing target object is poor in real-time due to manual monitoring and high error rate of manual adjustment is solved, and the remaining amount of resources of the target object is monitored in real time, which greatly improves the accuracy of resource adjustment of the target object. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 This is a schematic diagram of a resource adjustment method flow provided by Embodiment 1 of the present invention;

[0020] Figure 2 This is a schematic diagram of a resource adjustment method flow provided by Embodiment 2 of the present invention;

[0021] Figure 3 is a schematic diagram of a resource adjustment method provided by Embodiment 3 of the present invention;

[0022] Figure 4 It is a schematic diagram of a preferred embodiment of a resource adjustment method provided in Embodiment 3 of the present invention;

[0023] Figure 5 is a schematic diagram of a resource adjustment device module provided by Embodiment 4 of the present invention;

[0024] Figure 6 This is a schematic diagram of a server structure provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0026] Embodiment 1

[0027] Figure 1 It is a flow chart of a resource adjustment method provided in the first embodiment of the present invention. This embodiment can be applied to obtain the situation of resource adjustment for the target object through the adjustment conditions corresponding to the remaining amount of resources of the target object. The method can be executed by a resource adjustment device. The resource adjustment device can be implemented by software and / or hardware. The resource adjustment device can be integrated in electronic devices such as computers or servers.

[0028] like Figure 1 As shown, the method of this embodiment includes:

[0029] S110: Obtain the remaining amount of resources of the target object.

[0030] The object can be a target thing, or a mapping of entities such as people, things, and objects in the objective world in computer logic. Resources refer to the general term for various material elements such as material resources, financial resources, and human resources in a country or a certain region. Resources can include natural resources and social resources, and social resources can include human resources, information resources, and various material wealth created by labor. In this embodiment, resources can be understood as various material wealth created by labor.

[0031] Different target objects are configured with certain resources, and in order to meet the needs of resource balance between different target objects, the resources of each target object are monitored and adjusted. Different types of resources may correspond to different resource adjustment rules and resource adjustment methods, which are not limited.

[0032] In one embodiment, the target object is a resource account, and the resource is a virtual resource, a data resource, or a financial resource in the resource account. The remaining amount of the resource is the current amount of the resource under the target account. Taking financial resources as an example, the remaining amount of the resource can be a balance. In other embodiments, the resource can also be goods, space, memory, etc.

[0033] Specifically, based on the object identifier of the target object, a comparison is performed with each object identifier in the object set. When the object identifiers are consistent, the resource remaining amount of the target object is obtained according to the association relationship between the object and the resource remaining amount, wherein the correspondence between the object and the resource remaining amount is one-to-one or one-to-many.

[0034] Exemplarily, based on the account information of the target account, such as the target account identifier, the account identifier is compared with the account identifiers of each account in the account set. 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 based on the correspondence between the account identifier and the account balance.

[0035] In order to reduce the duration of resource adjustment and improve the efficiency of resource adjustment, optionally, obtaining the remaining resources of the target object includes: extracting the remaining resources of the target object from a cache area based on the basic information of the target object; or, obtaining the remaining resources of the target object through an information query interface based on the basic information of the target object, and storing the remaining resources of the target object in the cache area.

[0036] The basic information may include the basic information of the account, and the basic information of the account may include the account identifier and the information content of the account, wherein the information content of the account may include the user name, account password, etc. of the account.

[0037] Acquiring the remaining amount of resources of the target object may be extracting the remaining amount of resources of the target object from a cache area according to basic information of the target object.

[0038] Specifically, the account information of all accounts and the resource remaining amount corresponding to the account information are obtained, and the account information of all accounts and the resource remaining amount corresponding to the account information are stored in a value cache area in advance. According to the basic information of the target account, the resource remaining amount corresponding to the account information consistent with the basic information of the target account is obtained from the cache, thereby obtaining the resource remaining amount of the target account.

[0039] The remaining amount of resources of the target object may be obtained by obtaining the remaining amount of resources of the target object through an information query interface according to basic information of the target object, and storing the remaining amount of resources of the target object in a cache area.

[0040] Specifically, the basic information of the target account is obtained, and the remaining amount of resources of the target account is obtained through the account information query interface according to the basic information of the target account, and the remaining amount of resources of the target account is stored in the cache area, so that the user can obtain the remaining amount of resources of the target account from the cache area. Optionally, when the remaining amount of resources of the target object is detected to be updated, result information is generated to remind the business personnel that the remaining amount of resources of the target object is updated, so that the business personnel can understand the remaining amount of resources of the target object in a timely manner.

[0041] S120: When the remaining amount of resources meets an adjustment condition, determine an adjustment strategy corresponding to the remaining amount of resources.

[0042] The adjustment condition can be understood as a judgment on the remaining amount of resources. The adjustment condition can be a condition preset artificially according to actual needs. The adjustment condition can be set in the form of a threshold, wherein the threshold can at least include a maximum threshold, a minimum threshold, and at least one comparison threshold between the maximum threshold and the minimum threshold. The adjustment strategy can be understood as a specific adjustment plan for the remaining amount of resources. The specific adjustment plan may include increasing the remaining amount of resources of the target object, or reducing the remaining amount of resources of the target object. The correspondence between the adjustment condition and the adjustment strategy can be many-to-one, one-to-many, or many-to-many. In this embodiment, the correspondence between the adjustment condition and the adjustment strategy is not limited.

[0043] Specifically, based on the obtained resource remaining amount of the target object, it is determined whether the resource remaining amount of the target object meets the preset adjustment conditions. When the resource remaining amount of the target object meets the preset adjustment conditions, the adjustment strategy corresponding to the resource remaining amount of the target object is determined according to the correspondence between the adjustment conditions and the adjustment strategies.

[0044] In one 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 500 yuan, which meets the preset adjustment condition that the account balance is less than 1,000 yuan. Then, according to the adjustment strategy corresponding to the account balance being less than 1,000 yuan, an adjustment strategy is obtained for increasing the account balance by 1,000 yuan when the account balance is less than 1,000, that is, an adjustment strategy for increasing the account balance by 1,000 yuan on the basis of the account balance of the target account.

[0045] In another embodiment, the account balance of the target account is obtained based on the account information of the target account. For example, the account balance of the target account is 3,000 yuan, which meets the preset adjustment condition that the account balance is greater than 2,000 yuan. Then, according to the adjustment strategies corresponding to the account balance greater than 2,000 yuan and the account balance greater than 2,000 yuan, when the account balance is greater than 2,000 yuan, an adjustment strategy of subtracting 500 yuan from the account balance of the target account is obtained. That is, an adjustment strategy of subtracting 500 yuan from the account balance of the target account.

[0046] S130: Adjust resources of the target object according to the adjustment strategy.

[0047] Among them, resource adjustment can be understood as adjusting the remaining resources of the target object, which can be to increase the remaining resources of the target object or to reduce the remaining resources of the target object, so as to ensure the amount of resources in the target object and avoid too much or too little resources in the target object.

[0048] Specifically, according to the remaining amount of resources of the target object, an adjustment strategy corresponding to the remaining amount of resources of the target object is determined, wherein the adjustment strategy may be to increase the remaining amount of resources of the target object or to reduce the remaining amount of resources of the target object, and according to the determined adjustment strategy, the remaining amount of resources of the target object is adjusted. In one embodiment, when the adjustment strategy corresponding to the account balance of the target account of 500 yuan is to increase the account amount of the target account by 1,000 yuan, an amount of 1,000 yuan is transferred to the target account, and the amount of the target account changes from 500 to 500+1,000=1,500 yuan.

[0049] In another embodiment, when the target account balance of 3,000 yuan corresponds to an adjustment strategy of reducing the target account balance by 500 yuan, 500 yuan is transferred from the target account to other accounts, and the target account balance changes from 3,000 yuan to 3,000-500=2,500 yuan.

[0050] The adjustment strategy in this embodiment also includes determining the source and destination of resources. Exemplarily, resource adjustment can be resource adjustment between any two or more target objects, or can be resource adjustment between a target object and a pre-set resource storage object.

[0051] Adjusting the resources of the target object may be performing resource scheduling between target objects or between the target object and the resource storage object according to the adjustment policy, and adaptively adjusting the remaining amount of resources of the target object and / or the resource storage object.

[0052] The technical solution of the embodiment of the present invention obtains the remaining amount of resources of the target object, determines the adjustment strategy corresponding to the remaining amount of resources when the remaining amount of resources meets the adjustment conditions, and adjusts the resources of the target object according to the adjustment strategy. The technical problem that the remaining amount of resources of the existing target object is poor in real-time due to manual monitoring and high error rate of manual adjustment is solved, and the remaining amount of resources of the target object is monitored in real time, which greatly improves the accuracy of resource adjustment of the target object.

[0053] Embodiment 2

[0054] Figure 2 It is a flow chart of a resource adjustment method provided in Embodiment 2 of the present invention. Based on the foregoing embodiment, optionally, in this embodiment, when the remaining amount of resources meets the adjustment condition, determining the adjustment strategy corresponding to the remaining amount of resources may include: comparing the remaining amount of resources with at least one adjustment threshold, and when the remaining amount of resources meets any adjustment threshold, determining that the adjustment condition is met; and determining the adjustment strategy according to the priority of at least one adjustment threshold met by the remaining amount of resources.

[0055] Among them, technical terms that are the same as or corresponding to the above embodiments are not repeated here.

[0056] like Figure 2 As shown, the method of this embodiment may specifically include:

[0057] S210: Obtain the remaining amount of resources of the target object.

[0058] S220: Compare the remaining amount of resources with at least one adjustment threshold, and when the remaining amount of resources meets any adjustment threshold, determine that an adjustment condition is met.

[0059] The adjustment threshold may be a threshold value set differently according to different business types, and the adjustment threshold may be a threshold value set in advance according to human experience.

[0060] Specifically, according to the remaining amount of resources of the target object, the business type corresponding to the target object is obtained. Exemplarily, the business type may include supply, production, sales, accounting and other businesses. According to the corresponding business type of the target object, the adjustment threshold of the type is obtained, and the remaining amount of resources of the target object is compared with the adjustment threshold of the type. When it is detected that the remaining amount of resources of the target object meets any one of the adjustment thresholds of the type, the adjustment threshold satisfied by the remaining amount of resources of the target object is used as the adjustment condition of the target object. When the remaining amount of resources of the target object meets one adjustment threshold, the adjustment threshold is the adjustment condition. When the remaining amount of resources of the target object meets two adjustment thresholds, the two adjustment thresholds are used as the adjustment conditions. By analogy, the number of adjustment thresholds satisfied by the remaining amount of resources of the target object is the same as the number of adjustment conditions.

[0061] Exemplarily, the account balance of the target account is 600 yuan, and the business type corresponding to the target account is business type 1. According to business type 1, all adjustment thresholds corresponding to business type 1 are obtained, that is, less than 500 yuan, less than 1000 yuan, and less than 1500 yuan. The account balance of 600 yuan of the target account is compared with the adjustment threshold, that is, 600 yuan is compared with less than 500 yuan, less than 1000 yuan, and less than 1500 yuan respectively. Through comparison, it is obtained that 600 yuan meets the adjustment threshold of less than 1000 yuan and 600 yuan meets the adjustment threshold of less than 1500 yuan, then the adjustment thresholds of less than 1000 yuan and less than 1500 yuan are used as adjustment conditions.

[0062] In order to ensure the rationality 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 strategy includes at least one call-in strategy and at least one call-out strategy.

[0063] The lower threshold may be lower than a preset threshold. The upper threshold may be higher than a preset threshold. The transfer-in strategy may be understood as transferring resources from the resource cache area to the target object so as to increase the remaining resources of the target object. The transfer-out strategy may be understood as transferring resources exceeding the upper threshold from the remaining resources of the target object to the resource cache area.

[0064] In one embodiment, when it is detected that the remaining amount of resources of the target object satisfies at least one upper limit threshold, the upper limit threshold that the remaining amount of resources of the target object satisfies is determined according to the priority of a preset upper limit threshold, and the call-out policy for the remaining amount of resources of the target object is determined according to the correspondence between the upper limit threshold and the call-out policy corresponding to the upper limit threshold.

[0065] Exemplarily, when the account balance of the target account is 5,000 yuan, the upper limit thresholds that are satisfied are greater than 3,000 yuan and greater than 4,000 yuan. According to the preset priority of the upper limit threshold, the priority of the upper limit threshold being greater than 3,000 yuan is higher than the priority of the upper limit threshold being greater than 4,000 yuan. Therefore, it is determined that the upper limit threshold satisfied by the account balance of the target account of 5,000 yuan is greater than 3,000 yuan. Based on the upper limit threshold of 3,000 yuan, the corresponding call-out strategy is determined to be 3,000 yuan. Optionally, the call-out strategy may be to transfer the amount exceeding the upper limit threshold to an account for storing reserve funds.

[0066] In another embodiment, when it is detected that the remaining amount of resources of the target object satisfies at least one lower limit threshold, the lower limit threshold that the remaining amount of resources of the target object satisfies is determined according to the priority of a preset lower limit threshold, and the call-in policy for the remaining amount of resources of the target object is determined according to the correspondence between the lower limit threshold and the call-in policy corresponding to the lower limit threshold.

[0067] Exemplarily, when the account balance of the target account is 500 yuan, the lower thresholds that are satisfied are less than 1,000 yuan and less than 800 yuan. According to the priority preset for the lower threshold, the priority of the lower threshold of less than 800 yuan is higher than the priority of the lower threshold of less than 1,000 yuan. Therefore, it is determined that the lower threshold satisfied by the account balance of the target account of 500 yuan is less than 800 yuan. Based on the lower threshold of less than 800 yuan, the transfer-in strategy corresponding to the lower threshold of 800 yuan is determined. Optionally, the transfer-in strategy may be to transfer a preset amount from an account for storing reserve funds to the target account.

[0068] S230. Determine an adjustment strategy according to the priority of at least one adjustment threshold satisfied by the remaining amount of resources.

[0069] Among them, the priority of adjusting the threshold can be understood as the priority of the adjustment condition. The priority of adjusting the threshold can be set manually, and optionally, it can be set according to the threshold size of the adjustment threshold. Specifically, the smaller the threshold in the adjustment threshold, the greater the priority corresponding to the adjustment threshold. For example, when the adjustment threshold is lower than 300, lower than 500, and lower than 1000, the priorities corresponding to the adjustment threshold are arranged from large to small as follows: the adjustment threshold is lower than 300, the adjustment threshold is lower than 500, and the adjustment threshold is lower than 1000.

[0070] Specifically, based on the association between the adjustment threshold and the adjustment strategy, the adjustment strategy of the remaining amount of resources of the target object is obtained according to the priority of the adjustment threshold satisfied by the remaining amount of resources of the target object.

[0071] S240: Adjust resources of the target object according to the adjustment strategy.

[0072] The technical solution of the embodiment of the present invention obtains the remaining amount of resources of the target object, compares the remaining amount of resources with at least one adjustment threshold, and when the remaining amount of resources meets any adjustment threshold, determines that the adjustment condition is met, determines the adjustment strategy according to the priority of at least one adjustment threshold met by the remaining amount of resources, and adjusts the resources of the target object according to the adjustment strategy, thereby solving the technical problems of poor real-time manual monitoring of the remaining amount of resources of the target object and high manual adjustment error rate, realizing real-time monitoring of the remaining amount of resources of the target object, and greatly improving the accuracy of resource adjustment of the target object.

[0073] Embodiment 3

[0074] Figure 3 It is a flow chart of a resource adjustment method provided in Example 3 of the present invention. On the basis of the foregoing embodiment, optionally, in this embodiment, adjusting resources for the target object according to the adjustment strategy may include: determining a resource scheduling plan according to the adjustment strategy, wherein the resource scheduling plan includes an allocation amount, a scheduling object and a scheduling direction; and executing the resource scheduling plan to adjust resources for the target object.

[0075] Among them, technical terms that are the same as or corresponding to the above embodiments are not repeated here.

[0076] like Figure 3 As shown, the method of this embodiment may specifically include:

[0077] S310: Obtain the remaining amount of resources of the target object.

[0078] S320: When the remaining amount of resources meets the adjustment condition, determine an adjustment strategy corresponding to the remaining amount of resources.

[0079] S330. Determine a resource scheduling plan according to the adjustment strategy, wherein the resource scheduling plan includes an allocation amount, a scheduling object, and a scheduling direction.

[0080] Among them, resource scheduling is the reasonable and effective regulation, measurement, analysis and use of various resources. The resource scheduling plan can be understood as ensuring the reasonable and effective regulation and use of resources by formulating a resource scheduling plan. The resource scheduling plan can be one or more. Among them, the resource scheduling plan can include at least the following information: allocation quota, scheduling object and scheduling direction. Among them, the allocation quota can be understood as the amount of resources transferred in and the amount of resources transferred out. The scheduling object can at least include a resource buffer and a target object. The scheduling direction can be the resource buffer scheduling to the target object, or the target object scheduling to the resource buffer.

[0081] Specifically, according to the remaining amount of resources of the target object, a scheduling strategy corresponding to the remaining amount of resources of the target object is determined, and according to the adjustment strategy corresponding to the remaining amount of resources of the target object, a resource scheduling plan corresponding to the remaining amount of resources of the target object is determined.

[0082] In one embodiment, when it is detected that 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. Based on the increase in the account balance of the target account, a resource scheduling plan corresponding to the account balance of the target account is determined, and 1,000 yuan of funds are transferred from the funds buffer area to the target account.

[0083] In another embodiment, when it is detected that the account balance of the target account is 5,000 yuan, the adjustment strategy corresponding to the account balance of the target account is to reduce the account balance of the target account, and the resource scheduling plan corresponding to the account balance of the target account is determined based on reducing the account balance of the target account. The amount of the account balance of the target account that exceeds the upper limit threshold is transferred out and stored in the funds cache area to facilitate the transfer of funds in the funds cache area to other accounts.

[0084] S340: Execute the resource scheduling plan to adjust resources for the target object.

[0085] Specifically, according to the adjustment strategy corresponding to the remaining resources of the target object, the resource scheduling plan corresponding to the target object is determined, and according to the resource scheduling plan corresponding to the target object and the allocation amount, scheduling object and scheduling direction in the resource scheduling plan, the resource scheduling plan is executed, thereby adjusting the remaining resources of the target object.

[0086] In order to effectively manage the remaining amount of resources of each object, optionally, before executing the resource scheduling plan, the validity of the resource scheduling plan can be verified. Further, optionally, the verification of the validity of the resource scheduling plan includes: 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 order of the allocation plan.

[0087] The validity of the resource scheduling plan can be understood as the feasibility of the resource scheduling plan corresponding to the remaining amount of resources of the target object. The judgment conditions of the validity of the resource scheduling plan can at least include the validity of the approval result of the resource scheduling plan, the validity of the allocation time, the validity of the allocation amount, and the validity of the task order of the allocation plan. The technical solution of the embodiment of the present invention obtains the remaining amount of resources of the target object, and when the remaining amount of resources meets the adjustment conditions, determines the adjustment strategy corresponding to the remaining amount of resources, and determines the resource scheduling plan according to the adjustment strategy, wherein the resource scheduling plan includes the allocation amount, the scheduling object and the scheduling direction, and executes the resource scheduling plan to adjust the resources of the target object. The technical problems of the poor real-time monitoring of the remaining amount of resources of the existing target object and the high error rate of manual adjustment are solved, and the real-time monitoring of the remaining amount of resources of the target object is realized, which greatly improves the accuracy of the resource adjustment of the target object.

[0088] Based on the above embodiment, a preferred embodiment of verifying the validity of a resource scheduling plan is also provided. Figure 4 , Figure 4 The present invention is a flow chart of a preferred embodiment of the validity verification of a resource scheduling plan. This embodiment can be adapted to the situation where the balance adjustment of an account balance is achieved by executing a resource scheduling plan.

[0089] Among them, technical terms that are the same as or corresponding to the above embodiments are not repeated here.

[0090] like Figure 4 As shown, the method of this embodiment includes:

[0091] S401, check parameters. When it is detected that the parameters are correct, execute S402. When it is detected that the parameters are incorrect, execute S412.

[0092] The parameters may be account information and a transfer plan identifier, wherein the account information may include an account name, an account balance, an account identifier, and the like.

[0093] S402, determine whether the allocation plan exists, and when it is detected that the allocation plan exists, execute S403; when it is detected that the allocation plan does not exist, execute S412.

[0094] S403, determine whether the allocation plan is offline, and when it is detected that the allocation plan is offline, execute S404, and when it is detected that the allocation plan is not offline, execute S412.

[0095] S404, judging whether the approval result corresponding to the allocation plan is passed, if it is detected that the approval result corresponding to the allocation plan is passed, executing S405, if it is detected that the approval result corresponding to the allocation plan is not passed, executing S412.

[0096] S405, judging whether the allocation plan is within the allocation period, if it is detected that the allocation plan is within the allocation period, executing S406, if it is detected that the allocation plan is not within the allocation period, executing S412.

[0097] S406, judging whether the amount of the allocation plan meets the allocation amount. When it is detected that the amount of the allocation plan meets the allocation amount, S407 is executed. When it is detected that the amount of the allocation plan does not meet the allocation amount, S412 is executed.

[0098] S407, determine whether the payment order generated by the transfer plan is still being paid. If it is detected that the payment order generated by the transfer plan is still being paid, execute S408; if it is detected that the payment order generated by the transfer plan is not still being paid, execute S412.

[0099] S408, determine whether the reids lock is unique. When it is detected that the reids lock is unique, execute S409; when it is detected that the reids lock is not unique, execute S412.

[0100] S409: Initiate payment.

[0101] S410: deduction amount.

[0102] S411. Send transfer prompt information.

[0103] S412, end.

[0104] The technical solution of the embodiment of the present invention performs parameter verification on parameters such as account information and allocation plan identifiers. When the parameter verification is correct, the allocation plan is queried and it is determined whether the allocation plan is offline. When it is detected that the allocation plan is not offline, it is determined whether the approval result corresponding to the allocation plan is passed. When it is detected that the approval result corresponding to the allocation plan is passed, it is determined whether the allocation plan is within the allocation time. When it is detected that the allocation plan is within the allocation time, it is determined whether the amount of the allocation plan meets the allocation. When it is detected that the amount of the allocation plan meets the allocation, the payment status of the allocation plan is determined. When it is detected that the payment status of the allocation plan is still being paid, it is determined whether the reids lock is unique. When it is detected that the reids lock is unique, the automatic scheduling of the account balance is realized by initiating payment, deducting the amount and sending the allocation prompt information, and the account balance of the account is adjusted.

[0105] Embodiment 4

[0106] Figure 5 : is a schematic diagram of a resource adjustment device module provided by Embodiment 4 of the present invention. The present invention provides a resource adjustment device, which includes:

[0107] The resource remaining amount acquisition module 510 is used to acquire the resource remaining amount of the target object;

[0108] A policy determination module 520, configured to determine an adjustment policy corresponding to the remaining amount of resources when the remaining amount of resources meets an adjustment condition;

[0109] The resource adjustment module 530 is used to adjust the resources of the target object according to the adjustment strategy.

[0110] The technical solution of the embodiment of the present invention obtains the remaining resources of the target object through the remaining resource acquisition module, determines the adjustment strategy corresponding to the remaining resources when the remaining resources meet the adjustment conditions through the strategy determination module, and adjusts the resources of the target object according to the adjustment strategy through the resource adjustment module. The technical problem that the remaining resources of the target object are poor in real time due to manual monitoring and high manual adjustment error rate is solved, and the remaining resources of the target object are monitored in real time, which greatly improves the accuracy of resource adjustment of the target object.

[0111] Optionally, the resource remaining amount acquisition module 510 is used to extract the resource remaining amount of the target object from the cache area according to the basic information of the target object; or, according to the basic information of the target object, obtain the resource remaining amount of the target object through an information query interface, and store the resource remaining amount of the target object in the cache area.

[0112] Optionally, the policy determination module 520 is used to compare the resource remaining amount with at least one adjustment threshold, and determine that the adjustment condition is met when the resource remaining amount meets any adjustment threshold; and determine the adjustment policy according to the priority of at least one adjustment threshold met by the resource remaining amount.

[0113] Optionally, the policy determination module 520 is used for the adjustment threshold to include 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.

[0114] Optionally, the resource adjustment module 530 is used to determine a resource scheduling plan according to the adjustment strategy, wherein the resource scheduling plan includes an allocation amount, a scheduling object and a scheduling direction; and execute the resource scheduling plan to adjust resources for the target object.

[0115] Optionally, the resource adjustment module 530 is used to verify the validity of the resource scheduling plan.

[0116] Optionally, the resource adjustment module 530 is used to verify the validity of the resource scheduling plan, including: verifying the validity of the approval result of the resource scheduling plan, the validity of the allocation time, the validity of the allocation amount, and the validity of the task order of the allocation plan.

[0117] The above-mentioned device can execute the resource adjustment method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the resource adjustment method.

[0118] Embodiment 5

[0119] Figure 6 A schematic diagram of the structure of a server provided in Embodiment 5 of the present invention. Figure 6 A block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention is shown. Figure 6 The server 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0120] like Figure 6 As shown, 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 connects various system components (including the system memory 28 and the processing unit 16).

[0121] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0122] The server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the server 12, including volatile and non-volatile media, removable and non-removable media.

[0123] 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 / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The 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 perform the functions of the various embodiments of the present invention.

[0124] 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 or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0125] The server 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the server 12, and / or may communicate with any device that enables the server 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the server 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the server 12 via a bus 18. It should be understood that, although not shown in the figure, 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.

[0126] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a resource adjustment method provided by the embodiment of the present invention, the method comprising:

[0127] Get the remaining amount of resources of the target object;

[0128] When the remaining amount of the resource meets the adjustment condition, determining an adjustment strategy corresponding to the remaining amount of the resource;

[0129] According to the adjustment strategy, resources of the target object are adjusted.

[0130] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the resource adjustment method provided by any embodiment of the present invention.

[0131] Embodiment 6

[0132] Embodiment 6 of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute a resource adjustment method when executed by a computer processor.

[0133] The method includes:

[0134] Get the remaining amount of resources of the target object;

[0135] When the remaining amount of the resource meets the adjustment condition, determining an adjustment strategy corresponding to the remaining amount of the resource;

[0136] According to the adjustment strategy, resources of the target object are adjusted.

[0137] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0138] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0139] 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.

[0140] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0141] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A resource adjustment method, characterized in that: include: Get the remaining amount of resources of the target object; When the remaining amount of the resource meets the adjustment condition, determining an adjustment strategy corresponding to the remaining amount of the resource; According to the adjustment strategy, adjusting resources of the target object; When the remaining amount of resources meets the adjustment condition, determining the adjustment strategy corresponding to the remaining amount of resources includes: Upon detecting that the remaining amount of resources of the target object meets at least one upper threshold, determining the upper threshold met by the remaining amount of resources of the target object according to the priority of the preset upper threshold, and determining the call-out policy of the remaining amount of resources of the target object according to the corresponding relationship between the upper threshold and the call-out policy corresponding to the upper threshold; Upon detecting that the remaining amount of resources of the target object satisfies at least one lower limit threshold, determining the lower limit threshold satisfied by the remaining amount of resources of the target object according to the priority of the preset lower limit threshold, and determining the call-in strategy for the remaining amount of resources of the target object according to the corresponding relationship between the lower limit threshold and the call-in strategy corresponding to the lower limit threshold; Among them, the lower limit threshold is lower than the preset threshold, and the upper limit threshold is higher than the preset threshold; the call-in strategy is to call resources from the resource cache area to the target object to increase the remaining resources of the target object; the call-out strategy is to call out resources exceeding the upper limit threshold from the remaining resources of the target object to the resource cache area.

2. The method according to claim 1, characterized in that: The obtaining of the remaining amount of resources of the target object includes: Extracting the remaining amount of resources of the target object from the cache area according to the basic information of the target object; or According to the basic information of the target object, the remaining amount of resources of the target object is obtained through an information query interface, and the remaining amount of resources of the target object is stored in the cache area.

3. The method according to claim 1, characterized in that The step of adjusting resources of the target object according to the adjustment strategy includes: Determine a resource scheduling plan according to the adjustment strategy, wherein the resource scheduling plan includes an allocation amount, a scheduling object, and a scheduling direction; The resource scheduling plan is executed to adjust resources for the target object.

4. The method according to claim 3, characterized in that Before executing the resource scheduling plan, the method further includes: Verify the validity of the resource scheduling plan.

5. The method according to claim 4, characterized in that The verifying the validity of the resource scheduling plan includes: Verify the validity of the approval result of the resource scheduling plan, the validity of the allocation time, the validity of the allocation amount, and the validity of the task order of the allocation plan.

6. A resource adjustment device, characterized in that: include: A resource remaining amount acquisition module is used to obtain the resource remaining amount of the target object; A strategy determination module, used for determining an adjustment strategy corresponding to the remaining amount of resources when the remaining amount of resources meets the adjustment condition; A resource adjustment module, used to adjust resources of the target object according to the adjustment strategy; The policy determination module is specifically configured to, upon detecting that the remaining amount of resources of the target object satisfies at least one upper threshold, determine the upper threshold that the remaining amount of resources of the target object satisfies according to the priority of the preset upper threshold, and determine the call-out policy of the remaining amount of resources of the target object according to the corresponding relationship between the upper threshold and the call-out policy corresponding to the upper threshold; Upon detecting that the remaining amount of resources of the target object satisfies at least one lower limit threshold, the lower limit threshold satisfied by the remaining amount of resources of the target object is determined according to the priority of the preset lower limit threshold, and the call-in strategy for the remaining amount of resources of the target object is determined according to the correspondence between the lower limit threshold and the call-in strategy corresponding to the lower limit threshold; wherein the lower limit threshold is lower than the preset threshold, and the upper limit threshold is higher than the preset threshold; the call-in strategy is to call resources from the resource cache area to the target object so as to increase the remaining amount of resources of the target object; and the call-out strategy is to call out resources exceeding the upper limit threshold from the remaining resources of the target object to the resource cache area.

7. A server, characterized in that: The server comprises: one or more processors; A storage device, used for storing one or more programs, when the program is executed by the processor, the processor implements a resource adjustment method as described in any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a resource adjustment method as described in any one of claims 1 to 5 is implemented.