changes 报告模板
This commit is contained in:
parent
4f92c47b2e
commit
30537041ab
|
@ -677,7 +677,7 @@ async def func(schemas: ReportSchemas.SearchReportFlowReqBody, db: Session = Dep
|
|||
|
||||
file = "{}信用评级报告初稿.docx".format(rf_item.company)
|
||||
file_path = os.getcwd() + "\\Utils\\File\\generate\\" + file
|
||||
return FileResponse(file_path, filename=file)
|
||||
return FileResponse(file_path, filename=file, media_type='application/vnd.openxmlformats-officedocument.wordprocessingml.document')
|
||||
|
||||
|
||||
@router.post("/download", summary="下载word报告", tags=["报告生成"])
|
||||
|
|
Loading…
Reference in New Issue