|
@@ -432,9 +432,6 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
Set<Integer> list2 = Arrays.stream(ints).boxed().collect(Collectors.toSet());
|
|
Set<Integer> list2 = Arrays.stream(ints).boxed().collect(Collectors.toSet());
|
|
musicGroupPaymentCalenderDetailService.batchAdd(musicGroupPaymentCalender.getId(),list2);
|
|
musicGroupPaymentCalenderDetailService.batchAdd(musicGroupPaymentCalender.getId(),list2);
|
|
}
|
|
}
|
|
- }
|
|
|
|
-
|
|
|
|
- if(musicGroupPaymentCalender.getStatus() == OPEN){
|
|
|
|
//将0元未缴费学员缴费状态更新为已缴费
|
|
//将0元未缴费学员缴费状态更新为已缴费
|
|
int j = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender.getId());
|
|
int j = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender.getId());
|
|
musicGroupPaymentCalender.setActualNum((musicGroupPaymentCalender.getActualNum()==null?0:musicGroupPaymentCalender.getActualNum()) + j);
|
|
musicGroupPaymentCalender.setActualNum((musicGroupPaymentCalender.getActualNum()==null?0:musicGroupPaymentCalender.getActualNum()) + j);
|
|
@@ -750,6 +747,10 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
//如果是跨团班级合并,添加学员
|
|
//如果是跨团班级合并,添加学员
|
|
musicGroupPaymentCalenderDetailService.batchAdd(musicGroupPaymentCalender,musicGroupPaymentCalenderDto.getMusicGroupPaymentCalenderStudentDetails());
|
|
musicGroupPaymentCalenderDetailService.batchAdd(musicGroupPaymentCalender,musicGroupPaymentCalenderDto.getMusicGroupPaymentCalenderStudentDetails());
|
|
}
|
|
}
|
|
|
|
+ //将0元未缴费学员缴费状态更新为已缴费
|
|
|
|
+ int j = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender.getId());
|
|
|
|
+ musicGroupPaymentCalender.setActualNum((musicGroupPaymentCalender.getActualNum()==null?0:musicGroupPaymentCalender.getActualNum()) + j);
|
|
|
|
+ musicGroupPaymentCalenderDao.update(musicGroupPaymentCalender);
|
|
}
|
|
}
|
|
|
|
|
|
if (currentMusicGroupPaymentCalenderCourseSettings.size() > 0) {
|
|
if (currentMusicGroupPaymentCalenderCourseSettings.size() > 0) {
|
|
@@ -763,13 +764,6 @@ 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);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// 如果是报名,需要修改乐团状态
|
|
// 如果是报名,需要修改乐团状态
|
|
@@ -1094,11 +1088,9 @@ 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);
|
|
|
|
- }
|
|
|
|
|
|
+ //将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);
|
|
//如果是报名,并且所有的报名都审核通过,需要修改乐团状态
|
|
//如果是报名,并且所有的报名都审核通过,需要修改乐团状态
|