diff --git a/rating/ReportEtl.py b/rating/ReportEtl.py index b8810bf..a74ba7e 100644 --- a/rating/ReportEtl.py +++ b/rating/ReportEtl.py @@ -41,6 +41,7 @@ class CleanModel: data['公司背景'] = company_background(self.company, self.data) data['股东实力'] = shareholder_strength(self.data) data['对外投资'] = outbound_investment(self.data) + data['业务状况'] = business_status(self.data) data['进出口权'] = import_export(self.data) data['知识产权'] = intellectual_property(self.data) data['资质荣誉'] = qualification_honor(self.data) diff --git a/rating/scripts/esg/environment.py b/rating/scripts/esg/environment.py index 150d8df..0f39aa5 100644 --- a/rating/scripts/esg/environment.py +++ b/rating/scripts/esg/environment.py @@ -335,7 +335,7 @@ def environment_consume_water(param): year_thousand_consume_water = list() for index in range(len(three_year_data)): year_consume_water.append(three_year_data[index]['公司当年耗水(吨)']) - year_thousand_consume_water.append(round(three_year_data[index]['公司当年耗水(吨)'] / income_data[three_year_data[index]['年份']], 2)) + year_thousand_consume_water.append(round(three_year_data[index]['公司当年耗水(吨)'] / income_data[three_year_data[index]['年份']])) # 列表中元素类型float转str year_consume_water_new = [str(x) for x in year_consume_water] year_thousand_consume_water_new = [str(x) for x in year_thousand_consume_water] @@ -351,8 +351,12 @@ def environment_consume_water(param): res['part_02']['consume_water'] = '、'.join(year_thousand_consume_water_new) res['part_02']['year_02'] = three_year_data[1]['年份'] res['part_02']['year_03'] = three_year_data[2]['年份'] - res['part_02']['year01_on_year02'] = round((year_thousand_consume_water[1]/year_thousand_consume_water[0]-1) * 100, 2) - res['part_02']['year02_on_year03'] = round((year_thousand_consume_water[2]/year_thousand_consume_water[1]-1) * 100, 2) + try: + res['part_02']['year01_on_year02'] = round((year_thousand_consume_water[1]/year_thousand_consume_water[0]-1) * 100, 2) + res['part_02']['year02_on_year03'] = round((year_thousand_consume_water[2]/year_thousand_consume_water[1]-1) * 100, 2) + except ZeroDivisionError: + res['part_02']['year01_on_year02'] = '0' + res['part_02']['year02_on_year03'] = '0' res['part_02']['industry_indicators'] = None res['part_02']['industry_indicators_average'] = None res['part_02']['industry_indicators_median'] = None diff --git a/rating/static/attention/describe.json b/rating/static/attention/describe.json index 19f6e4d..45b62e8 100644 --- a/rating/static/attention/describe.json +++ b/rating/static/attention/describe.json @@ -4,7 +4,7 @@ "总资产周转率": "公司总资产周转速度慢,资产利用效率低", "应收账款周转率": "公司应收账款周转率慢,运营资金被占用规模大,资金利用效率低", "存货周转率": "公司存货周转速度慢,货品积压,销售状况欠佳", - "资产负债率": "公司资产负债率过高,整体债务压力大,不利于近一步业务扩展", + "资产负债率": "公司杠杆水平偏高,再融资空间相对有限,不利于近一步业务扩展", "已获利息倍数": "公司利息保障倍数较低,息税前利润较难覆盖利息支出,企业支付利息的能力较弱", "速动比率": "公司资产流动性欠佳,财务弹性低,可立即变现用于偿还流动负债的资产较少", "营业增长率": "公司业务拓展能力和市场占有能力弱,营业收入增长幅度小,发展前景一般",