CN112650763A - Configuration method of product quota, related equipment and storage medium - Google Patents

Configuration method of product quota, related equipment and storage medium Download PDF

Info

Publication number
CN112650763A
CN112650763A CN202011499346.2A CN202011499346A CN112650763A CN 112650763 A CN112650763 A CN 112650763A CN 202011499346 A CN202011499346 A CN 202011499346A CN 112650763 A CN112650763 A CN 112650763A
Authority
CN
China
Prior art keywords
target
quota
rule
tree
data
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
CN202011499346.2A
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.)
Ping An Consumer Finance Co Ltd
Original Assignee
Ping An Consumer Finance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Consumer Finance Co Ltd filed Critical Ping An Consumer Finance Co Ltd
Priority to CN202011499346.2A priority Critical patent/CN112650763A/en
Publication of CN112650763A publication Critical patent/CN112650763A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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 OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a configuration method of a product quota, related equipment and a storage medium, which are applied to the technical field of financial science and technology, wherein the method comprises the steps of obtaining a target quota rule for a target product, storing the target quota rule into a database, obtaining a corresponding updated quota rule when the target quota rule is detected to be updated, updating the target quota rule in the database, obtaining the updated quota rule from the database when a calling request is detected, executing the updated quota rule, obtaining an execution result, updating quota information of a target user corresponding to the target product, obtaining updated quota information of the target user, and updating data for constructing a target quota information tree corresponding to the target user by using the updated quota information. By implementing the method, the adjustment process of the limit rule can be more convenient and timely. The present application relates to blockchain techniques, such as the data or information involved can be written into the blockchain after encryption.

Description

