|
@@ -2100,11 +2100,15 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
throw new BizException("乐团当前状态是{},不能恢复", musicGroup.getStatus().getMsg());
|
|
throw new BizException("乐团当前状态是{},不能恢复", musicGroup.getStatus().getMsg());
|
|
}
|
|
}
|
|
|
|
|
|
- musicGroup.setStatus(MusicGroupStatusEnum.PROGRESS);
|
|
|
|
- musicGroup.setUpdateTime(new Date());
|
|
|
|
- musicGroupDao.update(musicGroup);
|
|
|
|
|
|
+ //恢复课表
|
|
|
|
+ if (musicGroup.getStatus() == MusicGroupStatusEnum.PAUSE) {
|
|
|
|
+ courseScheduleDao.resumeCourseScheduleByMusicGroupId(musicGroup.getId());
|
|
|
|
+ }
|
|
|
|
+ musicGroup.setStatus(MusicGroupStatusEnum.PROGRESS);
|
|
|
|
+ musicGroup.setUpdateTime(new Date());
|
|
|
|
+ musicGroupDao.update(musicGroup);
|
|
|
|
|
|
- // 重新设置下次缴费时间
|
|
|
|
|
|
+ // 重新设置下次缴费时间
|
|
/*List<MusicGroupStudentFee> fees = musicGroupStudentFeeDao.queryByMusicGroupId(musicGroupId);
|
|
/*List<MusicGroupStudentFee> fees = musicGroupStudentFeeDao.queryByMusicGroupId(musicGroupId);
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
fees.forEach(e -> {
|
|
fees.forEach(e -> {
|
|
@@ -2113,12 +2117,8 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
});
|
|
});
|
|
musicGroupStudentFeeDao.batchUpdate(fees);*/
|
|
musicGroupStudentFeeDao.batchUpdate(fees);*/
|
|
// musicGroupStudentFeeDao.updateNextPaymentDate(musicGroupId, musicGroupPaymentCalenderService.getNextPaymentDate(musicGroupId, null));
|
|
// musicGroupStudentFeeDao.updateNextPaymentDate(musicGroupId, musicGroupPaymentCalenderService.getNextPaymentDate(musicGroupId, null));
|
|
- musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "恢复乐团", sysUser.getId(), ""));
|
|
|
|
|
|
+ musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "恢复乐团", sysUser.getId(), ""));
|
|
|
|
|
|
- //恢复课表
|
|
|
|
- if (musicGroup.getStatus() == MusicGroupStatusEnum.PAUSE) {
|
|
|
|
- courseScheduleDao.resumeCourseScheduleByMusicGroupId(musicGroup.getId());
|
|
|
|
- }
|
|
|
|
|
|
|
|
//统计变更学员数
|
|
//统计变更学员数
|
|
groupEventSource.musicGroupStudentChangeEvent(musicGroupId, StudentMusicGroupStatusEnum.NORMAL, null);
|
|
groupEventSource.musicGroupStudentChangeEvent(musicGroupId, StudentMusicGroupStatusEnum.NORMAL, null);
|