| | |
| | | tokenVo.setCommunityId(systemUser.getCommunityId().toString()); |
| | | break; |
| | | } |
| | | tokenVo.setOneDepartmentId(systemUser.getOneDepartmentId()); |
| | | tokenVo.setSystemRoleId(systemUser.getSystemRoleId()); |
| | | return R.ok(tokenVo); |
| | | } |
| | | |
| | |
| | | public R<IPage<SystemUserListVo>> list(SystemUserList query){ |
| | | Integer id = this.getLoginUserInfoWest().getId(); |
| | | SystemUser user = systemUserService.getById(id); |
| | | if(user.getSystemRoleId()!=1){ |
| | | if(user.getSystemRoleId()>2){ |
| | | return R.ok(new Page<>()); |
| | | } |
| | | IPage<SystemUserListVo> list = systemUserService.list(user, query); |