A method for processing derivative variables of the second-generation credit report

By analyzing the use cases of credit reports and combining stack technology and the SpEl language, the logic for processing derived variables is automatically configured, which solves the problems of computational complexity and errors caused by manual and hard-coded methods, achieves flexible configuration and accuracy, and reduces development costs and risks.

CN112883689BActive Publication Date: 2024-11-19SUNING CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011353272.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-11-19
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

The current processing of derived variables in credit reports mainly relies on manual or hard coding, which leads to complex calculations and is prone to errors, posing risks to credit approval.

Method used

It adopts analysis and classification based on credit reports, combines standard calculation expressions defined by stack technologies, and automatically calls and configures the processing logic of derived variables through Spring Expression Language (SpE1). It uses XML configuration expressions to realize requirement changes, captures exceptions and assigns default values.

Benefits of technology

It enables flexible configuration and accuracy in the processing of derived variables, reduces development costs, lowers operational risks, and improves the rigor and efficiency of calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112883689B_ABST
    Figure CN112883689B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for processing derivative variables of the second-generation credit report of credit investigation, step 1, based on the credit report, combined with the use scenarios of the derivative variables of the credit report in the existing credit process, analyze and classify; step 2, combined with the stack technology, the commonly used calculation logic is fixed and defined as a standard calculation expression; step 3, based on the standard calculation expression, the processing logic of the derivative variables is configured. Code development is reduced, and developers only need to focus on the implementation of business logic. If the requirements change, the general logic only needs to modify the configuration of the xml expression to ensure the accuracy and rigor of the indicator calculation and avoid operational risks. If the variables with complex logic cannot be output through configuration, the calculation expression can be customized to expand the existing expression library, which is convenient for subsequent derivative variable processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of credit investigation data processing, and specifically relates to a method for processing derivative variables of a second-generation credit report. Background Art

[0002] At present, the processing method of derivative variables of the People's Bank of China's credit report is mainly achieved manually or through hard-coded calculation methods. Due to the large amount of credit information and the complex calculation logic of derivative variables, manual or hard-coded methods are quite difficult and prone to errors. Errors in the calculation of key derivative variables will lead to major risks in credit approval. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a method for processing derivative variables of the second-generation credit report index in view of the deficiencies of the above-mentioned prior art.

[0004] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:

[0005] A method for processing derivative variables of a second-generation credit report, characterized by comprising:

[0006] Step 1: Based on the credit report, analyze and classify the usage scenarios of the credit report derivative variables in the existing credit process;

[0007] Step 2: Combine the stack technology to solidify the common calculation logic and define it as a standard calculation expression;

[0008] Step 3: Configure the processing logic of the derived variables based on the standard calculation expression.

[0009] To optimize the above technical solutions, the specific measures taken also include:

[0010] The above configuration implements the requirement change by modifying the XML expression through common logic.

[0011] The above processing logic is configured in the form of an expression in XML. Each node in XML corresponds to an indicator, and each node contains multiple elements: the indicator encapsulates the key, default value, abnormal value and threshold range of the map.

[0012] The backend reads XML and parses the elements of each node in turn. The parsed expression is automatically called and the result is returned by using the Spel expression.

[0013] Spring Expression Language (SpEl for short), SpEl is a powerful expression language that supports querying and manipulating runtime object navigation graphs.

[0014] The parsed key values ​​are encapsulated in map in turn;

[0015] The method that needs to complete the calculation logic. The method name is configured in the XML expression and Spel automatically calls it.

[0016] The above-mentioned methods that need to complete the calculation logic include methods for processing time differences and methods for calculating addition, subtraction, multiplication and division.

[0017] For methods that need to complete calculation logic, multiple methods can be applied in the XML expression.

[0018] Exceptions must be caught in each method that needs to complete the calculation logic. If there are exceptions, default values ​​are assigned in the outer layer of spel.

[0019] The calculated indicator results are encapsulated in a map through a common method.

[0020] The present invention has the following beneficial effects:

