CN107783838A - Client information inquiry method and device - Google Patents

Client information inquiry method and device Download PDF

Info

Publication number
CN107783838A
CN107783838A CN201710147612.7A CN201710147612A CN107783838A CN 107783838 A CN107783838 A CN 107783838A CN 201710147612 A CN201710147612 A CN 201710147612A CN 107783838 A CN107783838 A CN 107783838A
Authority
CN
China
Prior art keywords
information
task
thread
query
inquiry
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
CN201710147612.7A
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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710147612.7A priority Critical patent/CN107783838A/en
Publication of CN107783838A publication Critical patent/CN107783838A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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/03Credit; Loans; Processing thereof

Abstract

The present invention relates to a kind of client information inquiry method and device, this method includes:Multiple thread pools are run, the thread pool includes multiple threads;The relation between multiple queries task and query task is obtained, the relation includes dependence and concurrency relation;Multiple queries task with dependence is distributed to the thread in multiple thread pools;Multiple threads that multiple queries task with concurrency relation is distributed into same thread pool;According to the dependence, the inquiry rank between multiple thread pools is generated;Query task is concurrently performed using multiple threads in thread pool successively according to inquiry rank, until completing all query tasks obtains required customer information.The time-consuming raising search efficiency of customer information inquiry can effectively be reduced using this method.

Description

