|
@@ -167,7 +167,7 @@ public class PmsProductController {
|
|
|
private PmsProductExcelDao productExcelDao;
|
|
|
|
|
|
@PostMapping(value = "/import")
|
|
|
- public void importBasic(MultipartFile file, HttpServletResponse response) throws IOException {
|
|
|
+ public CommonResult importBasic(MultipartFile file, HttpServletResponse response) throws IOException {
|
|
|
PmsProductExcelListener basicExcelListener = new PmsProductExcelListener(productExcelDao,response);
|
|
|
ExcelReader excelReader = null;
|
|
|
try {
|
|
@@ -182,5 +182,6 @@ public class PmsProductController {
|
|
|
excelReader.finish();
|
|
|
}
|
|
|
}
|
|
|
+ return CommonResult.success();
|
|
|
}
|
|
|
}
|