Fix Bug #550: AI修复

This commit is contained in:
2026-05-27 02:12:06 +08:00
parent 80e77c043b
commit 62ba4772ef
3 changed files with 113 additions and 136 deletions

View File

@@ -39,7 +39,7 @@ public class CheckRequestServiceImpl implements CheckRequestService {
return;
}
// 1. 前端是否传入了重复的 item_code
// 1. 检查前端是否传入了重复的 item_code
List<String> duplicateCodes = selected.stream()
.collect(Collectors.groupingBy(item -> (String) item.get("itemCode")))
.entrySet().stream()
@@ -61,7 +61,7 @@ public class CheckRequestServiceImpl implements CheckRequestService {
throw new IllegalArgumentException("以下项目已存在待处理申请,请勿重复提交: " + alreadyPending);
}
// 3. 批量入库(项目与方法解耦,仅保存主项目记录,方法明细由前端独立组装或另表关联
// 3. 批量插入申请记录解耦明细仅保存主项与关联方法ID
checkRequestMapper.batchInsertCheckRequests(selected);
}
}