Client information inquiry method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of client information inquiry method and device.
Background technology
Bank when receiving the loan application of client, backstage can calling interface inquire about a variety of customer informations, then using looking into The customer information ask carries out loan valuation.Because the information content needed for loan valuation is larger, the querying condition of part of interface is also The Query Result of other interfaces can be depended on, if backstage by the way of Series poll, can cause inquiry time-consuming longer, inquiry It is less efficient.How to effectively improve the search efficiency of customer information turns into a technical problem for needing to solve at present.
The content of the invention
Based on this, it is necessary to for above-mentioned technical problem, there is provided one kind can reduce the time-consuming raising of customer information inquiry and look into Ask the client information inquiry method and device of efficiency.
A kind of client information inquiry method, methods described include:
Multiple thread pools are run, the thread pool includes multiple threads;
The relation between multiple queries task and query task is obtained, the relation includes dependence and parallel pass System;
Multiple queries task with dependence is distributed to the thread in multiple thread pools;
Multiple threads that multiple queries task with concurrency relation is distributed into same thread pool;
According to the dependence, the inquiry rank between multiple thread pools is generated;
Query task is concurrently performed using multiple threads in thread pool successively according to inquiry rank, until completing all look into Inquiry task obtains required customer information.
In one of the embodiments, it is described concurrently to be performed using multiple threads in thread pool successively according to inquiry rank The step of query task, includes:
Call multiple threads concurrently to perform query task in inquiry rank is the thread pool of initial level, initially looked into Ask result;
Multiple thread pools perform Series poll according to the dependence, using initial query result as next query level The querying condition of query task in other thread pool, multiple threads are called concurrently to perform query task according to the querying condition, Until complete the query task in all thread pools.
In one of the embodiments, the customer information includes information type and field;Described according to inquiry rank Query task is concurrently performed using multiple threads in thread pool successively, obtains corresponding Query Result, until completing all look into After inquiry task obtains the step of required customer information, in addition to:
According to described information type by the at most individual tables of data of field classification storage in the customer information;
Customer analysis is carried out using the customer information in multiple tables of data.
In one of the embodiments, it is described according to described information type by the field classification storage in the customer information Step at most individual tables of data includes:
Allocation list is obtained, the allocation list includes corresponding with data table name store path, information type and field;
Retrieved, obtained and described information class in the allocation list according to the information type that the customer information carries Data table name, store path and field corresponding to type;
Field in the customer information is stored in corresponding with the data table name according to the store path retrieved Tables of data in.
In one of the embodiments, the customer information using in multiple tables of data carries out the step of customer analysis bag Include:
Obtain the essential information and reference information of client respectively in tables of data;
Client's score is calculated according to the reference information;
If client's score exceedes threshold value, the loan documentation according to corresponding to obtaining the essential information;The loan Record includes multinomial loan transaction;
The comprehensive amount according to corresponding to multinomial loan transaction calculates the loan requests;
If whether the comprehensive amount is more than or equal to the application amount, generation is borrowed according to the application amount granting The prompt message of money.
A kind of customer information inquiry unit, described device include:
Thread pool runs module, and for running multiple thread pools, the thread pool includes multiple threads;
Acquisition module, for obtaining the relation between multiple queries task and query task, the relation includes relying on Relation and concurrency relation;
Task allocating module, for the multiple queries task with dependence to be distributed to the line in multiple thread pools Journey;Multiple threads that multiple queries task with concurrency relation is distributed into same thread pool;
The thread pool operation module is additionally operable to according to the dependence, generate the query level between multiple thread pools Not;
Enquiry module, for concurrently performing query task using multiple threads in thread pool successively according to inquiry rank, Until completing all query tasks obtains required customer information.
In one of the embodiments, the enquiry module is additionally operable to adjust in inquiry rank is the thread pool of initial level Query task is concurrently performed with multiple threads, obtains initial query result;Multiple thread pools perform string according to the dependence Row inquiry, the querying condition using initial query result as query task in the other thread pool of next query level, according to described Querying condition calls multiple threads concurrently to perform query task, until completing the query task in all thread pools.
In one of the embodiments, the customer information includes information type and field;Described device also includes:
Memory module, for according to described information type by the at most individual data of field classification storage in the customer information In table;
Analysis module, for carrying out customer analysis using the customer information in multiple tables of data.
In one of the embodiments, the memory module is additionally operable to obtain allocation list, and the allocation list includes and data Store path, information type and field corresponding to table name;The information type carried according to the customer information is in the configuration Retrieved in table, obtain corresponding with described information type data table name, store path and field;By the customer information In field be stored according to the store path retrieved into tables of data corresponding with the data table name.
In one of the embodiments, the analysis module is additionally operable to obtain the essential information of client respectively in tables of data With reference information;Client's score is calculated according to the reference information;If client's score exceedes threshold value, according to described basic Loan documentation corresponding to acquisition of information;The loan documentation includes multinomial loan transaction;According to calculating multinomial loan transaction Comprehensive amount corresponding to loan requests;If whether the comprehensive amount is more than or equal to the application amount, generate according to institute State the prompt message that application amount is offered loans.
Above-mentioned client information inquiry method and device, by the way that the query task with dependence is respectively allocated into difference Thread pool, the query task with concurrency relation is distributed into same thread pool, multiple queries task is distributed respectively Into multiple thread pools.According to the dependence between query task, the inquiry rank in multiple thread pools is generated.Due to tool The query task for having dependence does not apply to parallel query, and the query task with concurrency relation is adapted to use parallel query, Therefore query task is concurrently performed in multiple thread pools according to inquiry rank successively, it is right in same thread pool to thus achieve Multiple queries task carries out parallel query, and Series poll is carried out between different thread pools.So as to effectively reduce inquiry It is time-consuming to improve search efficiency.
Brief description of the drawings
Fig. 1 is the applied environment figure of client information inquiry method in one embodiment;
Fig. 2 is the flow chart of client information inquiry method in one embodiment;
Fig. 3 is the schematic diagram that task is distributed in multiple thread pools in one embodiment;
Fig. 4 is the structural representation of server in one embodiment;
Fig. 5 is the structural representation of customer information inquiry unit in one embodiment;
Fig. 6 is the structural representation of customer information inquiry unit in another embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
Client information inquiry method provided in the embodiment of the present invention can apply to application environment as shown in Figure 1 In.Wherein, client terminal 102 is connected by network with server 104.Multiple databases are deployed on server 104.Client is led to Cross client terminal 102 and send loan requests to server 104.Server 104 is received after loan requests, it is necessary in multiple data A variety of customer informations are obtained in storehouse, carry out customer analysis, to judge whether to grant loan according to analysis result.Server 104 generate multiple queries task according to loan requests and the operation flow of customer analysis.Can be to rely between query task Relation or concurrency relation.Multiple thread pools have been run on server 104, can include multiple lines in each thread pool Journey.Server 104 distributes the multiple queries task with dependence to the thread in multiple thread pools, will have parallel close Multiple threads that the multiple queries task of system is distributed into same thread pool.Server 104 according between query task according to The relation of relying generates the inquiry rank between multiple thread pools.Server 104 is according to inquiry rank successively in thread pool using more Individual thread concurrently performs query task, until completing all query tasks obtains required customer information.By to different threads Pond carries out Series poll, to carrying out parallel query in same thread pool, can effectively improve search efficiency.Server 104 will The customer information classification storage inquired carries out customer analysis in multiple tables of data, using the customer information in tables of data, obtains To analysis result.Server 104 returns to the message offered loans to client terminal 102 according to analysis result or refuses loan Message.
In one embodiment, as shown in Figure 2, there is provided a kind of client information inquiry method, in this way applied to Fig. 1 In server exemplified by illustrate, specifically include:
Step 202, multiple thread pools are run, thread pool includes multiple threads.
Step 204, the relation between multiple queries task and query task is obtained, relation is including dependence and parallel Relation.
Multiple thread pools have been run on server, can include multiple threads in each thread pool.In different threads pond Number of threads can be with identical, can also be different.When server carries out customer analysis, can be given birth to according to the operation flow of customer analysis The multiple queries task that paired customer information is inquired about.Because the customer information that customer analysis is related to is more, customer analysis Multiple links in may be associated with each other, therefore can have dependence between the multiple queries task of inquiring customer information. In addition, during customer analysis, it is independent of each other in also multiple links, therefore can also be between query task parallel Relation.
Step 206, the multiple queries task with dependence is distributed to the thread in multiple thread pools.
Step 208, the multiple threads multiple queries task with concurrency relation distributed into same thread pool.
Because the customer information that customer analysis needs are inquired about is more, query task can be with associated with each other, can also be only each other It is vertical.Therefore, it between query task can be dependence (being referred to as Serial Relation), can also be simultaneously between query task Row relation.Relation between multiple queries task is determined according to the operation flow of customer analysis.Server will have dependence Multiple queries task is respectively allocated to the thread in multiple thread pools.Each thread can be configured an inquiry accordingly and appoint Business.Server distributes the multiple queries task with concurrency relation to same thread pool according to the operation flow of customer analysis In multiple threads.
For example, carried out when server receives the loan requests of client terminal transmission, it is necessary to obtain a variety of customer informations Customer analysis, including client's essential information, customer value information, client's application information, client's reference information and anti-fraud letter Breath etc..As shown in figure 3, having run three thread pools on server, first thread pond, the second thread pool and the 3rd line are referred to as Cheng Chi.According to the operation flow of customer analysis, wherein, inquiry client essential information, inquiry customer value information and inquiry client Application information is the query task with concurrency relation, and is initial query task.Server is distributed to first thread pond In multiple threads.Inquiry client's reference information need to rely on inquiry client's essential information to carry out, and both, which have to rely on, closes System.Inquiry client expense deduction and exemption information has dependence with inquiry customer value information.And inquiry client's reference information with Inquire about between client's expense deduction and exemption both information independently of one another, there is concurrency relation.Server is distributed to the second thread pool In thread.According to the operation flow of customer analysis, after the reference information of client is inquired, it is also necessary to inquire about reference information Whether fail, the reference information of failure cannot be used for customer analysis.In addition the reference information with reference to client and client Shen are also needed to Please information inquire about anti-fraud information corresponding to client in anti-fraud platform.Therefore, whether inquiry reference fails and inquiry client It is dependence between reference information.Inquire about anti-fraud information and inquiry client's reference information and inquiry client application information it Between be dependence respectively.And whether be independent of each other, be to close parallel if inquiring about reference and failing and inquire about between anti-fraud information System.Server distributes the two to the thread in the 3rd thread pool.
Step 210, according to dependence, the inquiry rank between multiple thread pools is generated.
Step 212, query task is concurrently performed using multiple threads in thread pool successively according to inquiry rank, until complete Required customer information is obtained into all query tasks.
According to the operation flow of customer analysis, server generates multiple thread pools according to the dependence between query task Between inquiry rank.Specifically, the thread pool for needing not rely on other query tasks is defined as initial level by server.Clothes Business device raises the inquiry rank dependent on the thread pool of other query tasks successively.It is higher to inquire about rank, previous queries are appointed The degree of dependence of business is higher.
In one of the embodiments, inquiry is concurrently performed using multiple threads in thread pool successively according to inquiry rank The step of task, includes:Call multiple threads concurrently to perform query task in inquiry rank is the thread pool of initial level, obtain To initial query result;Multiple thread pools perform Series poll according to dependence, are looked into using initial query result as next The querying condition of query task in the thread pool of rank is ask, calls multiple threads concurrently to perform query task according to querying condition, Until complete the query task in all thread pools.
Server receives the loan requests that client terminal is sent, and application information is carried in loan requests.Server can be with Multiple queries task is generated according to loan requests.Entrained application information can be considered as initial query condition in loan requests. Server calls multiple threads in inquiry rank is the thread pool of initial level, had to multiple according to initial query condition The query task of concurrency relation carries out parallel query, obtains the Query Result of multiple queries task in the thread pool of initial level, The Query Result is alternatively referred to as initial query result.Series poll is carried out according to dependence between multiple thread pools.Server Query task in the thread pool of next rank is taken according to inquiry rank successively, according to the dependence between query task, Multiple threads in the thread pool of next rank are called concurrently to perform query task using initial query result as querying condition, Then the multiple queries result of next rank is obtained.Above-mentioned steps are repeated, until completing the inquiry in all thread pools Task, obtain required customer information.It is parallel to being carried out in same thread pool by carrying out Series poll to different threads pond Inquiry, can effectively improve search efficiency.
By taking the query task in Fig. 3 as an example, server is according to initial query condition, such as customer ID, in first thread Multiple threads are called to carry out inquiry client's essential information, inquiry customer value information and inquiry client application information in pond parallel Inquiry, respectively obtains client's essential information, customer value information and client's application information.Server is according to inquiry rank and dependence Relation, parallel query is carried out to the multiple queries task in the second thread pool.Wherein, the query task inquiry in the second thread pool Client's reference information is inquired about using the client's essential information exported in first thread pond as querying condition, obtains client's reference letter Breath.Customer value information of the query task inquiry client expense deduction and exemption information to be exported in first thread pond in second thread pool Inquired about for querying condition, obtain client's expense deduction and exemption information.Server next other is looked into according to what the second thread pool exported Ask querying condition of the result as the middle query task of the 3rd thread pool.Whether the query task inquiry reference in the 3rd thread pool Failure is inquired about using the client's reference information exported in the second thread pool as querying condition, obtains the effect of reference information.The Query task in three thread pools is inquired about anti-fraud information and applied with the client's reference information exported in the second thread pool and client Information is that querying condition is inquired about, and obtains anti-fraud information corresponding to client.By parallel to being carried out in same thread pool Inquiry, Series poll is carried out to different threads pond, all query tasks is completed, obtains required customer information.Effectively reduce Inquiry is time-consuming, and improves search efficiency.
In the present embodiment, by the way that the query task with dependence to be respectively allocated to different thread pools, will have The query task of concurrency relation is distributed into same thread pool, and multiple thread pools have been respectively allocated to multiple queries task In.According to the dependence between query task, the inquiry rank in multiple thread pools is generated.Due to looking into dependence Inquiry task does not apply to parallel query, and the query task with concurrency relation is adapted to use parallel query, therefore according to query level Query task is not performed concurrently in multiple thread pools successively, thus achieves and multiple queries task is entered in same thread pool Row parallel query, Series poll is carried out between different thread pools.So as to effectively reduce, inquiry is time-consuming to improve inquiry effect Rate.
In one embodiment, customer information includes information type and field;According to inquiry rank successively in thread pool It is middle concurrently to perform query task using multiple threads, corresponding Query Result is obtained, until completing all query tasks obtains institute After the step of customer information needed, in addition to:According to information type by the field classification storage at most number in customer information According in table;Customer analysis is carried out using the customer information in multiple tables of data.
Customer information can inquire from multiple platforms, from different databases.Therefore need customer information Stored.In database, different customer informations usually requires to carry out classification storage according to information type.Traditional mode It is to write corresponding store code for the customer data of every kind of information type by research staff.By store code by client Information inquiry is into database.In face of the customer information of magnanimity, if all writing store code to every kind of information type, it is necessary to grind Hair personnel carry out the development of repeatability, and this not only causes code redundancy, also increases the unnecessary workload of research staff.
In the present embodiment, allocation list is established in server in advance, data table name and corresponding is stored in allocation list Information type and field.Server is according to information type by the at most individual tables of data of the field classification storage carried in customer information In.
In one of the embodiments, according to information type by the at most individual tables of data of field classification storage in customer information In step include:Allocation list is obtained, allocation list includes corresponding with data table name store path, information type and field; According to customer information carry information type retrieved in allocation list, obtain data table name corresponding with information type, Store path and field;Field in customer information is stored in corresponding with data table name according to the store path retrieved In tables of data.
Allocation list includes corresponding with data table name store path, information type and field.Server is according to client The information type carried in information is retrieved in allocation list, obtains data table name corresponding with information type, storage road Footpath and field.In allocation list, different information types corresponds to identical data table name, can also correspond to different data Table name.Data table name can correspond to multiple fields.Field corresponding to different data table names is different.Allocation list can be One summary table or two points of tables.Data table name, store path, information type and field can be included in summary table Deng configuration information.Table is divided to include the first allocation list and the second allocation list, as shown in following table one and table two.Wherein, first matches somebody with somebody Putting table includes data table name, store path, information type.Second allocation list includes data table name and storage field.
Table one:
Data table name Store path Information type
Table_1 \\192.168.1.8\pboc\SumDTO O2O
Table_2 \\192.168.1.8\pboc\SpouseDTO IPOSE
Table two:
Data table name Store field
Table_1 Name
Table_1 Account
Table_1 Telephone number
Table_2 Time
Table_2 The amount of the loan
Table_2 Overdue stroke count of not refunding
Because each data table name can correspond to multiple storage fields, configuration information is respectively written into two and different matched somebody with somebody Put in table, enable to the configuration information in allocation list more concise clear.Server is by the field in customer information according to inspection Rope to store path and data table name be stored in respectively corresponding in tables of data.Thus by customer information classification storage to data In each tables of data in storehouse.Consequently facilitating the customer information in the multiple tables of data of server by utilizing carries out customer analysis.
In one embodiment, the step of carrying out customer analysis using the customer information in multiple tables of data includes:In number According to the essential information and reference information for obtaining client in table respectively;Client's score is calculated according to essential information and reference information;If Client's score exceedes threshold value, then the loan documentation according to corresponding to obtaining essential information;Loan documentation includes multinomial loan transaction;Root Comprehensive amount corresponding to loan requests is calculated according to multinomial loan transaction;If whether comprehensive amount is more than or equal to application amount, The prompt message that generation is offered loans according to application amount.
In the present embodiment, server, can be to client after the loan requests that client is sent by client terminal are received Analyzed, the repaying ability of client is assessed with this.If the repaying ability of client, credit risk is larger, if client Repaying ability it is good, then credit risk is smaller.
Specifically, server obtains client's according to the customer ID carried in loan application information in multiple tables of data Essential information and reference information.Server obtains code of points, and code of points includes multiple scoring item, scoring condition and scorings Standard.Server is calculated corresponding to each scoring item respectively according to the essential information and reference information and scoring item of client Score, the score of all scoring items is added up, obtains the application score of this petty load of client.Server will be applied Divide compared with preset value, if being more than or equal to preset value, then it represents that the repaying ability of client is good, and server can be further Loan limit is calculated.Otherwise, the prompt message of server generation refusal loan requests.
Server obtains the loan documentation of client according to loan application information in tables of data, and loan documentation includes multinomial loan Money business;The comprehensive amount according to corresponding to multinomial loan transaction calculates loan requests.Specifically, server obtains loan transaction pair The multiple measuring and calculating projects answered, calculate the amount that multiple loan transactions each calculate project, are extracted in multiple loan transactions respectively Measuring and calculating amount of the minimum amount as measuring and calculating project in same measuring and calculating project, obtains measuring and calculating volume corresponding to multiple measuring and calculating projects Degree, the minimum value of measuring and calculating amount corresponding to multiple measuring and calculating projects is extracted as comprehensive amount corresponding to loan requests.Server is sentenced Whether disconnected comprehensive amount is more than or equal to application amount;If so, the prompt message that then generation is offered loans according to application amount.By Got in comprehensive amount according to multinomial loan transaction comprehensively measuring and calculating, measuring and calculating dimension is more comprehensive, so as to effectively improve The accuracy of petty load amount measuring and calculating, effectively reduces credit risk.
In one embodiment, as shown in Figure 4, there is provided a kind of server 400, including the place connected by system bus Manage device 401, built-in storage 402, non-volatile memory medium 403 and network interface 404.Wherein, the server is non-volatile Operating system 4031 and customer information inquiry unit 4032 are stored with storage medium 403, customer information inquiry unit 4032 is used The time-consuming raising search efficiency of customer information inquiry is reduced in realizing.The processor 401 of server 400, which is used to provide, to be calculated and controls Ability, it is configured as performing a kind of client information inquiry method.The built-in storage 402 of server 400 is situated between for non-volatile memories The operation of customer information inquiry unit 4032 in matter provides environment, and computer-readable instruction can be stored in built-in storage 402, When the computer-readable instruction is executed by processor, a kind of client information inquiry method of computing device may be such that.Server 400 Network interface 404 be used for according to this with outside terminal communicated by network connection, such as receive client terminal upload loan Request, prompting message etc. is sent to client terminal.Server 400 can with independent server either multiple server groups into Server cluster realize.It will be understood by those skilled in the art that the structure shown in Fig. 4, it is only and application scheme The block diagram of related part-structure, does not form the restriction for the server being applied thereon to application scheme, specific clothes Being engaged in device can be including than more or less parts shown in figure, either combining some parts or having different part cloth Put.
In one embodiment, as shown in Figure 5, there is provided a kind of customer information inquiry unit, including:Thread pool runs mould Block 502, acquisition module 504, task allocating module 506 and enquiry module 508, wherein:
Thread pool runs module 502, and for running multiple thread pools, thread pool includes multiple threads.
Acquisition module 504, for obtaining the relation between multiple queries task and query task, relation, which includes relying on, closes System and concurrency relation.
Task allocating module 506, for the multiple queries task with dependence to be distributed into multiple thread pools Thread;Multiple threads that multiple queries task with concurrency relation is distributed into same thread pool.
Thread pool operation module 502 is additionally operable to according to dependence, generates the inquiry rank between multiple thread pools.
Enquiry module 508, appoint for concurrently performing inquiry using multiple threads in thread pool successively according to inquiry rank Business, until completing all query tasks obtains required customer information.
In one of the embodiments, enquiry module 508 is additionally operable to adjust in inquiry rank is the thread pool of initial level Query task is concurrently performed with multiple threads, obtains initial query result;Multiple thread pools are performed according to dependence and serially looked into Ask, the querying condition using initial query result as query task in the other thread pool of next query level, according to querying condition Multiple threads are called concurrently to perform query task, until completing the query task in all thread pools.
In one embodiment, customer information includes information type and field;As shown in fig. 6, the device also includes:Storage Module 510 and analysis module 512, wherein:
Memory module 510, for according to information type by the at most individual tables of data of field classification storage in customer information.
Analysis module 512, for carrying out customer analysis using the customer information in multiple tables of data.
In one of the embodiments, memory module 510 is additionally operable to obtain allocation list, and allocation list includes and data table name Corresponding store path, information type and field;Retrieved, obtained in allocation list according to the information type that customer information carries To corresponding with information type data table name, store path and field;Field in customer information is deposited according to what is retrieved Storage path is stored in into tables of data corresponding with data table name.
In one of the embodiments, analysis module 512 is additionally operable to obtain the essential information of client respectively in tables of data With reference information;Client's score is calculated according to reference information;If client's score exceedes threshold value, obtained according to essential information corresponding Loan documentation;Loan documentation includes multinomial loan transaction;The comprehensive volume according to corresponding to multinomial loan transaction calculates loan requests Degree;If whether comprehensive amount is more than or equal to application amount, the prompt message that generation is offered loans according to application amount.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with Instruct the hardware of correlation to complete by computer program, program can be stored in a non-volatile computer storage can be read In medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, lance is not present in the combination of these technical characteristics Shield, all it is considered to be the scope of this specification record.
Above example only expresses the several embodiments of the present invention, and its description is more specific and detailed, but can not Therefore it is construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, On the premise of not departing from present inventive concept, various modifications and improvements can be made, these belong to protection scope of the present invention. Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of client information inquiry method, methods described include:
Multiple thread pools are run, the thread pool includes multiple threads;
The relation between multiple queries task and query task is obtained, the relation includes dependence and concurrency relation;
Multiple queries task with dependence is distributed to the thread in multiple thread pools;
Multiple threads that multiple queries task with concurrency relation is distributed into same thread pool;
According to the dependence, the inquiry rank between multiple thread pools is generated;
Query task is concurrently performed using multiple threads in thread pool successively according to inquiry rank, is appointed until completing all inquiries Business obtains required customer information.
2. according to the method for claim 1, it is characterised in that it is described according to inquiry rank successively in thread pool using more Individual thread, which concurrently performs the step of query task, to be included:
Call multiple threads concurrently to perform query task in inquiry rank is the thread pool of initial level, obtain initial query knot Fruit;
Multiple thread pools perform Series poll according to the dependence, and initial query result is other as next query level The querying condition of query task in thread pool, multiple threads are called concurrently to perform query task according to the querying condition, until Complete the query task in all thread pools.
3. according to the method for claim 1, it is characterised in that the customer information includes information type and field;Institute State and concurrently perform query task using multiple threads in thread pool successively according to inquiry rank, obtain corresponding Query Result, Until after completing the step of all query tasks obtain required customer information, in addition to:
According to described information type by the at most individual tables of data of field classification storage in the customer information;
Customer analysis is carried out using the customer information in multiple tables of data.
4. according to the method for claim 3, it is characterised in that it is described according to described information type by the customer information The at most individual tables of data of field classification storage in step include:
Allocation list is obtained, the allocation list includes corresponding with data table name store path, information type and field;
Retrieved, obtained and described information type pair in the allocation list according to the information type that the customer information carries Data table name, store path and the field answered;
Field in the customer information is stored in number corresponding with the data table name according to the store path retrieved According in table.
5. according to the method for claim 3, it is characterised in that the customer information using in multiple tables of data carries out visitor The step of family is analyzed includes:
Obtain the essential information and reference information of client respectively in tables of data;
Client's score is calculated according to the reference information;
If client's score exceedes threshold value, the loan documentation according to corresponding to obtaining the essential information;The loan documentation Including multinomial loan transaction;
The comprehensive amount according to corresponding to multinomial loan transaction calculates the loan requests;
If whether the comprehensive amount is more than or equal to the application amount, generation is offered loans according to the application amount Prompt message.
6. a kind of customer information inquiry unit, it is characterised in that described device includes:
Thread pool runs module, and for running multiple thread pools, the thread pool includes multiple threads;
Acquisition module, for obtaining the relation between multiple queries task and query task, the relation includes dependence And concurrency relation;
Task allocating module, for the multiple queries task with dependence to be distributed to the thread in multiple thread pools;Will Multiple threads that multiple queries task with concurrency relation is distributed into same thread pool;
The thread pool operation module is additionally operable to, according to the dependence, generate the inquiry rank between multiple thread pools;
Enquiry module, for concurrently performing query task using multiple threads in thread pool successively according to inquiry rank, until Complete all query tasks and obtain required customer information.
7. device according to claim 6, it is characterised in that it is initial level that the enquiry module, which is additionally operable in inquiry rank, Call multiple threads concurrently to perform query task in other thread pool, obtain initial query result;Multiple thread pools are according to Dependence performs Series poll, the inquiry using initial query result as query task in the other thread pool of next query level Condition, multiple threads are called concurrently to perform query task according to the querying condition, until completing the inquiry in all thread pools Task.
8. device according to claim 6, it is characterised in that the customer information includes information type and field;It is described Device also includes:
Memory module, for according to described information type by the at most individual tables of data of field classification storage in the customer information In;
Analysis module, for carrying out customer analysis using the customer information in multiple tables of data.
9. device according to claim 8, it is characterised in that the memory module is additionally operable to obtain allocation list, described to match somebody with somebody Putting table includes corresponding with data table name store path, information type and field;The information carried according to the customer information Type is retrieved in the allocation list, obtains corresponding with described information type data table name, store path and field; Field in the customer information is stored in tables of data corresponding with the data table name according to the store path retrieved In.
10. device according to claim 8, it is characterised in that the analysis module is additionally operable to obtain respectively in tables of data Take the essential information and reference information of client;Client's score is calculated according to the reference information;If client's score exceedes threshold It is worth, then the loan documentation according to corresponding to obtaining the essential information;The loan documentation includes multinomial loan transaction;According to multinomial Loan transaction calculates comprehensive amount corresponding to the loan requests;If whether the comprehensive amount is more than or equal to the application volume Degree, the then prompt message that generation is offered loans according to the application amount.
CN201710147612.7A 2017-03-13 2017-03-13 Client information inquiry method and device Pending CN107783838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710147612.7A CN107783838A (en) 2017-03-13 2017-03-13 Client information inquiry method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710147612.7A CN107783838A (en) 2017-03-13 2017-03-13 Client information inquiry method and device

