A data construction method, device and equipment and readable storage medium

By using Spark algorithms and tree-structured management of credit limit data, the problem of system resource consumption caused by changes in credit limit system configuration information in existing technologies has been solved, enabling flexible control and efficient management of the bank's credit limits.

CN116308724BActive Publication Date: 2026-04-10CHINA CITIC BANK CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-05
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

The existing method of constructing the quota system results in a large amount of system resources being consumed when the configuration information changes, which affects the normal operation of other services and reduces management efficiency.

Method used

The Spark algorithm is used to process the quota system configuration information, generate a quota table to be configured, and manage the quota data through a tree structure. Synchronization is only performed when the configuration information change conditions are met, thus avoiding excessive resource consumption.

Benefits of technology

It enables flexible management of the entire bank's credit limit, supports multi-dimensional and multi-method management, is flexible in configuration, easy for business personnel to use, has strong security, and ensures the normal operation of other businesses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116308724B_ABST
    Figure CN116308724B_ABST
Patent Text Reader

Abstract

The application provides a data construction method and device, equipment and readable storage medium, relates to the technical field of data processing, and comprises receiving a user triggered quota system to be configured information change request, the to-be-configured information change request comprises quota information, the quota information is a quota control dimension type and an effective state; according to the Spark algorithm, the to-be-configured information is processed, and a to-be-configured quota table is generated; and according to the to-be-configured quota table, whether the current business in the quota system in the to-be-configured quota table satisfies the configuration information change condition is judged, and if yes, the current configuration information is acquired. The beneficial effects of the application are that through the combination of tree structure storage, the control and background technology in the existing problems on the line level quota can be realized. Compared with the prior art, the algorithm provided in the application can realize flexible control of the line quota, no lack or omission, business personnel is easy to master, and configuration is flexible.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, in particular to a data construction method and device, equipment and a readable storage medium. BACKGROUND

[0002] In the field of network loans, the responsibility of the quota center is to maintain the credit quota system of the customer, and to provide functions such as initialization, freezing, unfreezing, occupation, recovery, invalidation, increase and decrease of quota data.

[0003] However, in the existing construction method of the quota system, when the configuration information of the quota system changes, the entire quota system is updated in real time according to the changed configuration information. Moreover, the existing constructed quota system is constructed by using a common database structure. Since the entire quota system is updated in real time according to the changed configuration information, a large amount of customer quota configuration information will be changed, resulting in a large amount of system resources being occupied, affecting the normal operation of other businesses, and reducing the management efficiency of the quota system. SUMMARY

[0004] The purpose of the present application is to provide a data construction method, device, equipment and readable storage medium to improve the above problems. In order to achieve the above purpose, the technical solution adopted by the present application is as follows:

[0005] In a first aspect, the present application provides a data construction method, comprising:

[0006] receiving a user-triggered quota system configuration information change request, the configuration information change request comprising quota information, the quota information being a quota control dimension type and an effective state;

[0007] processing the configuration information according to a Spark algorithm to generate a configuration quota table;

[0008] determining whether the current business in the quota system in the configuration quota table meets the configuration information change condition according to the configuration quota table, and if so, obtaining the current configuration information.

[0009] In a second aspect, the present application further provides a data construction device, comprising a receiving module, a generating module and a determining module, wherein:

[0010] The receiving module is configured to receive a user-triggered quota system configuration information change request, the configuration information change request comprising quota information, the quota information being a quota control dimension type and an effective state;

[0011] The generating module is configured to process the configuration information according to a Spark algorithm to generate a configuration quota table;

[0012] The judging module is configured to judge whether the current business in the credit system in the to-be-configured quota table meets the configuration information change condition according to the to-be-configured quota table, and if yes, obtain the current configuration information.

[0013] In a third aspect, the present application further provides a data construction device, comprising:

[0014] a memory configured to store a computer program;

[0015] a processor configured to execute the computer program to implement the steps of the data construction method.

[0016] In a fourth aspect, the present application further provides a readable storage medium, wherein the readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the above data construction method.

