luoyb
2021-05-31 12ef02a92d7eafd63084c9fa303357040e0f29a1
febs-server/febs-server-system/src/main/java/cc/mrbird/febs/server/system/controller/DeptController.java
@@ -79,15 +79,14 @@
        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(){
      String userRightDepts=userDataPermissionService.findByUserId(FebsUtil.getUserId());
      log.info("当前用户权限"+userRightDepts);
      return userRightDepts;
    }
   @GetMapping("userRightDepts")
   public String userRightDepts() {
      String userRightDepts = userDataPermissionService.findByUserId(FebsUtil.getUserId());
      return userRightDepts;
   }
}