实现历史项目导入任务提交流程

This commit is contained in:
wkc
2026-03-29 09:49:44 +08:00
parent eb0d896114
commit b098d4eed1
7 changed files with 180 additions and 3 deletions

View File

@@ -34,3 +34,11 @@
- 扩展 `ICcdiProjectService``CcdiProjectController``CcdiProjectServiceImpl`,补齐 `/ccdi/project/history``/ccdi/project/import` 最小接口骨架
- 新增控制器契约测试与导入返回结构测试,锁定真实接口路径和“项目创建成功”返回数据
- 验证命令:`mvn -pl ccdi-project -am -Dtest=CcdiProjectControllerContractTest,CcdiProjectControllerTest -Dsurefire.failIfNoSpecifiedTests=false test`
### 2026-03-29 Task 3 后端提交流程接通
- 新增 `ICcdiProjectHistoryImportService``CcdiProjectHistoryImportServiceImpl`,作为历史项目导入的异步编排入口
-`CcdiProjectMapper`/XML 增加 `selectHistoryProjects`,固定查询状态 `1/2` 并支持项目名模糊搜索
-`CcdiProjectServiceImpl#importFromHistory` 改为“创建项目后注册 `afterCommit` 回调”,事务提交后再调用 `historyImportService.submitImport(...)`
-`CcdiProjectServiceImplTest` 中新增历史项目列表查询与事务后提交流程测试
- 验证命令:`mvn -pl ccdi-project -am -Dtest=CcdiProjectServiceImplTest,CcdiProjectControllerTest -Dsurefire.failIfNoSpecifiedTests=false test`