src/main/java/com/zy/asrs/controller/BasMapController.java
@@ -165,7 +165,8 @@ } @PostMapping("/basMap/crn/upload") public R uploadExcel(@RequestParam("file") MultipartFile file) throws IOException { public R uploadExcel(@RequestParam("file") MultipartFile file) { try { // 保存上传的文件到临时位置 String filePath = System.getProperty("java.io.tmpdir") + file.getOriginalFilename(); file.transferTo(new File(filePath)); @@ -350,6 +351,10 @@ basStationService.insert(basStation); } }); } catch (Exception e) { e.printStackTrace(); return R.error(e.getMessage()); } return R.ok(); }