|  | @@ -10,6 +10,7 @@ import java.util.Objects;
 | 
	
		
			
				|  |  |  import java.util.Set;
 | 
	
		
			
				|  |  |  import java.util.stream.Collectors;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.dto.*;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
	
		
			
				|  | @@ -33,22 +34,6 @@ import com.ym.mec.biz.dal.dao.SubjectChangeDao;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dao.SysUserCashAccountDao;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dao.TeacherDao;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dao.VipGroupDao;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.BasicUserDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.ConditionDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.MusicCardDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.MusicGroupStudentSignDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.MusicGroupStudentsDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.SimpleUserDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.Student4operating;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.StudentListCourseDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.StudentManageAccountBaseInfoDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.StudentManageBaseInfoOfMusicGroupDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.StudentManageCourseListDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.StudentManageListDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.StudentManageVipGroupClassDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.StudentManageVipGroupDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.StudentRegisterPerDto;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.UserGoodsDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.MusicGroupQuit;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.Student;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.StudentRegistration;
 | 
	
	
		
			
				|  | @@ -179,9 +164,9 @@ public class StudentManageServiceImpl implements StudentManageService {
 | 
	
		
			
				|  |  |              Map<Integer, String> vipGroupStatus = MapUtil.convertMybatisMap(vipGroupDao.queryUserVipStatus(userIds));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              dataList.forEach(e -> {
 | 
	
		
			
				|  |  | -                e.setMusicGroupName(musicGroupNames.get(e.getUserId().longValue()));
 | 
	
		
			
				|  |  | +                e.setMusicGroupName(musicGroupNames.get(e.getUserId()));
 | 
	
		
			
				|  |  |                  e.setVipGroupName(vipGroupNames.get(e.getUserId()));
 | 
	
		
			
				|  |  | -                e.setMusicGroupStatus(musicGroupStatus.get(e.getUserId().longValue()));
 | 
	
		
			
				|  |  | +                e.setMusicGroupStatus(musicGroupStatus.get(e.getUserId()));
 | 
	
		
			
				|  |  |                  e.setVipGroupStatus(vipGroupStatus.get(e.getUserId()));
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -524,7 +509,6 @@ public class StudentManageServiceImpl implements StudentManageService {
 | 
	
		
			
				|  |  |          if (sysUser1 != null && !userId.equals(sysUser1.getId())) {
 | 
	
		
			
				|  |  |              throw new BizException("手机号已被占用");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        student.setUserType(sysUser1.getUserType());
 | 
	
		
			
				|  |  |          sysUserFeignService.updateSysUser(student);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          student.setUserId(student.getId());
 | 
	
	
		
			
				|  | @@ -595,6 +579,21 @@ public class StudentManageServiceImpl implements StudentManageService {
 | 
	
		
			
				|  |  |          if (count > 0) {
 | 
	
		
			
				|  |  |              pageInfo.setTotal(count);
 | 
	
		
			
				|  |  |              dataList = studentDao.getOperatingStudents(params);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            Set<Integer> studentIds = dataList.stream().map(Student4operating::getStudentId).collect(Collectors.toSet());
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            List<UserGroupDto> allUserGroups = studentRegistrationDao.getUserGroups(new ArrayList<>(studentIds));
 | 
	
		
			
				|  |  | +            Map<Integer, List<UserGroupDto>> userGroupsMap = new HashMap<>();
 | 
	
		
			
				|  |  | +            if(!CollectionUtils.isEmpty(allUserGroups)){
 | 
	
		
			
				|  |  | +                userGroupsMap = allUserGroups.stream().collect(Collectors.groupingBy(UserGroupDto::getUserId));
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            for (Student4operating student4operating : dataList) {
 | 
	
		
			
				|  |  | +                List<UserGroupDto> userGroupDtos = userGroupsMap.get(student4operating.getStudentId());
 | 
	
		
			
				|  |  | +                if(!CollectionUtils.isEmpty(userGroupDtos)){
 | 
	
		
			
				|  |  | +                    student4operating.setGroupNames(userGroupDtos.stream().map(UserGroupDto::getGroupName).sorted().collect(Collectors.joining(",")));
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          pageInfo.setRows(dataList);
 | 
	
		
			
				|  |  |          return pageInfo;
 |