Explorar o código

去除excel重复数据校验

ghost %!s(int64=4) %!d(string=hai) anos
pai
achega
20211c1003

+ 2 - 1
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/controller/PmsProductController.java

@@ -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();
     }
 }