[0017] The present application has the following advantages: by combining the storage of the tree structure, the control of the credit at the full line level can be realized; compared with the problems in the background technology, the algorithm provided by the present application can realize the flexible control of the credit at the full line level, and the business personnel can easily master the configuration and the configuration is flexible; the present application has strong versatility, supports multi-dimensional and multi-mode control, supports scalability, and has strong security; the change of the configuration information only involves the change of the second user configuration information related to the current business, the change of the overall credit system configuration information is dispersed to each business to be processed, so that the changed configuration information can be safely transmitted to the entire credit system, the resources of the system are not occupied at the same time, other businesses can normally operate, the credit data tree structure is used to manage the data, the credit data tree structure can manage the data in layers and from top to bottom, so the credit data of the user can be efficiently managed.

[0018] Other features and advantages of the present application will be described in the following description, and become apparent from the description, or be learned from the practice of the application. The purposes and other advantages of the present application can be achieved and obtained by the structure particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of the drawings.

[0020] Figure 1 The flow chart of the data construction method described in the embodiments of the present application;

[0021] Figure 2 The structure diagram of the data construction device described in the embodiments of the present application;

[0022] Figure 3 The structure diagram of the data construction device described in the embodiments of the present application.

[0023] In the figure: 701, receiving module; 702, generating module; 7021, obtaining unit; 7022, conversion unit; 7023, determination unit; 7024, processing unit; 7025, generating unit; 7026, traversal unit; 7027, route determination unit; 7028, determination unit; 703, determination module; 7031, loading unit; 7032, matching unit; 7033, calling unit; 704, first construction module; 705, determination node module; 706, second construction module; 707, configuration module; 708, obtaining information module; 709, mining module; 710, obtaining data module; 711, input module; 800, data construction device; 801, processor; 802, memory; 803, multimedia component; 804, input / output (I / O) interface; 805, communication component. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present application more clear, the following will combine the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.

[0025] It should be noted that similar reference numerals and letters refer to like items in the accompanying drawings, and once an item is defined in one drawing, it need not be further defined and explained in subsequent drawings. Also, in the description of the present application, the terms "first", "second", and the like are used only to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0026] Embodiment 1

[0027] The embodiment provides a data construction method.

[0028] Referring to Figure 1 , the method includes steps S100, S200 and S300.

[0029] S100, receiving a user-triggered quota system to be configured information change request, the to-be-configured information change request including quota information, the quota information being a quota control dimension type and an effective state.

[0030] It can be understood that, before S100 in the present step, S101, S102, S103 and S104 are included, wherein:

[0031] S101, acquiring first information, the first information including historical basic information data of a user, the basic information data including financial data and business behavior data;

[0032] S102, performing mining analysis on the first information as a sample to generate a user business quota model;

[0033] S103, acquiring basic information data of a current user, the basic information data of the current user including financial data and business behavior data of the current user;

[0034] S104, inputting the basic information data of the current user into the user business quota model to obtain a business quota of the current user.

