| | |
| | | |
| | | private final IDeptService deptService; |
| | | |
| | | @GetMapping("all") |
| | | public FebsResponse getAllEmpBaseInfos(Dept dept) { |
| | | return new FebsResponse().data(deptService.findAllDepts(dept)); |
| | | } |
| | | @GetMapping |
| | | public FebsResponse deptList(QueryRequest request, Dept dept) { |
| | | Map<String, Object> depts = this.deptService.findDepts(request, dept); |
| | |
| | | List<Dept> depts = this.deptService.findDepts(dept, request); |
| | | ExcelKit.$Export(Dept.class, response).downXlsx(depts, false); |
| | | } |
| | | |
| | | @GetMapping("redis") |
| | | public void setDeptToRedis(){ |
| | | deptService.setDeptRedis(); |
| | | } |
| | | } |