| 
					
				 | 
			
			
				@@ -6,6 +6,7 @@ import com.ym.mec.biz.dal.dao.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.dal.dto.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.dal.entity.StudentRegistration; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.dal.entity.SysUserCashAccount; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.biz.dal.enums.YesOrNoEnum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.dal.page.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.service.StudentManageService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.entity.ImResult; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -105,6 +106,7 @@ public class StudentManageServiceImpl implements StudentManageService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         e.setHasCourse(0L); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                e.setHasPracticeCourse(hasPracticeCourseMap.get(e.getUserId()) == null? YesOrNoEnum.NO:YesOrNoEnum.YES); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(collect.get(e.getUserId()) != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     e.setCourseBalance(collect.get(e.getUserId()).getCourseBalance()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -369,13 +371,17 @@ public class StudentManageServiceImpl implements StudentManageService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public List<StudentHasCourseDto> queryHasCourseStudent(String organId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        Set<Integer> musicUserIds = scheduleStudentPaymentDao.queryMusicStudentPer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        Set<Integer> vipUserIds = scheduleStudentPaymentDao.queryVipStudentPer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        musicUserIds.addAll(vipUserIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //学员编号", "姓名", "分部", "所在乐团", "乐团所属声部", "所在vip课","是否激活","是否预约 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        获取编号,姓名,分部,"是否激活","是否预约 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        List<StudentHasCourseDto> studentHasCourseDtos = studentManageDao.queryCourseStudent(vipUserIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return studentManageDao.queryHasCourseStudent(organId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<StudentHasCourseDto> studentHasCourseDtos = studentManageDao.queryHasCourseStudent(organId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<Integer> userIds = studentHasCourseDtos.stream().map(e -> e.getUserId()).collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<Integer,Integer> hasPracticeCourseMap = MapUtil.convertIntegerMap(studentManageDao.getHasPracticeCourse(userIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<Integer,Integer> isActiveMap = MapUtil.convertIntegerMap(studentManageDao.getIsActive(userIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<Integer,Integer> isMakeMap = MapUtil.convertIntegerMap(studentManageDao.getIsMake(userIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        studentHasCourseDtos.forEach(e->{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            e.setHasPracticeCourse(hasPracticeCourseMap.get(e.getUserId()) == null?YesOrNoEnum.NO:YesOrNoEnum.YES); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            e.setIsActive(isActiveMap.get(e.getUserId()) == null?YesOrNoEnum.YES:YesOrNoEnum.NO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            e.setIsMake(isMakeMap.get(e.getUserId()) == null?YesOrNoEnum.NO:YesOrNoEnum.YES); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return studentHasCourseDtos; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 |