[0035] It should be noted that the quota information includes a quota number, a quota type (an amount quota and a balance quota, wherein the amount quota occupies the quota and is not released after the customer makes a repayment; the balance quota occupies the quota and needs to release the quota after the customer makes a repayment), a superior quota number, a quota name, a customer number, a currency, a quota upper limit (the maximum loanable quota), a used quota, a quota usage rate, an occupation order (bottom layer occupation and top layer occupation), a control time point (credit approval and loan credit, wherein the credit approval stage is mainly used for configuring quota information and calling the present scheme for quota occupation after the credit approval, and the loan credit is mainly used for occupying the personal customer quota and the bank's quota when the bank makes a loan.

[0036] In this embodiment, in the process of managing the quota data in the quota system by the first user through the first electronic device, in order to more reasonably manage the quota data of all second users, the first user will change the configuration information of the quota system through the configuration interface of the first electronic device. More specifically, in the configuration interface, click the configuration information change control, or select or input the changed configuration information, to trigger the configuration information change request of the quota system.

[0037] Among them, the changed configuration information can be the above-mentioned quota number limit, the upper limit of the quota number, the management and control type, the occupation mode, the effective state, the limit control dimension (such as institution, product, customer and customer rating).

[0038] Optionally, if the changed configuration information is the parent-child relationship of each layer quota node in the quota data tree structure in the general quota template information, the parent-child relationship configuration of each layer quota node in the quota data tree structure can be changed by clicking the edit control of each layer quota node, and through the corresponding control in the right display level content editing window.

[0039] S200, processing the to-be-configured information according to the Spark algorithm to generate a to-be-configured quota table.

[0040] It can be understood that in this step, S200 includes S201, S202, S203, S204 and S205, wherein:

[0041] S201, obtaining the to-be-configured information through a preset interface;

[0042] S202, converting the to-be-configured information into a tree structure diagram using a Spark algorithm, the tree structure diagram including at least one node, at least one entry edge of the node, and at least one exit edge of the node;

[0043] S203, determining a target node of the tree structure diagram according to the at least one node, the at least one entry edge and the at least one exit edge;

[0044] S204, iteratively processing the process of sending information from a node to a next node to determine target information of each node, the target information including business data information;

[0045] S205, generating a to-be-configured table according to each node and the business data information corresponding to each node.

[0046] Specifically, after obtaining the to-be-detected data, the industrial and commercial information and enterprise equity investment information are loaded into a Hive library, the industrial and commercial information table and the enterprise equity investment table in the Hive are read by using a Spark algorithm, the industrial and commercial information table and the enterprise equity investment table are processed by using a graph calculation interface (Spark Graphx) in the Spark algorithm, and the industrial and commercial information table and the enterprise equity investment table are converted into a tree structure graph, the tree structure graph including a plurality of nodes, in-edges for the plurality of nodes, and out-edges for the plurality of nodes, the nodes can represent the industrial and commercial information of enterprises, and the in-edges and the out-edges can represent the enterprise equity investment relationship between enterprises.

[0047] For the above steps, it should be noted that the target node refers to the root node of the tree structure graph, and since the in-edges and the out-edges in the tree structure graph can display the connection relationship between the plurality of nodes, the target node of the tree structure graph can be determined.

[0048] Preferably, S202 further includes S206, S207 and S208, wherein:

[0049] S206, traversing the to-be-configured information set;

[0050] S207, determining whether there is a loop route in the tree structure graph according to the to-be-configured information set;

[0051] S208, if there is a loop route in the tree structure graph, truncating the loop route according to the target information to obtain a tree structure graph with the target node as a starting point.

[0052] It should be noted that whether there is a loop route in the tree structure graph is determined, and if there is a loop route in the tree structure graph, the loop route is truncated according to the target information to obtain a tree structure graph with the target node as a starting point. The electronic device determines whether there is a loop route in the tree structure graph, that is, whether there is a mutual investment relationship between at least two enterprises, which can be determined according to the edges between the nodes. For example, whether there is a mutual investment relationship between two enterprises is determined, there are two edges between node 1 and node 2, which are an in-edge for node 1 and an in-edge for node 2, the in-edge for node 2 represents that node 1 invests in node 2, and the corresponding is investment data 1, and the in-edge for node 1 represents that node 2 invests in node 1, and the corresponding is investment data 2, so it is determined that there is a loop route in the tree structure graph, and then investment data 1 and investment data 2 are compared. If investment data 1 is greater than investment data 2, the investment relationship of node 1 to node 2 is taken, the in-edge for node 2 is retained, and the in-edge for node 1 is deleted, and finally a one-way route from node 1 to node 2 is obtained.

[0053] S300, judging whether the current business in the quota system in the to-be-configured quota table meets the configuration information change condition according to the to-be-configured quota table, and if yes, obtaining the current configuration information.

[0054] It can be understood that after S300, S301, S302, S303 and S304 are further included in this step, wherein:

[0055] S301, constructing a second user corresponding quota data tree structure diagram according to a recursive algorithm and the current configuration information, wherein the current configuration information includes the parent-child relationship of the current quota nodes at each level and the current quota configuration information;

[0056] S302, judging whether there is a next level quota node according to the parent-child relationship of the current quota nodes at each level and the current quota configuration information for each quota node;

[0057] S303, if it is determined that there is a next level quota node, then the next level quota node is constructed preferentially, and after the next level quota node is constructed, the current quota node is constructed until the root quota node is constructed from the leaf quota node;

[0058] S304, configuring each quota node according to the current quota configuration information.

[0059] It should be noted that before it is determined that the current business of the quota system does not meet the configuration information change condition, multiple quota system configuration information change requests triggered by the first user can be received, and these configuration information change requests will only trigger the change of the configuration of the quota node corresponding to the direct change quota node identifier information according to the current configuration information, and will not be synchronized to the quota trees of all second users in real time. For the current business of the second user, it is determined that the configuration information change condition is met, and then the quota tree of the second user is constructed to be synchronized to the quota tree of the second user at one time.

[0060] In the S303 step, it should be noted that for each quota node, it is judged whether there is a next level quota node according to the parent-child relationship information of the current quota nodes at each level; if it is determined that there is a next level quota node, then the next level quota node is constructed preferentially, and after the next level quota node is constructed, the current quota node is constructed until the root quota node is constructed from the leaf quota node.

[0061] Specifically, in the embodiment, each first-layer sub-quota node of the root quota node is searched; for each first-layer sub-quota node, it is judged whether the first-layer sub-quota node has a second-layer sub-quota node, if yes, the second-layer sub-quota node is constructed, and if not, the first-layer sub-quota node is constructed; for each second-layer sub-quota node, it is judged whether the second-layer sub-quota node has a third-layer sub-quota node, if yes, the third-layer sub-quota node is constructed, and if not, the third-layer sub-quota node is constructed; and the process is repeated until the construction of each layer of quota nodes is completed.

[0062] The tree structure formed by the constructed quota nodes of each layer is an initial quota data tree structure, referred to as an initial quota tree.

[0063] Preferably, S300 further comprises S305, S306 and S307, wherein:

[0064] S305, loading a to-be-configured quota table;

[0065] S306, matching the to-be-configured quota table with the application rules one by one according to the priority order of the application rules and the preset configuration information change condition until a successful match is obtained;

[0066] S307, calling a current service corresponding to the application rule of the successful match.

[0067] It should be noted that, according to the external operating environment, the overall development strategy and the risk management level, the scheme is configured to reflect the risk of the entire institution portfolio level, and the upper limit of the credit scale is set for specific regions, products and customer angles, etc. According to a certain dimension or a combination of several dimensions, the control of the quota is carried out (wherein the dimension refers to the bank controlling the quota according to a certain angle such as region, product and customer, and the dimension can correspond to multiple dimension values such as Shanghai branch and Beijing branch). When the bank controls the quota, the basic information submitted by the business personnel is used to establish a quota scheme, and there is a tree structure relationship between multiple quota schemes. When the quota is occupied, the algorithm is used to occupy the quota.

[0068] In summary, the management is convenient and flexible, supports multi-dimensional and multi-angle control, and if the bank needs to control new dimensions, such as limiting the amount for different customer levels or different supply chain companies, only two dimensions need to be added to the dimension enumeration value, one for customer level and one for partner, and the specific dimension value is sent when adding: for the dimension of customer level, the dimension value is A class customer or B class customer, and the dimension of partner is latitude value: automobile supply chain company. Second, support multiple ways of control, different control methods are needed in different stages, such as amount control: control the upper limit of the amount of the batch reply / loan amount within the range of the starting date to the expiration date of the limit, the control method used in the credit approval stage is amount control, and the occupied amount does not support recovery using one-occupy-bottom. For balance control: control the total balance of the loan that meets the limit control rule, which is mainly used in the credit stage, and the customer can recover the amount according to the occupied balance after repayment, and supports multiple occupations and multiple recoveries. Third, support sharing and exclusive, by configuring the occupation method (top priority occupation, bottom priority occupation), the shared amount can be occupied first, and the exclusive amount can be occupied, which can be extended.

[0069] Embodiment 2:

[0070] As shown in the Figure 2 The embodiment provides a data construction device, please refer to Figure 2 The device comprises a receiving module 701, a generating module 702 and a judging module 703, wherein:

[0071] The receiving module 701 is used for receiving a limit system to-be-configured information change request triggered by a user, and the to-be-configured information change request comprises limit information, and the limit information is a limit control dimension type and an effective state;

[0072] The generating module 702 is used for processing the to-be-configured information according to a Spark algorithm to generate a to-be-configured limit table;

[0073] The judging module 703 is used for judging whether a current business in the limit system in the to-be-configured limit table meets a configuration information change condition according to the to-be-configured limit table, and if yes, obtaining current configuration information.

[0074] Preferably, the judging module 703 further comprises a first construction module 704, a judging node module 705, a second construction module 706 and a configuration module 707, wherein:

[0075] The first construction module 704 is used for constructing a limit data tree structure diagram corresponding to the second user according to a recursive algorithm and the current configuration information, and the current configuration information comprises a parent-child relationship of each layer limit node and current limit configuration information;

[0076] The judging node module 705 is configured to determine, for each quota node, whether there is a next-level quota node according to the parent-child relationship of the current quota nodes and the current quota configuration information.

[0077] The second constructing module 706 is configured to, if it is determined that there is a next-level quota node, construct the next-level quota node preferentially, and construct the current quota node after the next-level quota node is constructed, until the root quota node is constructed from the leaf quota node.

[0078] The configuring module 707 is configured to configure each quota node according to the current quota configuration information.

[0079] Preferably, the generating module 702 comprises an obtaining unit 7021, a transforming unit 7022, a determining unit 7023, a processing unit 7024 and a generating unit 7025, wherein:

[0080] The obtaining unit 7021 is configured to obtain the to-be-configured information through a preset interface.

[0081] The transforming unit 7022 is configured to transform the to-be-configured information into a tree structure diagram by using a Spark algorithm, the tree structure diagram comprising at least one node, at least one in-edge of the at least one node and at least one out-edge of the at least one node.

[0082] The determining unit 7023 is configured to determine a target node of the tree structure diagram according to the at least one node, the at least one in-edge and the at least one out-edge.

[0083] The processing unit 7024 is configured to iteratively process a process in which each node sends information to a next node, and determine target information of each node, the target information comprising business data information.

[0084] The generating unit 7025 is configured to generate a to-be-configured table according to each node and the business data information corresponding to each node.

[0085] Preferably, the transforming unit 7022 further comprises a traversing unit 7026, a judging route unit 7027 and a judging unit 7028, wherein:

[0086] The traversing unit 7026 is configured to traverse the to-be-configured information set.

[0087] The judging route unit 7027 is configured to determine whether there is a ring route in the tree structure diagram according to the to-be-configured information set.

[0088] The judging unit 7028 is configured to, if there is a ring route in the tree structure diagram, truncate the ring route according to the target information to obtain a tree structure diagram with the target node as a starting point.

[0089] Preferably, the receiving module 701 comprises an obtaining information module 708, a mining module 709, an obtaining data module 710 and an input module 711, wherein:

[0090] The obtaining information module 708 is configured to obtain first information, the first information comprising historical basic information data of the user, the basic information data comprising financial data and business behavior data;

[0091] The mining module 709 is configured to perform mining analysis on the first information as a sample to generate a user business quota model;

[0092] The obtaining data module 710 is configured to obtain current basic information data of the user, the current basic information data of the user comprising current financial data and business behavior data of the user;

[0093] The input module 711 is configured to input the current basic information data of the user into the user business quota model to obtain a business quota of the user.

[0094] Preferably, the judging module 703 comprises a loading unit 7031, a matching unit 7032 and a calling unit 7033, wherein:

[0095] The loading unit 7031 is configured to load a to-be-configured quota table;

[0096] The matching unit 7032 is configured to match the to-be-configured quota table with the application rules one by one according to the priority order of the application rules and the preset configuration information change condition until a matching succeeds;

[0097] The calling unit 7033 is configured to call a current business corresponding to the application rule that matches successfully.

[0098] It should be noted that, as to the apparatus in the above-described embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments of the method, and thus will not be described here in detail.

[0099] Embodiment 3

[0100] Corresponding to the above method embodiments, the present embodiment also provides a data construction device, and the data construction device described below can be referred to in conjunction with the data construction method described above.

[0101] Figure 3 Fig. 8 is a block diagram of a data construction device 800 according to an example embodiment. As shown in Fig. 8, the data construction device 800 can include a processor 801 and a memory 802. The data construction device 800 can also include one or more of a multimedia component 803, an I / O interface 804, and a communication component 805. Figure 3 ​

[0102] The processor 801 is configured to control overall operation of the data construction device 800 to complete all or part of the steps in the data construction method described above. The memory 802 is configured to store various types of data to support operation of the data construction device 800, which can include, for example, instructions for any application or method operating on the data construction device 800, and application-related data, such as contact data, sent and received messages, pictures, audio, video, and the like. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The multimedia component 803 can include a screen and an audio component. The screen can be, for example, a touch screen, and the audio component is configured to output and / or input audio signals. For example, the audio component can include a microphone configured to receive external audio signals. The received audio signals can be further stored in the memory 802 or transmitted through the communication component 805. The audio component also includes at least one speaker configured to output audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, which can be a keyboard, a mouse, a button, and the like. The buttons can be virtual buttons or physical buttons. The communication component 805 is configured to perform wired or wireless communication between the data construction device 800 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, near field communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 805 can include a Wi-Fi module, a Bluetooth module, an NFC module.

[0103] In an example embodiment, the data construction device 800 can be implemented by one or more Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor or other electronic elements for performing the data construction method described above.

[0104] In another example embodiment, a computer readable storage medium including program instructions is also provided, which when executed by a processor, implement the steps of the data construction method described above. For example, the computer readable storage medium can be the memory 802 described above including program instructions executable by the processor 801 of the data construction device 800 to complete the data construction method described above.

[0105] Embodiment 4:

[0106] Corresponding to the method embodiments above, the present embodiment also provides a readable storage medium, which can be referred to each other below described a readable storage medium and the above described a data construction method.

[0107] A readable storage medium, the readable storage medium has a computer program stored thereon, the computer program is executed by a processor to implement the steps of the data construction method of the method embodiments described above.

[0108] The readable storage medium can be specifically a U disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk and various readable storage media which can store program codes.

[0109] The above only describes the preferred embodiments of the present application and is not used to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0110] The above merely illustrates the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of constructing data, characterized by, The method comprises the following steps: receiving a user-triggered quota system to-be-configured information change request, the to-be-configured information change request comprising quota information, the quota information being a quota control dimension type and an effective state; processing the to-be-configured information according to a Spark algorithm to generate a to-be-configured quota table; judging whether the current business in the quota system in the to-be-configured quota table meets a configuration information change condition according to the to-be-configured quota table, and if so, obtaining current configuration information; the step of obtaining the current configuration information further comprises the following steps: constructing a second user corresponding quota data tree structure diagram according to a recursive algorithm and the current configuration information, the current configuration information comprising a parent-child relationship of current layers of quota nodes and current quota configuration information; judging whether there is a next level quota node according to the parent-child relationship of the current layers of quota nodes and the current quota configuration information for each quota node; if it is determined that there is a next level quota node, constructing the next level quota node first, and constructing the current quota node after the next level quota node is constructed, until the leaf quota node is constructed to the root quota node; configuring each quota node according to the current quota configuration information; the step of processing the to-be-configured information according to the Spark algorithm to generate the to-be-configured quota table comprises the following steps: obtaining the to-be-configured information through a preset interface; transforming the to-be-configured information into a tree structure diagram using a Spark algorithm, the tree structure diagram comprising at least one node, at least one entry edge of the node and at least one exit edge of the node; determining a target node of the tree structure diagram according to the at least one node, the at least one entry edge and the at least one exit edge; iteratively processing a process in which the node sends information to the next node to determine target information of each node, the target information comprising business data information; generating the to-be-configured table according to each node and the business data information corresponding to each node; after obtaining to-be-detected data, loading business information and enterprise equity investment information and the like into a Hive library, reading the business information table and the enterprise equity investment table in the Hive using a Spark algorithm, processing the business information table and the enterprise equity investment table using a graph computing interface in the Spark algorithm, and transforming the business information table and the enterprise equity investment table into a tree structure diagram, the tree structure diagram comprising a plurality of nodes, entry edges for the plurality of nodes and exit edges for the plurality of nodes, the nodes can represent business information of enterprises, and the entry edges and the exit edges can represent enterprise equity investment relationships between enterprises.

