|
@@ -1080,6 +1080,9 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
if(Objects.isNull(vipGroup)){
|
|
|
throw new BizException("指定的课程不存在");
|
|
|
}
|
|
|
+ if(vipGroup.getStatus().equals(VipGroupStatusEnum.CANCEL)){
|
|
|
+ throw new BizException("不能已进行的课程进行此操作");
|
|
|
+ }
|
|
|
ClassGroup classGroup = classGroupDao.findByVipGroup(vipGroupId, null);
|
|
|
sysUserCashAccountService.updateBalance(studentId, amount);
|
|
|
SysUserCashAccount sysUserCashAccount = sysUserCashAccountService.get(studentId);
|