Files
ccdi/assets/项目异步文件上传/task.md
2026-03-04 15:19:55 +08:00

10 lines
777 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 项目异步文件上传功能
## 数据库
- 文件上传记录表记录项目下所有文件的上传记录。项目id流水分析平台的项目id文件id文件名称文件大小文件状态上传中、解析中、解析成功、解析失败主体名称主体证件号上传时间上传人
## 流程
- 在项目详情的上传数据页面,点击流水导入的上传流水按钮
- 批量选择文件,点击确认
- 每个文件都需要调接口传输到流水分析平台。建一个线程池,然后每个文件一个线程进行异步处理。处理流程如下
1. 在文件上传表中插入一条该文件的记录,关联文件与项目,此时文件状态为上传中
2. 调用流水分析平台的上传文件接口,