Bläddra i källkod

1、服务指标导出增加作业提交时间;
2、vip课休学状态增加退学操作;

Joburgess 4 år sedan
förälder
incheckning
d1db0657f6

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

@@ -1511,9 +1511,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 		if(Objects.isNull(vipGroupId)||Objects.isNull(studentId)){
 			throw new BizException("请指定小课与学生");
 		}
-		if(Objects.isNull(amount)){
-			throw new BizException("请确定退费金额");
-		}
 		VipGroup vipGroup=vipGroupDao.get(vipGroupId);
 		if(Objects.isNull(vipGroup)){
 			throw new BizException("指定的课程不存在");
@@ -1546,6 +1543,9 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 			studentPauseInfoDao.deleteUserPauseInfoWithGroup(GroupType.VIP, vipGroupId.toString(), studentId);
 			return;
         }
+		if(Objects.isNull(amount)){
+			throw new BizException("请确定退费金额");
+		}
 
 		sysUserCashAccountService.updateBalance(studentId, amount);
 		SysUserCashAccount sysUserCashAccount = sysUserCashAccountService.get(studentId);