/**
* @description : 导入组织成员信息
* ---------------------------------
* @author : Li
* @since : Create in 2021-06-17
*/
@PostMapping("/importOrgUser")
@ApiOperation(value="导入组织成员信息")
public Result importOrgUser(@RequestParam("file") MultipartFile file) throws IOException {
String fileName = file.getOriginalFilename();
String filePath = uploadLocation;
File dest = new File(filePath + fileName);
try {
file.transferTo(dest);
return Result.ok("上传成功");
} catch (IOException e) {
}
return Result.ok("上传失败");
}
文件的导入
最新推荐文章于 2022-08-30 14:56:56 发布