浏览代码

统一上传excel

lyhzzz 3 年之前
父节点
当前提交
84a225a2cd
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      src/main/java/com/fdkankan/manage/controller/ExcelController.java

+ 2 - 6
src/main/java/com/fdkankan/manage/controller/ExcelController.java

@@ -61,16 +61,12 @@ public class ExcelController {
      * 导入excel
      * 导入excel
      * type 0 入库模板, 1出库模板 ,2 客户关联模板
      * type 0 入库模板, 1出库模板 ,2 客户关联模板
      */
      */
-    @PostMapping("cameraUploadExcel")
-    public ResultData cameraUploadExcel(@RequestParam(required = false) MultipartFile file,
+    @PostMapping("uploadExcel")
+    public ResultData uploadExcel(@RequestParam(required = false) MultipartFile file,
                                   @RequestParam(required = false,defaultValue = "0") Integer type) throws IOException {
                                   @RequestParam(required = false,defaultValue = "0") Integer type) throws IOException {
         return ResultData.ok(excelService.uploadExcel(file,type));
         return ResultData.ok(excelService.uploadExcel(file,type));
     }
     }
 
 
-    @PostMapping("companyUploadExcel")
-    public ResultData companyUploadExcel(@RequestParam(required = false) MultipartFile file) throws IOException {
-        return ResultData.ok(excelService.uploadExcel(file,2));
-    }
 
 
 
 
 }
 }