|
@@ -2,6 +2,7 @@ package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
import static com.ym.mec.biz.dal.enums.DealStatusEnum.CLOSE;
|
|
import static com.ym.mec.biz.dal.enums.DealStatusEnum.CLOSE;
|
|
import static com.ym.mec.biz.dal.enums.DealStatusEnum.SUCCESS;
|
|
import static com.ym.mec.biz.dal.enums.DealStatusEnum.SUCCESS;
|
|
|
|
+import static com.ym.mec.biz.dal.enums.PaymentStatusEnum.YES;
|
|
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
@@ -281,7 +282,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
studentRegistration.setId(null);
|
|
studentRegistration.setId(null);
|
|
if (musicGroupSubjectPlan.getFee().compareTo(BigDecimal.ZERO) == 0) {
|
|
if (musicGroupSubjectPlan.getFee().compareTo(BigDecimal.ZERO) == 0) {
|
|
studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.NORMAL);
|
|
studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.NORMAL);
|
|
- studentRegistration.setPaymentStatus(PaymentStatusEnum.YES);
|
|
|
|
|
|
+ studentRegistration.setPaymentStatus(YES);
|
|
} else {
|
|
} else {
|
|
studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.APPLY);
|
|
studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.APPLY);
|
|
studentRegistration.setPaymentStatus(PaymentStatusEnum.OPEN);
|
|
studentRegistration.setPaymentStatus(PaymentStatusEnum.OPEN);
|
|
@@ -1905,7 +1906,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
throw new BizException("缴费项目不存在");
|
|
throw new BizException("缴费项目不存在");
|
|
}
|
|
}
|
|
StudentRegistration studentRegistration = studentRegistrationService.queryByUserIdAndMusicGroupId(userId, calender.getMusicGroupId());
|
|
StudentRegistration studentRegistration = studentRegistrationService.queryByUserIdAndMusicGroupId(userId, calender.getMusicGroupId());
|
|
- if (studentRegistration == null || studentRegistration.getPaymentStatus() != PaymentStatusEnum.YES) {
|
|
|
|
|
|
+ if (studentRegistration == null || studentRegistration.getPaymentStatus() != YES) {
|
|
throw new BizException("请走报名缴费流程");
|
|
throw new BizException("请走报名缴费流程");
|
|
}
|
|
}
|
|
Integer organId = studentRegistration.getOrganId();
|
|
Integer organId = studentRegistration.getOrganId();
|
|
@@ -2049,6 +2050,13 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
musicGroupStudentFee.setTemporaryCourseFee(new BigDecimal(0));
|
|
musicGroupStudentFee.setTemporaryCourseFee(new BigDecimal(0));
|
|
musicGroupStudentFeeDao.update(musicGroupStudentFee);
|
|
musicGroupStudentFeeDao.update(musicGroupStudentFee);
|
|
}
|
|
}
|
|
|
|
+ //如果是进行中加学员
|
|
|
|
+ MusicGroupPaymentCalender paymentCalender = musicGroupPaymentCalenderDao.get(calenderDetail.getMusicGroupPaymentCalenderId());
|
|
|
|
+ if(paymentCalender.getPaymentType() == MusicGroupPaymentCalender.PaymentType.ADD_STUDENT){
|
|
|
|
+ studentRegistration.setPaymentStatus(YES);
|
|
|
|
+ studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.NORMAL);
|
|
|
|
+ studentRegistrationDao.update(studentRegistration);
|
|
|
|
+ }
|
|
/*if (musicGroupPaymentCalender.getType().equals(MusicGroupPaymentCalender.FeeType.ONLINE)) {
|
|
/*if (musicGroupPaymentCalender.getType().equals(MusicGroupPaymentCalender.FeeType.ONLINE)) {
|
|
Integer getRemainNetworkClassTimes = musicGroupStudentFee.getRemainNetworkClassTimes() == null ? 0 : musicGroupStudentFee.getRemainNetworkClassTimes();
|
|
Integer getRemainNetworkClassTimes = musicGroupStudentFee.getRemainNetworkClassTimes() == null ? 0 : musicGroupStudentFee.getRemainNetworkClassTimes();
|
|
musicGroupStudentFee.setRemainNetworkClassTimes(getRemainNetworkClassTimes + 1);
|
|
musicGroupStudentFee.setRemainNetworkClassTimes(getRemainNetworkClassTimes + 1);
|