fix: 修复异步方法返回类型不兼容问题

将@Async方法的返回类型从String改为CompletableFuture<ImportResultVO>,
并使用CompletableFuture.completedFuture()立即返回已完成的Future,
既符合@Async的要求,又能实现立即返回的效果。

修改文件:
- ICcdiEmployeeService.java: 更新接口返回类型
- CcdiEmployeeServiceImpl.java: 使用CompletableFuture.completedFuture()
- CcdiEmployeeController.java: 调用future.get()获取结果(不会阻塞)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
wkc
2026-02-06 09:59:30 +08:00
parent 20bead7ddf
commit 50ac577297
5 changed files with 19 additions and 13 deletions

View File

@@ -82,7 +82,9 @@
"Bash(git reset:*)",
"Skill(xlsx)",
"mcp__chrome-devtools__evaluate_script",
"Skill(superpowers:using-git-worktrees)"
"Skill(superpowers:using-git-worktrees)",
"Bash(git -C D:ccdiccdi show 97bb899 --stat)",
"Bash(git show:*)"
]
},
"enabledMcpjsonServers": [