| | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * |
| | | * name:EmpLabortrouble |
| | | * package:cc.mrbird.febs.server.hr.controller |
| | | * description:员工劳资案件控制器 |
| | |
| | | Map<String, Object> dataTable = FebsUtil.getDataTable(this.empLabortroubleService.findEmpLabortroubles(request, empLabortrouble)); |
| | | return new FebsResponse().data(dataTable); |
| | | } |
| | | |
| | | @ApiOperation(value = "导出员工") |
| | | @RequestMapping(value = "export",method= RequestMethod.POST) |
| | | @ControllerEndpoint(operation = "导出用户数据", exceptionMessage = "导出Excel失败") |
| | |
| | | List<EmpLaborTrouble> records = this.empLabortroubleService.findEmpLabortroubles(request, empBaseinfo).getRecords(); |
| | | ExcelKit.$Export(EmpLaborTrouble.class, response).downXlsx(records, false); |
| | | } |
| | | |
| | | @PostMapping |
| | | @PreAuthorize("hasAuthority('empLabortrouble:add')") |
| | | public void addEmpLabortrouble(@Valid EmpLaborTrouble empLabortrouble) throws FebsException { |