Product quota scheduling method and device and electronic equipment

By using an automated product quota scheduling method, based on the quota allocation array and storage area number, automatic scheduling of product quotas is achieved, solving the problem of low efficiency in manual scheduling and improving transaction smoothness and work efficiency.

CN121543947APending Publication Date: 2026-02-17AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511674865.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-14
Publication Date
2026-02-17

AI Technical Summary

Technical Problem

The efficiency of manually allocating product quotas in existing technologies is low, especially in high-concurrency transaction environments, which affects the smoothness of customer transactions and work efficiency.

Method used

A product quota scheduling method is adopted. By obtaining the quota allocation array of the target product, the quota value of each storage area is determined. When the remaining quota value is detected to be less than the threshold, the quota value is automatically allocated from the storage area with the larger region number to the storage area with the smaller region number, thereby realizing automatic scheduling.

Benefits of technology

This improved the convenience and efficiency of product quota allocation, avoided manual intervention, and ensured the smooth and orderly operation of product sales.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121543947A_ABST
    Figure CN121543947A_ABST
Patent Text Reader

Abstract

The invention discloses a product quota scheduling method and device and electronic equipment. The method comprises the following steps: acquiring a quota allocation array of a target product; the sum of the number of the storage areas in the quota allocation array is determined, the total group number of the product quotas is obtained, and a first quota value of each group of product quotas is determined according to the total product quota value and the group number of the target product; determining a second quota value in each product storage area according to the quota allocation array and the first quota value; and when it is detected that the remaining limit value of the first storage area is smaller than the limit threshold value, determining a second area number according to the first area number of the first storage area and the limit allocation array, and allocating the remaining limit value in the first storage area to a second storage area under the second area number. According to the method and the device, the problem of relatively low efficiency of manually scheduling the product quota in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of financial technology, and more specifically, to a method, apparatus, and electronic device for allocating product quotas. Background Technology

[0002] Product allocation refers to the process of dividing the total available financial product quota into specific sales units or regions based on factors such as different channels, regions, or times. This balances market demand with risk control, ensuring that there are sufficient products available for sale at each sales node or time period, while avoiding the accumulation of risks caused by excessive concentration of sales.

[0003] Currently, when financial institutions sell financial products, after allocating the quota for financial products, in order to avoid the situation where financial products in a certain area are sold out, they need to adjust the quota for products in that area if the remaining quota in that area is too low, so as to prevent the products in that area from being sold out.

[0004] Currently, when allocating product quotas, the method used is for staff to manually collect unused or remaining small quotas from each sales node, then redistribute the collected quotas before continuing the sales process. However, this process is cumbersome and inefficient, especially in high-concurrency transaction environments. Frequent manual adjustments not only increase the workload but also directly affect the smoothness and experience of customer transactions.

[0005] There is currently no effective solution to the problem of low efficiency in manually allocating product quotas in related technologies. Summary of the Invention

[0006] The main objective of this application is to provide a method, apparatus, and electronic device for scheduling product quotas, in order to solve the problem of low efficiency in scheduling product quotas manually in related technologies.

[0007] To achieve the above objectives, according to one aspect of this application, a method for scheduling product quotas is provided. The method includes: obtaining a quota allocation array for a target product, wherein the quota allocation array includes M storage areas, each storage area representing the number of product storage areas allowed to receive a set of product quotas each time a product allocation operation is performed, M being the number of storage areas, the number of storage areas being the same as the number of times the product allocation operation is performed, and M being a positive integer; determining the sum of the quantities of each storage area in the quota allocation array to obtain the total number of product quota sets, and determining a first quota value for each set of product quotas based on the total product quota value of the target product and the number of sets; determining a second quota value for each product storage area based on the quota allocation array and the first quota value, wherein the area number of the product storage area is inversely correlated with the second quota value; and, if it is detected that the remaining quota value of any first storage area is less than a quota threshold, determining a second area number based on the first area number of the first storage area and the quota allocation array, and allocating the remaining quota value in the first storage area to a second storage area under the second area number, wherein the first area number is greater than the second area number.

[0008] Optionally, obtaining the credit limit allocation array for the target product includes: obtaining the total number of product storage areas for the target product set by the financial institution, and using the total number as the first element value in the credit limit allocation array; configuring the initial value of the first intermediate variable as the value of the total number, and obtaining a preset operator and preset parameters; calculating the second intermediate variable based on the preset operator, preset parameters, and the first intermediate variable; determining whether the second intermediate variable is less than the first intermediate variable, and if the second intermediate variable is less than the first intermediate variable, using the second intermediate variable as the next element value in the credit limit allocation array, and using the second intermediate variable as the updated first intermediate variable, and executing the calculation based on the preset operator, preset parameters, and... The process of calculating the second intermediate variable from the first intermediate variable continues until the second intermediate variable reaches a preset value. If the second intermediate variable is greater than or equal to the first intermediate variable, the third intermediate variable is determined based on the first intermediate variable and a preset step size. The third intermediate variable is then used as the next element in the quota allocation array, and the updated first intermediate variable is used as the next element. The process of calculating the second intermediate variable based on the preset operator, preset parameters, and the first intermediate variable continues until the second intermediate variable reaches a preset value. If the second intermediate variable reaches a preset value, the preset value indicated by the preset value is used as the next element in the quota allocation array, resulting in a quota allocation array with filled element values.

[0009] Optionally, determining the second quota value for each product storage area based on the quota allocation array and the first quota value includes: determining the product storage areas involved in each product allocation operation based on the number of M storage areas, obtaining a set of product storage areas, wherein the set of product storage areas includes multiple subsets, each subset being a set of area numbers of product storage areas with one number of storage areas; determining the number of times each product storage area is allocated a product quota based on the number of times each product storage area appears in the set of product storage areas, obtaining multiple allocation counts; and multiplying the allocation count of each product storage area by the first quota value to obtain the second quota value for each product storage area.