Configuration method of product quota, related equipment and storage medium
Technical Field
The application relates to the technical field of financial science and technology, in particular to a configuration method of product quota, related equipment and a storage medium.
Background
At present, the amount rules are various according to different product forms and application scenes, when the amount policy is changed, a worker needs to adjust the corresponding amount rules in time, the inventor realizes that the current amount rule adjusting method is mostly realized by modifying a bottom layer algorithm or redeveloping a new scene, so that the workload is large, the consumed time is long, the working efficiency is low for the worker, and meanwhile, the information after the amount rules are adjusted is not updated timely enough. Therefore, how to make the process more simple and convenient and improve the efficiency in the adjustment of the quota rule becomes a problem to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a configuration method of a product limit, related equipment and a storage medium, which can enable the adjustment process of limit rules to be more convenient and timely, and can timely respond to the change of the limit rules to update data such as limit information of a user.
In one aspect, an embodiment of the present application provides a method for configuring a product amount, where the method includes:
acquiring a target limit rule for a target product, and storing the target limit rule in a database;
when the target limit rule is detected to be updated, acquiring an updated limit rule corresponding to the target limit rule, and updating the target limit rule in the database by using the updated limit rule;
when a calling request for the updated quota rule is detected, acquiring the updated quota rule from the database;
executing the updated quota rule to obtain an execution result, and updating quota information of a target user corresponding to the target product by using the execution result to obtain updated quota information of the target user;
and updating data for constructing a target limit information tree corresponding to the target user by using the limit information updated by the target user, wherein the data for constructing the target limit information tree corresponding to the target user is obtained according to the data for constructing a target limit rule tree corresponding to the target product.
In one aspect, an embodiment of the present application provides a device for configuring a product amount, where the device includes:
the acquisition module is used for acquiring a target limit rule for a target product and storing the target limit rule into a database;
the acquisition module is also used for acquiring an updated quota rule corresponding to the target quota rule when the target quota rule is detected to be updated;
the updating module is used for updating the target quota rule in the database by using the updated quota rule;
the acquisition module is further used for acquiring the updated quota rule from the database when a call request for the updated quota rule is detected;
the updating module is also used for executing the updated quota rule to obtain an execution result, and updating quota information of a target user corresponding to the target product by using the execution result to obtain updated quota information of the target user;
and the processing module is used for updating data for constructing a target limit information tree corresponding to the target user by using the limit information updated by the target user, and the data for constructing the target limit information tree corresponding to the target user is obtained according to the data for constructing a target limit rule tree corresponding to the target product.
In one aspect, an embodiment of the present application provides a computer device, including a processor and a memory, where the processor and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions and execute a configuration method of the product quota.
In one aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute a method for configuring a product quota.
In the embodiment of the application, the computer equipment acquires a target quota rule for a target product, stores the target quota rule in the database, acquires an updated quota rule corresponding to the target quota rule when the target quota rule is updated, updates the target quota rule in the database by using the target quota rule, acquires the updated quota rule from the database when a calling request of the updated quota rule is detected, executes the updated quota rule to obtain an execution result, updates quota information of a target user corresponding to the target product by using the execution result to obtain updated quota information, and updates data for constructing a target quota information tree corresponding to the target user by using the updated quota information. By implementing the method, the intelligent processing of the quota rule can be facilitated, the efficiency of quota rule adjustment is improved, and the change of the quota rule can be responded in time to update data such as quota information of the user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for allocating product quota according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of another method for allocating credit provided in the embodiments of the present application;
FIG. 3a is a diagram of an quota rule tree according to an embodiment of the present application;
FIG. 3b is a diagram of a quota information tree according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a network architecture of a system for allocating product quota according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a device for allocating product amount according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solution in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application,
the configuration method of the product limit provided by the embodiment of the application is applied to computer equipment, and the computer equipment can comprise mobile terminals such as a smart phone and a tablet personal computer, or terminals such as a desktop computer, a board card or a cloud server. The method can be used in the technical field of financial science and technology, relates to a block chain technology, and can be used in the situation that computer equipment acquires data or information and the like by writing the encrypted data or information into a block chain, wherein the computer equipment can view the related user privacy information or product important data after decrypting the related user privacy information or product important data.
It will be understood by those skilled in the art that the "first user terminal" and "second user terminal" referred to herein may include electronic devices such as a smart phone, a tablet computer, a desktop computer, a digital audio/video player, an electronic reader, a handheld game console, or a vehicle-mounted electronic device.
Fig. 1 is a schematic flow chart of a method for configuring a product amount provided in an embodiment of the present application, where the method is applied to the aforementioned computer device, and as shown in fig. 1, a flow of the method for configuring a product amount in the embodiment may include:
s101, obtaining a target limit rule for a target product, and storing the target limit rule in a database.
Wherein, the target quota rule can be any one of the following items: the credit limit rule, the card swiping limit rule, the cash-out limit rule, the sharing limit rule, the available limit rule, the used limit rule, the temporary limit rule, etc. the embodiments of the present application are not limited herein. The target product is a product to which the rules of credit may be applied, for example, the target product may be a financial product, which may be a credit card, a payment product, a credit product, or the like.
In one embodiment, the computer device obtains a target limit rule for a target product sent by the first user terminal, and stores the target limit rule in the database for the subsequent computer device to execute the target limit rule through the limit engine or update the target limit rule before executing the target limit rule. The target quota rule may be configured by the first user corresponding to the first user terminal. The first user terminal may be a user terminal corresponding to a staff configured with the limit rule, a user terminal corresponding to a developer of the target product, and the like, which is not limited herein.
In one embodiment, the computer device may be provided with a credit engine through which the target credit rules may be configured. The system comprises an important composition module, a basic data object module, a database configuration object module and a limit rule operator implementation module, wherein the important composition module is used for reading and analyzing a target limit rule stored in a database, the limit rule operator module comprises a calling sub-module and a configuration sub-module, the configuration sub-module is configured with a limit type and a corresponding limit rule contained in the target limit rule, and the calling sub-module is used for executing the target limit rule in the configuration sub-module by calling the configuration sub-module and outputting an execution result.
S102, when the target limit rule is detected to be updated, acquiring an updated limit rule corresponding to the target limit rule, and updating the target limit rule in the database by using the updated limit rule.
In one embodiment, the first user terminal edits the target limit rule, sends the edited target limit rule to the computer device, when the computer device detects that the edited target limit rule sent by the first user terminal arrives, the target limit rule is updated, the computer device takes the sent edited target limit rule as an updated limit rule corresponding to the target limit rule, and updates the target limit rule in the database according to the updated limit rule. For example, the target limit rule in the database is that the credit limit of the target platform common user is 3000, the first user terminal edits the target limit rule into 5000 of the credit limit of the target platform common user and sends the 5000 of the credit limit to the computer terminal, and after receiving the edited target limit rule, the computer terminal correspondingly updates the target limit rule in the database.
S103, when a call request for the updated quota rule is detected, the updated quota rule is obtained from the database.
In one embodiment, after updating the target quota rule, if the computer device detects a call request for the updated quota rule, the updated quota rule is obtained from the database, and if the call request for the updated quota rule is not detected, the computer device still executes the target quota rule which is not updated. The calling request can be from a service system of a target product, a first user terminal, a second user terminal and the like, and the application does not limit the initiating object of the calling request.
S104, executing the updated quota rule to obtain an execution result, and updating quota information of a target user corresponding to the target product by using the execution result to obtain updated quota information of the target user.
The execution result at least comprises the quota type of the target user in the target product and a quota value corresponding to the quota type. Optionally, the quota types of the plurality of target users in the target product and quota values corresponding to the quota types may be the same or different. The updated quota information of the target user is obtained according to the quota type in the execution result and the quota value corresponding to the quota type. For example, the original credit line of the target user is 5000, the updated line rule is executed through the line engine, the execution result is that the line value corresponding to the credit line is 10000, and therefore the updated line information of the target user is obtained, and the credit line is updated to 10000.
In one embodiment, the computer device may execute the updated quota rule via a quota engine and obtain the execution result via the quota engine.
And S105, updating data for constructing a target limit information tree corresponding to the target user by using the limit information updated by the target user, wherein the data for constructing the target limit information tree corresponding to the target user is obtained according to the data for constructing the target limit rule tree corresponding to the target product.
And the data for constructing the target quota information tree corresponding to the target user is obtained by adjusting the data for constructing the target quota rule number corresponding to the target product.
In one embodiment, the target quota rule tree may be generated according to a plurality of quota rules, the target quota rule tree may embody a relationship between a plurality of quota types included in the plurality of quota rules, and when the target quota rule in the database is updated by the computer device, the target quota rule tree is updated by using the updated quota rule.
In the embodiment of the application, the computer equipment acquires the target limit rule for the target product and stores the target limit rule in the database, and when the computer equipment detects that the target limit rule is updated, the computer equipment acquires the updated limit rule corresponding to the target limit rule, and updating the target quota rule in the database by using the updated quota rule, when the computer equipment detects a call request for the updated quota rule, obtaining the updated quota rule from the database, executing the updated quota rule by the computer equipment to obtain an execution result, and updating the quota information of the target user corresponding to the target product by using the execution result to obtain updated quota information of the target user, and updating the data for constructing the target quota information tree corresponding to the target user by using the updated quota information of the target user by using the computer equipment. By implementing the method, the adjustment process of the limit rule can be more convenient and timely, and the limit information and other data of the user can be updated in response to the change of the limit rule in time.
Fig. 2 is a schematic flow chart of a method for configuring a product amount provided in an embodiment of the present application, where the method is applied to the aforementioned computer device, and as shown in fig. 2, a flow of the method for configuring a product amount in the embodiment may include:
s201, analyzing data used for constructing a first limit rule tree corresponding to a target product to obtain a target limit rule used for the target product, and storing the target limit rule in a database.
In one embodiment, the computer device obtains and analyzes the stored data for constructing the first quota rule tree corresponding to the target product. The data for constructing the first quota rule tree corresponding to the target product may be configured by the first user and sent by the first user terminal, or may be generated by the computer device according to multiple quota types used by the target product.
In an embodiment, a specific way for the computer device to generate the data for constructing the first quota rule tree corresponding to the target product may be to obtain multiple quota types used by the target product, determine an association relationship between the multiple quota types (for example, obtained through each quota rule of the target product), and generate the data for constructing the first quota rule tree corresponding to the target product according to the multiple quota types and the association relationship between the multiple quota types. The computer equipment can realize a specific mode for generating data for constructing a first quota rule tree corresponding to the target product through a quota engine.
In one embodiment, the first quota rule tree may include a plurality of nodes, one node corresponds to one type, and a connection relationship between a parent node and a child node in the plurality of nodes is used for reflecting an association relationship between a quota type corresponding to the parent node and a quota type corresponding to the child node. For example, the target product is a credit card, and thus the constructed first limit rule tree can be as shown in fig. 3a, the credit line can be divided into a card swiping line, a cash drawing line and a sharing line, and the three lines can be further divided into a used line, an available line and a temporary line, so that when the credit line is used as a parent node, the child nodes are the card swiping line, the cash drawing line and the sharing line, and when the three lines are used as the parent node, the respective child nodes are the used line, the available line and the temporary line.
S202, when the target limit rule is detected to be updated, analyzing data used for constructing a second limit rule tree corresponding to the target product to obtain an updated limit rule corresponding to the target limit rule, and updating the target limit rule in the database by using the updated limit rule.
In one embodiment, the first user terminal sends an update instruction to the computer device, where the update instruction carries update indication information for indicating that the target quota rule is updated. When the computer equipment detects the sent updating instruction, the target limit rule is updated, data which are sent by the first user terminal and used for constructing a second limit rule tree corresponding to the target product are obtained and analyzed, the updated limit rule corresponding to the target limit rule is obtained, and the computer equipment stores the data used for constructing the second limit rule tree. The second limit rule tree is obtained by editing based on the first limit rule tree, and the structure of the second limit rule tree is the same as that of the first limit rule tree.
In one embodiment, the computer device may obtain data saved for building a second quota rule tree corresponding to the target product, where the data saved for building the second quota rule tree corresponding to the target product is sent by the first user terminal.
In one embodiment, a first user terminal sends an amount rule editing request for a target product, when receiving the request, a computer device obtains data used for constructing a first amount rule tree corresponding to the target product and sends the data to the first user terminal, the first user terminal constructs and displays the first amount rule tree according to the data used for constructing the first amount rule tree corresponding to the target product, edits the first amount rule tree to obtain a second amount rule tree, and generates data used for constructing the second amount rule tree, the data used for constructing the second amount rule tree comprises an updated amount rule corresponding to the target amount rule, the first user terminal sends the data used for constructing the second amount rule tree to the computer device, and the computer device receives and stores the data. The computer equipment can obtain data for constructing a first quota rule tree corresponding to the target product by calling a quota engine.
S203, when a call request for the updated quota rule is detected, the updated quota rule is obtained from the database. Step S103 may be referred to here, and the embodiments of the present application are not described herein again.
S204, executing the updated quota rule to obtain an execution result, and updating quota information of a target user corresponding to the target product by using the execution result to obtain updated quota information of the target user.
The computer device can determine a plurality of quota values of the target user in the target product through the execution result, wherein one quota value corresponds to one quota type.
In one embodiment, the computer device may execute the updated quota rule via a quota engine and obtain the execution result via the quota engine.
S205, updating data for constructing a target limit information tree corresponding to the target user by using the limit information updated by the target user, wherein the data for constructing the target limit information tree corresponding to the target user is obtained according to the data for constructing a second limit rule tree corresponding to the target product.
In one embodiment, the data for constructing the target credit information tree of the target subscriber can be obtained by the following steps: the computer equipment determines a plurality of quota values and corresponding quota types of a target product of a target user according to the updated quota information of the target user, determines the quota values as node display contents, adds the computer equipment into data for constructing a target quota regular tree corresponding to the target product, adds editing-prohibited indication information into data for constructing the target quota regular tree corresponding to the target product, and determines data for constructing the target quota regular tree corresponding to the target product, which is subjected to data adding operation, as data for constructing the target quota information tree of the target user. And the editing forbidding indication information is used for indicating that editing forbidding to add the target quota rule tree of the node display content.
In an embodiment, when the target amount information tree needs to be checked, the second user terminal sends an amount information query instruction for the target user, after receiving the instruction, the computer device triggers and acquires data for constructing the target amount information tree of the target user, and sends the data to the second user terminal, the second user terminal can construct and display the target amount information tree according to the data for constructing the target amount information tree of the target user, and the second user terminal can also refuse to respond to an editing operation on the target amount information tree, and the amount value corresponding to the amount type corresponding to the node is displayed on each node included in the target amount information tree, as shown in fig. 3 b. The second user terminal may be a user terminal of a target user of a target product, or may be a user terminal of a service person who makes a quota policy, which is not limited herein.
In the embodiment of the application, the computer device analyzes data used for constructing a first quota rule tree corresponding to a target product to obtain a target quota rule used for the target product, when detecting that the target quota rule is updated, the computer device analyzes data used for constructing a second quota rule tree corresponding to the target product to obtain an updated quota rule corresponding to the target quota rule, and updates the target quota rule in the database by using the updated quota rule, when detecting a calling request of the updated quota rule, the computer device acquires the updated quota rule from the database, executes the updated quota rule by the computer device to obtain an execution result, updates quota information of a target user corresponding to the target product by using the execution result to obtain updated quota information of the target user, and updates the quota information used for constructing the target quota corresponding to the target user by using the updated quota information of the target user Data of the degree information tree. By implementing the method, the adjustment process of the limit rule can be more convenient and timely, and the limit information and other data of the user can be updated in response to the change of the limit rule in time.
Fig. 4 is a network architecture of a system for configuring a product quota provided in an embodiment of the present application, and as shown in fig. 4, the system may include: a computer device 401, a first user terminal 402, a second user terminal 403. The computer device 401 may communicate with the first user terminal 402 and the second user terminal 403 through a network to realize data connection. In the method of the embodiment shown in fig. 1 and fig. 2, executed by the computer device 401, the method mainly includes the following steps:
in this embodiment, the computer device 401 may obtain the target amount rule of the target product, and store the target amount rule in the database.
In one embodiment, referring to fig. 4, the computer device 401 may obtain the target credit rule for the target product sent by the first user terminal 402, so as to achieve the purpose of obtaining the target credit rule for the target product;
in the embodiment of the present application, when detecting that there is an update to the target quota rule, obtains the updated quota rule corresponding to the target quota rule sent by the first user terminal 402, and updates the target quota rule in the database by using the updated quota rule, when a call request for the updated quota rule is detected, the updated quota rule is obtained from the database, the updated quota rule is executed to obtain an execution result, and updating the quota information of the target user corresponding to the target product by using the execution result to obtain updated quota information of the target user, and the updated quota information of the target user is used for updating the data for constructing the target quota information tree corresponding to the target user, and when detecting the query instruction sent by the second user terminal 403, sending the data for constructing the target quota information tree corresponding to the target user to the second user terminal 403.
By executing the above process, the adjustment of the limit rule can be more convenient and timely, the efficiency is improved to a certain extent, and the change of the limit rule can be responded in time to update data such as limit information of a user.
The configuration device of the product amount provided by the embodiment of the present application will be described in detail with reference to fig. 5. It should be noted that the product amount configuration device shown in fig. 5 is used for executing the method of the embodiment shown in fig. 1 and fig. 2 of the present application, and for convenience of description, only the portion related to the embodiment of the present application is shown, and specific technical details are not disclosed, and reference is made to the embodiment shown in fig. 1 and fig. 2 of the present application.
Referring to fig. 5, a schematic structural diagram of a device for allocating a product amount provided by the present application is shown, where the device 500 for allocating a product amount may include: the device comprises an acquisition module 501, an updating module 502 and a processing module 503.
An obtaining module 501, configured to obtain a target limit rule for a target product, and store the target limit rule in a database;
the obtaining module 501 is further configured to obtain an updated quota rule corresponding to the target quota rule when it is detected that the target quota rule is updated;
an updating module 502, configured to update the target quota rule in the database by using the updated quota rule;
the obtaining module 501 is further configured to obtain the updated quota rule from the database when detecting a call request for the updated quota rule;
the updating module 502 is further configured to execute the updated quota rule to obtain an execution result, and update quota information of a target user corresponding to the target product by using the execution result to obtain updated quota information of the target user;
the processing module 503 is configured to update the data for constructing the target quota information tree corresponding to the target user by using the updated quota information of the target user, where the data for constructing the target quota information tree corresponding to the target user is obtained according to the data for constructing the target quota rule tree corresponding to the target product.
In an embodiment, the obtaining module 501 is specifically configured to:
analyzing data used for constructing a first quota rule tree corresponding to the target product to obtain a target quota rule used for the target product, wherein the first quota rule tree comprises a plurality of nodes, one node corresponds to a quota type, and the connection relationship between a father node and a child node in the plurality of nodes is used for reflecting the association relationship between the quota type corresponding to the father node and the quota type corresponding to the child node.
In an embodiment, the target quota regular tree is a second quota regular tree corresponding to the target product, the second quota regular tree is a quota regular tree edited based on the first quota regular tree, and the obtaining module 501 is specifically configured to:
and analyzing data for constructing a second quota rule tree corresponding to the target product to obtain an updated quota rule corresponding to the target quota rule, wherein the second quota rule tree comprises a plurality of nodes, one node corresponds to one quota type, and the connection relationship between a father node and a child node in the plurality of nodes is used for reflecting the association relationship between the quota type corresponding to the father node and the quota type corresponding to the child node. In an embodiment, the processing module 503 is specifically configured to:
when an amount rule editing request aiming at the target product sent by the first user terminal is received, acquiring data for constructing a first amount rule tree corresponding to the target product;
sending the data for constructing the first quota rule tree corresponding to the target product to a first user terminal, so that the first user terminal constructs and displays the first quota rule tree according to the data for constructing the first quota rule tree corresponding to the target product, edits the first quota rule tree, obtains a second quota rule tree, and obtains data for constructing the second quota rule tree, wherein the data for constructing the second quota rule tree comprises an updated quota rule corresponding to the target quota rule;
and receiving the data for constructing the second quota rule tree sent by the first user terminal, and storing the data for constructing the second quota rule tree.
In an embodiment, the obtaining module 501 is specifically configured to:
and acquiring stored data for constructing the first quota rule tree corresponding to the target product, wherein the data for constructing the first quota rule tree corresponding to the target product is sent by a first user terminal or is generated according to multiple quota types used by the target product.
In an embodiment, the processing module 503 is specifically configured to:
determining a plurality of quota values of the target user in a target product, wherein one quota value corresponds to one quota type;
determining the quota value as node display content to be added into the data for constructing the target quota rule tree corresponding to the target product, and adding editing forbidding indication information into the data for constructing the target quota rule tree corresponding to the target product, wherein the editing forbidding indication information is used for indicating that the target quota rule tree added with the node display content is forbidden to be edited;
and determining the data which is used for constructing the target quota rule tree corresponding to the target product and has executed the data adding operation as the data for constructing the target quota information tree of the target user.
In an embodiment, the processing module 503 is specifically configured to:
receiving a limit information query instruction aiming at the target user and sent by a second user terminal, and triggering and acquiring data for constructing a target limit information tree of the target user;
and sending the data for constructing the target limit information tree of the target user to the second user terminal so that the second user terminal constructs and displays the target limit information tree according to the data for constructing the target limit information tree of the target user and refuses to respond to the editing operation of the target limit information tree, wherein the node included in the target limit information tree displays the value corresponding to the limit type corresponding to the node.
In this embodiment of the present application, the obtaining module 501 obtains a target amount rule for a target product, and stores the target amount rule in a database, the obtaining module 501 obtains an updated amount rule corresponding to the target amount rule when detecting that the target amount rule is updated, the updating module 502 updates the target amount rule in the database by using the updated amount rule, the obtaining module 501 obtains the updated amount rule from the database when detecting a call request for the updated amount rule, the updating module 502 executes the updated amount rule to obtain an execution result, and updates the amount information of a target user corresponding to the target product by using the execution result to obtain the updated amount information of the target user, and the processing module 503 updates the target amount information tree corresponding to the target user by using the updated amount information of the target user to construct the target amount information tree corresponding to the target user The data for constructing the target quota information tree corresponding to the target user is obtained according to the data for constructing the target quota rule tree corresponding to the target product. By implementing the process, the adjustment process of the limit rule can be more convenient and timely, and the change of the limit rule can be responded in time to update data such as limit information of a user.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 6, the computer apparatus 600 includes: at least one processor 601, a memory 602, at least one communication bus 603. Wherein a communication bus 603 is used to enable connectivity communication between these components. In addition to being used for the communication bus 601 to realize the connection of these components, other methods can also be adopted, and the method is not limited to this.
The memory 602 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 602 may alternatively be at least one storage device located remotely from the processor 601. Wherein the processor 601 may be combined with the apparatus described in fig. 5, the memory 602 stores a set of program codes therein, and the processor 601 calls the program codes stored in the memory 602 to perform the following operations:
the processor 601 is used for acquiring a target limit rule for a target product and storing the target limit rule into a database;
the processor 601 is configured to, when it is detected that the target quota rule is updated, obtain an updated quota rule corresponding to the target quota rule, and update the target quota rule in the database by using the updated quota rule; the system comprises a database, a calling module, a memory module and a processing module, wherein the calling module is used for calling the updated quota rule; the system is used for executing the updated quota rule to obtain an execution result, and updating quota information of a target user corresponding to the target product by using the execution result to obtain updated quota information of the target user; and the data for establishing the target quota information tree corresponding to the target user is obtained according to the data for establishing the target quota rule tree corresponding to the target product.
In an embodiment, the processor 601 is specifically configured to:
analyzing data used for constructing a first quota rule tree corresponding to the target product to obtain a target quota rule used for the target product, wherein the first quota rule tree comprises a plurality of nodes, one node corresponds to a quota type, and the connection relationship between a father node and a child node in the plurality of nodes is used for reflecting the association relationship between the quota type corresponding to the father node and the quota type corresponding to the child node.
In an embodiment, the target quota regular tree is a second quota regular tree corresponding to the target product, the second quota regular tree is a quota regular tree edited based on the first quota regular tree, and the processor 601 is specifically configured to:
and analyzing data for constructing a second quota rule tree corresponding to the target product to obtain an updated quota rule corresponding to the target quota rule, wherein the second quota rule tree comprises a plurality of nodes, one node corresponds to one quota type, and the connection relationship between a father node and a child node in the plurality of nodes is used for reflecting the association relationship between the quota type corresponding to the father node and the quota type corresponding to the child node.
In an embodiment, the processor 601 is specifically configured to:
when an amount rule editing request aiming at the target product sent by the first user terminal is received, acquiring data for constructing a first amount rule tree corresponding to the target product;
sending the data for constructing the first quota rule tree corresponding to the target product to a first user terminal, so that the first user terminal constructs and displays the first quota rule tree according to the data for constructing the first quota rule tree corresponding to the target product, edits the first quota rule tree, obtains a second quota rule tree, and obtains data for constructing the second quota rule tree, wherein the data for constructing the second quota rule tree comprises an updated quota rule corresponding to the target quota rule; and receiving the data for constructing the second quota rule tree sent by the first user terminal, and storing the data for constructing the second quota rule tree.
In an embodiment, the processor 601 is specifically configured to:
and acquiring stored data for constructing the first quota rule tree corresponding to the target product, wherein the data for constructing the first quota rule tree corresponding to the target product is sent by a first user terminal or is generated according to multiple quota types used by the target product.
In an embodiment, the processor 601 is specifically configured to:
determining a plurality of quota values of the target user in a target product, wherein one quota value corresponds to one quota type;
determining the quota value as node display content to be added into the data for constructing the target quota rule tree corresponding to the target product, and adding editing forbidding indication information into the data for constructing the target quota rule tree corresponding to the target product, wherein the editing forbidding indication information is used for indicating that the target quota rule tree added with the node display content is forbidden to be edited;
and determining the data which is used for constructing the target quota rule tree corresponding to the target product and has executed the data adding operation as the data for constructing the target quota information tree of the target user.
In an embodiment, the processor 601 is specifically configured to:
receiving a limit information query instruction aiming at the target user and sent by a second user terminal, and triggering and acquiring data for constructing a target limit information tree of the target user;
and sending the data for constructing the target limit information tree of the target user to the second user terminal so that the second user terminal constructs and displays the target limit information tree according to the data for constructing the target limit information tree of the target user and refuses to respond to the editing operation of the target limit information tree, wherein the node included in the target limit information tree displays the value corresponding to the limit type corresponding to the node.
In one embodiment, the computer device may receive the instructions or data sent by the first user terminal and the second user terminal through an input device (not shown in fig. 6), and may send the instructions and data to the first user terminal and the second user terminal through an output device (not shown in fig. 6). Wherein, the input device and the output device can be standard wired or wireless communication interfaces.
In the embodiment of the present application, the processor 601 obtains a target amount rule for a target product, and stores the target amount rule in a database, when detecting that the target amount rule is updated, the processor 601 obtains an updated amount rule corresponding to the target amount rule, and updates the target amount rule in the database by using the updated amount rule, when detecting a call request for the updated amount rule, the processor 601 obtains the updated amount rule from the database, the processor 601 executes the updated amount rule to obtain an execution result, and updates the amount information of a target user corresponding to the target product by using the execution result, so as to obtain the updated amount information of the target user, the processor 601 updates data for constructing a target amount information tree corresponding to the target user by using the updated amount information of the target user, and the data for constructing the target limit information tree corresponding to the target user is obtained according to the data for constructing the target limit rule tree corresponding to the target product. By implementing the process, the adjustment process of the limit rule can be more convenient and timely, and the change of the limit rule can be responded in time to update data such as limit information of a user.
The modules described in the embodiments of the present application may be implemented by a general-purpose Integrated Circuit, such as a CPU (central Processing Unit), or an ASIC (application Specific Integrated Circuit).
It should be understood that in the embodiments of the present application, the Processor 601 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The bus 603 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like, and the bus 603 may be divided into an address bus, a data bus, a control bus, or the like, and fig. 6 shows only one thick line for convenience of illustration, but does not show only one bus or one type of bus.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer storage medium and may include the processes of the embodiments of the methods described above when executed. The computer storage medium may be non-volatile or volatile, and may be a magnetic disk, an optical disk, a Read-only Memory (ROM), a Random Access Memory (RAM), or the like.
The computer storage medium mainly comprises a storage program area and a storage data area, wherein the storage program area can store an operating system, an application program required by at least one function and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A method for allocating a product amount, comprising:
acquiring a target limit rule for a target product, and storing the target limit rule in a database;
when the target limit rule is detected to be updated, acquiring an updated limit rule corresponding to the target limit rule, and updating the target limit rule in the database by using the updated limit rule;
when a calling request for the updated quota rule is detected, acquiring the updated quota rule from the database;
executing the updated quota rule to obtain an execution result, and updating quota information of a target user corresponding to the target product by using the execution result to obtain updated quota information of the target user;
and updating data for constructing a target limit information tree corresponding to the target user by using the limit information updated by the target user, wherein the data for constructing the target limit information tree corresponding to the target user is obtained according to the data for constructing a target limit rule tree corresponding to the target product.
2. The method of claim 1, wherein the obtaining a target credit rule for a target product comprises:
analyzing data used for constructing a first quota rule tree corresponding to the target product to obtain a target quota rule used for the target product, wherein the first quota rule tree comprises a plurality of nodes, one node corresponds to a quota type, and the connection relationship between a father node and a child node in the plurality of nodes is used for reflecting the association relationship between the quota type corresponding to the father node and the quota type corresponding to the child node.
3. The method of claim 1 or 2, wherein the target quota regular tree is a second quota regular tree corresponding to the target product, the second quota regular tree is a quota regular tree edited based on the first quota regular tree, and the obtaining of the updated quota rule corresponding to the target quota rule comprises:
and analyzing data for constructing a second quota rule tree corresponding to the target product to obtain an updated quota rule corresponding to the target quota rule, wherein the second quota rule tree comprises a plurality of nodes, one node corresponds to one quota type, and the connection relationship between a father node and a child node in the plurality of nodes is used for reflecting the association relationship between the quota type corresponding to the father node and the quota type corresponding to the child node.
4. The method of claim 2, wherein the method further comprises:
when an amount rule editing request aiming at the target product sent by the first user terminal is received, acquiring data for constructing a first amount rule tree corresponding to the target product;
sending the data for constructing the first quota rule tree corresponding to the target product to a first user terminal, so that the first user terminal constructs and displays the first quota rule tree according to the data for constructing the first quota rule tree corresponding to the target product, edits the first quota rule tree, obtains a second quota rule tree, and obtains data for constructing the second quota rule tree, wherein the data for constructing the second quota rule tree comprises an updated quota rule corresponding to the target quota rule;
and receiving the data for constructing the second quota rule tree sent by the first user terminal, and storing the data for constructing the second quota rule tree.
5. The method of claim 2, wherein the method further comprises:
and acquiring stored data for constructing the first quota rule tree corresponding to the target product, wherein the data for constructing the first quota rule tree corresponding to the target product is sent by a first user terminal or is generated according to multiple quota types used by the target product.
6. The method of claim 1, wherein the method further comprises:
determining a plurality of quota values of the target user in a target product, wherein one quota value corresponds to one quota type;
determining the quota value as node display content to be added into the data for constructing the target quota rule tree corresponding to the target product, and adding editing forbidding indication information into the data for constructing the target quota rule tree corresponding to the target product, wherein the editing forbidding indication information is used for indicating that the target quota rule tree added with the node display content is forbidden to be edited;
and determining the data which is used for constructing the target quota rule tree corresponding to the target product and has executed the data adding operation as the data for constructing the target quota information tree of the target user.
7. The method of claim 1 or 6, further comprising:
receiving a limit information query instruction aiming at the target user and sent by a second user terminal, and triggering and acquiring data for constructing a target limit information tree of the target user;
and sending the data for constructing the target limit information tree of the target user to the second user terminal so that the second user terminal constructs and displays the target limit information tree according to the data for constructing the target limit information tree of the target user and refuses to respond to the editing operation of the target limit information tree, wherein the node included in the target limit information tree displays the value corresponding to the limit type corresponding to the node.
8. A product quota allocation device, comprising:
the acquisition module is used for acquiring a target limit rule for a target product and storing the target limit rule into a database;
the acquisition module is also used for acquiring an updated quota rule corresponding to the target quota rule when the target quota rule is detected to be updated;
the updating module is used for updating the target quota rule in the database by using the updated quota rule;
the acquisition module is further used for acquiring the updated quota rule from the database when a call request for the updated quota rule is detected;
the updating module is also used for executing the updated quota rule to obtain an execution result, and updating quota information of a target user corresponding to the target product by using the execution result to obtain updated quota information of the target user;
and the processing module is used for updating data for constructing a target limit information tree corresponding to the target user by using the limit information updated by the target user, and the data for constructing the target limit information tree corresponding to the target user is obtained according to the data for constructing a target limit rule tree corresponding to the target product.
9. A computer device comprising a processor and a memory, the processor and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
CN202011499346.2A 2020-12-17 2020-12-17 Configuration method of product quota, related equipment and storage medium Pending CN112650763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011499346.2A CN112650763A (en) 2020-12-17 2020-12-17 Configuration method of product quota, related equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011499346.2A CN112650763A (en) 2020-12-17 2020-12-17 Configuration method of product quota, related equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112650763A true CN112650763A (en) 2021-04-13

