|
|
@@ -52,9 +52,6 @@ public class CommonUploadServiceImpl extends ServiceImpl<ICommonUploadMapper, Co
|
|
|
@Autowired
|
|
|
LocalToOssUtil localToOssUtil;
|
|
|
|
|
|
- @Value("${upload.query-path}")
|
|
|
- private String ossUrlPrefix;
|
|
|
-
|
|
|
|
|
|
@Override
|
|
|
public ResultData uploadFileNew( Integer dictId,MultipartFile file) {
|
|
|
@@ -88,7 +85,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,tempFile.getPath(),dictId);
|
|
|
+ CommonUpload commonUpload = commonUploadService.add(name.replace(extName, ""), url, String.valueOf(file.getSize()), uuid, fileTypeEnum, format,format,1,tempFile.getParentFile().getPath(),dictId);
|
|
|
return ResultData.ok(commonUpload);
|
|
|
}catch ( BusinessException e){
|
|
|
log.info("upload-file-error:{}",e);
|