[0010] Optionally, the product storage areas involved in each product allocation operation are determined based on the number of M storage areas, and the product storage area set is obtained by: for any number of storage areas, obtaining multiple product storage areas with the same number of storage areas in ascending order of the area number of the product storage areas; determining multiple product storage areas as a subset of the number of storage areas, and combining the subsets of the number of storage areas into a product storage area set.

[0011] Optionally, determining the second region number based on the first region number of the first storage region and the quota allocation array includes: obtaining the number of storage regions with a second quota value that is not 0, obtaining a first quantity, and obtaining a second quantity from the quota allocation array that has the smallest difference from the first quantity and is less than the first quantity; calculating the modulus between the first region number and the second quantity, obtaining a first value, and adding 1 to the first value to obtain a second value; and determining the second value as the second region number.

[0012] Optionally, the method further includes: upon receiving a product purchase instruction from a target user, obtaining a target credit limit and a purchase area number from the product purchase instruction; determining a third storage area to provide the target product to the target user based on the purchase area number, and determining whether the remaining credit limit in the third storage area is greater than or equal to the target credit limit; if the remaining credit limit is greater than or equal to the target credit limit, providing the product in the third storage area to the target user and updating the remaining credit limit in the third storage area; if the remaining credit limit is less than the target credit limit, determining a fourth area number based on the third area number of the third storage area and the credit allocation array, and providing the product in the fourth storage area to which the fourth area number belongs to the target user.

[0013] Optionally, determining the third storage area for providing the target product to the target user based on the purchase area number includes: obtaining the number of storage areas with a second quota value that is not 0, obtaining a third quantity, and obtaining a fourth quantity from the quota allocation array that has the smallest difference from the third quantity and is greater than the third quantity; calculating the modulus between the purchase area number and the fourth quantity to obtain a third value, and adding 1 to the third value to obtain a fourth value; and determining the product storage area with the area number of the fourth value as the third storage area.

[0014] To achieve the above objectives, according to another aspect of this application, a product quota scheduling device is provided. The device includes: a first acquisition unit, configured to acquire a quota allocation array for a target product, wherein the quota allocation array includes M storage areas, each storage area representing the number of product storage areas that can be allocated a set of product quotas each time a product allocation operation is performed, M being the number of storage areas, the same as the number of times the product allocation operation is performed, and M being a positive integer; a first determination unit, configured to determine the sum of the number of each storage area in the quota allocation array to obtain the total number of product quota groups, and determine the first quota value of each set of product quotas based on the total product quota value of the target product and the number of groups; a second determination unit, configured to determine the second quota value of each product storage area based on the quota allocation array and the first quota value, wherein the area number of the product storage area is inversely correlated with the second quota value; and an allocation unit, configured to, when detecting that the remaining quota value of any first storage area is less than the quota threshold, determine the second area number based on the first area number of the first storage area and the quota allocation array, and allocate the remaining quota value in the first storage area to the second storage area under the second area number, wherein the first area number is greater than the second area number.

[0015] To achieve the above objectives, according to another aspect of this application, an electronic device is provided, the electronic device including a memory storing an executable program; and a processor for running the program, wherein the program executes the above-described product quota scheduling method during runtime.

[0016] To achieve the above objectives, according to another aspect of this application, a computer program product is provided, including computer instructions that, when executed by a processor, implement the steps of the product quota scheduling method described above.

[0017] In this embodiment, a quota allocation array for the target product is obtained. This array includes M storage areas, each representing the number of product storage areas that can be allocated a set of product quotas each time a product allocation operation is performed. M is the number of storage areas, which is the same as the number of product allocation operations performed, and M is a positive integer. The sum of the storage areas in the quota allocation array is determined to obtain the total number of product quota sets. A first quota value for each set of product quotas is determined based on the total product quota value and the number of sets for the target product. A second quota value is determined for each product storage area based on the quota allocation array and the first quota value, where the area number of the product storage area is inversely correlated with the second quota value. If the remaining quota value of any first storage area is detected to be less than the quota threshold, a second quota value is determined based on the first area number of the first storage area and the quota allocation array. The system assigns a second region number and allocates the remaining quota value in the first storage region to the second storage region under the second region number. The first region number is greater than the second region number. By setting a quota allocation array for the target product, the number of times product allocation operations are performed in each product storage region is determined. Based on the first quota value, a second quota value is determined in each product storage region. A preliminary quota scheduling operation is then performed for each product storage region based on the second quota value. If the remaining quota value in any first storage region is detected to be less than the quota threshold, the second storage region for scheduling is determined based on the quota value in the first storage region. This completes the automatic scheduling operation of product sales quota values, achieving the technical effect of improving the convenience and efficiency of product sales quota scheduling, and thus solving the technical problem of low efficiency in manual product quota scheduling in related technologies. Attached Figure Description

[0018] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0019] Figure 1 A hardware block diagram of a computer terminal for implementing a product quota scheduling method is shown.

[0020] Figure 2 This is a flowchart of the product quota scheduling method provided in Embodiment 1 of this application;

[0021] Figure 3 This is a schematic diagram of the second quota value allocation result of the product storage area provided in Embodiment 1 of this application;

[0022] Figure 4 This is a schematic diagram of a product quota scheduling device according to Embodiment 2 of this application;

[0023] Figure 5 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0024] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0027] It should be noted that the product quota allocation method, device, and electronic equipment determined in this disclosure can be used in the fintech field, or in any field other than fintech. The application fields of the product quota allocation method, device, and electronic equipment determined in this disclosure are not limited.

[0028] It should be noted that all information, user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, and displayed data) used in this application are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with the relevant laws, regulations, and standards of the relevant regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entry points for users to choose to authorize or refuse use. If the user chooses to refuse, the process will proceed to the expert decision-making process. For example, this system has an interface with relevant users or organizations. Before obtaining relevant information, a request to obtain the information needs to be sent to the aforementioned user or organization through the interface. After receiving consent from the aforementioned user or organization, the relevant information is obtained. Users can view the purpose of data use in real time through the authorization interface and have the right to withdraw authorization or delete data at any time. After the authorization is withdrawn, the system will terminate the relevant data processing within 24 hours.

