|
@@ -685,11 +685,14 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
|
|
|
MusicGroup musicGroup = musicGroupDao.get(studentRegistration.getMusicGroupId());
|
|
MusicGroup musicGroup = musicGroupDao.get(studentRegistration.getMusicGroupId());
|
|
studentRegistration.setOrganId(musicGroup.getOrganId());
|
|
studentRegistration.setOrganId(musicGroup.getOrganId());
|
|
|
|
+ studentRegistration.setPayingStatus(1);
|
|
|
|
+
|
|
//云教练/云教练+
|
|
//云教练/云教练+
|
|
if (registerPayDto.getBuyCloudTeacher() || registerPayDto.getBuyCloudTeacherPlus()) {
|
|
if (registerPayDto.getBuyCloudTeacher() || registerPayDto.getBuyCloudTeacherPlus()) {
|
|
OrganizationCloudTeacherFee cloudTeacher = organizationCloudTeacherFeeDao.getByOrganId(studentRegistration.getOrganId());
|
|
OrganizationCloudTeacherFee cloudTeacher = organizationCloudTeacherFeeDao.getByOrganId(studentRegistration.getOrganId());
|
|
BigDecimal cloudTeacherPrice = registerPayDto.getBuyCloudTeacher() ? cloudTeacher.getPrice() : cloudTeacher.getPlusPrice();
|
|
BigDecimal cloudTeacherPrice = registerPayDto.getBuyCloudTeacher() ? cloudTeacher.getPrice() : cloudTeacher.getPlusPrice();
|
|
orderAmount = orderAmount.add(cloudTeacherPrice);
|
|
orderAmount = orderAmount.add(cloudTeacherPrice);
|
|
|
|
+ studentRegistration.setHasCloudTeacher(1);
|
|
}
|
|
}
|
|
|
|
|
|
if (amount.compareTo(orderAmount) != 0) {
|
|
if (amount.compareTo(orderAmount) != 0) {
|
|
@@ -731,10 +734,14 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
|
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
studentPaymentOrder.setPaymentChannel("ADAPAY");
|
|
studentPaymentOrder.setPaymentChannel("ADAPAY");
|
|
|
|
+ studentRegistration.setPayingStatus(2);
|
|
}
|
|
}
|
|
studentPaymentOrderService.update(studentPaymentOrder);
|
|
studentPaymentOrderService.update(studentPaymentOrder);
|
|
studentPaymentOrder.setVersion(studentPaymentOrder.getVersion() + 1);
|
|
studentPaymentOrder.setVersion(studentPaymentOrder.getVersion() + 1);
|
|
|
|
|
|
|
|
+ //更新注册信息
|
|
|
|
+ studentRegistrationService.update(studentRegistration);
|
|
|
|
+
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
Map<String, String> notifyMap = new HashMap<>();
|
|
Map<String, String> notifyMap = new HashMap<>();
|
|
notifyMap.put("hasPaidZero", "205");
|
|
notifyMap.put("hasPaidZero", "205");
|
|
@@ -859,11 +866,14 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
|
|
|
MusicGroup musicGroup = musicGroupDao.get(studentRegistration.getMusicGroupId());
|
|
MusicGroup musicGroup = musicGroupDao.get(studentRegistration.getMusicGroupId());
|
|
studentRegistration.setOrganId(musicGroup.getOrganId());
|
|
studentRegistration.setOrganId(musicGroup.getOrganId());
|
|
|
|
+ studentRegistration.setPayingStatus(1);
|
|
|
|
+
|
|
//云教练/云教练+
|
|
//云教练/云教练+
|
|
if (registerPayDto.getBuyCloudTeacher() || registerPayDto.getBuyCloudTeacherPlus()) {
|
|
if (registerPayDto.getBuyCloudTeacher() || registerPayDto.getBuyCloudTeacherPlus()) {
|
|
OrganizationCloudTeacherFee cloudTeacher = organizationCloudTeacherFeeDao.getByOrganId(studentRegistration.getOrganId());
|
|
OrganizationCloudTeacherFee cloudTeacher = organizationCloudTeacherFeeDao.getByOrganId(studentRegistration.getOrganId());
|
|
BigDecimal cloudTeacherPrice = registerPayDto.getBuyCloudTeacher() ? cloudTeacher.getPrice() : cloudTeacher.getPlusPrice();
|
|
BigDecimal cloudTeacherPrice = registerPayDto.getBuyCloudTeacher() ? cloudTeacher.getPrice() : cloudTeacher.getPlusPrice();
|
|
orderAmount = orderAmount.add(cloudTeacherPrice);
|
|
orderAmount = orderAmount.add(cloudTeacherPrice);
|
|
|
|
+ studentRegistration.setHasCloudTeacher(1);
|
|
}
|
|
}
|
|
|
|
|
|
if (amount.compareTo(orderAmount) != 0) {
|
|
if (amount.compareTo(orderAmount) != 0) {
|
|
@@ -906,10 +916,13 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
|
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
studentPaymentOrder.setPaymentChannel("ADAPAY");
|
|
studentPaymentOrder.setPaymentChannel("ADAPAY");
|
|
|
|
+ studentRegistration.setPayingStatus(2);
|
|
}
|
|
}
|
|
studentPaymentOrderService.update(studentPaymentOrder);
|
|
studentPaymentOrderService.update(studentPaymentOrder);
|
|
studentPaymentOrder.setVersion(studentPaymentOrder.getVersion() + 1);
|
|
studentPaymentOrder.setVersion(studentPaymentOrder.getVersion() + 1);
|
|
|
|
|
|
|
|
+ studentRegistrationService.update(studentRegistration);
|
|
|
|
+
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
Map<String, String> notifyMap = new HashMap<>();
|
|
Map<String, String> notifyMap = new HashMap<>();
|
|
notifyMap.put("hasPaidZero", "205");
|
|
notifyMap.put("hasPaidZero", "205");
|
|
@@ -1755,6 +1768,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
StudentMusicGroupStatusEnum currentStudentMusicGroupStatus = studentRegistration.getMusicGroupStatus();
|
|
StudentMusicGroupStatusEnum currentStudentMusicGroupStatus = studentRegistration.getMusicGroupStatus();
|
|
studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.QUIT);
|
|
studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.QUIT);
|
|
studentRegistration.setSurplusCourseFee(BigDecimal.ZERO);
|
|
studentRegistration.setSurplusCourseFee(BigDecimal.ZERO);
|
|
|
|
+ studentRegistration.setHasCloudTeacher(0);
|
|
studentRegistration.setUpdateTime(date);
|
|
studentRegistration.setUpdateTime(date);
|
|
|
|
|
|
studentRegistrationDao.update(studentRegistration);
|
|
studentRegistrationDao.update(studentRegistration);
|
|
@@ -1989,6 +2003,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
// 退团
|
|
// 退团
|
|
studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.QUIT);
|
|
studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.QUIT);
|
|
studentRegistration.setSurplusCourseFee(BigDecimal.ZERO);
|
|
studentRegistration.setSurplusCourseFee(BigDecimal.ZERO);
|
|
|
|
+ studentRegistration.setHasCloudTeacher(0);
|
|
studentRegistration.setUpdateTime(date);
|
|
studentRegistration.setUpdateTime(date);
|
|
|
|
|
|
studentRegistrationDao.update(studentRegistration);
|
|
studentRegistrationDao.update(studentRegistration);
|
|
@@ -2988,6 +3003,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
studentRegistration.setActualSubjectId(subjectId);
|
|
studentRegistration.setActualSubjectId(subjectId);
|
|
studentRegistration.setIsMerge(1);
|
|
studentRegistration.setIsMerge(1);
|
|
studentRegistration.setTemporaryCourseFee(null);
|
|
studentRegistration.setTemporaryCourseFee(null);
|
|
|
|
+ studentRegistration.setHasCloudTeacher(0);
|
|
}
|
|
}
|
|
studentRegistrationList.addAll(regs);
|
|
studentRegistrationList.addAll(regs);
|
|
});
|
|
});
|