diff --git a/service/src/main/java/com/electromagnetic/industry/software/data/manage/service/facade/EDDataFacadeImpl.java b/service/src/main/java/com/electromagnetic/industry/software/data/manage/service/facade/EDDataFacadeImpl.java index e8f3dc8..99884e9 100644 --- a/service/src/main/java/com/electromagnetic/industry/software/data/manage/service/facade/EDDataFacadeImpl.java +++ b/service/src/main/java/com/electromagnetic/industry/software/data/manage/service/facade/EDDataFacadeImpl.java @@ -566,23 +566,11 @@ public class EDDataFacadeImpl implements EDDataFacade { boolean existFile = FileUtil.exist(new File(destZipPath)); if (existFile) { - return ElectromagneticResultUtil.success(new FileChunkResultDTO(false, new HashSet<>())); + return ElectromagneticResultUtil.success(new FileChunkResultDTO(true, new HashSet<>())); } List uploadedChunks = getUploadedChunks(identifier); - return ElectromagneticResultUtil.success(new FileChunkResultDTO(true, new HashSet<>(uploadedChunks))); -// -// String destChunkPath = uploadFilePath + identifier + File.separator + fileChunkDTO.getChunkNumber() + UPLOAD_FILE_CHUNK_SUFFIX; -// boolean existChunk = FileUtil.exist(new File(destChunkPath)); -// List uploadedChunks = getUploadedChunks(identifier); -// -// -// -// -// FileChunkResultDTO res = new FileChunkResultDTO(); -// res.setSkipUpload(existChunk); -// res.setUploaded(new HashSet<>(uploadedChunks)); -// return ElectromagneticResultUtil.success(res); + return ElectromagneticResultUtil.success(new FileChunkResultDTO(false, new HashSet<>(uploadedChunks))); }