Merge branch 'wsc' into 'master'
Wsc See merge request root/tfse_app_api!4
This commit is contained in:
commit
1badc458ce
|
@ -21,7 +21,7 @@ def company_page(**kwargs):
|
||||||
company_index.table = request.json['table']
|
company_index.table = request.json['table']
|
||||||
if company_index.table != '指标明细':
|
if company_index.table != '指标明细':
|
||||||
info, result = company_index.get_company_data_obj()
|
info, result = company_index.get_company_data_obj()
|
||||||
elif company_index.table == '指标明细':
|
elif company_index.table == '综合评价分析':
|
||||||
info, result = company_index.get_index_detail_obj()
|
info, result = company_index.get_index_detail_obj()
|
||||||
result.pop('企业名称')
|
result.pop('企业名称')
|
||||||
result.pop('综合信用等级')
|
result.pop('综合信用等级')
|
||||||
|
|
|
@ -227,9 +227,7 @@ def exec_general_rating_scripts(cid):
|
||||||
update_data = {
|
update_data = {
|
||||||
"评价结果": json.loads(res.text)['result'],
|
"评价结果": json.loads(res.text)['result'],
|
||||||
"评价时间": time.strftime("%Y-%m-%d", time.localtime()),
|
"评价时间": time.strftime("%Y-%m-%d", time.localtime()),
|
||||||
"进行状态": "完成",
|
"进行状态": "完成"
|
||||||
"报告fid": None,
|
|
||||||
"证书fid": None
|
|
||||||
}
|
}
|
||||||
update_rating_records({"评价ID": rid}, update_data)
|
update_rating_records({"评价ID": rid}, update_data)
|
||||||
return True
|
return True
|
||||||
|
@ -239,3 +237,11 @@ def exec_general_rating_scripts(cid):
|
||||||
# 生成报告
|
# 生成报告
|
||||||
def gen_report():
|
def gen_report():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# 生成证书
|
||||||
|
def gen_certified():
|
||||||
|
pass
|
||||||
|
|
||||||
|
# 生成企业主页数据
|
||||||
|
def company_index():
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue