| 
					
				 | 
			
			
				@@ -964,33 +964,8 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public CloudStudyStudentDataDto getCloudStudyStudentOverView(List<Integer> organIds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         CloudStudyStudentDataDto result = new CloudStudyStudentDataDto(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        /*IndexCloudStudyListDto dto = studentDao.getOrgansCloudTeacherStudent(organIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        result.setTotalStudentNum(dto.getTotalStudentNum()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        result.setEffectiveVipStudentNum(dto.getEffectiveVipStudentNum()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        result.setWaitActivateVipStudentNum(dto.getWaitActivateVipStudentNum()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        result.setVipStudentNum(cloudTeacherDao.getOrgansTotalVipStudentNum(organIds));*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        result.seteVipStudentNum(studentDao.getOrgansTotalEVipStudentNum(organIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        result.setCloudStudyUseStudentNum(studentDao.getOrgansTotalCloudStudyStudentNum(organIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        result.setCloudStudyUseStudentNum(studentDao.getOrgansTotalCloudStudyStudentNum(organIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         result.setCloudStudyTodayUseStudentNum(studentDao.getOrgansTodayTotalCloudStudyStudentNum(organIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Calendar cal = Calendar.getInstance();     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        cal.setTime(new Date());     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //cal.add(Calendar.WEEK_OF_YEAR, -1);// 一周     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        cal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Date endTime = cal.getTime(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        cal.setTime(new Date());     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        cal.add(Calendar.WEEK_OF_YEAR, -4);// 一周     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Date startTime = cal.getTime(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //result.setCloudStudyLivelyStudentNum(studentDao.getOrganTotalCloudStudyLivelyStudentNum(organIds, startTime, endTime)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //result.setNewCloudStudyStudentNum(sysMusicCompareRecordDao.getOrgansTotalNewCloudStudyNum(organIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        if(result.getVipStudentNum()>0&&result.getTotalStudentNum()>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//            result.setVipStudentDuty(new BigDecimal(result.getVipStudentNum()).divide(new BigDecimal(result.getTotalStudentNum()), 4, BigDecimal.ROUND_DOWN).multiply(new BigDecimal(100)).floatValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1338,9 +1313,35 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public List<IndexCloudStudyListDto> getCloudStudyStudentOverViewList1(String organIds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        List<IndexCloudStudyListDto> list = studentDao.getCloudStudyStudentOverViewList(organIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public List<IndexCloudStudySumDto> getCloudStudyStudentOverViewList1(List<Integer> organIdsList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<IndexCloudStudySumDto> list = studentDao.getCloudStudyStudentOverViewList1(organIdsList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //获取待激活学员数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<Integer,Integer> waitMap = MapUtil.convertIntegerMap(cloudTeacherOrderDao.getWaitActivateMap(organIdsList)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //获取活跃学员数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Calendar cal = Calendar.getInstance(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cal.setTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //cal.add(Calendar.WEEK_OF_YEAR, -1);// 一周 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Date endTime = cal.getTime(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cal.setTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cal.add(Calendar.WEEK_OF_YEAR, -4);// 一周 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Date startTime = cal.getTime(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<Integer,Integer> activeMap = MapUtil.convertIntegerMap(studentDao.getOrganActiveCloudStudyStudentNum1(organIdsList, startTime, endTime)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //获取重复购买人数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<Integer,Integer> againBuyMap = MapUtil.convertIntegerMap(studentDao.getAgainBuyNum(organIdsList)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (IndexCloudStudySumDto dto : list) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dto.setWaitActivateVipStudentNum(waitMap.get(dto.getOrganId())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dto.setAgainBuyNum(againBuyMap.get(dto.getOrganId())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dto.setActiveStudentNum(activeMap.get(dto.getOrganId())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dto.setTotalStudentNum(dto.getWaitActivateVipStudentNum() + dto.getVipStudentNum()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            double studentNum = (double)dto.getVipStudentNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            dto.setVipStudentRate(studentNum / dto.getTotalStudentNum()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            dto.setAgainBuyRate(dto.getAgainBuyNum() / studentNum); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Transactional(rollbackFor = Exception.class) 
			 |