|
@@ -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);
|