|
@@ -86,11 +86,18 @@ public class AdminInsideAddressController {
|
|
|
|
|
|
|
|
@PostMapping("import")
|
|
@PostMapping("import")
|
|
|
@ApiOperation("导入内部地址列表")
|
|
@ApiOperation("导入内部地址列表")
|
|
|
- public void importData(@RequestParam("file") MultipartFile file) throws IOException, ParseException {
|
|
|
|
|
|
|
+ public Result importData(@RequestParam("file") MultipartFile file) throws IOException, ParseException {
|
|
|
if (file.isEmpty()) {
|
|
if (file.isEmpty()) {
|
|
|
throw new SqxException("请选择需要上传的文件");
|
|
throw new SqxException("请选择需要上传的文件");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
insideAddressService.importData(file);
|
|
insideAddressService.importData(file);
|
|
|
|
|
+ return Result.success();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping( "/downloadInsideAddressExcel")
|
|
|
|
|
+ @ApiOperation(value = "内部地址导出模板", notes = "内部地址导出模板", httpMethod = "GET")
|
|
|
|
|
+ public Result downloadInsideAddressExcel() {
|
|
|
|
|
+ return Result.success().put("data", "https://mxys.chuanghai-tech.com/wmfile/file/收货地址管理导出模板.xlsx");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|