mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
dee355b4a7
- artifacts/decompiled 树与相关源码变更 - maven-cw-elevator-application 业务 docs 与 package-info - scripts 下 formatter 校验与辅助脚本 - 其他子工程/接口与发布线一并纳入版本控制 Made-with: Cursor Former-commit-id: e102e8cab64e575bcd23c9a66a598aa1892bb492
1.7 KiB
1.7 KiB
06 导出、下载与存储(export / downloadcenter / storage)
6.1 异步导出 export
- 抽象基类:
AcsAbstractExportAsyncService—— 泛型封装 分页拉取 → 转 Excel 行 DTO → 与下载中心协作。 - 实现示例:
ElevatorDeviceExportService- 注入
AcsElevatorDeviceService#get取设备分页。 - 在
queryPage中将 DTO 转为ElevatorDeviceRecordExcelResult,并翻译 在线/禁用 等展示中文。
- 注入
典型时序(概念):
sequenceDiagram
participant User as 用户/任务
participant E as ElevatorDeviceExportService
participant D as AcsElevatorDeviceService
participant DC as 下载中心
User->>E: 触发导出任务
loop 分页
E->>D: get(查询+分页)
D-->>E: 行数据
end
E->>DC: 完成文件/回写状态
6.2 下载中心 AcsDownloadCenterService
| 方法 | 概要 |
|---|---|
createDownload |
创建下载任务/令牌 |
finishDownload |
任务完成回执 |
queryDownloadStatus |
轮询或查询状态 |
实现类:downloadcenter/impl/AcsDownloadCenterServiceImpl.java(以源码为准)。
6.3 分片文件 AcsFileStorageService(storage)
| 方法 | 概要 |
|---|---|
filePartInit / filePartAppend / filePartFinish |
DaVinci/门户 分片上传 生命周期 |
getFileBase64 |
按 id 回读为 Base64 |
6.4 ER/依赖(导出子域)
flowchart LR
Export[导出任务] --> Abs[AcsAbstractExportAsyncService]
Abs --> Svc[具体领域 Service 如 设备]
Abs --> Download[AcsDownloadCenterService]
Storage[AcsFileStorageService] -.大文件.-> 门户