[0029] The embodiments or examples disclosed herein are not exhaustive, but merely illustrative of some embodiments or examples, and are not intended to limit the scope of protection of this disclosure. Unless otherwise specified, each step in a particular embodiment or example can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a particular embodiment or example can also be implemented as an independent embodiment, and the order of the steps in a particular embodiment or example can be arbitrarily interchanged. Furthermore, optional methods or examples in a particular embodiment or example can be arbitrarily combined; moreover, embodiments or examples can be arbitrarily combined. For example, some or all steps of different embodiments or examples can be arbitrarily combined, and a particular embodiment or example can be arbitrarily combined with optional methods or examples of other embodiments or examples.

[0030] For ease of description, the following explains some of the nouns or terms used in the embodiments of this application:

[0031] Product quota value: refers to the total quantity of the target product to be sold this time, such as 10,000 units.

[0032] Example 1

[0033] According to an embodiment of this application, an embodiment of a product quota scheduling method is also provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Also, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0034] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware block diagram of a computer terminal for implementing a product quota scheduling method is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) 102 (processor 102 may include, but is not limited to, processing devices such as microprocessors or programmable logic devices), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface, a universal serial bus port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0035] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0036] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the product quota scheduling method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby implementing the aforementioned product quota scheduling method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0037] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0038] The display may be, for example, a touchscreen LCD display that allows the user to interact with the user interface of the computer terminal 10 (or mobile device).

[0039] Under the aforementioned operating environment, this application provides the following: Figure 2 The product quota allocation method is shown. Figure 2 This is a flowchart of the product quota scheduling method provided in Embodiment 1 of this application, as follows: Figure 2 As shown, the method includes:

[0040] Step S201: Obtain the quota allocation array of the target product. The quota allocation array includes M storage area quantities. Each storage area quantity represents the number of product storage areas that can be allocated a set of product quotas each time the product allocation operation is performed. M is the number of storage areas. The number of storage areas is the same as the number of times the product allocation operation is performed. M is a positive integer.

[0041] It should be noted that the execution entity in this embodiment can be a product quota scheduling system. This system can perform preliminary allocation of product quotas for each product storage area, and automatically perform product quota scheduling operations when it detects that the remaining quota is less than the quota threshold, thereby improving the scheduling efficiency of product quotas. The product quota can be product sales quota, product promotion quota, etc., which are not limited in this embodiment.

[0042] For example, the target product can be any financial product, such as an investment and wealth management product. The target product has a concept of shares; purchasing one share of the target product is equivalent to purchasing one financial product. The quota allocation array can be as follows: arr=[21, 9, 6, 4, 3, 2, 1], where each element in the quota allocation array represents the number of storage areas. The number of storage areas represents the number of product storage areas that can receive a set of product quotas each time a product allocation operation is performed. For example, 21 means that when the first product allocation operation is performed, product storage areas numbered 1-21 can receive a set of product quotas. A set of product quotas includes multiple shares of the financial product. For example, a set of product quotas includes a first quota value, which can be 10, indicating that there are 10 target products in a set of product quotas.

[0043] For example, the number of storage areas, that is, the number of elements in the array arr, is 7, which is the same as the number of times the product allocation operation is executed, that is, it represents that 7 product scheduling operations are executed during the initial product allocation.

[0044] Step S202: Determine the sum of the number of each storage area in the quota allocation array to obtain the total number of product quota groups, and determine the first quota value of each product quota group based on the total product quota value and the number of groups of the target product.

[0045] For example, the total number of product quota groups can be obtained by summing the number of each storage area in the quota allocation array. This can be achieved by adding the parameters in arr, i.e., 21+9+6+4+3+2+1=46. The resulting 46 is the total number of product quota groups. After obtaining the total product quota value of the target product, the total product quota value of the target product can be divided by the total number of groups to obtain the first quota value contained in each product quota group. This first quota value is also the number of target products that can be sold contained in each product quota group.

[0046] Step S203: Determine the second quota value for each product storage area based on the quota allocation array and the first quota value, wherein the area number of the product storage area is inversely related to the second quota value.

[0047] For example, after obtaining the first quota value, the number of times the product quota is issued to each product storage area can be determined according to the quota allocation array, and the second quota value can be determined according to the number of times and the first quota value.

[0048] It should be noted that each product storage area contains a region number. During allocation, the smaller the region number, the larger the allocated second quota value. For example, in the case of quota allocation array arr=[21, 9, 6, 4, 3, 2, 1], since the region number of the product storage area is inversely related to the second quota value, 21 represents allocating a set of product quotas to product storage areas with region numbers 1-21, 9 represents allocating a set of product quotas to product storage areas with region numbers 1-9, 6 represents allocating a set of product quotas to product storage areas with region numbers 1-6, 4 represents allocating a set of product quotas to product storage areas with region numbers 1-4, 3 represents allocating a set of product quotas to product storage areas with region numbers 1-3, 2 represents allocating a set of product quotas to product storage areas with region numbers 1-2, and 1 represents allocating a set of product quotas to product storage area with region number 1.

[0049] That is, if the product storage area with region number 1 receives 7 sets of product credits, then the product credit value contained in the product storage area with region number 1 is the first product credit value × 7. Similarly, the product storage area with region number 2 receives 6 sets of product credits, the product storage area with region number 3 receives 5 sets of product credits, the product storage area with region number 4 receives 4 sets of product credits, the product storage areas with region numbers 5 and 6 receive 3 sets of product credits, the product storage areas with region numbers 7-9 receive 2 sets of product credits, and the product storage areas with region numbers 10-21 receive 1 set of product credits.

