fix: 员工ID验证错误信息添加行号
This commit is contained in:
@@ -103,7 +103,8 @@ public class CcdiStaffTransferImportServiceImpl implements ICcdiStaffTransferImp
|
|||||||
// 员工ID存在性检查
|
// 员工ID存在性检查
|
||||||
if (excel.getStaffId() != null && !existingStaffIds.contains(excel.getStaffId())) {
|
if (excel.getStaffId() != null && !existingStaffIds.contains(excel.getStaffId())) {
|
||||||
throw new RuntimeException(String.format(
|
throw new RuntimeException(String.format(
|
||||||
"员工ID %s 不存在", excel.getStaffId()));
|
"第%d行: 员工ID %s 不存在",
|
||||||
|
i + 1, excel.getStaffId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 转换为AddDTO进行验证
|
// 转换为AddDTO进行验证
|
||||||
|
|||||||
Reference in New Issue
Block a user