feat: 主循环跳过已失败的记录
在数据处理循环中添加检查逻辑,跳过已在预验证阶段标记为失败的记录 - 在主循环开始处添加失败记录检查 - 使用 isRowAlreadyFailed 方法判断 - 检查失败后使用 continue 跳过处理 - 避免对已失败记录进行不必要的验证和处理 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -73,6 +73,11 @@ public class CcdiStaffTransferImportServiceImpl implements ICcdiStaffTransferImp
|
|||||||
for (int i = 0; i < excelList.size(); i++) {
|
for (int i = 0; i < excelList.size(); i++) {
|
||||||
CcdiStaffTransferExcel excel = excelList.get(i);
|
CcdiStaffTransferExcel excel = excelList.get(i);
|
||||||
|
|
||||||
|
// 跳过已在预验证阶段失败的记录
|
||||||
|
if (isRowAlreadyFailed(excel, failures)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 转换为AddDTO进行验证
|
// 转换为AddDTO进行验证
|
||||||
CcdiStaffTransferAddDTO addDTO = new CcdiStaffTransferAddDTO();
|
CcdiStaffTransferAddDTO addDTO = new CcdiStaffTransferAddDTO();
|
||||||
|
|||||||
Reference in New Issue
Block a user