| | |
| | | Map<String, Object> dataTable = FebsUtil.getDataTable(this.empResignService.findEmpResigns(request, empResign)); |
| | | return new FebsResponse().data(dataTable); |
| | | } |
| | | |
| | | @ApiOperation(value = "导出员工") |
| | | @RequestMapping(value = "export",method= RequestMethod.POST) |
| | | @RequestMapping(value = "export", method = RequestMethod.POST) |
| | | @ControllerEndpoint(operation = "导出用户数据", exceptionMessage = "导出Excel失败") |
| | | public void export(QueryRequest request, EmpResign empBaseinfo, HttpServletResponse response) { |
| | | |
| | | request.setPageSize(this.empResignService.count()); |
| | | List<EmpResign> records = this.empResignService.findEmpResigns(request, empBaseinfo).getRecords(); |
| | | ExcelKit.$Export(EmpResign.class, response).downXlsx(records, false); |
| | | } |
| | | |
| | | @PostMapping |
| | | @PreAuthorize("hasAuthority('empResign:add')") |
| | | public void addEmpResign(@Valid EmpResign empResign) throws FebsException { |