CN113344706A - Product quota control method, device, electronic equipment and computer readable medium - Google Patents

Product quota control method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN113344706A
CN113344706A CN202110687219.3A CN202110687219A CN113344706A CN 113344706 A CN113344706 A CN 113344706A CN 202110687219 A CN202110687219 A CN 202110687219A CN 113344706 A CN113344706 A CN 113344706A
Authority
CN
China
Prior art keywords
transaction application
target product
product
amount
application records
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110687219.3A
Other languages
Chinese (zh)
Inventor
母睿
邓昌胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202110687219.3A priority Critical patent/CN113344706A/en
Publication of CN113344706A publication Critical patent/CN113344706A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce, e.g. shopping or e-commerce
    • G06Q30/02Marketing, e.g. market research and analysis, surveying, promotions, advertising, buyer profiling, customer management or rewards; Price estimation or determination
    • G06Q30/0201Market data gathering, market analysis or market modelling

Abstract

The invention discloses a product quota control method, a product quota control device, electronic equipment and a computer readable medium, and relates to the technical field of automatic program design. Wherein, the method comprises the following steps: judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount; if yes, screening partial transaction application records from each sub-warehouse, and summarizing the transaction application records screened from each sub-warehouse to a main warehouse; and screening partial transaction application records from the transaction application records gathered to the master library, and confirming the screened transaction application records as valid. Through the steps, the processing efficiency of product quota control can be improved, the occupation of system resources by the product quota control is reduced, and the system performance is improved.

Description

