Joburgess 5 år sedan
förälder
incheckning
df0c56fe6d

+ 9 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupServiceImpl.java

@@ -2035,6 +2035,15 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
         }
 
 		result.put("suplusCourseFee", bigDecimal);
+
+		if(VipGroupStatusEnum.APPLYING.equals(vipGroup.getStatus())){
+			StudentPaymentOrder studentPaymentOrder = studentPaymentOrderDao.findByStudentVipGroup(vipGroupId, studentId, DealStatusEnum.SUCCESS.getCode());
+			if(Objects.nonNull(studentPaymentOrder)){
+				result.put("suplusCourseOriginalFee", studentPaymentOrder.getExpectAmount());
+				result.put("suplusCourseFee", studentPaymentOrder.getExpectAmount());
+			}
+		}
+
 		return result;
 	}