| | |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.securitypaper.entity.SecurityPaper; |
| | | import org.springblade.modules.securitypaper.excel.PaperExcel; |
| | | import org.springblade.modules.securitypaper.excel.PaperImporter; |
| | | import org.springblade.modules.securitypaper.excel.SecurityPaperExcel; |
| | | import org.springblade.modules.securitypaper.excel.SecurityPaperImporter; |
| | | import org.springblade.modules.securitypaper.service.SecurityPaperService; |
| | |
| | | |
| | | |
| | | /** |
| | | * 导入保安员证数据 |
| | | * 导入保安员证数据(需用户编号,无效保安员身份证号码) |
| | | */ |
| | | @PostMapping("import-security-paper") |
| | | public R importSecurityPaper(MultipartFile file, Integer isCovered, String deptId) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 导入保安员证数据(需身份证号码,无需用户编号) |
| | | */ |
| | | @PostMapping("import-paper") |
| | | public R importPaper(MultipartFile file, Integer isCovered) { |
| | | PaperImporter paperImporter = new PaperImporter(securityPaperService, false); |
| | | ExcelUtil.save(file, paperImporter, PaperExcel.class); |
| | | return R.success("操作成功"); |
| | | } |
| | | |
| | | /** |
| | | * 导出模板 |
| | | */ |
| | | @GetMapping("export-template-security-paper") |