[0050] Step S204: If the remaining quota value of any first storage area is less than the quota threshold, determine the second area number according to the first area number of the first storage area and the quota allocation array, and allocate the remaining quota value in the first storage area to the second storage area under the second area number, wherein the first area number is greater than the second area number.

[0051] For example, when it is detected that the remaining quota value of any first storage area is less than the quota threshold, it indicates that the remaining quota value in that area needs to be reclaimed. At this time, it is necessary to determine how to allocate the remaining quota value of the first storage area. The second area number associated with the first storage area can be determined according to the first area number of the first storage area and the quota allocation array, and the remaining quota value in the first storage area can be allocated to the second storage area under the second area number. This completes the scheduling operation of the remaining quota value in the first storage area, so that the quota value in each storage area can be automatically scheduled without manual processing, thus improving the scheduling efficiency of quota value.

[0052] The product quota scheduling method provided in this application embodiment involves obtaining a quota allocation array for the target product. This array includes M storage areas, where each storage area represents the number of product storage areas allowed to receive a set of product quotas during each product allocation operation. M is the number of storage areas, which is the same as the number of product allocation operations performed, and M is a positive integer. The method then determines the sum of the storage areas in the quota allocation array to obtain the total number of product quota groups. Based on the total product quota value and the number of groups for the target product, a first quota value is determined for each product quota group. A second quota value is determined for each product storage area based on the quota allocation array and the first quota value, where the area number of the product storage area is inversely correlated with the second quota value. If the remaining quota value of any first storage area is detected to be less than the quota threshold, the method then determines the quota value based on the first area number and the quota of the first storage area. The allocation array determines the second region number, and the remaining quota value in the first storage region is allocated to the second storage region under the second region number. The first region number is greater than the second region number. By setting the quota allocation array for the target product, the number of times the product allocation operation is performed in each product storage region is determined. Based on the first quota value, the second quota value in each product storage region is determined, and a preliminary quota scheduling operation is performed for each product storage region based on the second quota value. If the remaining quota value in any first storage region is detected to be less than the quota threshold, the second storage region for scheduling is determined based on the quota value in the first storage region, thus completing the automatic scheduling operation of product sales quota values. This achieves the technical effect of improving the convenience and efficiency of product sales quota scheduling, thereby solving the technical problem of low efficiency in manual product quota scheduling in related technologies.

[0053] To accurately obtain the credit limit allocation array, optionally, in the product credit limit scheduling method provided in this application embodiment, obtaining the credit limit allocation array of the target product includes: obtaining the total number of product storage areas for the target product set by the financial institution, and using the total number as the first element value in the credit limit allocation array; configuring the initial value of the first intermediate variable as the value of the total number, and obtaining a preset operator and preset parameters, calculating a second intermediate variable based on the preset operator, preset parameters, and the first intermediate variable; determining whether the second intermediate variable is less than the first intermediate variable, and if the second intermediate variable is less than the first intermediate variable, using the second intermediate variable as the next element value in the credit limit allocation array, and using the second intermediate variable as the updated first intermediate variable. The process involves calculating a second intermediate variable based on a preset operator, preset parameters, and a first intermediate variable, until the second intermediate variable reaches a preset value. If the second intermediate variable is greater than or equal to the first intermediate variable, a third intermediate variable is determined based on the first intermediate variable and a preset step size. This third intermediate variable is then used as the next element in the quota allocation array, and the updated first intermediate variable is used as the first intermediate variable. The process continues, calculating the second intermediate variable based on the preset operator, preset parameters, and the first intermediate variable, until the second intermediate variable reaches a preset value. If the second intermediate variable reaches a preset value, the preset value indicated by the preset value is used as the next element in the quota allocation array, resulting in a quota allocation array with all element values ​​filled.

[0054] For example, when determining the credit limit allocation array, it is first necessary to obtain the total number of product storage areas for the target product set by the financial institution. For example, there are 21 available product storage areas, numbered m1-m21 respectively. At this time, the total number 21 can be used as the first element in the credit limit allocation array to obtain the credit limit allocation array arr=

[21] .

[0055] Furthermore, it is necessary to set the first intermediate variable s = total quantity n, and obtain the preset operator k1. The formula is sqrt(s) + k2, and includes preset parameters such as k1 = 2 and k2 = 0. The preset parameters also need to include the step size step = 1. After determining the first intermediate variable, the preset operator, and the preset step size, the second intermediate variable j1 is calculated based on the preset operator, the preset parameters, and the first intermediate variable. The calculation process is as follows: substitute the first intermediate variable s, k1 = 2, and k2 = 0 into the preset operator to obtain the calculation result, and then round down the calculation result to obtain the second intermediate variable j1.

[0056] After obtaining the second intermediate variable, it is necessary to determine the next element value in the quota allocation array based on the size relationship between the second intermediate variable and the first intermediate variable. If the second intermediate variable is less than the first intermediate variable, the second intermediate variable j1 is directly used as the next element value in the quota allocation array, and s=j1, that is, the second intermediate variable is used as the new first intermediate variable. The above operation after obtaining the first intermediate variable is repeated to obtain the next second intermediate variable j1, thereby completing the iteration operation until the second intermediate variable j1 obtained in this step is a preset value, where the preset value can be 2.

[0057] If the second intermediate variable is greater than or equal to the first intermediate variable, the first intermediate variable needs to be updated using a step size to obtain the third intermediate variable. This can be done as follows: j2 = s - step, where j2 is the third intermediate variable. The third intermediate variable is then used as the next element in the quota allocation array. At the same time, the first intermediate variable s = j2, which means the third intermediate variable is used as the new first intermediate variable. The above operations after obtaining the first intermediate variable are then re-executed to obtain the next second intermediate variable j1, thus completing the iteration operation until the second intermediate variable j1 obtained in this step is a preset value, where the preset value can be 2.

[0058] When the second intermediate variable is a preset value, the preset value indicated by the preset value can be directly used as the next element value in the quota allocation array. For example, if the preset value is 2, the preset values ​​2 and 1 indicated by the preset value 2 can be used as the last two element values ​​in the quota allocation array, thus obtaining the complete quota allocation array arr=[21, 9, 6, 4, 3, 2, 1].

