jiangqs
2023-09-04 c97706c3cc213b7db3d381e8a0435ff0ef9a04d6
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/staff/StaffSysController.java
@@ -83,5 +83,14 @@
        return R.ok(page.setRecords(staffSuggestPageVoList));
    }
    @ApiOperation(value = "导入员工")
    @PostMapping("/importSysStaffData")
    public AjaxResult importGoodsTagData(@RequestPart("file")MultipartFile file) throws Exception
    {
        ExcelUtil<MgtSysStaffImportDto> util = new ExcelUtil<MgtSysStaffImportDto>(MgtSysStaffImportDto.class);
        List<MgtSysStaffImportDto> tagList = util.importExcel(file.getInputStream());
        String message = sysStaffService.importSysStaff(tagList);
        return success(message);
    }
}