|  | @@ -2,8 +2,7 @@ package com.ym.mec.biz.service.impl;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PayUserType.SCHOOL;
 |  |  import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PayUserType.SCHOOL;
 | 
											
												
													
														|  |  import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PayUserType.STUDENT;
 |  |  import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PayUserType.STUDENT;
 | 
											
												
													
														|  | -import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PaymentCalenderStatusEnum.AUDITING;
 |  | 
 | 
											
												
													
														|  | -import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PaymentCalenderStatusEnum.REJECT;
 |  | 
 | 
											
												
													
														|  | 
 |  | +import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PaymentCalenderStatusEnum.*;
 | 
											
												
													
														|  |  import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PaymentType.ADD_COURSE;
 |  |  import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PaymentType.ADD_COURSE;
 | 
											
												
													
														|  |  import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PaymentType.ADD_STUDENT;
 |  |  import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PaymentType.ADD_STUDENT;
 | 
											
												
													
														|  |  import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PaymentType.MUSIC_APPLY;
 |  |  import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PaymentType.MUSIC_APPLY;
 | 
											
										
											
												
													
														|  | @@ -434,6 +433,13 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
											
												
													
														|  |  					musicGroupPaymentCalenderDetailService.batchAdd(musicGroupPaymentCalender.getId(),list2);
 |  |  					musicGroupPaymentCalenderDetailService.batchAdd(musicGroupPaymentCalender.getId(),list2);
 | 
											
												
													
														|  |  				}
 |  |  				}
 | 
											
												
													
														|  |  			}
 |  |  			}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +			if(musicGroupPaymentCalender.getStatus() == OPEN){
 | 
											
												
													
														|  | 
 |  | +				//将0元未缴费学员缴费状态更新为已缴费
 | 
											
												
													
														|  | 
 |  | +				int j = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender.getId());
 | 
											
												
													
														|  | 
 |  | +				musicGroupPaymentCalender.setActualNum((musicGroupPaymentCalender.getActualNum()==null?0:musicGroupPaymentCalender.getActualNum()) + j);
 | 
											
												
													
														|  | 
 |  | +				musicGroupPaymentCalenderDao.update(musicGroupPaymentCalender);
 | 
											
												
													
														|  | 
 |  | +			}
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		// 如果是报名,需要修改乐团状态
 |  |  		// 如果是报名,需要修改乐团状态
 | 
											
										
											
												
													
														|  | @@ -757,6 +763,13 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
											
												
													
														|  |  				}
 |  |  				}
 | 
											
												
													
														|  |  				musicGroupPaymentCalenderCourseSettingsDao.batchInsert(currentMusicGroupPaymentCalenderCourseSettings);
 |  |  				musicGroupPaymentCalenderCourseSettingsDao.batchInsert(currentMusicGroupPaymentCalenderCourseSettings);
 | 
											
												
													
														|  |  			}
 |  |  			}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +			if(musicGroupPaymentCalender.getStatus() == OPEN){
 | 
											
												
													
														|  | 
 |  | +				//将0元未缴费学员缴费状态更新为已缴费
 | 
											
												
													
														|  | 
 |  | +				int j = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender.getId());
 | 
											
												
													
														|  | 
 |  | +				musicGroupPaymentCalender.setActualNum((musicGroupPaymentCalender.getActualNum()==null?0:musicGroupPaymentCalender.getActualNum()) + j);
 | 
											
												
													
														|  | 
 |  | +				musicGroupPaymentCalenderDao.update(musicGroupPaymentCalender);
 | 
											
												
													
														|  | 
 |  | +			}
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		// 如果是报名,需要修改乐团状态
 |  |  		// 如果是报名,需要修改乐团状态
 | 
											
										
											
												
													
														|  | @@ -1081,6 +1094,11 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
											
												
													
														|  |  				List<MusicGroupPaymentCalenderCourseSettings> musicGroupPaymentCalenderCourseSettings = musicGroupPaymentCalenderCourseSettingsDao.queryCalenderCourseSettings(musicGroupPaymentCalender.getId());
 |  |  				List<MusicGroupPaymentCalenderCourseSettings> musicGroupPaymentCalenderCourseSettings = musicGroupPaymentCalenderCourseSettingsDao.queryCalenderCourseSettings(musicGroupPaymentCalender.getId());
 | 
											
												
													
														|  |  				addStudent(musicGroupPaymentCalender,musicGroupPaymentCalenderCourseSettings);
 |  |  				addStudent(musicGroupPaymentCalender,musicGroupPaymentCalenderCourseSettings);
 | 
											
												
													
														|  |  			}
 |  |  			}
 | 
											
												
													
														|  | 
 |  | +			if(musicGroupPaymentCalender.getStatus() == OPEN){
 | 
											
												
													
														|  | 
 |  | +				//将0元未缴费学员缴费状态更新为已缴费
 | 
											
												
													
														|  | 
 |  | +				int j = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender.getId());
 | 
											
												
													
														|  | 
 |  | +				musicGroupPaymentCalender.setActualNum((musicGroupPaymentCalender.getActualNum()==null?0:musicGroupPaymentCalender.getActualNum()) + j);
 | 
											
												
													
														|  | 
 |  | +			}
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  		MusicGroupPaymentCalender calender = musicGroupPaymentCalenders.get(0);
 |  |  		MusicGroupPaymentCalender calender = musicGroupPaymentCalenders.get(0);
 | 
											
												
													
														|  |  		//如果是报名,并且所有的报名都审核通过,需要修改乐团状态
 |  |  		//如果是报名,并且所有的报名都审核通过,需要修改乐团状态
 | 
											
										
											
												
													
														|  | @@ -1218,6 +1236,9 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
											
												
													
														|  |  				// “未开始”更新至“进行中”
 |  |  				// “未开始”更新至“进行中”
 | 
											
												
													
														|  |  				mgpc.setUpdateTime(date);
 |  |  				mgpc.setUpdateTime(date);
 | 
											
												
													
														|  |  				mgpc.setStatus(PaymentCalenderStatusEnum.OPEN);
 |  |  				mgpc.setStatus(PaymentCalenderStatusEnum.OPEN);
 | 
											
												
													
														|  | 
 |  | +				//将0元未缴费学员缴费状态更新为已缴费
 | 
											
												
													
														|  | 
 |  | +				int i = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(mgpc.getId());
 | 
											
												
													
														|  | 
 |  | +				mgpc.setActualNum((mgpc.getActualNum()==null?0:mgpc.getActualNum()) + i);
 | 
											
												
													
														|  |  				updateMusicGroupPaymentCalenderList.add(mgpc);
 |  |  				updateMusicGroupPaymentCalenderList.add(mgpc);
 | 
											
												
													
														|  |  				if(mgpc.getPayUserType() == STUDENT){
 |  |  				if(mgpc.getPayUserType() == STUDENT){
 | 
											
												
													
														|  |  					//推送待续费通知
 |  |  					//推送待续费通知
 |