Merge branch 'wsc' into 'master'

Wsc

See merge request root/tfse_app_api!4
This commit is contained in:
王思川 2021-12-27 08:51:18 +00:00
commit 1badc458ce
2 changed files with 10 additions and 4 deletions

View File

@ -21,7 +21,7 @@ def company_page(**kwargs):
company_index.table = request.json['table']
if company_index.table != '指标明细':
info, result = company_index.get_company_data_obj()
elif company_index.table == '指标明细':
elif company_index.table == '综合评价分析':
info, result = company_index.get_index_detail_obj()
result.pop('企业名称')
result.pop('综合信用等级')

View File

@ -227,9 +227,7 @@ def exec_general_rating_scripts(cid):
update_data = {
"评价结果": json.loads(res.text)['result'],
"评价时间": time.strftime("%Y-%m-%d", time.localtime()),
"进行状态": "完成",
"报告fid": None,
"证书fid": None
"进行状态": "完成"
}
update_rating_records({"评价ID": rid}, update_data)
return True
@ -239,3 +237,11 @@ def exec_general_rating_scripts(cid):
# 生成报告
def gen_report():
pass
# 生成证书
def gen_certified():
pass
# 生成企业主页数据
def company_index():
pass