From f22d77882bd07f8c0f0b43ffec6d07ae186603f6 Mon Sep 17 00:00:00 2001 From: P3ngSaM <61768364+P3ngSaM@users.noreply.github.com> Date: Wed, 9 Feb 2022 16:37:24 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=A3=8E=E9=99=A9=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rating/scripts/risk_score.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rating/scripts/risk_score.py b/Rating/scripts/risk_score.py index 559fe0c..87c3469 100644 --- a/Rating/scripts/risk_score.py +++ b/Rating/scripts/risk_score.py @@ -32,7 +32,8 @@ def management_risk(param): score['股权出质'] = 5 if param['股权出质'] >= 10 else round(param['股权出质'] * 0.5, 2) score['法人变更'] = 1.5 if param['法人变更'] >= 10 else round(param['法人变更'] * 0.15, 2) score['主要成员变更'] = 1.5 if param['主要成员变更'] >= 10 else round(param['主要成员变更'] * 0.15, 2) - score['合计'] = round(sum(score.values()), 2) + total_score = round(sum(score.values()), 2) + score['合计'] = 10 if total_score > 10 else total_score return score @@ -45,6 +46,7 @@ def peripheral_risk(param): score['周边风险']['高风险'] = 5 if param['周边风险']['高风险'] >= 25 else round(param['周边风险']['高风险'] * 0.2, 2) score['周边风险']['警示'] = 5 if param['周边风险']['警示'] >= 50 else round(param['周边风险']['警示'] * 0.1, 2) score['周边风险']['合计'] = sum(score['周边风险'].values()) - score['合计'] = score['周边风险']['合计'] + total_score = sum(score['周边风险'].values()) + score['合计'] = 10 if total_score > 10 else total_score return score