报告数据清洗

This commit is contained in:
wcq 2023-08-16 16:59:57 +08:00
parent 3962198604
commit 95d03fba02
1 changed files with 3 additions and 3 deletions

View File

@ -278,12 +278,12 @@ def load_report_need_data(db: Session, rate_id):
'changeItem'] + f':由"{item["contentBefore"]}"变更为"{item["contentAfter"]}"' for item in 'changeItem'] + f':由"{item["contentBefore"]}"变更为"{item["contentAfter"]}"' for item in
工商信息['changeList'] if 工商信息['changeList'] if
item['changeItem'] and item['contentAfter'] and item['contentBefore']])) + " ")[1:] if 工商信息 else "--", item['changeItem'] and item['contentAfter'] and item['contentBefore']])) + " ")[1:] if 工商信息 else "--",
"股权结构": "\n".join([f"{item['name']}认缴出资{item['amount']},出资比例{item['percent']}" for item in "股权结构": "\n\t\t".join([f"{item['name']}认缴出资{item['amount']},出资比例{item['percent']}" for item in
股权结构图['structure']['children']]) if 股权结构图 else '--', 股权结构图['structure']['children']]) if 股权结构图 else '--',
"销售人数": man_data["销售人员人数"], "销售人数": man_data["销售人员人数"],
"销售占比": str(int(man_data["销售人员人数"] / man_data["年末员工总数"] * 100))+'%', "销售占比": str(int(man_data["销售人员人数"] / man_data["年末员工总数"] * 100))+'%',
"技术服务人数": "--", "技术服务人数": "0",
"技术服务占比": "--", "技术服务占比": "0%",
"生产人数": man_data.get("生产人数","--"), "生产人数": man_data.get("生产人数","--"),
"生产占比": str(int(man_data.get("生产人数",0) / man_data["年末员工总数"] * 100))+'%', "生产占比": str(int(man_data.get("生产人数",0) / man_data["年末员工总数"] * 100))+'%',
"管职人数": str(man_data["管理人员人数"] + man_data["职能人员人数"]), "管职人数": str(man_data["管理人员人数"] + man_data["职能人员人数"]),