Browse Source

员工管理分页查询调整

master
huminghao 1 week ago
parent
commit
c4d8aee767

+ 1
- 1
zhywpt-app-userw/src/main/java/cn/com/taiji/userw/manager/system/StaffManagerImpl.java View File

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()));

Loading…
Cancel
Save