|
@@ -1194,7 +1194,11 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
Map<String,BigDecimal> result=new HashMap<>();
|
|
Map<String,BigDecimal> result=new HashMap<>();
|
|
if(vipGroup.getStatus().equals(VipGroupStatusEnum.APPLYING)){
|
|
if(vipGroup.getStatus().equals(VipGroupStatusEnum.APPLYING)){
|
|
StudentPaymentOrder studentPaymentOrder = studentPaymentOrderDao.findByStudentVipGroup(vipGroupId, studentId, DealStatusEnum.SUCCESS.getCode());
|
|
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;
|
|
return result;
|
|
}
|
|
}
|
|
ClassGroup classGroup = classGroupDao.findByVipGroup(vipGroupId, null);
|
|
ClassGroup classGroup = classGroupDao.findByVipGroup(vipGroupId, null);
|