2. The method of claim 1, wherein the step of transforming the to-be-configured information into the tree structure diagram using the Spark algorithm further comprises the following steps: traversing the to-be-configured information set; judging whether there is a ring route in the tree structure diagram according to the to-be-configured information set; if there is a ring route in the tree structure diagram, truncating the ring route according to the target information to obtain the tree structure diagram with the target node as a starting point.

3. The method of claim 1, wherein the step of receiving the user-triggered quota system to-be-configured information change request further comprises the following steps: Obtaining first information, the first information including historical basic information data of the user, the basic information data including financial data and business behavior data; Performing mining analysis on the first information as a sample to generate a user business quota model; Obtaining current basic information data of the user, the current basic information data of the user including current financial data and business behavior data of the user; Inputting the current basic information data of the user into the user business quota model to obtain a current business quota of the user.

4. The method of claim 1, wherein The judgment of whether the current business in the quota system in the to-be-configured quota table meets the configuration information change condition comprises: Loading the to-be-configured quota table; According to the priority order of the application rules and the preset configuration information change condition, the to-be-configured quota table is matched with the application rules one by one until a successful match is made; Calling the current business corresponding to the application rule matched successfully.

5. A data constructing apparatus characterized by comprising: Comprise: The receiving module is used for receiving a to-be-configured information change request of a quota system triggered by a user, the to-be-configured information change request including quota information, and the quota information being a quota control dimension type and an effective state; The generating module is used for processing the to-be-configured information according to a Spark algorithm to generate a to-be-configured quota table; The judgment module is used for judging, according to the to-be-configured quota table, whether a current business in the quota system in the to-be-configured quota table meets a configuration information change condition, and if so, obtaining current configuration information; The judgment module further comprises: The first construction module is used for constructing, according to a recursive algorithm and the current configuration information, a quota data tree structure diagram corresponding to a second user, the current configuration information including a parent-child relationship of current quota nodes of each layer and current quota configuration information; The judgment node module is used for judging, for each quota node, whether there is a next-level quota node according to the parent-child relationship of the current quota nodes of each layer and the current quota configuration information; The second construction module is used for, if it is determined that there is a next-level quota node, constructing the next-level quota node preferentially, and constructing the current quota node after the next-level quota node is constructed, until the root quota node is constructed from the leaf quota node; The configuration module is used for configuring each quota node according to the current quota configuration information; The generating module comprises: The obtaining unit is used for obtaining the to-be-configured information through a preset interface; The conversion unit is used for converting the to-be-configured information into a tree structure diagram by using a Spark algorithm, the tree structure diagram including at least one node, at least one incoming edge of the node, and at least one outgoing edge of the node; The determination unit is used for determining a target node of the tree structure diagram according to the at least one node, the at least one incoming edge, and the at least one outgoing edge; The processing unit is used for iteratively processing a process in which the node sends information to the next node, and determining target information of each node, the target information including business data information; The generating unit is used for generating the to-be-configured table according to each node and the business data information corresponding to each node. After obtaining the to-be-detected data, the industrial and commercial information and enterprise equity investment information and other data are loaded into a Hive library, the industrial and commercial information table and the enterprise equity investment table in the Hive are read by using a Spark algorithm, the industrial and commercial information table and the enterprise equity investment table are processed by using a graph calculation interface in the Spark algorithm, and the industrial and commercial information table and the enterprise equity investment table are converted into a tree structure graph, the tree structure graph including a plurality of nodes, in-edges for the plurality of nodes and out-edges for the plurality of nodes, the nodes can represent industrial and commercial information of enterprises, and the in-edges and the out-edges can represent enterprise equity investment relationships between enterprises.

