|
@@ -1194,7 +1194,11 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
Map<String,BigDecimal> result=new HashMap<>();
|
|
|
if(vipGroup.getStatus().equals(VipGroupStatusEnum.APPLYING)){
|
|
|
StudentPaymentOrder studentPaymentOrder = studentPaymentOrderDao.findByStudentVipGroup(vipGroupId, studentId, DealStatusEnum.SUCCESS.getCode());
|
|
|
- result.put("suplusCourseFee",studentPaymentOrder.getActualAmount());
|
|
|
+ if(Objects.isNull(studentPaymentOrder)){
|
|
|
+ result.put("suplusCourseFee",new BigDecimal(0));
|
|
|
+ }else{
|
|
|
+ result.put("suplusCourseFee",studentPaymentOrder.getActualAmount());
|
|
|
+ }
|
|
|
return result;
|
|
|
}
|
|
|
ClassGroup classGroup = classGroupDao.findByVipGroup(vipGroupId, null);
|
|
@@ -1655,6 +1659,9 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
for (VipGroup noCreateSuccessVipGroup : noCreateSuccessVipGroups) {
|
|
|
List<StudentPaymentOrder> studentPaymentOrders = studentPaymentOrderDao.queryByDealStatus(noCreateSuccessVipGroup.getId().toString(),
|
|
|
OrderTypeEnum.SMALL_CLASS_TO_BUY, DealStatusEnum.SUCCESS);
|
|
|
+ //学生推送消息
|
|
|
+ //老师推送消息
|
|
|
+// sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG,MessageTypeEnum.PUSH_STUDENT_VIP_STOP,);
|
|
|
for (StudentPaymentOrder studentPaymentOrder:studentPaymentOrders){
|
|
|
//生成账户资金明细
|
|
|
sysUserCashAccountService.updateCourseBalance(studentPaymentOrder.getUserId(),studentPaymentOrder.getActualAmount());
|