Publications (1)

Publication Number Publication Date
CN107783838A true CN107783838A (en) 2018-03-09

Family

ID=61438016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710147612.7A Pending CN107783838A (en) 2017-03-13 2017-03-13 Client information inquiry method and device

Country Status (1)

Country Link
CN (1) CN107783838A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457124A (en) * 2019-08-06 2019-11-15 中国工商银行股份有限公司 For the processing method and its device of business thread, electronic equipment and medium
CN110765157A (en) * 2019-09-06 2020-02-07 中国平安财产保险股份有限公司 Data query method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818868A (en) * 2006-03-10 2006-08-16 浙江大学 Multi-task parallel starting optimization of built-in operation system
CN102929929A (en) * 2012-09-24 2013-02-13 深圳市网信联动技术有限公司 Method and device for data summarization
CN105159971A (en) * 2015-08-26 2015-12-16 成都布林特信息技术有限公司 Cloud platform data retrieval method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818868A (en) * 2006-03-10 2006-08-16 浙江大学 Multi-task parallel starting optimization of built-in operation system
CN102929929A (en) * 2012-09-24 2013-02-13 深圳市网信联动技术有限公司 Method and device for data summarization
CN105159971A (en) * 2015-08-26 2015-12-16 成都布林特信息技术有限公司 Cloud platform data retrieval method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457124A (en) * 2019-08-06 2019-11-15 中国工商银行股份有限公司 For the processing method and its device of business thread, electronic equipment and medium
CN110765157A (en) * 2019-09-06 2020-02-07 中国平安财产保险股份有限公司 Data query method and device, computer equipment and storage medium
CN110765157B (en) * 2019-09-06 2024-02-02 中国平安财产保险股份有限公司 Data query method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US8458071B2 (en) Instantaneous merchant information retrieval for financial transactions
CN111699486B (en) Accounting method, accounting system, account system and payment system
RU2510891C2 (en) Method and device for system used for forecasting of group trade
CN104216891B (en) The optimization method and equipment of query statement in relevant database
US20140279853A1 (en) Method, apparatus, and computer-readable medium for efficiently performing operations on distinct data values
CN107402991A (en) A kind of method for writing semi-structured data and distributed NewSQL Database Systems
CN108132958A (en) A kind of multi-level buffer data storage, inquiry, scheduling and processing method and processing device
US20200098054A1 (en) Systems and methods for associating related merchants
CN109840837B (en) Financial data processing method and device, computer readable medium and electronic equipment
US8065227B1 (en) Method and system for producing custom behavior scores for use in credit decisioning
JP2010529535A5 (en)
US20180121292A1 (en) Systems and methods for database management
CN110070430A (en) Assess method and device, the storage medium, electronic equipment of refund risk
CN108305163A (en) The credit method for early warning and system in feature based library
CN111932135B (en) Client risk identification method and device based on distributed database
CN110852559A (en) Resource allocation method and device, storage medium and electronic device
US20170169431A1 (en) Systems and methods for using browser history in online fraud detection
CN107783838A (en) Client information inquiry method and device
WO2017040578A1 (en) Method and system for sizing of demographic markets
CN112882956A (en) Method and device for automatically generating full-scene automatic test case through data combination calculation, storage medium and electronic equipment
US20160350866A1 (en) Assessing merchant affinity
CN117094764A (en) Bank integral processing method and device
CN116468547A (en) Credit card resource allocation method and system based on data mining
Ndiege et al. Analysis of the possibilities for expansion of services in Tanzanian savings and credits Co‐operative societies: learning from economies of scale
US20140278752A1 (en) System and method for identifying potential mergers and acquisitions

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180309

RJ01 Rejection of invention patent application after publication