[0021] The present invention is based on the credit report, and analyzes and classifies the usage scenarios of the derived variables of the credit report in the existing credit process. In combination with the stack technology, the commonly used calculation logic is fixed and defined as a standard calculation expression. The processing logic of each derived variable can be flexibly configured by using the existing expression to reduce code development. Developers only need to focus on the implementation of business logic. If the requirements change, the general logic only needs to modify the configuration of the xml expression to ensure the accuracy and rigor of the indicator calculation and avoid operational risks. If the variable with more complex logic cannot be output through configuration, the calculation expression can be customized to expand the existing expression library to facilitate subsequent derived variable processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a schematic diagram of the process of the present invention;

[0023] Figure 2 It is the application architecture diagram of the present invention;

[0024] Figure 3 It is a diagram of an embodiment of the present invention;

[0025] Figure 4 It is a configuration description of an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.

[0027] See also Figure 1 The present invention provides a method for processing derivative variables of a second-generation credit report, comprising:

[0028] Step 1: Based on the credit report, analyze and classify the usage scenarios of the credit report derivative variables in the existing credit process;

[0029] Step 2: Combine the stack technology to solidify the common calculation logic and define it as a standard calculation expression;

[0030] Step 3: Configure the processing logic of the derived variables based on the standard calculation expression.

[0031] The embodiment also includes: modifying the configuration of the xml expression through general logic to realize the demand change.

[0032] In the embodiment, the processing logic is configured in the form of an expression in XML, and each node in XML corresponds to an indicator, wherein each node contains multiple elements: the indicator encapsulates elements such as the key, default value, abnormal value and threshold interval of the map.

[0033] See also Figure 2-4 In the embodiment, the backend reads the XML and parses the elements of each node in turn. The parsed expression is automatically called and the result is returned by using the Spel expression;

[0034] The parsed key values ​​are encapsulated in map in turn;

[0035] The method that needs to complete the calculation logic, such as the method for processing time difference, the method for calculating addition, subtraction, multiplication and division, the method name is configured in the XML expression, and Spel automatically calls it.

[0036] In the embodiment, for methods that need to complete calculation logic, multiple methods can be applied in the XML expression.

[0037] In the embodiment, exceptions need to be caught in each method that needs to complete the calculation logic, and if there are exceptions, default values ​​are assigned in the outer layer of spel.

[0038] In the embodiment, the calculated index results are encapsulated in a map through a common method.

[0039] The present invention has stable operation, high indicator accuracy, reduced normal development manpower input, and greatly reduced development and maintenance costs for developers.

[0040] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.

Claims

1. A method for processing derivative variables of a second-generation credit report, characterized in that: include: Step 1: Based on the credit report, analyze and classify the usage scenarios of the credit report derivative variables in the existing credit process; Step 2: Combine the stack technology to solidify the common calculation logic and define it as a standard calculation expression; Step 3: Based on the standard calculation expression, configure the processing logic of the derived variables; The processing logic is configured in the form of an expression in XML. Each node in XML corresponds to an indicator, wherein each node contains multiple elements: the indicator encapsulates the key, default value, abnormal value and threshold interval of the map; The backend reads XML and parses the elements of each node in turn. The parsed expression is automatically called and the result is returned by using the Spel expression. The parsed key values ​​are encapsulated in map in turn; The method that needs to complete the calculation logic, the method name is configured in the XML expression, and Spel automatically calls it; The method to complete the calculation logic includes a method for processing time difference and a method for calculating addition, subtraction, multiplication and division; For methods that need to complete calculation logic, multiple methods can be applied in the XML expression; Exceptions must be caught in each method that needs to complete the calculation logic. If there are any exceptions, default values ​​are assigned to the outer layer of spel. It also includes: implementing demand changes by modifying the configuration of XML expressions through common logic.

2. A method for processing derivative variables of a second-generation credit report according to claim 1, characterized in that: The calculated indicator results are encapsulated in a map through a common method.