[0059] This embodiment improves the accuracy of the initial allocation of product quotas by determining the quota allocation array, and ensures that different product storage areas are allocated different product quotas. This allows the product quota scheduling direction to maintain a trend of moving from storage areas with larger area numbers to storage areas with smaller area numbers, avoiding chaotic scheduling of quotas in multiple storage areas, and enabling the product quota scheduling operation to be executed smoothly and automatically.

[0060] To accurately determine the second quota value, optionally, in the product quota scheduling method provided in this application embodiment, determining the second quota value for each product storage area based on the quota allocation array and the first quota value includes: determining the product storage areas involved in each product allocation operation based on the number of M storage areas, obtaining a product storage area set, wherein the product storage area set includes multiple subsets, each subset being a set of area numbers of product storage areas under one number of storage areas; determining the number of times each product storage area is allocated a product quota based on the number of times each product storage area appears in the product storage area set, obtaining multiple allocation counts; multiplying the allocation count of each product storage area by the first quota value to obtain the second quota value for each product storage area.

[0061] For example, when determining the second quota value in each product storage area, it is first necessary to determine the product storage areas involved in each product allocation operation based on the number of each storage area in the quota allocation array, thus obtaining a set of product storage areas. For example, in the case of quota allocation array arr=[21, 9, 6, 4, 3, 2, 1], it can be represented that the first product allocation operation involves product storage areas numbered m1-m21, the second product allocation operation involves product storage areas numbered m1-m9, the third product allocation operation involves product storage areas numbered m1-m6, the fourth product allocation operation involves product storage areas numbered m1-m4, the fifth product allocation operation involves product storage areas numbered m1-m3, the sixth product allocation operation involves product storage areas numbered m1-m2, and the seventh product allocation operation involves product storage area numbered m1, thus obtaining a set of product storage areas, which includes 7 subsets.

[0062] Furthermore, after obtaining the 7 subsets, the number of times each product storage area is allocated a product quota can be determined based on the number of times each product storage area appears in the product storage area set, resulting in multiple allocation counts. For example, if product storage area m1 appears 7 times, the allocation count is 7; if product storage area m2 appears 6 times, the allocation count is 6. This determines the allocation count for each product storage area, and based on the allocation count and the first quota value included in each allocation set, the second quota value for each product storage area is obtained.

[0063] For example, Figure 3 This is a schematic diagram of the second quota value allocation result of the product storage area according to Embodiment 1 of this application, as shown below. Figure 3As shown, with the first quota value being k, the second quota value for region m1 is 7k, the second quota value for region m2 is 6k, ..., the second quota value for region m21 is 1k, thus completing the quota value allocation operation.

[0064] This embodiment improves the accuracy of quota scheduling operations by calculating the quota value for each region.

[0065] To accurately determine the product storage areas involved in each product allocation operation, optionally, in the product quota scheduling method provided in this application embodiment, determining the product storage areas involved in each product allocation operation based on the number of M storage areas, and obtaining the product storage area set includes: for any number of storage areas, obtaining multiple product storage areas with the same number of storage areas in ascending order of the area numbers of the product storage areas; determining the multiple product storage areas as a subset of the number of storage areas, and combining the subsets of the number of storage areas into a product storage area set.

[0066] For example, when determining the product storage areas involved in each product allocation operation, it is necessary to obtain the number of each storage area and obtain multiple product storage areas with the same number of storage areas in ascending order of the area numbers of the product storage areas. For example, if the number of storage areas is 21, it means that product storage areas numbered 21 are obtained starting from number 1; if the number of storage areas is 9, it means that product storage areas numbered 9 are obtained starting from number 1. This results in multiple subsets, and each subset is determined as a set of product storage areas, thereby completing the grouping operation of product storage areas.

[0067] This embodiment improves the accuracy of determining the number of groupings for each product storage area by grouping the product storage areas.

[0068] To accurately determine the second region number, optionally, in the product quota scheduling method provided in this application embodiment, determining the second region number based on the first region number of the first storage region and the quota allocation array includes: obtaining the number of storage regions with a second quota value that is not 0, obtaining a first quantity, and obtaining a second quantity from the quota allocation array that has the smallest difference from the first quantity and is less than the first quantity; calculating the modulus between the first region number and the second quantity, obtaining a first value, and adding 1 to the first value to obtain a second value; and determining the second value as the second region number.

[0069] For example, if it is detected that the remaining quota value of any first storage area is less than the quota threshold, a scheduling operation is required to reclaim and redistribute the remaining quota value in the first storage area. At this time, it is first necessary to determine which second storage area to schedule the remaining quota value to. Since there may be other storage areas with a remaining quota value of 0, the remaining quota value cannot be scheduled to such storage areas. Therefore, it is necessary to determine the number of storage areas with a current second quota value that is not 0, obtain a first number, and obtain a second number from the quota allocation array that has the smallest difference from the first number and is less than the first number. For example, if the number of storage areas with a current second quota value that is not 0 is 18, then the second number obtained from the quota allocation array arr=[21, 9, 6, 4, 3, 2, 1] that has the smallest difference from the first number and is less than the first number is 9.

[0070] Furthermore, after obtaining the second quantity, calculate 18mod9+1=1. At this point, 1 can be used as the second region number to determine that the remaining quota value of the first storage region will be allocated to the m1 region, thereby completing the operation of allocating the remaining quota value.

[0071] This embodiment improves the accuracy and rationality of scheduling the remaining quota value by determining the second region number.