Family

ID=75354968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011499346.2A Pending CN112650763A (en) 2020-12-17 2020-12-17 Configuration method of product quota, related equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112650763A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113657507A (en) * 2021-08-18 2021-11-16 平安信托有限责任公司 Decision tree-based product distribution method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113657507A (en) * 2021-08-18 2021-11-16 平安信托有限责任公司 Decision tree-based product distribution method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107889070B (en) Picture processing method, device, terminal and computer readable storage medium
CN113268336B (en) Service acquisition method, device, equipment and readable medium
CN112784112B (en) Message verification method and device
CN113342330B (en) Front-end engineering generation method and device
CN110324722B (en) Method, device, equipment and storage medium for acquiring data in live broadcast room
CN108062401B (en) Application recommendation method and device and storage medium
CN108829882B (en) Information collection method, device, terminal and medium
CN112650763A (en) Configuration method of product quota, related equipment and storage medium
CN114003510A (en) Script testing method, device, equipment and medium based on Mock service
CN113361220A (en) Verification environment construction method and device for automatically cutting integrated circuit design
CN113050985A (en) Front-end engineering dependence automatic registration method and device
CN111026926A (en) Data processing method, device, equipment and storage medium
CN116028140A (en) Plug-in adding method and device, electronic equipment and storage medium
CN111801696A (en) Payment page management method, payment page management device, payment system and storage medium
CN111324645A (en) Data processing method and device for block chain
CN112367535B (en) Generation method and device of active user interface
CN115113898A (en) Dynamic updating method and device for micro application, computer equipment and storage medium
CN114840194A (en) Code and operating system generation method and device, server and electronic equipment
CN110333927B (en) Interface skipping method and device, server and storage medium
CN110337074B (en) Interactive information transmission method, system and terminal equipment
CN112102058A (en) Management system parameter configuration method and device
CN112613932A (en) Billing method and device, storage medium and electronic equipment
CN113467760B (en) Method for creating order model the device storage medium and computer device
CN114257652B (en) Request message processing method, device, equipment and readable storage medium
CN110069570B (en) Data processing method and device

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