6. The data constructing apparatus of claim 5, wherein The conversion unit, thereafter, includes: A traversal unit configured to traverse the set of to-be-configured information; A judgment route unit configured to determine whether a loop route exists in the tree structure graph according to the set of to-be-configured information; A judgment unit configured to, if the loop route exists in the tree structure graph, truncate the loop route according to the target information to obtain the tree structure graph with the target node as a starting point.

7. The data building device according to claim 5, wherein The receiving module, before, includes: An information acquisition module configured to acquire first information, the first information including historical basic information data of the user, the basic information data including financial data and business behavior data; A mining module configured to perform mining analysis on the first information as a sample to generate a user business quota model; A data acquisition module configured to acquire current basic information data of the user, the current basic information data of the user including current financial data and business behavior data of the user; An input module configured to input the current basic information data of the user into the user business quota model to obtain a current business quota of the user.

8. The data constructing apparatus of claim 5, wherein The judgment module includes: A loading unit configured to load the to-be-configured quota table; A matching unit configured to match the to-be-configured quota table with the application rules one by one according to a priority order of the application rules and a preset configuration information change condition until a match is successful; A calling unit configured to call the current business corresponding to the application rule with which the match is successful.

9. A data constructing apparatus, comprising: a data constructing unit configured to construct data; and a data output unit configured to output the data. It includes: A memory for storing a computer program; A processor for executing the computer program to implement the steps of the data construction method according to any one of claims 1 to 4.

10. A readable storage medium characterized by: The computer program is stored on the readable storage medium, and the computer program is executed by the processor to implement the steps of the data construction method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Data structure construction method and device, equipment and storage medium

    CN111708782A

  • Data processing method and device based on service system and electronic equipment

    CN112613892A

  • User account quota information configuration method and user account transaction method

    CN115082217A