[0072] To enable users to perform product purchase operations normally, the product quota scheduling method provided in this application embodiment optionally includes: upon receiving a product purchase instruction sent by a target user, obtaining the target quota value and purchase area number from the product purchase instruction; determining a third storage area to provide the target product to the target user based on the purchase area number, and determining whether the remaining quota value in the third storage area is greater than or equal to the target quota value; if the remaining quota value is greater than or equal to the target quota value, providing the product in the third storage area to the target user, and updating the remaining quota value in the third storage area; if the remaining quota value is less than the target quota value, determining a fourth area number based on the third area number of the third storage area and the quota allocation array, and providing the product in the fourth storage area to which the fourth area number belongs to the target user.

[0073] For example, when a product purchase instruction is received from a target user, the product purchase instruction will contain the target amount of the target product and the purchase area number, that is, from which purchase area the user needs to purchase the product and how much amount. At this time, it is necessary to first determine whether the remaining amount in that area is greater than or equal to the target amount. If the remaining amount is greater than or equal to the target amount, the product in the third storage area can be directly provided to the target user according to the target amount, and the remaining amount in the third storage area can be reduced according to the target amount to obtain the updated remaining amount.

[0074] If the remaining quota is less than the target quota, it indicates that the product quota in the third storage area is insufficient to meet the user's purchase needs. In this case, it is necessary to switch to another area and purchase products from another area, such as the product storage area under the fourth area number, so that the user can perform the product purchase operation normally.

[0075] This embodiment determines a third storage area to provide product quota to the user, and changes the purchase area when the remaining quota value in the third storage area is insufficient, so that the user can complete the product purchase operation.

[0076] To accurately determine the third storage area, optionally, in the product quota scheduling method provided in this application embodiment, determining the third storage area for providing the target product to the target user based on the purchase area number includes: obtaining the number of storage areas with a second quota value that is not 0, obtaining a third quantity, and obtaining a fourth quantity from the quota allocation array that has the smallest difference from the third quantity and is greater than the third quantity; calculating the modulus between the purchase area number and the fourth quantity to obtain a third value, and adding 1 to the third value to obtain a fourth value; and determining the product storage area with the area number of the fourth value as the third storage area.

[0077] It should be noted that when determining the third storage area, it is necessary to determine the number of product storage areas with remaining credit value and obtain the fourth quantity in the array that is greater than that number. For example, if the number of product storage areas with remaining credit value is 15, then the fourth quantity in the array that is greater than that number is 21. If the number of product storage areas with remaining credit value is 7, then the fourth quantity in the array that is greater than that number is 9. After obtaining the fourth quantity, the purchase area number is modulo the fourth quantity and then 1 is added to obtain the area number of the third storage area.

[0078] This embodiment improves the balance of product quota acquisition operations from various regions when a large number of users purchase target products by defining a third storage area, thereby achieving the technical effect of improving the accuracy of product purchase operations.

[0079] It should be noted that, upon receiving a query request from a user, the system can also display the product storage areas with remaining credit, as well as the remaining credit in each area, allowing users to understand the product availability.

[0080] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0081] Example 2

[0082] This application also provides a product quota scheduling device. It should be noted that the product quota scheduling device of this application can be used to execute the product quota scheduling method provided in the above embodiments. The following describes the product quota scheduling device provided in this application.

[0083] According to an embodiment of this application, an apparatus for implementing the above-described product quota scheduling method is also provided. Figure 4 This is a schematic diagram of a product quota scheduling device according to Embodiment 2 of this application, as shown below. Figure 4 As shown, the device includes:

[0084] The first acquisition unit 41 is used to acquire the quota allocation array of the target product. The quota allocation array includes M storage area quantities. Each storage area quantity represents the number of product storage areas that can be allocated a set of product quotas each time the product allocation operation is performed. M is the number of storage areas. The number of storage areas is the same as the number of times the product allocation operation is performed. M is a positive integer.

[0085] The first determining unit 42 is used to determine the sum of the number of each storage area in the quota allocation array, obtain the total number of product quota groups, and determine the first quota value of each product quota group based on the total product quota value and the number of groups of the target product.

[0086] The second determining unit 43 is used to determine the second quota value in each product storage area based on the quota allocation array and the first quota value, wherein the area number of the product storage area is inversely related to the second quota value.

[0087] The allocation unit 44 is used to determine the second region number based on the first region number of the first storage region and the quota allocation array when the remaining quota value of any first storage region is detected to be less than the quota threshold, and to allocate the remaining quota value in the first storage region to the second storage region under the second region number, wherein the first region number is greater than the second region number.

[0088] The product quota scheduling device provided in this application embodiment obtains a quota allocation array for a target product through a first acquisition unit 41. The quota allocation array includes M storage areas, each storage area representing the number of product storage areas that can be allocated a set of product quotas each time a product allocation operation is performed. M is the number of storage areas, which is the same as the number of times the product allocation operation is performed, and M is a positive integer. A first determination unit 42 determines the sum of the number of each storage area in the quota allocation array to obtain the total number of product quota groups, and determines the first quota value of each set of product quotas based on the total product quota value of the target product and the number of groups. A second determination unit 43 determines the second quota value of each product storage area based on the quota allocation array and the first quota value, wherein the area number of the product storage area is inversely correlated with the second quota value. When the allocation unit 44 detects that the remaining quota value of any first storage area is less than the quota threshold, it determines the second area number based on the first area number of the first storage area and the quota allocation array, and allocates the remaining quota value in the first storage area to the second storage area under the second area number, wherein the first area number is greater than the second area number. By setting up a quota allocation array for target products, the number of times product allocation operations are performed in each product storage area is determined. A second quota value is then determined for each product storage area based on a first quota value. Preliminary quota scheduling is then performed for each product storage area based on the second quota value. If the remaining quota value in any first storage area is detected to be less than the quota threshold, a second storage area is selected based on the quota value in the first storage area for scheduling. This completes the automatic scheduling of product sales quota values, improving the convenience and efficiency of product sales quota scheduling. It also solves the technical problem of low efficiency in manually scheduling product quotas in related technologies.

