| | |
| | | @RequestMapping(value = "export",method= RequestMethod.POST) |
| | | @ControllerEndpoint(operation = "导出用户数据", exceptionMessage = "导出Excel失败") |
| | | public void export(QueryRequest request, EmpContractInfo empBaseinfo, HttpServletResponse response) { |
| | | |
| | | request.setPageSize(this.empContractinfoService.count()); |
| | | List<EmpContractInfo> records = this.empContractinfoService.findEmpContractinfos(request, empBaseinfo).getRecords(); |
| | | ExcelKit.$Export(EmpContractInfo.class, response).downXlsx(records, false); |
| | | } |
| | |
| | | } |
| | | |
| | | @DeleteMapping("{ids}") |
| | | @PreAuthorize("hasAuthority('empContractinfo:delete')") |
| | | public void logicDeleteEmpContractinfo(@PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.empContractinfoService.logicDelEmpContractinfo(ids); |