feat(tools): 新增电能质量数据补录工具模块
- 添加 add-data 子模块提供批量补数能力 - 实现任务预估、创建、状态查询和模板规则查询接口 - 集成异步执行、批量写入和内存态任务状态管理功能 - 更新 tools 模块聚合配置包含新子模块 - 添加详细模块说明文档和架构设计文档 - 修改调试文件路径配置指向实际测试文件位置
This commit is contained in:
@@ -7,22 +7,36 @@
|
||||
当前真实保留的子模块有:
|
||||
|
||||
- `activate-tool`
|
||||
- `add-data`
|
||||
- `mms-mapping`
|
||||
- `wave-tool`
|
||||
|
||||
因此,`tools` 现阶段仍然是聚合模块,但当前已实际承载激活工具、ICD/MMS 映射工具和波形查看工具三个子模块。
|
||||
因此,`tools` 现阶段仍然是聚合模块,但当前已实际承载激活工具、电能质量数据补录工具、ICD/MMS 映射工具和波形查看工具四个子模块。
|
||||
|
||||
## 当前结构
|
||||
|
||||
```text
|
||||
tools/
|
||||
├── activate-tool/
|
||||
├── add-data/
|
||||
├── mms-mapping/
|
||||
└── wave-tool/
|
||||
```
|
||||
|
||||
其中 `tools/mms-mapping` 当前 Maven `artifactId` 为 `mms-mapping`。
|
||||
|
||||
## add-data 的职责
|
||||
|
||||
`add-data` 当前已提供电能质量数据批量补录能力,包含:
|
||||
|
||||
- 任务预估接口
|
||||
- 任务创建接口
|
||||
- 任务状态查询接口
|
||||
- 模板规则查询接口
|
||||
- 异步执行、批量写入和内存态任务状态管理
|
||||
|
||||
模块内部已按职责拆分 `controller`、`service`、`service/impl`、`component`、`pojo`、`config` 和 `util`,并通过 `JdbcTemplate + INSERT IGNORE` 执行批量补数。
|
||||
|
||||
## activate-tool 的职责
|
||||
|
||||
`activate-tool` 当前提供的能力主要围绕设备授权与许可证:
|
||||
@@ -76,7 +90,7 @@ tools/
|
||||
|
||||
## 依赖关系
|
||||
|
||||
`tools/activate-tool`、`tools/mms-mapping` 与 `tools/wave-tool` 当前主要依赖:
|
||||
`tools/activate-tool`、`tools/add-data`、`tools/mms-mapping` 与 `tools/wave-tool` 当前主要依赖:
|
||||
|
||||
- `com.njcn:njcn-common`
|
||||
- `com.njcn:spingboot2.3.12`
|
||||
|
||||
Reference in New Issue
Block a user