|
@@ -709,6 +709,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
|
|
|
StudentPaymentOrder studentPaymentOrder = studentRegistrationService.addOrder(studentRegistration, amount, orderNo, channelType, courseFee, goodsGroups, remitFee, courseRemitFee, newCourses, registerPayDto.getBuyMaintenance(), registerPayDto.getBuyCloudTeacher(), registerPayDto.getBuyCloudTeacherPlus());
|
|
StudentPaymentOrder studentPaymentOrder = studentRegistrationService.addOrder(studentRegistration, amount, orderNo, channelType, courseFee, goodsGroups, remitFee, courseRemitFee, newCourses, registerPayDto.getBuyMaintenance(), registerPayDto.getBuyCloudTeacher(), registerPayDto.getBuyCloudTeacherPlus());
|
|
studentPaymentOrder = studentPaymentOrderService.get(studentPaymentOrder.getId());
|
|
studentPaymentOrder = studentPaymentOrderService.get(studentPaymentOrder.getId());
|
|
|
|
+ boolean canPay = studentPaymentOrder.getClassGroupId() != null && studentPaymentOrder.getClassGroupId().equals(206);
|
|
|
|
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
BigDecimal balance = BigDecimal.ZERO;
|
|
BigDecimal balance = BigDecimal.ZERO;
|
|
@@ -734,7 +735,9 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
studentPaymentOrder.setUpdateTime(date);
|
|
studentPaymentOrder.setUpdateTime(date);
|
|
|
|
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
- studentPaymentOrder.setPaymentChannel("ADAPAY");
|
|
|
|
|
|
+ if(!canPay) {
|
|
|
|
+ studentPaymentOrder.setPaymentChannel("ADAPAY");
|
|
|
|
+ }
|
|
studentRegistration.setPayingStatus(2);
|
|
studentRegistration.setPayingStatus(2);
|
|
}
|
|
}
|
|
studentPaymentOrderService.update(studentPaymentOrder);
|
|
studentPaymentOrderService.update(studentPaymentOrder);
|
|
@@ -751,10 +754,12 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, MessageTypeEnum.NO_BUY_CLOUD_TEACHER_MSG,
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, MessageTypeEnum.NO_BUY_CLOUD_TEACHER_MSG,
|
|
userPhoneMap, null, 0, null, null, musicGroup.getName(), studentRegistration.getName());
|
|
userPhoneMap, null, 0, null, null, musicGroup.getName(), studentRegistration.getName());
|
|
|
|
|
|
- Map<String, String> notifyMap = new HashMap<>();
|
|
|
|
- notifyMap.put("hasPaidZero", "205");
|
|
|
|
- notifyMap.put("orderNo", studentPaymentOrder.getOrderNo());
|
|
|
|
- return notifyMap;
|
|
|
|
|
|
+ if(!canPay){
|
|
|
|
+ Map<String, String> notifyMap = new HashMap<>();
|
|
|
|
+ notifyMap.put("hasPaidZero", "205");
|
|
|
|
+ notifyMap.put("orderNo", studentPaymentOrder.getOrderNo());
|
|
|
|
+ return notifyMap;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if (amount.compareTo(BigDecimal.ZERO) == 0) {
|
|
if (amount.compareTo(BigDecimal.ZERO) == 0) {
|
|
@@ -898,6 +903,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
|
|
|
StudentPaymentOrder studentPaymentOrder = studentRegistrationService.addOrder(studentRegistration, amount, orderNo, channelType, courseFee, goodsGroups, remitFee, courseRemitFee, newCourses, registerPayDto.getBuyMaintenance(), registerPayDto.getBuyCloudTeacher(), registerPayDto.getBuyCloudTeacherPlus());
|
|
StudentPaymentOrder studentPaymentOrder = studentRegistrationService.addOrder(studentRegistration, amount, orderNo, channelType, courseFee, goodsGroups, remitFee, courseRemitFee, newCourses, registerPayDto.getBuyMaintenance(), registerPayDto.getBuyCloudTeacher(), registerPayDto.getBuyCloudTeacherPlus());
|
|
studentPaymentOrder = studentPaymentOrderService.get(studentPaymentOrder.getId());
|
|
studentPaymentOrder = studentPaymentOrderService.get(studentPaymentOrder.getId());
|
|
|
|
+ boolean canPay = studentPaymentOrder.getClassGroupId() != null && studentPaymentOrder.getClassGroupId().equals(206);
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
|
|
|
|
BigDecimal balance = BigDecimal.ZERO;
|
|
BigDecimal balance = BigDecimal.ZERO;
|
|
@@ -923,7 +929,9 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
studentPaymentOrder.setUpdateTime(date);
|
|
studentPaymentOrder.setUpdateTime(date);
|
|
|
|
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
if ("205".equals(studentPaymentOrder.getPaymentAccountNo())) {
|
|
- studentPaymentOrder.setPaymentChannel("ADAPAY");
|
|
|
|
|
|
+ if(!canPay) {
|
|
|
|
+ studentPaymentOrder.setPaymentChannel("ADAPAY");
|
|
|
|
+ }
|
|
studentRegistration.setPayingStatus(2);
|
|
studentRegistration.setPayingStatus(2);
|
|
}
|
|
}
|
|
studentPaymentOrderService.update(studentPaymentOrder);
|
|
studentPaymentOrderService.update(studentPaymentOrder);
|
|
@@ -939,11 +947,12 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, MessageTypeEnum.NO_BUY_CLOUD_TEACHER_MSG,
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, MessageTypeEnum.NO_BUY_CLOUD_TEACHER_MSG,
|
|
userPhoneMap, null, 0, null, null, musicGroup.getName(), studentRegistration.getName());
|
|
userPhoneMap, null, 0, null, null, musicGroup.getName(), studentRegistration.getName());
|
|
|
|
|
|
-
|
|
|
|
- Map<String, String> notifyMap = new HashMap<>();
|
|
|
|
- notifyMap.put("hasPaidZero", "205");
|
|
|
|
- notifyMap.put("orderNo", studentPaymentOrder.getOrderNo());
|
|
|
|
- return notifyMap;
|
|
|
|
|
|
+ if(!canPay) {
|
|
|
|
+ Map<String, String> notifyMap = new HashMap<>();
|
|
|
|
+ notifyMap.put("hasPaidZero", "205");
|
|
|
|
+ notifyMap.put("orderNo", studentPaymentOrder.getOrderNo());
|
|
|
|
+ return notifyMap;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if (amount.compareTo(BigDecimal.ZERO) == 0) {
|
|
if (amount.compareTo(BigDecimal.ZERO) == 0) {
|
|
@@ -2897,6 +2906,12 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
} else {
|
|
} else {
|
|
throw new BizException("当前乐团状态不支持此操作");
|
|
throw new BizException("当前乐团状态不支持此操作");
|
|
}
|
|
}
|
|
|
|
+ //有已付费,在储备中的人,不容许到储备中
|
|
|
|
+ int payAndCheckNum = studentRegistrationDao.countPayAndCheckNum(musicGroupId);
|
|
|
|
+ if(payAndCheckNum > 0){
|
|
|
|
+ throw new BizException("有已付费,审核中的学生,请处理后再开团");
|
|
|
|
+ }
|
|
|
|
+
|
|
//新建团:(乐团合作单位没有进行中 、暂停、关闭 的乐团)
|
|
//新建团:(乐团合作单位没有进行中 、暂停、关闭 的乐团)
|
|
//若乐团新建团,则操作【确认开团】时,若【已缴费】学员达到98人,则无需对【未缴费】学员新增回访
|
|
//若乐团新建团,则操作【确认开团】时,若【已缴费】学员达到98人,则无需对【未缴费】学员新增回访
|
|
//若乐团不是新建团,则操作【确认开团】时,若【已缴费】学员达到58人,则无需对【未缴费】学员新增回访
|
|
//若乐团不是新建团,则操作【确认开团】时,若【已缴费】学员达到58人,则无需对【未缴费】学员新增回访
|