update 财务分析bug

This commit is contained in:
P3ngSaM 2022-05-06 10:35:53 +08:00
parent ad137f9a1e
commit 99ab259eb4
2 changed files with 10 additions and 10 deletions

View File

@ -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['指标'])

View File

@ -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": "盈利能力",