修改

parent 4a016fe8
...@@ -151,19 +151,8 @@ public class DqPersonelController { ...@@ -151,19 +151,8 @@ public class DqPersonelController {
return new Result<Map<String, Object>>().error(ErrorCode.UPLOAD_FILE_EMPTY); return new Result<Map<String, Object>>().error(ErrorCode.UPLOAD_FILE_EMPTY);
} }
dqPersonelService.uploadSave(file); dqPersonelService.uploadSave(file);
// //上传文件
// String extension = FilenameUtils.getExtension(file.getOriginalFilename());
// String url = OSSFactory.build().uploadSuffix(file.getBytes(), extension);
//
// //保存文件信息
// SysOssEntity ossEntity = new SysOssEntity();
// ossEntity.setUrl(url);
// ossEntity.setCreateDate(new Date());
// sysOssService.insert(ossEntity);
Map<String, Object> data = new HashMap<>(1); Map<String, Object> data = new HashMap<>(1);
data.put("src", "url"); data.put("src", "url");
return new Result<Map<String, Object>>().ok(data); return new Result<Map<String, Object>>().ok(data);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment