fix: 员工ID验证错误信息添加行号

This commit is contained in:
wkc
2026-02-11 15:48:30 +08:00
parent 9e3609b8ad
commit aaa6256735

View File

@@ -103,7 +103,8 @@ public class CcdiStaffTransferImportServiceImpl implements ICcdiStaffTransferImp
// 员工ID存在性检查
if (excel.getStaffId() != null && !existingStaffIds.contains(excel.getStaffId())) {
throw new RuntimeException(String.format(
"员工ID %s 不存在", excel.getStaffId()));
"第%d行: 员工ID %s 不存在",
i + 1, excel.getStaffId()));
}
// 转换为AddDTO进行验证