|
@@ -2268,12 +2268,12 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
// stopVipPush(vipGroup.getId(),vipGroup.getName());
|
|
|
return;
|
|
|
}
|
|
|
- if(VipGroupStatusEnum.APPLYING.equals(vipGroup.getStatus())){
|
|
|
- Integer studentNum = classGroupStudentMapperDao.countClassGroupStudentNum(classGroup.getId());
|
|
|
- if(studentNum>0){
|
|
|
- throw new BizException("无法停止课程,需要全部学员退学后,才能停止,请先操作学员退学。");
|
|
|
- }
|
|
|
+
|
|
|
+ Integer studentNum = classGroupStudentMapperDao.countClassGroupStudentNum(classGroup.getId());
|
|
|
+ if(studentNum>0){
|
|
|
+ throw new BizException("无法停止课程,需要全部学员退学后,才能停止,请先操作学员退学。");
|
|
|
}
|
|
|
+
|
|
|
List<Map<Integer, BigDecimal>> maps = vipGroupDao.countSurplusCourseFee(vipGroupId);
|
|
|
if(CollectionUtils.isEmpty(maps)||(maps.size()==1&&Objects.isNull(maps.get(0)))){
|
|
|
if(courseScheduleIds != null && courseScheduleIds.size() > 0){
|