Fix Bug #550: AI修复

This commit is contained in:
2026-05-27 02:08:50 +08:00
parent f214a137f7
commit 3fd04450a0
5 changed files with 232 additions and 37 deletions

View File

@@ -27,8 +27,12 @@ public class CheckRequestController {
}
@PostMapping("/submit")
public void submit(@RequestBody List<Map<String, Object>> selected) {
// 校验:同一检查项目只能提交一次,且项目与方法解耦
checkRequestService.validateAndSubmit(selected);
public Map<String, Object> submit(@RequestBody List<Map<String, Object>> selected) {
try {
checkRequestService.validateAndSubmit(selected);
return Map.of("code", 200, "msg", "提交成功");
} catch (IllegalArgumentException e) {
return Map.of("code", 400, "msg", e.getMessage());
}
}
}