|
@@ -167,6 +167,9 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
if (subjectRegisters != null && subjectRegisters.size() > 0) {
|
|
if (subjectRegisters != null && subjectRegisters.size() > 0) {
|
|
List<StudentRegistration> studentRegistrationList = new ArrayList<>();
|
|
List<StudentRegistration> studentRegistrationList = new ArrayList<>();
|
|
subjectRegisters.forEach(e -> {
|
|
subjectRegisters.forEach(e -> {
|
|
|
|
+ if(e.getRegisterIdList().size() == 0){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
//原来乐团的注册学生
|
|
//原来乐团的注册学生
|
|
List<StudentRegistration> musicGroupStudentRegistrationList = studentRegistrationDao.findStudentListByIdList(e.getRegisterIdList());
|
|
List<StudentRegistration> musicGroupStudentRegistrationList = studentRegistrationDao.findStudentListByIdList(e.getRegisterIdList());
|
|
for (StudentRegistration studentRegistration : musicGroupStudentRegistrationList) {
|
|
for (StudentRegistration studentRegistration : musicGroupStudentRegistrationList) {
|
|
@@ -605,7 +608,8 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
StudentPaymentOrder studentPaymentOrder = studentPaymentOrderService.findMusicGroupApplyOrderByStatus(userId, musicGroupId, DealStatusEnum.SUCCESS);
|
|
StudentPaymentOrder studentPaymentOrder = studentPaymentOrderService.findMusicGroupApplyOrderByStatus(userId, musicGroupId, DealStatusEnum.SUCCESS);
|
|
|
|
|
|
if (studentPaymentOrder == null) {
|
|
if (studentPaymentOrder == null) {
|
|
- throw new BizException("报名订单找不到");
|
|
|
|
|
|
+ //兼容历史数据
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
|
|
|
|
List<StudentPaymentOrderDetail> orderDetailList = studentPaymentOrderDetailDao.findApplyOrderGoods(studentPaymentOrder.getId());
|
|
List<StudentPaymentOrderDetail> orderDetailList = studentPaymentOrderDetailDao.findApplyOrderGoods(studentPaymentOrder.getId());
|
|
@@ -684,7 +688,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
StudentPaymentOrder studentPaymentOrder = studentPaymentOrderService.findMusicGroupApplyOrderByStatus(userId, musicGroupId, DealStatusEnum.SUCCESS);
|
|
StudentPaymentOrder studentPaymentOrder = studentPaymentOrderService.findMusicGroupApplyOrderByStatus(userId, musicGroupId, DealStatusEnum.SUCCESS);
|
|
|
|
|
|
if (studentPaymentOrder == null) {
|
|
if (studentPaymentOrder == null) {
|
|
- throw new BizException("报名订单找不到");
|
|
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
|
|
|
|
List<StudentPaymentOrderDetail> orderDetailList = studentPaymentOrderDetailDao.findApplyOrderGoods(studentPaymentOrder.getId());
|
|
List<StudentPaymentOrderDetail> orderDetailList = studentPaymentOrderDetailDao.findApplyOrderGoods(studentPaymentOrder.getId());
|