[0089] Optionally, in the product quota scheduling device provided in this application embodiment, the first acquisition unit 41 includes: a first acquisition module, used to acquire the total number of product storage areas for the target product set by the financial institution, and use the total number as the first element value in the quota allocation array; a configuration module, used to configure the initial value of the first intermediate variable as the value of the total number, and acquire a preset operator and preset parameters, and calculate a second intermediate variable according to the preset operator, preset parameters and the first intermediate variable; a first processing module, used to determine whether the second intermediate variable is less than the first intermediate variable, and if the second intermediate variable is less than the first intermediate variable, use the second intermediate variable as the next element value in the quota allocation array, and use the second intermediate variable as the updated first intermediate variable, and execute the root... The second processing module is used to calculate the second intermediate variable according to the preset operator, preset parameters and the first intermediate variable, until the second intermediate variable is a preset value; the second processing module is used to determine the third intermediate variable according to the first intermediate variable and the preset step size when the second intermediate variable is greater than or equal to the first intermediate variable, use the third intermediate variable as the next element value in the quota allocation array, and use the third intermediate variable as the updated first intermediate variable, and execute the step of calculating the second intermediate variable according to the preset operator, preset parameters and the first intermediate variable, until the second intermediate variable is a preset value; the first determining module is used to use the preset value indicated by the preset value as the next element value in the quota allocation array when the second intermediate variable is a preset value, to obtain the quota allocation array with the element value filled.

[0090] Optionally, in the product quota scheduling device provided in this application embodiment, the second determining unit 43 includes: a second determining module, configured to determine the product storage areas involved in each product allocation operation based on the number of M storage areas, to obtain a product storage area set, wherein the product storage area set includes multiple subsets, each subset being a set of area numbers of product storage areas under one number of storage areas; a third determining module, configured to determine the number of times each product storage area is allocated a product quota based on the number of times each product storage area appears in the product storage area set, to obtain multiple allocation counts; and a first calculation module, configured to multiply the allocation count of each product storage area by a first quota value to obtain a second quota value for each product storage area.

[0091] Optionally, in the product quota scheduling device provided in the embodiments of this application, the second determining module includes: an acquisition submodule, used to acquire multiple product storage areas with the same number of storage areas in ascending order of the area numbers of the product storage areas for any given number of storage areas; and a determining submodule, used to determine the multiple product storage areas as a subset of the number of storage areas, and to combine the subsets of the number of storage areas into a set of product storage areas.

[0092] Optionally, in the product quota scheduling device provided in this application embodiment, the allocation unit 44 includes: a second acquisition module, used to acquire the number of storage areas with a second quota value that is not 0, to obtain a first quantity, and to acquire a second quantity from the quota allocation array that has the smallest difference from the first quantity and is less than the first quantity; a second calculation module, used to calculate the modulus between the first area number and the second quantity, to obtain a first value, and to add 1 to the first value to obtain a second value; and a fourth determination module, used to determine the second value as the second area number.

[0093] Optionally, in the product quota scheduling device provided in this application embodiment, the device further includes: a second acquisition unit, configured to acquire, upon receiving a product purchase instruction sent by a target user, a target quota value for purchasing a target product and a purchase area number from the product purchase instruction; a judgment unit, configured to determine, based on the purchase area number, a third storage area to which the target product is provided to the target user, and to determine whether the remaining quota value in the third storage area is greater than or equal to the target quota value; an update unit, configured to, if the remaining quota value is greater than or equal to the target quota value, provide the product in the third storage area to the target user and update the remaining quota value in the third storage area; and a third determination unit, configured to, if the remaining quota value is less than the target quota value, determine a fourth area number based on the third area number of the third storage area and the quota allocation array, and provide the product in the fourth storage area to which the fourth area number belongs to the target user.

[0094] Optionally, in the product quota scheduling device provided in this application embodiment, determining the third storage area for providing the target product to the target user based on the purchase area number includes: a third acquisition module, used to acquire the number of storage areas with a second quota value that is not 0, to obtain a third quantity, and to acquire a fourth quantity from the quota allocation array that has the smallest difference from the third quantity and is greater than the third quantity; a third calculation module, used to calculate the modulus between the purchase area number and the fourth quantity, to obtain a third value, and to add 1 to the third value to obtain a fourth value; and a fifth determination module, used to determine the product storage area with the area number of the fourth value as the third storage area.

[0095] It should be noted that the first acquisition unit 41, the first determination unit 42, the second determination unit 43, and the allocation unit 44 mentioned above correspond to steps S201 to S204 in Embodiment 1. The instances and application scenarios implemented by each of the above units and the corresponding steps are the same, but are not limited to the content disclosed in Embodiment 1. It should be noted that the above modules or units can be hardware components or software components stored in memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n). The above modules can also be part of a device and can run in the computer terminal 10 provided in Embodiment 1.

[0096] Example 3

[0097] Embodiments of this application may provide an electronic device. Figure 5 This is a structural block diagram of an electronic device according to an embodiment of this application. Figure 5 As shown, the electronic device may include: one or more ( Figure 5 (Only one is shown) processor 1002, memory 1004, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0098] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the methods and apparatus in the embodiments of this application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby implementing the above-described methods. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0099] Those skilled in the art will understand that Figure 5 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones, tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 5 This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 5 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 5 The different configurations shown.

[0100] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0101] Example 4

[0102] Embodiments of this application also provide a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the product quota scheduling method provided in Embodiment 1.

[0103] Optionally, in this embodiment, the storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0104] Embodiments of this application also provide a computer program product, which, when executed on a data processing device, is adapted to perform the steps of a product quota scheduling method.

[0105] Embodiments of this application also provide a computer-readable storage medium, which includes a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to execute the above-described product quota scheduling method.

