#
Junjie
3 天以前 17d9bfeb980050aa3efda75dbec77cd24b17c0b4
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();
    }