Joburgess 5 سال پیش
والد
کامیت
de9b185a1b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupServiceImpl.java

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

@@ -1566,7 +1566,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 
 		Map<String, BigDecimal> studentSurplusCourseFee = getStudentSurplusCourseFee(vipGroupId, studentId);
 		BigDecimal suplusCourseFee = studentSurplusCourseFee.get("suplusCourseFee");
-		if(suplusCourseFee.compareTo(amount)>0){
+		if(amount.compareTo(suplusCourseFee)>0){
 			throw new BizException("学员最大可退费金额为{}元", suplusCourseFee.toString());
 		}