[0106] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0107] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0108] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0109] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0110] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0111] If the integrated unit is implemented as a software functional unit and used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0112] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for allocating product quotas, characterized in that, include: Obtain the quota allocation array of the target product, wherein the quota allocation array includes M storage area quantities, each storage area quantity represents the number of product storage areas that are allowed to be allocated a set of product quotas each time a product allocation operation is performed, M is the number of storage areas, the number of storage areas is the same as the number of times the product allocation operation is performed, and M is a positive integer; The sum of the number of each storage area in the quota allocation array is determined to obtain the total number of product quota groups, and the first quota value of each product quota group is determined according to the total product quota value of the target product and the number of groups; A second quota value is determined for each product storage area based on the quota allocation array and the first quota value, wherein the area number of the product storage area is inversely related to the second quota value; If the remaining quota value of any first storage area is less than the quota threshold, the second area number is determined according to the first area number of the first storage area and the quota allocation array, and the remaining quota value in the first storage area is allocated to the second storage area under the second area number, wherein the first area number is greater than the second area number.

2. The method according to claim 1, characterized in that, The array of credit allocations for the target product includes: Obtain the total number of product storage areas for the target product set by the financial institution, and use the total number as the first element value in the quota allocation array; The initial value of the first intermediate variable is configured to the total number of values, and a preset operator and preset parameters are obtained. The second intermediate variable is calculated based on the preset operator, the preset parameters and the first intermediate variable. Determine whether the second intermediate variable is less than the first intermediate variable. If the second intermediate variable is less than the first intermediate variable, use the second intermediate variable as the next element value in the quota allocation array and use the second intermediate variable as the updated first intermediate variable. Execute the step of calculating the second intermediate variable based on the preset operator, the preset parameter, and the first intermediate variable until the second intermediate variable is a preset value. If the second intermediate variable is greater than or equal to the first intermediate variable, a third intermediate variable is determined based on the first intermediate variable and the preset step size. The third intermediate variable is used as the next element value in the quota allocation array, and the third intermediate variable is used as the updated first intermediate variable. The step of calculating the second intermediate variable based on the preset operator, the preset parameter and the first intermediate variable is executed until the second intermediate variable is a preset value. When the second intermediate variable is the preset value, the preset value indicated by the preset value is used as the next element value in the quota allocation array to obtain the quota allocation array with the element value filled.

3. The method according to claim 1, characterized in that, Determining the second quota value for each product storage area based on the quota allocation array and the first quota value includes: Based on the number of M storage areas, the product storage areas involved in each product allocation operation are determined, resulting in a product storage area set, wherein the product storage area set includes multiple subsets, and each subset is a set of area numbers of the product storage areas under one number of storage areas; The number of times each product storage area is allocated a product quota is determined based on the number of times each product storage area appears in the set of product storage areas, resulting in multiple allocation counts; The number of allocations for each product storage area is multiplied by the first quota value to obtain the second quota value for each product storage area.

4. The method according to claim 3, characterized in that, Based on the number of the M storage regions, the product storage regions involved in each product allocation operation are determined, resulting in a set of product storage regions including: For any given number of storage areas, obtain multiple product storage areas equal to the number of storage areas in ascending order of the area numbers of the product storage areas; The plurality of product storage areas are determined as a subset of the number of storage areas, and the subsets of the number of each storage area are combined to form the product storage area set.

5. The method according to claim 1, characterized in that, Determining the second region number based on the first region number of the first storage region and the quota allocation array includes: Obtain the number of storage areas where the second quota value is non-zero to obtain a first quantity, and obtain a second quantity from the quota allocation array that has the smallest difference from the first quantity and is less than the first quantity; Calculate the modulus between the first region number and the second quantity to obtain a first value, and add 1 to the first value to obtain a second value; The second value is determined as the second region number.

6. The method according to claim 1, characterized in that, The method further includes: Upon receiving a product purchase instruction from a target user, the target purchase amount and purchase region number for the target product are obtained from the product purchase instruction. Based on the purchase area number, a third storage area is determined to provide the target product to the target user, and it is determined whether the remaining credit value in the third storage area is greater than or equal to the target credit value. If the remaining credit limit is greater than or equal to the target credit limit, the product in the third storage area is provided to the target user, and the remaining credit limit in the third storage area is updated. If the remaining quota value is less than the target quota value, the fourth region number is determined according to the third region number of the third storage region and the quota allocation array, and the products in the fourth storage region to which the fourth region number belongs are provided to the target user.

7. The method according to claim 6, characterized in that, Determining the third storage area for providing the target product to the target user based on the purchase area number includes: Obtain the number of storage areas where the second quota value is non-zero, obtain a third number, and obtain a fourth number from the quota allocation array that has the smallest difference from the third number and is greater than the third number; Calculate the modulo between the purchase area number and the fourth quantity to obtain the third value, and add 1 to the third value to obtain the fourth value; The product storage area with the area number of the fourth value is designated as the third storage area.

8. A product quota scheduling device, characterized in that, include: The first acquisition unit is used to acquire the quota allocation array of the target product, wherein the quota allocation array includes M storage area quantities, each storage area quantity represents the number of product storage areas that are allowed to be allocated a set of product quotas each time a product allocation operation is performed, M is the number of storage areas, the number of storage areas is the same as the number of times the product allocation operation is performed, and M is a positive integer; The first determining unit is used to determine the sum of the number of each storage area in the quota allocation array, to obtain the total number of product quota groups, and to determine the first quota value of each product quota group based on the total product quota value of the target product and the number of groups. The second determining unit is configured to determine a second quota value for each product storage area based on the quota allocation array and the first quota value, wherein the area number of the product storage area is inversely related to the second quota value; The allocation unit is configured to, when detecting that the remaining quota value of any first storage area is less than the quota threshold, determine the second area number according to the first area number of the first storage area and the quota allocation array, and allocate the remaining quota value in the first storage area to the second storage area under the second area number, wherein the first area number is greater than the second area number.

9. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the steps of the product quota scheduling method according to any one of claims 1 to 7.

10. An electronic device, characterized in that, include: Memory, which stores executable programs; A processor for running the program, wherein the program, when running, executes the product quota scheduling method according to any one of claims 1 to 7.