From 99ab259eb4178832ffcf2cef7a2e2d9df2e7ca79 Mon Sep 17 00:00:00 2001 From: P3ngSaM <61768364+P3ngSaM@users.noreply.github.com> Date: Fri, 6 May 2022 10:35:53 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=B4=A2=E5=8A=A1=E5=88=86=E6=9E=90bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Implements/Company/IndexImpl.py | 4 ++-- Objects/Common/Company/FECRCompany.py | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Implements/Company/IndexImpl.py b/Implements/Company/IndexImpl.py index 60447dd..a644a99 100644 --- a/Implements/Company/IndexImpl.py +++ b/Implements/Company/IndexImpl.py @@ -179,7 +179,7 @@ class CompanyIndexImpl(CompanyIndex): "企业数据", "财务要素分析", {"企业ID": self.cid}, - ["评价ID", '更新日期', "财报期", "财务得分年度比较", "财务得分同行比较", "财务得分较去年变化", "财务得分较同行差异", "指标详情"], + ["评价ID", '更新时间', "财报期", "财务得分年度比较", "财务得分同行比较", "财务得分较去年变化", "财务得分较同行差异", "指标详情"], {"更新日期": -1} ) @@ -189,7 +189,7 @@ class CompanyIndexImpl(CompanyIndex): financial_analysis.rid = result['评价ID'] financial_analysis.report_date = result['财报期'] - financial_analysis.update_time = result['更新日期'] + financial_analysis.update_time = result['更新时间'] for item in result['财务得分年度比较']: item["指标"] = self.dict_to_set(instance=instance.CompareToYears.FinancialIndex, data=item['指标']) diff --git a/Objects/Common/Company/FECRCompany.py b/Objects/Common/Company/FECRCompany.py index d3167f4..fafbc4b 100644 --- a/Objects/Common/Company/FECRCompany.py +++ b/Objects/Common/Company/FECRCompany.py @@ -215,10 +215,10 @@ class FinancialElementsAnalysis(SpecObject): class FinancialIndex(SpecObject): """财务指标""" - profit_ability = ValidateAttr(field='profit_ability', type=[int, float]) - asset_quality = ValidateAttr(field='asset_quality', type=[int, float]) - debt_risk = ValidateAttr(field='debt_risk', type=[int, float]) - business_growth = ValidateAttr(field='business_growth', type=[int, float]) + profit_ability = ValidateAttr(field='profit_ability', type=[int, float, str]) + asset_quality = ValidateAttr(field='asset_quality', type=[int, float, str]) + debt_risk = ValidateAttr(field='debt_risk', type=[int, float, str]) + business_growth = ValidateAttr(field='business_growth', type=[int, float, str]) fields_map = { "profit_ability": "盈利能力", @@ -240,10 +240,10 @@ class FinancialElementsAnalysis(SpecObject): class FinancialIndex(SpecObject): """财务指标""" - profit_ability = ValidateAttr(field='profit_ability', type=[int, float]) - asset_quality = ValidateAttr(field='asset_quality', type=[int, float]) - debt_risk = ValidateAttr(field='debt_risk', type=[int, float]) - business_growth = ValidateAttr(field='business_growth', type=[int, float]) + profit_ability = ValidateAttr(field='profit_ability', type=[int, float, str]) + asset_quality = ValidateAttr(field='asset_quality', type=[int, float, str]) + debt_risk = ValidateAttr(field='debt_risk', type=[int, float, str]) + business_growth = ValidateAttr(field='business_growth', type=[int, float, str]) fields_map = { "profit_ability": "盈利能力",