|
|
|
@ -57,7 +57,7 @@ public class FileService extends AbstractRedisService implements IFileService { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public List<FileVo.Upload> saveFileMultiple(String dir, List<Part> files, long userId) throws IOException, BaseException { |
|
|
|
public List<FileVo.Upload> saveFileMultiple(String dir, List<Part> files, Long userId) throws IOException, BaseException { |
|
|
|
List<FileVo.Upload> fileList = new ArrayList<>(); |
|
|
|
String allowedExt = WebConstant.FILE_TYPE_ALL; |
|
|
|
for (Part file: files) { |
|
|
|
@ -230,13 +230,13 @@ public class FileService extends AbstractRedisService implements IFileService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public FileVo.Upload saveFileSingle(String dir, Part file, long userId) throws IOException, BaseException { |
|
|
|
public FileVo.Upload saveFileSingle(String dir, Part file, Long userId) throws IOException, BaseException { |
|
|
|
String allowedExt = WebConstant.FILE_TYPE_ALL; |
|
|
|
return getFileCommit(dir, allowedExt, file, userId); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public FileVo.BigFile uploadBigFile(FileDto.MultipartFileUpload fileUpload, long userId) throws IOException { |
|
|
|
public FileVo.BigFile uploadBigFile(FileDto.MultipartFileUpload fileUpload, Long userId) throws IOException { |
|
|
|
long t1 = System.currentTimeMillis(); |
|
|
|
FileVo.BigFile bigFile = new FileVo.BigFile(); |
|
|
|
bigFile.setChunkNum(fileUpload.getChunkNum()); |
|
|
|
@ -371,7 +371,7 @@ public class FileService extends AbstractRedisService implements IFileService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public FileVo.BigFileCheck bigFileCheck(FileDto.BigFileCheck fileCheck, long userId) throws IOException { |
|
|
|
public FileVo.BigFileCheck bigFileCheck(FileDto.BigFileCheck fileCheck, Long userId) throws IOException { |
|
|
|
log.info("文件检查:{},{}", fileCheck, userId); |
|
|
|
FileVo.BigFileCheck check = new FileVo.BigFileCheck(); |
|
|
|
|
|
|
|
|