feat: 在导入流程中添加员工ID批量验证
在数据处理循环前添加员工ID存在性验证阶段,提前标记无效员工ID的记录
This commit is contained in:
@@ -60,6 +60,9 @@ public class CcdiStaffTransferImportServiceImpl implements ICcdiStaffTransferImp
|
|||||||
List<CcdiStaffTransfer> newRecords = new ArrayList<>();
|
List<CcdiStaffTransfer> newRecords = new ArrayList<>();
|
||||||
List<StaffTransferImportFailureVO> failures = new ArrayList<>();
|
List<StaffTransferImportFailureVO> failures = new ArrayList<>();
|
||||||
|
|
||||||
|
// 批量验证员工ID是否存在
|
||||||
|
Set<Long> existingStaffIds = batchValidateStaffIds(excelList, taskId, failures);
|
||||||
|
|
||||||
// 批量查询已存在的唯一键组合
|
// 批量查询已存在的唯一键组合
|
||||||
Set<String> existingKeys = getExistingTransferKeys(excelList);
|
Set<String> existingKeys = getExistingTransferKeys(excelList);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user