|
|
|
|
|
|
|
|
staffVo.setIdNum(accountInfo.getIdNum()); |
|
|
staffVo.setIdNum(accountInfo.getIdNum()); |
|
|
//2、找到员工所分配的所有系统角色 |
|
|
//2、找到员工所分配的所有系统角色 |
|
|
List<UserRoleVo> userRoleVoList = null; |
|
|
List<UserRoleVo> userRoleVoList = null; |
|
|
if (accountInfo != null && accountInfo.getOpenId() != null && !accountInfo.getOpenId().trim().isEmpty()) { |
|
|
|
|
|
|
|
|
if (accountInfo != null && accountInfo.getOpenId() != null && !StringUtils.isEmpty(accountInfo.getOpenId())) { |
|
|
List<AccountUserRole> list = accountUserRoleRepo.getListByOpenId(accountInfo.getOpenId()); |
|
|
List<AccountUserRole> list = accountUserRoleRepo.getListByOpenId(accountInfo.getOpenId()); |
|
|
//3、找到所有的角色 |
|
|
//3、找到所有的角色 |
|
|
List<UserRole> userRoleList = userRoleRepo.findAllById(list.stream().map(AccountUserRole::getRoleId).collect(Collectors.toList())); |
|
|
List<UserRole> userRoleList = userRoleRepo.findAllById(list.stream().map(AccountUserRole::getRoleId).collect(Collectors.toList())); |