From 409065d53025df5bb29dc4c9b7351d9a75a5b4a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Thu, 23 Dec 2021 15:02:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=8B=E6=A1=88=E4=BF=A1=E6=81=AF=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E5=88=B0=E7=BB=8F=E8=90=A5=E9=A3=8E=E9=99=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rating/scripts/risk_score.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rating/scripts/risk_score.py b/Rating/scripts/risk_score.py index 0db11a7..54130d7 100644 --- a/Rating/scripts/risk_score.py +++ b/Rating/scripts/risk_score.py @@ -11,7 +11,7 @@ def compliance_risk(param): score = 43 elif param['严重违法'] or param['经营异常'] or param['欠税公告'] or param['税收违法']: score = 33 - elif param['立案信息'] or param['行政处罚'] or param['环保处罚']: + elif param['行政处罚'] or param['环保处罚']: score = 23 else: score = 0 @@ -23,6 +23,7 @@ def management_risk(param): 经营风险打分 """ score = dict() + score['立案信息'] = 10 if param['立案信息'] >= 50 else round(param['立案信息'] * 0.2, 2) score['开庭公告'] = 10 if param['开庭公告'] >= 50 else round(param['开庭公告'] * 0.2, 2) score['被执行人'] = 10 if param['被执行人'] >= 30 else round(param['被执行人'] * 0.33, 2) score['法院公告'] = 5 if param['法院公告'] >= 50 else round(param['法院公告'] * 0.1, 2)