Product quota control method, device, electronic equipment and computer readable medium
Technical Field
The present invention relates to the field of automatic programming technologies, and in particular, to a method and an apparatus for controlling product quota, an electronic device, and a computer-readable medium.
Background
The resource management product registration post-consumer system (Transfer Agent, TA system for short) is used for registering the registered product share for investors, and is an important component in the construction of an information management business IT system. Particularly, with the vigorous development of the resource management service, the service scenes of the product sales end are more and more abundant and various, the data volume is more and more large, and the TA system database generally adopts a database-based and table-based implementation mode. Under the background, how to implement the multidimensional and fine-grained unified control of product quota in the scene of data distributed storage becomes one of the contents that must be considered in the construction process of the TA system.
In the prior art, the uniform control of product quota mostly depends on the memory database, that is, all data in each sub-database sub-table are imported into the memory database to perform uniform product quota control processing, so that the processing efficiency is low, a large amount of system resources are occupied, the system performance is adversely affected, and when the data volume is large, a processing bottleneck exists even.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, an electronic device and a computer readable medium for controlling product quota, which can improve the processing efficiency of product quota control in a distributed system, reduce the occupation of system resources by product quota control, and improve the system performance.
To achieve the above object, according to a first aspect of the present invention, there is provided a product limit control method.
The product quota control method comprises the following steps: judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount; screening partial transaction application records from each sub-warehouse under the condition that the transaction application amount of the target product exceeds the current maximum acceptable amount, and summarizing the transaction application records screened from each sub-warehouse to a main warehouse; wherein, the sum of the transaction application amount related to the transaction application records screened from each branch library is not less than the current maximum acceptable amount of the target product; screening partial transaction application records from the transaction application records gathered to the master library, and confirming the screened transaction application records as valid; and the transaction application amount related to the transaction application record screened from the main library does not exceed the current maximum acceptable amount of the target product.
Optionally, the method further comprises: screening partial transaction application records from the transaction application records gathered to the main library, setting a first state identifier for the transaction application records confirmed to be effective in each sub-library after the screened transaction application records are confirmed to be effective, and setting a second state identifier for other transaction application records except the transaction application records confirmed to be effective in each sub-library; the first state identification is used for indicating that the transaction application record is in a valid state, and the second state identification is used for indicating that the transaction application record is in an invalid state.
Optionally, the screening of part of the transaction application records from each sub-bank includes: acquiring a priority sorting rule corresponding to the target product; and sequencing the transaction application records in the sub-base according to a priority sequencing rule corresponding to the target product, and then screening a plurality of transaction application records with the top priority sequencing from the sub-base.
Optionally, the transaction application amount related to the plurality of transaction application records with the top priority levels screened from the sub-base is equal to the current maximum acceptable amount of the target product.
Optionally, the screening out part of the transaction application records from the transaction application records summarized to the master library includes: acquiring a priority sorting rule corresponding to the target product; and sorting the transaction application records gathered into the master library according to a priority sorting rule corresponding to the target product, and then screening a plurality of transaction application records with the top priority sorting from the master library.
Optionally, the method further comprises: before the transaction application amount of the target product is judged to exceed the current maximum acceptable amount, marking corresponding transaction application records in each sub-library according to the limit control type and the limit control granularity of the target product; determining a characterization index of the transaction application amount of the target product; and counting the marked transaction application records in each sub-base to obtain a statistical value of the characterization index, and taking the statistical value of the characterization index as the transaction application amount of the target product.
Optionally, the marking of the transaction application record corresponding to the limitation control type and the limitation control granularity of the target product in each sub-library includes: when the limit control type of the target product is the limit control of the number of people holding the product and the limit control granularity of the target product is the product, marking transaction application records of all new users who purchase the target product within a preset time period in each sub-library; when the limitation control type of the target product is the product total scale limitation control and the limitation control granularity of the target product is the product, the transaction application records of all users purchasing the target product within the preset time period are marked in each sub-library.
Optionally, the determining the characterization indicator of the transaction application amount of the target product includes: when the limit control type of the target product is the limit control of the number of persons holding the product and the limit control granularity is the product, determining the characterization index of the transaction application amount as the number of newly increased users for purchasing the target product in a preset time period; and when the quota control type of the target product is the total-scale quota control of the product and the quota control granularity is the product, determining the characterization index of the transaction application amount as the purchase amount of all users who purchase the target product in a preset time period.
Optionally, the method further comprises: before the transaction application amount of the target product is judged to exceed the current maximum acceptable amount, the limit amount and the occupied amount information of the target product are obtained from a preset product limit control parameter table; and calculating the current maximum acceptable quota of the target product according to the limit quota and the occupied quota information of the target product.
Optionally, the method further comprises: and under the condition that the transaction application amount of the target product does not exceed the current maximum acceptable limit, updating the occupied limit information of the target product in the product limit control parameter table according to the transaction application amount of the target product.
Optionally, the method further comprises: and confirming that the product quota control processing needs to be carried out on the target product before judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount.
Optionally, the method further comprises: and performing initialization operation of product quota control before judging whether the transaction application amount of the target product exceeds the current maximum acceptable quota.
To achieve the above object, according to a second aspect of the present invention, there is provided a product limit control device.
The product quota controlling apparatus of the present invention comprises: the judging module is used for judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount; the first screening module is used for screening partial transaction application records from each sub-warehouse under the condition that the transaction application amount of the target product exceeds the current maximum acceptable amount, and summarizing the transaction application records screened from each sub-warehouse to the main warehouse; wherein, the sum of the transaction application amount related to the transaction application records screened from each branch library is not less than the current maximum acceptable amount of the target product; the second screening module is used for screening partial transaction application records from the transaction application records gathered to the master library and confirming that the screened transaction application records are valid; and the transaction application amount related to the transaction application record screened from the main library does not exceed the current maximum acceptable amount of the target product.
To achieve the above object, according to a third aspect of the present invention, there is provided an electronic apparatus.
The electronic device of the present invention includes: one or more processors; and storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the product quota controlling method of the present invention.
To achieve the above object, according to a fourth aspect of the present invention, there is provided a computer-readable medium.
The computer-readable medium of the present invention has stored thereon a computer program which, when executed by a processor, implements the product quota controlling method of the present invention.
One embodiment of the above invention has the following advantages or benefits: in the invention, by judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount and executing the subsequent overrun processing operation when the transaction application amount of the target product exceeds the current maximum acceptable amount, the occupation of unnecessary quota control operation on system resources can be reduced, and the efficiency of uniformly carrying out quota control by a distributed system is improved; through the two-step screening of screening partial transaction application records from the sub-databases and summarizing the partial transaction application records to the main database and then screening the transaction application records from the main database again, the data volume of overrun processing in the distributed system can be greatly reduced, the occupation of the overrun processing on system resources is reduced, and the problem of processing bottleneck caused by large data volume is effectively solved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 2 is a schematic main flow chart of a product quota controlling method according to a first embodiment of the present invention;
FIG. 3 is a schematic flow diagram of a portion of a product quota control method according to a second embodiment of the present invention;
FIG. 4 is a schematic flow diagram of a portion of a product quota control method according to a second embodiment of the present invention;
FIG. 5 is a schematic diagram of the main blocks of a product limit control apparatus according to a third embodiment of the present invention;
FIG. 6 is a schematic block diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and technical features of the embodiments of the present invention may be combined with each other without affecting the implementation of the present invention.
Fig. 1 illustrates an exemplary system architecture 100 to which a product quota controlling method or a product quota controlling apparatus of an embodiment of the present invention can be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user, such as an employee of a sales organization, may use terminal devices 101, 102, 103 to interact with a server 105 over a network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a financial product management application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server providing support for financial product management type applications browsed by users using the terminal devices 101, 102, 103. For example, the background management server may process transaction application file data and the like sent by the terminal device through the network, and feed back a processing result (such as validity of a transaction application or invalidity of the transaction application) to the terminal device.
It should be noted that the product quota controlling method provided by the embodiment of the present invention is generally executed by the server 105, and accordingly, the product quota controlling apparatus is generally disposed in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
First embodiment
Fig. 2 is a main flow chart diagram of a product quota control method according to a first embodiment of the present invention. As shown in fig. 2, the method for controlling a product quota according to the embodiment of the present invention includes:
step S201: and judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount.
In step S201, the transaction application amount of the target product is compared with the current maximum acceptable amount of the target product. When the transaction application amount of the target product is greater than the current maximum acceptable amount of the target product, step S202 may be executed next. For example, assuming that the transaction application amount of the target product "product _ a" is 80 and the current maximum available credit of the target product "product _ a" is 60, since the former is greater than the latter, the step S202 is performed next.
Further, before step S201, the method of the embodiment of the present invention further includes the following steps: and determining the transaction application amount of the target product and the current maximum acceptable amount of the target product. In an optional embodiment, the transaction application amount and the current maximum acceptable amount information of a plurality of products are stored in a data table in advance, and in this step, the transaction application amount and the current maximum acceptable amount of the target product can be determined by querying the data table. In another alternative embodiment, in this step, the transaction application amount of the target product and the current maximum acceptable amount of the target product can be determined by real-time calculation.
In specific implementation, when the limitation control types are different or the limitation control granularity is different, the specific characterization indexes of the transaction application amount of the target product are different or have different specific meanings. For example, when the limit control type is limit control of the number of persons holding the product and the limit control granularity is the product, the transaction application amount of the target product is specifically the number of newly added users who purchase the target product within a preset time period; when the quota control type is total-scale quota control of the product, and the quota control granularity is the product, the transaction application amount is specifically the purchase amount of all users who purchase the target product within a preset time period.
In different application scenarios, the method of the embodiment of the present invention may select a corresponding trigger mode, such as a user trigger, a timing trigger, or a plurality of trigger modes that are sequentially executed after the previous processing logic is completed. Taking a TA system of a distributed system as an example, the TA system is butted with a financial product selling institution; for the transaction application data generated by the product subscription, the product subscription and the like of an investor in a sales organization, the sales organization can unify the transaction application data after the disk of each transaction day and send the transaction application data to the TA system according to the specified file and data format; the TA system imports the received transaction application data into each database sub-base, and then executes the product quota control method of the embodiment of the invention at regular time or executes the product quota control method of the embodiment of the invention under the triggering of a user.
Step S202: and under the condition that the transaction application amount of the target product exceeds the current maximum acceptable amount, screening partial transaction application records from each sub-warehouse, and summarizing the transaction application records screened from each sub-warehouse to the main warehouse.
The distributed system related to the embodiment of the invention comprises a main database (or called a main database) and a plurality of sub-databases (or called sub-databases). The transaction application data of the user are dispersedly stored in each sub-base.
In the step, the sum of the transaction application amount related to the transaction application records screened from each sub-bank is not less than the current maximum acceptable amount of the target product. For example, if the current maximum acceptable amount of the target product is N, N transaction application records may be screened from each sub-library and aggregated into a main library (or referred to as a "main database").
In an alternative example, partial transaction application records may be screened from each sub-pool according to the following: acquiring a priority sorting rule corresponding to the target product; and sequencing the transaction application records in the sub-base according to a priority sequencing rule corresponding to the target product, and then screening a plurality of transaction application records with the top priority sequencing from the sub-base.
In an optional implementation manner of this optional example, a product quota control parameter table is set in the master library in advance, and the product quota control parameter table includes information such as a product identifier and a priority ranking rule corresponding to the product identifier. In the optional implementation manner, the product quota control parameter table can be queried to obtain a priority ordering rule corresponding to the target product, then the transaction application records in the sub-base are ordered from high to low according to the queried priority ordering rule, and a plurality of transaction application records with the top order are screened out.
In specific implementation, corresponding prioritization rules can be configured for different products. For example, the prioritization rule configured for the product "product _ a" is prioritized by the user who has the earliest purchase behavior, the prioritization rule configured for the product "product _ b" is prioritized by the user who purchases the product in a specified channel, and the prioritization rule configured for the product "product _ c" is prioritized by the user who has a large purchase amount.
Step S203: and screening partial transaction application records from the transaction application records gathered to the master library, and confirming the screened transaction application records as valid.
And the transaction application amount related to the transaction application record screened from the main library does not exceed the current maximum acceptable amount of the target product. For example, if the current maximum acceptable amount of the target product is N (N is an integer greater than 0), the transaction application amount related to the transaction application record screened from the master library may be equal to the current maximum acceptable amount of the target product.
In an alternative example, the screening of the partial transaction application records from the transaction application records aggregated into the master repository includes: acquiring a priority sorting rule corresponding to the target product; and sorting the transaction application records gathered into the master library according to a priority sorting rule corresponding to the target product, screening a plurality of transaction application records with the top priority sorting from the master library, and taking the transaction application records as effective transaction records.
In an optional implementation manner of this optional example, a product quota control parameter table is preset, and the product quota control parameter table includes information such as a product identifier and a priority ranking rule corresponding to the product identifier. In the optional implementation manner, the product quota control parameter table can be queried to obtain a priority ranking rule corresponding to the target product, then the transaction application records summarized into the master library are ranked from high to low according to the queried priority ranking rule, and a plurality of transaction application records ranked in the front are screened out.
In the embodiment of the invention, by judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount and executing the subsequent overrun processing operation when the transaction application amount of the target product exceeds the current maximum acceptable amount, the occupation of unnecessary quota control operation on system resources can be reduced, and the efficiency of uniformly performing quota control on a distributed system is improved; through the two-step screening of screening partial transaction application records from the sub-libraries and summarizing the partial transaction application records to the main library and then screening the transaction application records from the main library again, the data volume of overrun processing can be greatly reduced, the occupation of the overrun processing on distributed system resources is reduced, and the problem of processing bottleneck caused by large data volume is effectively solved.
Second embodiment
The embodiment of the invention provides a product quota control method, which mainly comprises the following steps: fig. 3 shows a product limit pre-determination process flow, and fig. 4 shows an overrun process flow. The product quota control method according to the embodiment of the present invention will be described in detail below with reference to fig. 3 and 4.
Fig. 3 is a partial flow diagram of a product quota controlling method according to a second embodiment of the present invention. As shown in fig. 3, the method for controlling a product quota according to the embodiment of the present invention includes:
step S301: and reading the product quota control parameter table, and judging whether the target product needs to be subjected to product quota control processing or not according to the reading result.
Illustratively, the product quota control parameter table includes parameter information such as a product identifier, a quota control type corresponding to the product identifier, a quota control granularity, a prioritization rule, and the like. In this step, the product quota control parameter table can be read; when the read result contains the product quota control information of the target product, the product quota control processing needs to be carried out on the target product; when the read result does not contain the product quota control information of the target product, the product quota control processing on the target product is not needed.
Executing step S302 under the condition that the product quota control processing needs to be carried out on the target product; and under the condition that the product quota control processing on the target product is not required, ending the process.
In different application scenarios, the method of the embodiment of the present invention may select a corresponding trigger mode, such as a user trigger, a timing trigger, or a plurality of trigger modes that are sequentially executed after the previous processing logic is completed. Taking a TA system of a distributed system as an example, the TA system is butted with a financial product selling institution; for the transaction application data generated by the product subscription, the product subscription and the like of an investor in a sales organization, the sales organization can unify the transaction application data after the disk of each transaction day and send the transaction application data to the TA system according to the specified file and data format; the TA system imports the received transaction application data into each database sub-base, and then executes the product quota control method of the embodiment of the invention at regular time or executes the product quota control method of the embodiment of the invention under the triggering of a user.
Step S302: and marking the corresponding transaction application records in each sub-library according to the quota control type and the quota control granularity of the target product.
In the embodiment of the invention, when the limitation control types are different or the granularity of the limitation control is different, the transaction application records needing to be marked are different. The limitation control type comprises limitation control of the number of persons holding the product, limitation control of the total size of the product and the like, and the limitation control granularity comprises the product, a sales organization and the like. For example, assuming that the quota control granularity of the product "product _ a" is a product, it means that the product "product _ a" is subjected to overall quota control; it is assumed that the granular limitation control of the product "product _ a" is sales organization 1, which means that the product "product _ a" sold by sales organization 1 is subjected to the limitation control.
In an alternative example, step S302 includes: when the limit control type of the target product is the limit control of the number of people holding the product and the limit control granularity of the target product is the product, marking transaction application records of all new users who purchase the target product within a preset time period in each sub-library; when the limitation control type of the target product is the product total scale limitation control and the limitation control granularity of the target product is the product, the transaction application records of all users purchasing the target product within the preset time period are marked in each sub-library. Wherein, the preset time period may be the last day, the last week, or the like.
In another alternative example, step S302 includes: when the limitation control type of the target product is the limitation control of the number of people holding the product and the limitation control granularity of the target product is a sales organization, marking transaction application records of all new users who purchase the target product in the sales organization within a preset time period in each sub-library; when the limitation control type of the target product is the limitation control of the total scale of the product and the limitation control granularity of the target product is the sales organization, the transaction application records of all users purchasing the target product in the sales organization within a preset time period are marked in each sub-library. Wherein, the preset time period may be the last day, the last week, or the like.
Step S303: and determining a characterization index of the transaction application amount.
When the limitation control types are different or the limitation control granularity is different, the specific representation indexes of the transaction application amount of the target product are different or have different specific meanings. For example, when the limit control type is limit control of the number of persons holding the product and the limit control granularity is the product, the transaction application amount of the target product is specifically the number of newly added users who purchase the target product within a preset time period; when the quota control type is total-scale quota control of the product, and the quota control granularity is the product, the transaction application amount is specifically the purchase amount of all users who purchase the target product within a preset time period.
In an optional example, a product quota control parameter table including parameter information such as a quota control type, a quota control granularity, a characterization index of a transaction application amount, and the like of a target product is preset. In this example, the characterization indicator of the transaction application amount for the target product may be determined by querying the product quota control parameter table. For example, when the limit control type of the target product is the limit control of the number of persons holding the product and the limit control granularity is the product, determining the representation index of the transaction application amount as the number of newly added users purchasing the target product in a preset time period by looking up a table; and when the limitation control type of the target product is the product total scale limitation control and the limitation control granularity is the product, determining the characterization index of the transaction application amount as the purchase amount of all users purchasing the target product in a preset time period by looking up a table. For another example, when the limit control type of the target product is the limit control of the number of persons holding the product and the limit control granularity is the sales organization, determining the characterization index of the transaction application amount as the number of newly-added users who purchase the target product in the sales organization in the preset time period by looking up the table; and when the limitation control type of the target product is the product total scale limitation control and the limitation control granularity is the sales organization, determining the characterization index of the transaction application amount as the purchase amount of all users who purchase the target product in the sales organization in a preset time period by looking up a table.
Step S304: and counting the marked transaction application records in each sub-base to obtain a statistical value of the characterization index, and taking the statistical value of the characterization index as the transaction application amount of the target product.
Illustratively, when the limitation control type is product holder limitation control, and the limitation control granularity is a product, summarizing the number of newly-added users purchasing a target product in each sub-library within a preset time period to a main library, and taking the summarized number of newly-added users as the transaction application amount of the target product; and when the quota control type is product total scale quota control and the quota control granularity is a product, summarizing the purchase amounts of all users who purchase the target product in a preset time period in each sub-library to a main library, and taking the summarized purchase amounts of all the users as the transaction application amount of the target product.
Step S305: and judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount.
In step S305, the transaction application amount of the target product is compared with the current maximum acceptable amount of the target product. Executing step S306 under the condition that the transaction application amount of the target product exceeds the current maximum acceptable amount; if the transaction application amount of the target product does not exceed the current maximum acceptable amount, step S307 is executed.
Further, before step S305, the method of the embodiment of the present invention further includes: and determining the current maximum acceptable quota of the target product. In an alternative example, the product quota control parameter table further includes information on a limit quota and an occupied quota of the target product. In this alternative example, the determining the current maximum acceptable quota for the target product includes: acquiring limit and occupied limit information of a target product from a product limit control parameter table; and calculating the current maximum acceptable quota of the target product according to the limit quota and the occupied quota information of the target product. For example, if the limit amount of the target product "product _ a" is determined to be 100 by looking up the table and the occupied amount is 40, the current maximum acceptable amount of the target product "product _ a" can be calculated to be 60.
Step S306: and (6) carrying out overrun treatment.
When it is determined in step S305 that the transaction request amount of the target product exceeds the current maximum acceptable amount, the overrun processing flow is executed. The overrun processing flow will be described in detail below with reference to fig. 4.
Step S307: and updating the occupied amount information of the target product in the product quota control parameter table according to the transaction application amount of the target product.
When it is determined in step S305 that the transaction application amount of the target product does not exceed the current maximum acceptable amount, all the transaction application records of the target product marked in each sub-library are confirmed to be valid, and the occupied amount information in the product quota control parameter table is updated according to the transaction application amount of the target product. For example, assuming that the transaction amount of the target product "product _ a" is 50 and the current maximum acceptable amount is 60, all the transaction application records are confirmed to be valid, and the occupied amount recorded in the product limit control parameter table is updated from the original 40 to 90.
Optionally, the method of the embodiment of the present invention further includes the following steps: before step S305, an initialization operation of the product limit control is performed. For example, the initialization operation of the product quota control may be specifically to restore information such as the occupied amount of the target product in the product quota control parameter table to a position before the prejudgment processing is performed on the current day. For example, assuming that the last day of the day has an occupied line of 60, the occupied line is restored to 60 by an initialization operation.
In the embodiment of the invention, by judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount and executing the subsequent overrun processing operation when the transaction application amount of the target product exceeds the current maximum acceptable amount, the occupation of unnecessary quota control operation on system resources can be reduced, and the efficiency of uniformly performing quota control on a distributed system is improved. In addition, in the embodiment of the invention, the configuration of the product quota parameters such as the quota control type, the quota control granularity and the like is supported, the expansion is easy, and if more quota control types and finer control granularity are needed by the service, only the configuration of the related parameters needs to be increased.
Fig. 4 is a partial flow diagram of a product quota controlling method according to a second embodiment of the present invention. As shown in fig. 4, the method for controlling product quota in the embodiment of the present invention further includes:
step S401: and screening partial transaction application records from each sub-warehouse, and summarizing the transaction application records screened from each sub-warehouse to a main warehouse.
The distributed system related to the embodiment of the invention comprises a main database (or called a main database) and a plurality of sub-databases (or called sub-databases). The transaction application data of the user are dispersedly stored in each sub-base.
In the step, the sum of the transaction application amount related to the transaction application records screened from each sub-bank is not less than the current maximum acceptable amount of the target product. For example, if the current maximum acceptable quota of the target product is N, N transaction application records may be screened from each sub-base and collected to the main base.
In an alternative example, partial transaction application records may be screened from each sub-pool according to the following: acquiring a priority sorting rule corresponding to the target product; and sequencing the transaction application records in the sub-base according to a priority sequencing rule corresponding to the target product, and then screening a plurality of transaction application records with the top priority sequencing from the sub-base.
In an optional implementation manner of this optional example, a product quota control parameter table is preset, and the product quota control parameter table includes information such as a product identifier, a quota control type corresponding to the product identifier, a quota control granularity, and a priority ordering rule. Table 1 and table 2 show a product limit control parameter table, respectively. As shown in table 1, in the product quota control parameter table, the quota control type of the product _ a is the product holder quota control, the quota control granularity is the quota control on the whole product, and there are three configured priority ordering rules, including: the user who purchases at the earliest time has priority, the appointed channel has priority, and the user with large purchase amount has priority; the quota control type of the product _ b is the quota control of the total scale of the product, the quota control granularity is the quota control of the whole product, and two configured priority ordering rules are provided, including: and the priority of the transaction occurrence time is earlier, and the priority of the appointed channel is higher. As shown in table 2, the limit control type of the product _ a is the limit control of the product holder, the granularity of the limit control is the limit control of the sales organization, and there are three configured prioritization rules, including: the user who purchases at the earliest time has priority, the appointed channel has priority, and the user with large purchase amount has priority; the quota control type of the product _ b is the quota control of the total scale of the product, the granularity of the quota control is the quota control of a sales organization, and two configured priority sequencing rules comprise: and the priority of the transaction occurrence time is earlier, and the priority of the appointed channel is higher.
TABLE 1
TABLE 2
In the optional implementation manner, the product quota control parameter table can be queried to obtain a priority ordering rule corresponding to the target product, then the transaction application records in the sub-base are ordered from high to low according to the queried priority ordering rule, and a plurality of transaction application records with the top order are screened out. In specific implementation, corresponding prioritization rules can be configured for different products.
Step S402: and screening partial transaction application records from the transaction application records gathered to the master library, and confirming the screened transaction application records as valid.
And the transaction application amount related to the transaction application record screened from the main library does not exceed the current maximum acceptable amount of the target product. For example, if the current maximum acceptable amount of the target product is N (N is an integer greater than 0), the transaction application amount related to the transaction application record screened from the master library may be equal to the current maximum acceptable amount of the target product.
In an alternative example, the screening of the partial transaction application records from the transaction application records aggregated into the master repository includes: acquiring a priority sorting rule corresponding to the target product; and sorting the transaction application records gathered into the master library according to a priority sorting rule corresponding to the target product, screening a plurality of transaction application records with the top priority sorting from the master library, and taking the transaction application records as effective transaction records.
In an optional implementation manner of this optional example, a product quota control parameter table is preset, and the product quota control parameter table includes information such as a product identifier and a priority ranking rule corresponding to the product identifier. In the optional implementation manner, the product quota control parameter table can be queried to obtain a priority ordering rule corresponding to the target product, then the transaction application records summarized into the master library are ordered from top to bottom according to the queried priority ordering rule, a plurality of transaction application records with the top ordering are screened out, and the screened transaction application records are confirmed to be effective.
Step S403: and setting a first state identifier for the transaction application records confirmed to be valid in each sub-library, and setting a second state identifier for the other transaction application records except the transaction application records confirmed to be valid in each sub-library.
The first state identification is used for indicating that the transaction application record is in a valid state, and the second state identification is used for indicating that the transaction application record is in an invalid state. For example, assuming that 40 transaction application records are marked in each of five sub-pools through step S401, and a total of 200 transaction application records marked in the five sub-pools are collected into the master pool, and 40 transaction application records are screened out from the 200 transaction application records collected into the master pool as valid transaction records through step S402, in step S403, a first status flag may be set in each sub-pool for valid transaction application records, and a second status flag may be set for other transaction records marked in each sub-pool except for valid transaction records.
Optionally, after the flow shown in fig. 4 is executed, the method of the embodiment of the present invention further includes the following steps: and returning the overrun processing result of the transaction application data to the sender equipment of the transaction application data. Taking the TA system as an example, whether the transaction application data is successfully or unsuccessfully confirmed, the overrun processing result needs to be returned to the device corresponding to the sales organization according to the specified data file and data format, so that the sales organization can perform corresponding processing.
In the embodiment of the invention, the overrun processing flow is realized through the steps. In the processing flow, partial transaction application records are screened from the sub-databases and are collected to the main database, and then the transaction application records are screened again from the main database, so that the data volume of the overrun processing can be greatly reduced, the occupation of the overrun processing on system resources is reduced, and the problem of processing bottleneck caused by large data volume is effectively solved.
Compared with the prior art, the product quota control method provided by the embodiment of the invention at least has the following advantages: a prejudgment mechanism for judging whether the product exceeds the limit is added, and the unified limit control efficiency of the system is improved; the configurable quota control type and quota control granularity are supported, and the expansion is easy; by introducing product quota control initialization operation and the like, repeated processing of each processing node is supported, high fault tolerance is achieved, and operating operation risks are reduced.
Third embodiment
Fig. 5 is a schematic diagram of main blocks of a product limit control apparatus according to a third embodiment of the present invention. As shown in fig. 5, a product limit control device 500 according to an embodiment of the present invention includes: a judgment module 501, a first screening module 502 and a second screening module 503.
The determining module 501 is configured to determine whether the transaction application amount of the target product exceeds the current maximum acceptable amount.
Specifically, the determining module 501 compares the transaction application amount of the target product with the current maximum acceptable amount of the target product. When the transaction application amount of the target product is larger than the current maximum acceptable amount of the target product, the first screening module can be called next. For example, assuming that the transaction application amount of the target product "product _ a" is 80 and the current maximum available credit of the target product "product _ a" is 60, since the former is greater than the latter, the first filtering module may be invoked next.
Further, before executing the determination logic, the determination module 501 is further configured to determine the transaction application amount of the target product and the current maximum acceptable amount of the target product. In an optional embodiment, the transaction application amount and the current maximum acceptable amount information of a plurality of products are stored in the data table in advance, and the determining module 501 may determine the transaction application amount and the current maximum acceptable amount of the target product by querying the data table. In another alternative embodiment, the determining module 501 may determine the transaction application amount of the target product and the current maximum acceptable amount of the target product by real-time calculation.
In specific implementation, when the limitation control types are different or the limitation control granularity is different, the specific characterization indexes of the transaction application amount of the target product are different or have different specific meanings. For example, when the limit control type is limit control of the number of persons holding the product and the limit control granularity is the product, the transaction application amount of the target product is specifically the number of newly added users who purchase the target product within a preset time period; when the quota control type is total-scale quota control of the product, and the quota control granularity is the product, the transaction application amount is specifically the purchase amount of all users who purchase the target product within a preset time period.
Under different application scenarios, the product quota controlling apparatus can be triggered to execute corresponding functions by using corresponding triggering modes, such as user triggering, timing triggering, or multiple triggering modes of sequential execution after finishing the previous processing logic. Taking the TA system as an example, the TA system is connected with a financial product selling institution; for the transaction application data generated by the product subscription, the product subscription and the like of an investor in a sales organization, the sales organization can unify the transaction application data after the disk of each transaction day and send the transaction application data to the TA system according to the specified file and data format; the TA system imports the received transaction application data into each database sub-base, and then triggers the product quota controlling apparatus of the embodiment of the present invention at regular time, or the user triggers the product quota controlling apparatus of the embodiment of the present invention.
The first screening module 502 is configured to screen part of the transaction application records from each sub-warehouse and collect the transaction application records screened from each sub-warehouse to the main warehouse when the transaction application amount of the target product exceeds the current maximum acceptable amount.
The sum of the transaction application amount related to the transaction application records screened from each sub-base is not less than the current maximum acceptable amount of the target product. For example, if the current maximum acceptable quota of the target product is N, N transaction application records may be screened from each sub-base (alternatively referred to as "sub-database") and aggregated into a main base (alternatively referred to as "main database").
In an alternative example, the first filtering module 502 may filter out partial transaction application records from each sub-pool according to the following manner: the first screening module 502 obtains a priority ranking rule corresponding to the target product; the first screening module 502 sorts the transaction application records in the sub-base according to the priority sorting rule corresponding to the target product, and then the first screening module 502 screens out a plurality of transaction application records with top priority sorting from the sub-base.
In an optional implementation manner of this optional example, a product quota control parameter table is preset, and the product quota control parameter table includes information such as a product identifier and a priority ranking rule corresponding to the product identifier. In this optional embodiment, the first filtering module 502 may obtain the priority ranking rule corresponding to the target product by querying the product quota control parameter table, then rank the transaction application records in the sub-base according to the queried priority ranking rule from high to low, and filter out a plurality of transaction application records ranked in the top.
In specific implementation, corresponding prioritization rules can be configured for different products. For example, the prioritization rule configured for the product "product _ a" is prioritized by the user who has the earliest purchase behavior, the prioritization rule configured for the product "product _ b" is prioritized by the user who purchases the product in a specified channel, and the prioritization rule configured for the product "product _ c" is prioritized by the user who has a large purchase amount.
The second screening module 503 is configured to screen a part of transaction application records from the transaction application records summarized to the master repository, and determine that the screened transaction application records are valid.
And the transaction application amount related to the transaction application record screened from the main library does not exceed the current maximum acceptable amount of the target product. For example, if the current maximum acceptable amount of the target product is N (N is an integer greater than 0), the transaction application amount related to the transaction application record screened from the master library may be equal to the current maximum acceptable amount of the target product.
In an alternative example, the second filtering module 503 may filter out a part of the transaction application records from the transaction application records collected in the main repository, including: the second screening module 503 acquires a priority sorting rule corresponding to the target product; the second screening module 503 sorts the transaction application records collected into the master repository according to the priority sorting rule corresponding to the target product, and then the second screening module 503 screens out a plurality of transaction application records with top priority sorting from the master repository and uses the transaction application records as effective transaction records.
In an optional implementation manner of this optional example, a product quota control parameter table is preset, and the product quota control parameter table includes information such as a product identifier and a priority ranking rule corresponding to the product identifier. In this optional embodiment, the second screening module 503 may obtain the priority ranking rule corresponding to the target product by querying the product quota control parameter table, then rank the transaction application records summarized into the master library according to the queried priority ranking rule from top to bottom, and screen out a plurality of transaction application records ranked in the top.
In the embodiment of the invention, the judgment module is used for judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount, and the subsequent overrun processing operation is executed when the transaction application amount of the target product exceeds the current maximum acceptable amount, so that the occupation of unnecessary quota control operation on system resources can be reduced, and the efficiency of uniformly performing quota control by the system is improved; the first screening module screens partial transaction application records from the sub-database and collects the transaction application records to the main database, and the second screening module screens the transaction application records from the main database again, so that the data volume of overrun processing can be greatly reduced, the occupation of the overrun processing on system resources is reduced, and the problem of processing bottleneck caused by large data volume is effectively solved.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use with the electronic device implementing an embodiment of the present invention. The computer system illustrated in FIG. 6 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a determination module, a first screening module, and a second screening module. The names of the modules do not form a limitation on the module per se under certain conditions, for example, the judgment module can also be described as a module for judging whether the transaction application amount of the target product exceeds the limit amount.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to perform the following: judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount; screening partial transaction application records from each sub-warehouse under the condition that the transaction application amount of the target product exceeds the current maximum acceptable amount, and summarizing the transaction application records screened from each sub-warehouse to a main warehouse; wherein, the sum of the transaction application amount related to the transaction application records screened from each branch library is not less than the current maximum acceptable amount of the target product; screening partial transaction application records from the transaction application records gathered to the master library, and confirming the screened transaction application records as valid; and the transaction application amount related to the transaction application record screened from the main library does not exceed the current maximum acceptable amount of the target product.
According to the technical scheme of the embodiment of the invention, the data volume of the overrun processing can be greatly reduced, the occupation of the overrun processing on system resources is reduced, and the problem of processing bottleneck caused by large data volume is effectively solved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A method of product quota control, the method comprising:
judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount;
screening partial transaction application records from each sub-warehouse under the condition that the transaction application amount of the target product exceeds the current maximum acceptable amount, and summarizing the transaction application records screened from each sub-warehouse to a main warehouse; wherein, the sum of the transaction application amount related to the transaction application records screened from each branch library is not less than the current maximum acceptable amount of the target product;
screening partial transaction application records from the transaction application records gathered to the master library, and confirming the screened transaction application records as valid; and the transaction application amount related to the transaction application record screened from the main library does not exceed the current maximum acceptable amount of the target product.
2. The method of claim 1, further comprising:
screening partial transaction application records from the transaction application records gathered to the main library, setting a first state identifier for the transaction application records confirmed to be effective in each sub-library after the screened transaction application records are confirmed to be effective, and setting a second state identifier for other transaction application records except the transaction application records confirmed to be effective in each sub-library; the first state identification is used for indicating that the transaction application record is in a valid state, and the second state identification is used for indicating that the transaction application record is in an invalid state.
3. The method of claim 1, wherein said screening out partial transaction application records from each of the bins comprises:
acquiring a priority sorting rule corresponding to the target product; and sequencing the transaction application records in the sub-base according to a priority sequencing rule corresponding to the target product, and then screening a plurality of transaction application records with the top priority sequencing from the sub-base.
4. The method of claim 3, wherein the plurality of top-ranked transaction application records screened from the sub-pool relate to transaction application amounts equal to the current maximum acceptable amount of the target product.
5. The method of claim 1, wherein the screening out the portion of the transaction application records from the transaction application records aggregated into the master repository comprises:
acquiring a priority sorting rule corresponding to the target product; and sorting the transaction application records gathered into the master library according to a priority sorting rule corresponding to the target product, and then screening a plurality of transaction application records with the top priority sorting from the master library.
6. The method of claim 1, further comprising:
before the transaction application amount of the target product is judged to exceed the current maximum acceptable amount, marking corresponding transaction application records in each sub-library according to the limit control type and the limit control granularity of the target product; determining a characterization index of the transaction application amount of the target product; and counting the marked transaction application records in each sub-base to obtain a statistical value of the characterization index, and taking the statistical value of the characterization index as the transaction application amount of the target product.
7. The method of claim 6, wherein marking the transaction application records corresponding to the limitation control type and the limitation control granularity of the target product in each sub-library comprises:
when the limit control type of the target product is the limit control of the number of people holding the product and the limit control granularity of the target product is the product, marking transaction application records of all new users who purchase the target product within a preset time period in each sub-library; when the limitation control type of the target product is the product total scale limitation control and the limitation control granularity of the target product is the product, the transaction application records of all users purchasing the target product within the preset time period are marked in each sub-library.
8. The method of claim 6, wherein determining the characterization indicator of the transaction application amount for the target product comprises:
when the limit control type of the target product is the limit control of the number of persons holding the product and the limit control granularity is the product, determining the characterization index of the transaction application amount as the number of newly increased users for purchasing the target product in a preset time period; and when the quota control type of the target product is the total-scale quota control of the product and the quota control granularity is the product, determining the characterization index of the transaction application amount as the purchase amount of all users who purchase the target product in a preset time period.
9. The method of claim 1, further comprising:
before the transaction application amount of the target product is judged to exceed the current maximum acceptable amount, the limit amount and the occupied amount information of the target product are obtained from a preset product limit control parameter table; and calculating the current maximum acceptable quota of the target product according to the limit quota and the occupied quota information of the target product.
10. The method of claim 9, further comprising:
and under the condition that the transaction application amount of the target product does not exceed the current maximum acceptable limit, updating the occupied limit information of the target product in the product limit control parameter table according to the transaction application amount of the target product.
11. The method of claim 1, further comprising:
and confirming that the product quota control processing needs to be carried out on the target product before judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount.
12. The method of claim 1, further comprising:
and performing initialization operation of product quota control before judging whether the transaction application amount of the target product exceeds the current maximum acceptable quota.
13. A product limit control apparatus, the apparatus comprising:
the judging module is used for judging whether the transaction application amount of the target product exceeds the current maximum acceptable amount;
the first screening module is used for screening partial transaction application records from each sub-warehouse under the condition that the transaction application amount of the target product exceeds the current maximum acceptable amount, and summarizing the transaction application records screened from each sub-warehouse to the main warehouse; wherein, the sum of the transaction application amount related to the transaction application records screened from each branch library is not less than the current maximum acceptable amount of the target product;
the second screening module is used for screening partial transaction application records from the transaction application records gathered to the master library and confirming that the screened transaction application records are valid; and the transaction application amount related to the transaction application record screened from the main library does not exceed the current maximum acceptable amount of the target product.
14. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-12.
15. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-12.
CN202110687219.3A 2021-06-21 2021-06-21 Product quota control method, device, electronic equipment and computer readable medium Pending CN113344706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110687219.3A CN113344706A (en) 2021-06-21 2021-06-21 Product quota control method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110687219.3A CN113344706A (en) 2021-06-21 2021-06-21 Product quota control method, device, electronic equipment and computer readable medium

Publications (1)

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

Family

ID=77478277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110687219.3A Pending CN113344706A (en) 2021-06-21 2021-06-21 Product quota control method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN113344706A (en)

Similar Documents

Publication Publication Date Title
CN107464151B (en) Order data processing method and device for high-concurrency service
CN112559646A (en) Report downloading method and device
CN113344706A (en) Product quota control method, device, electronic equipment and computer readable medium
CN113434754A (en) Method and device for determining recommended API (application program interface) service, electronic equipment and storage medium
CN113495887A (en) Data form processing method, device and system
CN111401684A (en) Task processing method and device
CN111104401A (en) System and method for storing data in array and linked list based integrated structure
US9652766B1 (en) Managing data stored in memory locations having size limitations
CN113762819A (en) Channel scheduling method and device
CN113762818A (en) Article information storage method and device, electronic equipment and storage medium
CN114445128A (en) Card ticket management method and device, electronic equipment and computer readable medium
CN113496386A (en) Method and device for combined charging
CN113139108A (en) Data processing method and device
CN113239083A (en) Data analysis method and device
CN114298585A (en) Material purchasing quota distribution method and device for purchasing scene
CN111127214A (en) Method and apparatus for portfolio
CN114780669A (en) Wind control data processing method, device and system
CN113469825A (en) Data processing method and device, electronic equipment and computer readable medium
CN111199437A (en) Data processing method and device
CN111382954A (en) User rating method and device
CN114756540A (en) Data processing method and device, electronic equipment and computer readable medium
CN110334114A (en) A kind of method and apparatus for inquiring data
CN110309848A (en) The method that off-line data and stream data real time fusion calculate
CN113496113A (en) Method and device for generating user value information
CN110874386A (en) Method and device for establishing category mapping relation

Legal Events

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