|  | @@ -138,7 +138,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
											
												
													
														|  |  		//运营数据
 |  |  		//运营数据
 | 
											
												
													
														|  |  		saveData(indexBaseMonthDataDao.getSchoolData(month), month, IndexDataType.SCHOOL);
 |  |  		saveData(indexBaseMonthDataDao.getSchoolData(month), month, IndexDataType.SCHOOL);
 | 
											
												
													
														|  |  		saveData(indexBaseMonthDataDao.getMusicData(month), month, IndexDataType.MUSIC_GROUP_NUM);
 |  |  		saveData(indexBaseMonthDataDao.getMusicData(month), month, IndexDataType.MUSIC_GROUP_NUM);
 | 
											
												
													
														|  | -		saveData(indexBaseMonthDataDao.getMusicStudentData(month, null), month, IndexDataType.MUSIC_GROUP_STUDENT);
 |  | 
 | 
											
												
													
														|  | 
 |  | +		saveData(indexBaseMonthDataDao.getMusicStudentData(month, "ALL"), month, IndexDataType.MUSIC_GROUP_STUDENT);
 | 
											
												
													
														|  |  		saveData(indexBaseMonthDataDao.getOtherStudentData(month), month, IndexDataType.OTHER_STUDENT);
 |  |  		saveData(indexBaseMonthDataDao.getOtherStudentData(month), month, IndexDataType.OTHER_STUDENT);
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		//业务数据
 |  |  		//业务数据
 | 
											
										
											
												
													
														|  | @@ -161,7 +161,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
											
												
													
														|  |  		saveData(indexBaseMonthDataDao.getTeacherData(month, null, true), month, IndexDataType.DIMISSION_NUM);
 |  |  		saveData(indexBaseMonthDataDao.getTeacherData(month, null, true), month, IndexDataType.DIMISSION_NUM);
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		//学员变动
 |  |  		//学员变动
 | 
											
												
													
														|  | -		saveData(indexBaseMonthDataDao.getMusicStudentData(month, "ALL"), month, IndexDataType.NEWLY_STUDENT_NUM);
 |  | 
 | 
											
												
													
														|  | 
 |  | +		saveData(indexBaseMonthDataDao.getMusicStudentData(month, null), month, IndexDataType.NEWLY_STUDENT_NUM);
 | 
											
												
													
														|  |  		saveData(indexBaseMonthDataDao.getMusicStudentData(month, "QUIT"), month, IndexDataType.QUIT_MUSIC_GROUP_STUDENT_NUM);
 |  |  		saveData(indexBaseMonthDataDao.getMusicStudentData(month, "QUIT"), month, IndexDataType.QUIT_MUSIC_GROUP_STUDENT_NUM);
 | 
											
												
													
														|  |  		saveData(indexBaseMonthDataDao.getMusicGroupPreRegistrationStudentData(month), month, IndexDataType.STUDENT_CONVERSION_PRE_STUDENT_NUM);
 |  |  		saveData(indexBaseMonthDataDao.getMusicGroupPreRegistrationStudentData(month), month, IndexDataType.STUDENT_CONVERSION_PRE_STUDENT_NUM);
 | 
											
												
													
														|  |  		saveData(indexBaseMonthDataDao.getMusicGroupStudentFromPreData(month, null), month, IndexDataType.STUDENT_CONVERSION_STUDENT_NUM);
 |  |  		saveData(indexBaseMonthDataDao.getMusicGroupStudentFromPreData(month, null), month, IndexDataType.STUDENT_CONVERSION_STUDENT_NUM);
 | 
											
										
											
												
													
														|  | @@ -185,7 +185,10 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
											
												
													
														|  |  		List<IndexBaseMonthData> convertData = new ArrayList<>();
 |  |  		List<IndexBaseMonthData> convertData = new ArrayList<>();
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		Map<IndexDataType, IndexBaseDto> typeDataMap = result.stream().collect(Collectors.toMap(IndexBaseDto::getDataType, i -> i, (i1, i2) -> i1));
 |  |  		Map<IndexDataType, IndexBaseDto> typeDataMap = result.stream().collect(Collectors.toMap(IndexBaseDto::getDataType, i -> i, (i1, i2) -> i1));
 | 
											
												
													
														|  | -		List<IndexBaseMonthData> preStudentNum = typeDataMap.get(IndexDataType.STUDENT_CONVERSION_PRE_STUDENT_NUM).getIndexMonthData();
 |  | 
 | 
											
												
													
														|  | 
 |  | +		List<IndexBaseMonthData> preStudentNum = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +		if(typeDataMap.containsKey(IndexDataType.STUDENT_CONVERSION_PRE_STUDENT_NUM)){
 | 
											
												
													
														|  | 
 |  | +			preStudentNum = typeDataMap.get(IndexDataType.STUDENT_CONVERSION_PRE_STUDENT_NUM).getIndexMonthData();
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		IndexBaseMonthData preStudentNumData = new IndexBaseMonthData();
 |  |  		IndexBaseMonthData preStudentNumData = new IndexBaseMonthData();
 | 
											
												
													
														|  |  		preStudentNumData.setMonth(currentMonth);
 |  |  		preStudentNumData.setMonth(currentMonth);
 | 
											
										
											
												
													
														|  | @@ -195,7 +198,10 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
											
												
													
														|  |  		preStudentNumData.setActivateNum(preStudentNum.stream().map(IndexBaseMonthData::getActivateNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 |  |  		preStudentNumData.setActivateNum(preStudentNum.stream().map(IndexBaseMonthData::getActivateNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 | 
											
												
													
														|  |  		preStudentNumData.setPercent(preStudentNumData.getActivateNum());
 |  |  		preStudentNumData.setPercent(preStudentNumData.getActivateNum());
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -		List<IndexBaseMonthData> studentNum = typeDataMap.get(IndexDataType.STUDENT_CONVERSION_STUDENT_NUM).getIndexMonthData();
 |  | 
 | 
											
												
													
														|  | 
 |  | +		List<IndexBaseMonthData> studentNum = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +		if(typeDataMap.containsKey(IndexDataType.STUDENT_CONVERSION_STUDENT_NUM)){
 | 
											
												
													
														|  | 
 |  | +			studentNum = typeDataMap.get(IndexDataType.STUDENT_CONVERSION_STUDENT_NUM).getIndexMonthData();
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		IndexBaseMonthData studentNumData = new IndexBaseMonthData();
 |  |  		IndexBaseMonthData studentNumData = new IndexBaseMonthData();
 | 
											
												
													
														|  |  		studentNumData.setMonth(currentMonth);
 |  |  		studentNumData.setMonth(currentMonth);
 | 
											
										
											
												
													
														|  | @@ -204,7 +210,10 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
											
												
													
														|  |  		studentNumData.setTotalNum(studentNum.stream().map(IndexBaseMonthData::getTotalNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 |  |  		studentNumData.setTotalNum(studentNum.stream().map(IndexBaseMonthData::getTotalNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 | 
											
												
													
														|  |  		studentNumData.setActivateNum(studentNum.stream().map(IndexBaseMonthData::getActivateNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 |  |  		studentNumData.setActivateNum(studentNum.stream().map(IndexBaseMonthData::getActivateNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -		List<IndexBaseMonthData> paymentStudentNum = typeDataMap.get(IndexDataType.STUDENT_CONVERSION_PAYMENT_STUDENT_NUM).getIndexMonthData();
 |  | 
 | 
											
												
													
														|  | 
 |  | +		List<IndexBaseMonthData> paymentStudentNum = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +		if(typeDataMap.containsKey(IndexDataType.STUDENT_CONVERSION_PAYMENT_STUDENT_NUM)){
 | 
											
												
													
														|  | 
 |  | +			paymentStudentNum = typeDataMap.get(IndexDataType.STUDENT_CONVERSION_PAYMENT_STUDENT_NUM).getIndexMonthData();
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		IndexBaseMonthData paymentStudentNumData = new IndexBaseMonthData();
 |  |  		IndexBaseMonthData paymentStudentNumData = new IndexBaseMonthData();
 | 
											
												
													
														|  |  		paymentStudentNumData.setMonth(currentMonth);
 |  |  		paymentStudentNumData.setMonth(currentMonth);
 | 
											
										
											
												
													
														|  | @@ -213,7 +222,10 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
											
												
													
														|  |  		paymentStudentNumData.setTotalNum(paymentStudentNum.stream().map(IndexBaseMonthData::getTotalNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 |  |  		paymentStudentNumData.setTotalNum(paymentStudentNum.stream().map(IndexBaseMonthData::getTotalNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 | 
											
												
													
														|  |  		paymentStudentNumData.setActivateNum(paymentStudentNum.stream().map(IndexBaseMonthData::getActivateNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 |  |  		paymentStudentNumData.setActivateNum(paymentStudentNum.stream().map(IndexBaseMonthData::getActivateNum).reduce(BigDecimal.ZERO, BigDecimal::add));
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -		List<IndexBaseMonthData> convertStudentNum = typeDataMap.get(IndexDataType.STUDENT_CONVERSION_VIP_PRACTICE_STUDENT_NUM).getIndexMonthData();
 |  | 
 | 
											
												
													
														|  | 
 |  | +		List<IndexBaseMonthData> convertStudentNum = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +		if(typeDataMap.containsKey(IndexDataType.STUDENT_CONVERSION_VIP_PRACTICE_STUDENT_NUM)){
 | 
											
												
													
														|  | 
 |  | +			convertStudentNum = typeDataMap.get(IndexDataType.STUDENT_CONVERSION_VIP_PRACTICE_STUDENT_NUM).getIndexMonthData();
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		IndexBaseMonthData convertStudentNumData = new IndexBaseMonthData();
 |  |  		IndexBaseMonthData convertStudentNumData = new IndexBaseMonthData();
 | 
											
												
													
														|  |  		convertStudentNumData.setMonth(currentMonth);
 |  |  		convertStudentNumData.setMonth(currentMonth);
 | 
											
										
											
												
													
														|  | @@ -289,7 +301,9 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		result.add(new IndexErrInfoDto(IndexErrorType.HIGH_CLASS_STUDENT_LESS_THAN_THREE, IndexErrorType.HIGH_CLASS_STUDENT_LESS_THAN_THREE.getMsg(), indexBaseMonthDataDao.countLessThenThreeClassGroupNum(organIds), indexBaseMonthDataDao.getLessThenThreeMusicGroup(organIds)));
 |  |  		result.add(new IndexErrInfoDto(IndexErrorType.HIGH_CLASS_STUDENT_LESS_THAN_THREE, IndexErrorType.HIGH_CLASS_STUDENT_LESS_THAN_THREE.getMsg(), indexBaseMonthDataDao.countLessThenThreeClassGroupNum(organIds), indexBaseMonthDataDao.getLessThenThreeMusicGroup(organIds)));
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -		result.add(new IndexErrInfoDto(IndexErrorType.STUDENT_NOT_PAYMENT, IndexErrorType.STUDENT_NOT_PAYMENT.getMsg(), indexBaseMonthDataDao.countNoPaymentStudentnum(organIds), indexBaseMonthDataDao.getNoPaymentMusicGroup(organIds)));
 |  | 
 | 
											
												
													
														|  | 
 |  | +		result.add(new IndexErrInfoDto(IndexErrorType.STUDENT_NOT_PAYMENT, IndexErrorType.STUDENT_NOT_PAYMENT.getMsg(), indexBaseMonthDataDao.countNoPaymentStudentNum(organIds), indexBaseMonthDataDao.getNoPaymentMusicGroup(organIds)));
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +		result.add(new IndexErrInfoDto(IndexErrorType.STUDENT_APPLY_FOR_QUIT_MUSIC_GROUP, IndexErrorType.STUDENT_APPLY_FOR_QUIT_MUSIC_GROUP.getMsg(), indexBaseMonthDataDao.countApplyForQuitGroupNum(organIds),  null));
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		return result;
 |  |  		return result;
 | 
											
												
													
														|  |  	}
 |  |  	}
 |