CN108198066A - A kind of financial industry automates charge system - Google Patents
A kind of financial industry automates charge system Download PDFInfo
- Publication number
- CN108198066A CN108198066A CN201711227892.9A CN201711227892A CN108198066A CN 108198066 A CN108198066 A CN 108198066A CN 201711227892 A CN201711227892 A CN 201711227892A CN 108198066 A CN108198066 A CN 108198066A
- Authority
- CN
- China
- Prior art keywords
- rule
- section
- array
- module
- symbol
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/03—Credit; Loans; Processing thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/14—Payment architectures specially adapted for billing systems
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Development Economics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a kind of financial industry automate charge system, present invention mainly solves after loan personnel deduct a percentage provide when according to basic coefficients, borrow after feedback number of days and overdue number of days automatically calculate loan after bonus the problem of.Also the scene that other needs according to all more rules judge calculating can be applied directly to.
Description
Technical field
The present invention relates to a kind of financial industry to automate charge system.
Background technology
Personnel have many performance assessment criteria, such as feedback time, overdue number of days etc. after the loan of financial industry.And these indexs are all
Section, for example, 0 day≤feedback time≤5 day, 5 days<Feedback time≤10 day, 10 days<Feedback time≤15 day, feedback
Time >=15 day etc., the examination coefficient embodied are all different.So need a kind of general scheme and calculate facilitating and
Store these complicated rules.
Most of current implementation is all if-else exhaustives, so uncomfortable flexible increase and decrease and storage normally,
It is also not intuitive enough in displaying.
Invention content
It is adapted to cope with a large amount of complex rule and is allowed to easy use and storage, the invention discloses a kind of finance rows
Industry automates charge system, is counted including page configuration module, front end js Assembly calculations module, backend application memory module and rear end
Calculate module;
The page configuration module is used for configuration rule, and the rule of configuration is calculated as corresponding to by front end js Assembly calculations module
Customized expression, and be transferred to backend application memory module storage, rear end computing module is according to backend application memory module
In customized expression complete calculate, realize automation charging.
The page configuration module configuration rule is as shown in table 1:
Table 1
Wherein, default rule D is used to that coordinate to be avoided to fall except regular section and lead to not match, what the coordinate referred to
It is parameter to be matched, regular section refers to the calculation formula corresponding to the coordinate in a particular range.Such as the rule set
Then section is [0,5]~1, and the parameter coordinate of input is 6, then can not match, and can use the configuration of default rule D at this time.
Front end js Assembly calculations module performs following steps:
Step 1-1 gets regular data from page configuration module;
Step 1-2, with symbol;By rule be divided into array [" D~1.2 ", " [0,5]~0 ", " (5,10)~0.5 ",
" (10,15)~1 "];
Step 1-3, again with operator~be divided into D and 1.2, D represents default scale for the character string of first element of array,
1.2 represent default scale value.Second element of array and element below all represent a rule respectively, per rule parsing side
Method is identical, and operator~as string delimiter.Such as:" [0,5]~0 " is then considered section 0 to 5, is also greater than being equal to
0, less than or equal to 5, coefficient ratio is the number after operator~decollator, that is, 0.If (operator for=, all algorithms
With the computational methods above, only used for by amount of money charging)
Rear end computing module performs following steps:
Step 2-1 extracts latest computed rule by back-end storage module from database;
Step 2-2, according to symbol;Single rule in computation rule is divided into section rule array.As rule " D~
1.2;[0,5]~0;(5,10)~0.5;Be after (10,15)~1 " dividing [" D~1.2 ", " [0,5]~0 ", " (5,10)~
0.5 ", " (10,15)~1 "] array;
Step 2-3, traverse section rule array, first according to regular expression " ^D~d (d { 1,3 })$ " is carried
Take out default rule such as " D~1.2 ", array residue [" [0,5]~0 ", " (5,10)~0.5 ", " (10,15)~1 "], it counts at this time
Group each single item is known as single section rule;
Step 2-4 continues to traverse section rule array, by symbol, divides single section rule, is after dividing such as [0,5]~0
Array [" [0 ", " 5]~0 "], array Section 2 " 5]~0 " continue to divide (~rate ,=Flat Amount) according to operator;
The following partition value of single section rule is respectively put into HashMap by step 2-5 successively:Left section symbol, left end point
Value, right end point value, right section symbol, operator, operation values, be respectively for the regular respective value of [0,5]~0 in single section [, 0,5 ,],
~, 0;
Open and close section symbol is substituted for comparison operator to judge the input parameter i.e. drop point of coordinate by step 2-6, according to
Drop point extracts matched interval arithmetic rule, can not match section then using default rule, the operator of section definition for~
Shi Caiyong rate operations, for=when use Equivalence Operation.
Present invention employs mathematically interval symbol and wave symbol "~", equal to number "=", branch ";" etc. group
The initial " D " of conjunction and Default customized matching formula as default rule can be adapted to all sections rules
Scene.
Advantageous effect:The invention has the advantages that:
1st, evade regular exhaustion, conducive to the terseness of code;
2nd, the rule (for example feedback and overdue number of days are two dimensions after borrowing) of each dimension is using same calculating side
Method, convenient for the flexible increase and decrease and storage of rule;
3rd, business rule is very clear, is configured convenient for business personnel in the page into line discipline
4th, meet generic principles, can steadily apply in other rule adaptation scenes
Description of the drawings
The present invention is done with reference to the accompanying drawings and detailed description and is further illustrated, it is of the invention above-mentioned or
Otherwise advantage will become apparent.
Fig. 1 is page rule configuration schematic diagram.
Fig. 2 is that the rule of configuration is stored to the schematic diagram in database.
Specific embodiment
The present invention will be further described with reference to the accompanying drawings and embodiments.
The invention discloses a kind of financial industry to automate charge system, including page configuration module, front end js component meters
Calculate module, backend application memory module and rear end computing module;
The page configuration module is used for configuration rule, and the rule of configuration is calculated as corresponding to by front end js Assembly calculations module
Customized expression, and be transferred to backend application memory module storage, rear end computing module is according to backend application memory module
In customized expression complete calculate, realize automation charging.
The page configuration module configuration rule is as shown in table 1:
Table 1
Wherein, default rule D is used to that coordinate to be avoided to fall except regular section and lead to not match, what the coordinate referred to
It is parameter to be matched, regular section refers to the calculation formula corresponding to the coordinate in a particular range.Such as the rule set
Then section is [0,5]~1, and the parameter coordinate of input is 6, then can not match, and can use the configuration of default rule D at this time.
Front end js Assembly calculations module performs following steps:
Step 1-1 gets regular data, as shown in Figure 2 from page configuration module;
Step 1-2, with symbol;By rule be divided into array [" D~1.2 ", " [0,5]~0 ", " (5,10)~0.5 ",
" (10,15)~1 "];
Step 1-3, again with operator~be divided into D and 1.2, D represents default scale for the character string of first element of array,
1.2 represent default scale value.Second element of array and element below all represent a rule respectively, per rule parsing side
Method is identical, and operator~as string delimiter.Such as:" [0,5]~0 " is then considered section 0 to 5, is also greater than being equal to
0, less than or equal to 5, coefficient ratio is the number after operator~decollator, that is, 0.If (operator for=, all algorithms
With the computational methods above, only used for by amount of money charging)
Rear end computing module performs following steps:
Step 2-1 extracts latest computed rule by back-end storage module from database;
Step 2-2, according to symbol;Single rule in computation rule is divided into section rule array.As rule " D~
1.2;[0,5]~0;(5,10)~0.5;Be after (10,15)~1 " dividing [" D~1.2 ", " [0,5]~0 ", " (5,10)~
0.5 ", " (10,15)~1 "] array;
Step 2-3, traverse section rule array, first according to regular expression " ^D~d (d { 1,3 })$ " is carried
Take out default rule such as " D~1.2 ", array residue [" [0,5]~0 ", " (5,10)~0.5 ", " (10,15)~1 "], it counts at this time
Group each single item is known as single section rule;
Step 2-4 continues to traverse section rule array, by symbol, divides single section rule, is after dividing such as [0,5]~0
Array [" [0 ", " 5]~0 "], array Section 2 " 5]~0 " continue to divide (~rate ,=Flat Amount) according to operator;Step
The following partition value of single section rule is respectively put into HashMap by rapid 2-5 successively:Left section symbol, left end point value, right endpoint
Value, right section symbol, operator, operation values, be respectively for the regular respective value of [0,5]~0 in single section [, 0,5 ,] ,~, 0;
Open and close section symbol is substituted for comparison operator to judge the input parameter i.e. drop point of coordinate by step 2-6, according to
Drop point is regular to extract matched interval arithmetic, section can not be matched then using default rule, according to the operator of section definition
For~still=it determines using rate operation or Equivalence Operation.
Embodiment
Present system performs following steps:
Step 1, detailed rules are configured in page configuration module, corresponding make by oneself is calculated as by front end js Assembly calculation modules
Adopted expression formula is transferred to backend application;
Step 2, rear end computing module carries out regular expression verification to incoming rule, and verification mode is as follows:
A. by expression formula according to ";" it is divided into array;
B. traverse array, verification verifies regular expression with the presence or absence of default rule " ^D~d (d { 1,3 })
$";
C. acquiescence expression formula one and only one, otherwise can throw exception to front end;
D. array is traversed, whether each regular section of verification is correct, verifies regular expression " ^ [ ([] d 1,
9 }, d { 1,9 } [] )]~d (d { 1,3 })$";
Step 3, the newest rule of backend application memory module storage and to automatically generate a newest id matching;
Step 4, feedback and overdue situation after when deducting a percentage granting according to the loan of credit list, carry in conjunction with principal amount calculating
Into the amount of money, specific calculating is as follows:
A. by computation rule according to ";" by single regular splitting be section rule array;
C. section rule array is traversed;
D. by the single section rule of ", " segmentation, (~rate is divided in segmentation result the right by operator;=Flat Amount);
E. the following partition value of single section rule is respectively put into HashMap, be followed successively by left section symbol, left end point value,
Right end point value, right section symbol, operator, operation values;
F. opening/closing section symbol is substituted for comparison operator to judge the drop point of input parameter (coordinate)
G. matched interval arithmetic rule is extracted according to drop point, section can not be matched and then use default rule.According to area
Between the operator that defines for "~", still "=" is determined using rate operation or Equivalence Operation;
Step 5, if drop point is not or not any section, using Default rules, i.e., " D~1.2 " in example;
Step 6, rear end computing module calculate deduct a percentage the amount of money when directly with general algorithm calculating, it goes without doing any sentences
It is disconnected.
As shown in Figure 1, this refund capital is 10000 yuan, feedback number of days is 6 days, without overdue.Fig. 2 is corresponding
Data store, and each field meaning is as follows:
Field " id ", represents unique number of this rule, and can be regenerated by changing rule every time by No. id, and record is facilitated to advise
Change history then;
Field " add_time " is the addition time of this rule;
Field " base_radio ", for basic coefficient;
Field " feedback_rule " is Feedback Rule;
Field " overdue_rule " is overdue rule;
Then the deduction amount of money is 10000*0.003*0.5*1=15 members after corresponding loan.
The present invention provides a kind of financial industry to automate charge system, implements the method and approach of the technical solution
Very much, the above is only the preferred embodiment of the present invention, it is noted that those skilled in the art are come
It says, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should be regarded as
Protection scope of the present invention.All undefined components in this embodiment can be implemented in the prior art.
Claims (4)
1. a kind of financial industry automates charge system, which is characterized in that including page configuration module, front end js Assembly calculation moulds
Block, backend application memory module and rear end computing module;
The page configuration module be used for configuration rule, front end js Assembly calculations module by the rule of configuration be calculated as it is corresponding from
Expression formula is defined, and is transferred to the storage of backend application memory module, rear end computing module is according in backend application memory module
Customized expression is completed to calculate, and realizes automation charging.
2. system according to claim 1, which is characterized in that the page configuration module configuration rule is as shown in table 1:
Table 1
Wherein, for coordinate to be avoided to fall except regular section and lead to not match, the coordinate refers to treating default rule D
Match parameter, regular section refer to the calculation formula corresponding to the coordinate in a particular range.
3. system according to claim 2, which is characterized in that front end js Assembly calculations module performs following steps:
Step 1-1 gets regular data from page configuration module;
Step 1-2, with symbol;By rule be divided into array [" D~1.2 ", " [0,5]~0 ", " (5,10)~0.5 ", " (10,
15)~1 "];
Step 1-3, again with operator~be divided into D and 1.2, D represents default scale for the character string of first element of array, and 1.2
Represent default scale value, second element of array and element below all represent a rule respectively, per rule analytic method
It is identical, operator~as string delimiter.
4. system according to claim 3, which is characterized in that rear end computing module performs following steps:
Step 2-1 extracts latest computed rule by back-end storage module from database;
Step 2-2, according to symbol;Single rule in computation rule is divided into section rule array;
Step 2-3 traverses section rule array, extracts default rule, and array each single item is known as single section rule at this time;
Step 2-4 continues to traverse section rule array, by symbol, divides single section rule;
The following partition value of single section rule is respectively put into HashMap by step 2-5 successively:Left section symbol, left end point value,
Right end point value, right section symbol, operator, operation values;
Open and close section symbol is substituted for comparison operator to judge the input parameter i.e. drop point of coordinate, according to drop point by step 2-6
Extract matched interval arithmetic rule, section can not be matched then using default rule, the operator of section definition for~when adopt
With rate operation, for=when use Equivalence Operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711227892.9A CN108198066B (en) | 2017-11-29 | 2017-11-29 | Automatic charging system of financial industry |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711227892.9A CN108198066B (en) | 2017-11-29 | 2017-11-29 | Automatic charging system of financial industry |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108198066A true CN108198066A (en) | 2018-06-22 |
CN108198066B CN108198066B (en) | 2021-10-15 |
Family
ID=62573338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711227892.9A Active CN108198066B (en) | 2017-11-29 | 2017-11-29 | Automatic charging system of financial industry |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108198066B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110889752A (en) * | 2019-10-24 | 2020-03-17 | 国网山东省电力公司 | Training tax accounting method, system, medium and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674517A (en) * | 2004-03-24 | 2005-09-28 | 华为技术有限公司 | Method and apparatus for realizing charge metering |
CN101286133A (en) * | 2008-06-02 | 2008-10-15 | 北京邮电大学 | Software test method applying interval operation |
CN102043758A (en) * | 2010-12-30 | 2011-05-04 | 畅捷通软件有限公司 | Method and device for automatically counting numerical values |
CN102063572A (en) * | 2010-12-30 | 2011-05-18 | 用友软件股份有限公司 | Method and device for automatically calculating numerical value |
CN105404497A (en) * | 2015-10-26 | 2016-03-16 | 北京锐安科技有限公司 | Logic expression analysis method and apparatus |
CN106201537A (en) * | 2016-07-18 | 2016-12-07 | 浪潮通用软件有限公司 | A kind of data processing method and device |
CN106408355A (en) * | 2016-11-08 | 2017-02-15 | 济南浪潮高新科技投资发展有限公司 | Method for automatically carrying out formula computing |
CN107220757A (en) * | 2017-05-23 | 2017-09-29 | 上海最会保网络科技有限公司 | A kind of system and method for rule configuration and parsing |
-
2017
- 2017-11-29 CN CN201711227892.9A patent/CN108198066B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674517A (en) * | 2004-03-24 | 2005-09-28 | 华为技术有限公司 | Method and apparatus for realizing charge metering |
CN101286133A (en) * | 2008-06-02 | 2008-10-15 | 北京邮电大学 | Software test method applying interval operation |
CN102043758A (en) * | 2010-12-30 | 2011-05-04 | 畅捷通软件有限公司 | Method and device for automatically counting numerical values |
CN102063572A (en) * | 2010-12-30 | 2011-05-18 | 用友软件股份有限公司 | Method and device for automatically calculating numerical value |
CN105404497A (en) * | 2015-10-26 | 2016-03-16 | 北京锐安科技有限公司 | Logic expression analysis method and apparatus |
CN106201537A (en) * | 2016-07-18 | 2016-12-07 | 浪潮通用软件有限公司 | A kind of data processing method and device |
CN106408355A (en) * | 2016-11-08 | 2017-02-15 | 济南浪潮高新科技投资发展有限公司 | Method for automatically carrying out formula computing |
CN107220757A (en) * | 2017-05-23 | 2017-09-29 | 上海最会保网络科技有限公司 | A kind of system and method for rule configuration and parsing |
Non-Patent Citations (1)
Title |
---|
马京京: ""基于规则的交通物流节点货物自动计费方法研究"", 《PROCEEDINGS OF INTERNATIONAL CONFERENCE ON ENGINEERING AND BUSINESS MANAGEMENT(EBM2012) 》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110889752A (en) * | 2019-10-24 | 2020-03-17 | 国网山东省电力公司 | Training tax accounting method, system, medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108198066B (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107424069A (en) | A kind of generation method of air control feature, risk monitoring and control method and apparatus | |
CN109447622B (en) | Transaction type recommendation method and system and intelligent transaction terminal | |
CN106327196A (en) | Payment threshold acquisition method and device | |
CN107688591A (en) | A kind of actuarial treating method and apparatus | |
CN110347724A (en) | Abnormal behaviour recognition methods, device, electronic equipment and medium | |
CN110020773A (en) | A kind of data processing method, equipment and computer-readable medium | |
CN107742213A (en) | A kind of method of payment, system and terminal | |
CN107784596A (en) | Insurance kind state information statistics method, terminal device and the storage medium of declaration form | |
Hlawatsch et al. | Simulation and estimation of loss given default | |
CN109117475A (en) | A kind of method and relevant device of text rewriting | |
CN107491484A (en) | A kind of data matching method, device and equipment | |
CN105159927B (en) | Method and device for selecting subject term of target text and terminal | |
CN107122482A (en) | A kind of method for project owner recommendation patent agency | |
CN108198066A (en) | A kind of financial industry automates charge system | |
CN111754330A (en) | Interest-counting device and method for regular account to be paid in advance | |
CN107590732A (en) | A kind of business datum calculation method and its equipment, terminal | |
CN108830663B (en) | Electric power customer value evaluation method and system and terminal equipment | |
CN103955854B (en) | A kind of account management device and method | |
CN110515591A (en) | Random digit generation method and device based on block chain | |
CN107193837A (en) | Data summarization method and device | |
CN109872183A (en) | Intelligent Service evaluation method, computer readable storage medium and terminal device | |
CN114186989A (en) | Capital allocation decision method, device, server and storage medium | |
CN109344877A (en) | A kind of sample data processing method, sample data processing unit and electronic equipment | |
CN108763258A (en) | Document subject matter parameter extracting method, Products Show method, equipment and storage medium | |
CN112035681B (en) | Method and device for determining credit card rate information based on knowledge graph |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |