|
@@ -89,7 +89,7 @@ public class CommonUploadServiceImpl extends ServiceImpl<ICommonUploadMapper, Co
|
|
|
throw new BusinessException(ResultCode.FILE_TYPE_ERROR2);
|
|
|
}
|
|
|
String format = extName.replace(".", "");
|
|
|
- CommonUpload commonUpload = commonUploadService.add(name.replace(extName, ""), url, String.valueOf(file.getSize()), uuid, fileTypeEnum, format,format,1,null,dictId);
|
|
|
+ CommonUpload commonUpload = commonUploadService.add(name.replace(extName, ""), url, String.valueOf(file.getSize()), uuid, fileTypeEnum, format,format,1,tempFile.getPath(),dictId);
|
|
|
return ResultData.ok(commonUpload);
|
|
|
}catch ( BusinessException e){
|
|
|
log.info("upload-file-error:{}",e);
|