|  | @ -477,7 +477,11 @@ public class EpmetUserServiceImpl implements EpmetUserService { | 
			
		
	
		
		
			
				
					|  |  |      */ |  |  |      */ | 
			
		
	
		
		
			
				
					|  |  |     @Override |  |  |     @Override | 
			
		
	
		
		
			
				
					|  |  |     public List<RoleUsersResultDTO> getRoleUsers(RoleUsersFormDTO formDTO) { |  |  |     public List<RoleUsersResultDTO> getRoleUsers(RoleUsersFormDTO formDTO) { | 
			
		
	
		
		
			
				
					
					|  |  |         List<StaffRoleEntity> staffRoleList = staffRoleDao.selectStaffByRole(formDTO.getCustomerId(), formDTO.getRoleId()); |  |  |         String userId = null; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |         if (NumConstant.ZERO_STR.equals(formDTO.getIncludeMe())) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             userId = formDTO.getUserId(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         List<StaffRoleEntity> staffRoleList = staffRoleDao.selectStaffByRole(formDTO.getCustomerId(), formDTO.getRoleId(), userId); | 
			
		
	
		
		
			
				
					|  |  |         if (CollectionUtils.isEmpty(staffRoleList)) { |  |  |         if (CollectionUtils.isEmpty(staffRoleList)) { | 
			
		
	
		
		
			
				
					|  |  |             return Collections.emptyList(); |  |  |             return Collections.emptyList(); | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
	
		
		
			
				
					|  | @ -499,7 +503,7 @@ public class EpmetUserServiceImpl implements EpmetUserService { | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     /** |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |      * @param customerId |  |  |      * @param formDTO | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |      * @Description 获取角色列表 |  |  |      * @Description 获取角色列表 | 
			
		
	
		
		
			
				
					|  |  |      * @Param customerId |  |  |      * @Param customerId | 
			
		
	
		
		
			
				
					|  |  |      * @Return {@link List<RoleListResultDTO>} |  |  |      * @Return {@link List<RoleListResultDTO>} | 
			
		
	
	
		
		
			
				
					|  | @ -507,14 +511,18 @@ public class EpmetUserServiceImpl implements EpmetUserService { | 
			
		
	
		
		
			
				
					|  |  |      * @Date 2021/8/19 15:09 |  |  |      * @Date 2021/8/19 15:09 | 
			
		
	
		
		
			
				
					|  |  |      */ |  |  |      */ | 
			
		
	
		
		
			
				
					|  |  |     @Override |  |  |     @Override | 
			
		
	
		
		
			
				
					
					|  |  |     public List<RoleListResultDTO> getRoleList(String customerId) { |  |  |     public List<RoleListResultDTO> getRoleList(RoleListFormDTO formDTO) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         //获取角色列表
 |  |  |         //获取角色列表
 | 
			
		
	
		
		
			
				
					|  |  |         LambdaQueryWrapper<GovStaffRoleEntity> wrapper = new LambdaQueryWrapper<>(); |  |  |         LambdaQueryWrapper<GovStaffRoleEntity> wrapper = new LambdaQueryWrapper<>(); | 
			
		
	
		
		
			
				
					
					|  |  |         wrapper.eq(GovStaffRoleEntity :: getCustomerId, customerId); |  |  |         wrapper.eq(GovStaffRoleEntity :: getCustomerId, formDTO.getCustomerId()); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         wrapper.orderByAsc(GovStaffRoleEntity ::getSort); |  |  |         wrapper.orderByAsc(GovStaffRoleEntity ::getSort); | 
			
		
	
		
		
			
				
					|  |  |         List<GovStaffRoleEntity> list = govStaffRoleDao.selectList(wrapper); |  |  |         List<GovStaffRoleEntity> list = govStaffRoleDao.selectList(wrapper); | 
			
		
	
		
		
			
				
					|  |  |         //获取角色人数
 |  |  |         //获取角色人数
 | 
			
		
	
		
		
			
				
					
					|  |  |         List<RoleListResultDTO> countList = staffRoleDao.getRoleCountList(customerId); |  |  |         String userId = null; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |         if (NumConstant.ZERO_STR.equals(formDTO.getIncludeMe())) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             userId = formDTO.getUserId(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         List<RoleListResultDTO> countList = staffRoleDao.getRoleCountList(formDTO.getCustomerId(), userId); | 
			
		
	
		
		
			
				
					|  |  |         Map<String, Integer> map = new HashMap<>(); |  |  |         Map<String, Integer> map = new HashMap<>(); | 
			
		
	
		
		
			
				
					|  |  |         if (CollectionUtils.isNotEmpty(countList)) { |  |  |         if (CollectionUtils.isNotEmpty(countList)) { | 
			
		
	
		
		
			
				
					|  |  |             map = countList.stream().collect(Collectors.toMap(RoleListResultDTO :: getRoleId, RoleListResultDTO :: getStaffNum)); |  |  |             map = countList.stream().collect(Collectors.toMap(RoleListResultDTO :: getRoleId, RoleListResultDTO :: getStaffNum)); | 
			
		
	
	
		
		
			
				
					|  | 
 |