develop #1

Merged
jspark merged 14 commits from develop into master 2026-03-30 14:09:00 +09:00
2 changed files with 12 additions and 0 deletions
Showing only changes of commit 844d098f8a - Show all commits

View File

@@ -79,6 +79,8 @@ public class UploadService {
errorFile = toXlsx(failRows);
}
dataFileService.deleteListFile(dataFilePath.getFileName().toString());
return ExcelUploadResultDto.of(total.get(), success.get(), fail.get(), errorFile);
}

View File

@@ -33,4 +33,14 @@ public class DataFileService extends AbstractFileService {
throw BusinessException.internalError("FAIL_DATA_UPLOAD", e.getMessage());
}
}
public void deleteListFile(String fileName) {
Path dir = getBaseDir().toAbsolutePath().normalize();
try {
deleteFile(dir, fileName);
} catch (IOException e) {
throw BusinessException.internalError("FAIL_DATA_DELETE", e.getMessage());
}
}
}