| | |
| | | ExcelKit.$Export(Dept.class, response).downXlsx(depts, false); |
| | | } |
| | | |
| | | @GetMapping("redis") |
| | | public void setDeptToRedis(){ |
| | | deptService.setDeptRedis(); |
| | | @GetMapping("setDeptToRedis") |
| | | public List<Dept> setDeptToRedis(){ |
| | | return deptService.setDeptRedis(); |
| | | } |
| | | |
| | | @GetMapping("userRightDepts") |
| | | public String userRightDepts(){ |
| | | log.info("当前用户Id"+operatorId); |
| | | String userRightDepts=userDataPermissionService.findByUserId(operatorId); |
| | | log.info("当前用户权限"+userRightDepts); |
| | | return userRightDepts; |
| | | } |
| | | |
| | | @GetMapping("userRightDepts") |
| | | public String userRightDepts() { |
| | | String userRightDepts = userDataPermissionService.findByUserId(FebsUtil.getUserId()); |
| | | return userRightDepts; |
| | | } |
| | | |
| | | } |