feat: 在导入流程中添加员工ID批量验证

在数据处理循环前添加员工ID存在性验证阶段,提前标记无效员工ID的记录
This commit is contained in:
wkc
2026-02-11 13:45:18 +08:00
parent e95abccf5d
commit bf4b7107a4

View File

@@ -60,6 +60,9 @@ public class CcdiStaffTransferImportServiceImpl implements ICcdiStaffTransferImp
List<CcdiStaffTransfer> newRecords = new ArrayList<>();
List<StaffTransferImportFailureVO> failures = new ArrayList<>();
// 批量验证员工ID是否存在
Set<Long> existingStaffIds = batchValidateStaffIds(excelList, taskId, failures);
// 批量查询已存在的唯一键组合
Set<String> existingKeys = getExistingTransferKeys(excelList);