|
@@ -120,10 +120,9 @@ public class GroupClassServiceImpl implements GroupClassService {
|
|
|
if(!practiceGroup.getGroupStatus().equals(GroupStatusEnum.NORMAL)||practiceGroup.getCoursesExpireDate().before(now)){
|
|
|
throw new BizException("当前课程组不可关闭");
|
|
|
}
|
|
|
- if(Objects.isNull(refundAmount)){
|
|
|
- throw new BizException("请指定退款金额");
|
|
|
+ if(Objects.nonNull(refundAmount)&&refundAmount.compareTo(BigDecimal.ZERO)>0){
|
|
|
+ sysUserCashAccountService.updateBalance(practiceGroup.getStudentId(), refundAmount, PlatformCashAccountDetailTypeEnum.REFUNDS, "后团关闭网管课");
|
|
|
}
|
|
|
- sysUserCashAccountService.updateBalance(practiceGroup.getStudentId(), refundAmount, PlatformCashAccountDetailTypeEnum.REFUNDS, "后团关闭网管课");
|
|
|
cleanGroupInfo(groupId.toString(), GroupType.PRACTICE);
|
|
|
practiceGroup.setMemo("后台关闭网管课");
|
|
|
practiceGroup.setGroupStatus(GroupStatusEnum.CANCEL);
|