报告数据清洗
This commit is contained in:
parent
f117deb059
commit
ee4b186347
|
@ -58,4 +58,5 @@ token = 32737167-cb63-4ce9-9397-d66169488f51
|
||||||
token = 92229502BD4C4B3E934607D4C1C5E711
|
token = 92229502BD4C4B3E934607D4C1C5E711
|
||||||
|
|
||||||
[rate_utils]
|
[rate_utils]
|
||||||
host = http://139.9.249.34:8010
|
;host = http://139.9.249.34:8010
|
||||||
|
host = http://139.9.155.218:8010
|
||||||
|
|
|
@ -246,7 +246,7 @@ def load_report_need_data(db: Session, rate_id):
|
||||||
"月份": f"{datetime.now().month}",
|
"月份": f"{datetime.now().month}",
|
||||||
"报告编号": "中小商协[2023]0111号",
|
"报告编号": "中小商协[2023]0111号",
|
||||||
"信用级别": rate_res.data.评级结果.级别,
|
"信用级别": rate_res.data.评级结果.级别,
|
||||||
"证书编码": f"{datetime.now.strftime('%y%m%d')}{str(rate_id).rjust(6, '0')}",
|
"证书编码": f"{datetime.now().strftime('%y%m%d')}{str(rate_id).rjust(6, '0')}",
|
||||||
"有效日期": f"{item.rate_time.strftime('%Y%m%d')}至{(datetime.fromtimestamp(item.rate_time.timestamp()).replace(year=item.rate_time.year + 3) - timedelta(days=1)).strftime('%Y%m%d')}",
|
"有效日期": f"{item.rate_time.strftime('%Y%m%d')}至{(datetime.fromtimestamp(item.rate_time.timestamp()).replace(year=item.rate_time.year + 3) - timedelta(days=1)).strftime('%Y%m%d')}",
|
||||||
"通知书日期": item.rate_time.strftime('%Y%m%d'),
|
"通知书日期": item.rate_time.strftime('%Y%m%d'),
|
||||||
"申明日期": item.rate_time.strftime('%Y%m%d'),
|
"申明日期": item.rate_time.strftime('%Y%m%d'),
|
||||||
|
@ -265,7 +265,7 @@ def load_report_need_data(db: Session, rate_id):
|
||||||
"法定代表人": 工商信息['legalPersonName'] if 工商信息 else '--',
|
"法定代表人": 工商信息['legalPersonName'] if 工商信息 else '--',
|
||||||
"经营地址": 工商信息['regLocation'],
|
"经营地址": 工商信息['regLocation'],
|
||||||
"邮政编码": 工商信息['reportList'][0]['postcode'] if 工商信息 and 工商信息['reportList'] else '--',
|
"邮政编码": 工商信息['reportList'][0]['postcode'] if 工商信息 and 工商信息['reportList'] else '--',
|
||||||
"联系人": man_data['联系人'],
|
"联系人": man_data['联系人名称'],
|
||||||
"联系电话": 工商信息["phoneNumber"] if 工商信息 else '--',
|
"联系电话": 工商信息["phoneNumber"] if 工商信息 else '--',
|
||||||
"传真号码": 工商信息['reportList'][0]['phoneNumber'] if 工商信息 and 工商信息['reportList'] else '--',
|
"传真号码": 工商信息['reportList'][0]['phoneNumber'] if 工商信息 and 工商信息['reportList'] else '--',
|
||||||
"电子邮箱": 工商信息['email'] if 工商信息['reportList'] else '--',
|
"电子邮箱": 工商信息['email'] if 工商信息['reportList'] else '--',
|
||||||
|
|
Loading…
Reference in New Issue