日报添加字段

This commit is contained in:
Administrator 2023-08-06 23:22:06 +08:00
parent 94152a51d5
commit d28dc8ce6b
1 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ def daily_export_to_pdf(req: DailySchemas.DailyExportToPdfReq, db: Session = Dep
elif item.type.name == '行业信息专题分析':
daily_items['行业信息专题分析'].append(daily_item)
with open(Path(os.getcwd() + "\\Config\\word_data_temp.json"), encoding='utf-8') as f:
with open(Path(os.getcwd()) / "Config" / "word_data_temp.json", encoding='utf-8') as f:
temp = json.load(f)
department_id = [item.id for item in db.query(Department).filter(Department.type == '董监高')]
leaders = db.query(User).filter(or_(*[func.find_in_set(str(d_id), User.department) for d_id in department_id]))
@ -249,7 +249,7 @@ def daily_export_to_pdf(req: DailySchemas.DailyExportToPdfReq, db: Session = Dep
"""
根据高管名称部门数据生成日报模板
"""
with open(Path(os.getcwd() + "\\Config\\word_data_template.json"), encoding='utf-8') as f:
with open(Path(os.getcwd()) / "Config" / "word_data_template.json", encoding='utf-8') as f:
template = json.load(f)
def list_write_docx(write_list, tep_doc):