Bladeren bron

1、vip课加学员

Joburgess 5 jaren geleden
bovenliggende
commit
6358ab9f08
1 gewijzigde bestanden met toevoegingen van 2 en 3 verwijderingen
  1. 2 3
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/CourseScheduleServiceImpl.java

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

@@ -1004,9 +1004,8 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 			throw new BizException("指定课程不存在");
 		}
 
-		int courseNum = courseScheduleDao.countVipGroupCourses(vipGroup.getId().intValue());
-		if(courseNum==0){
-			throw new BizException("未排课的课程不能进行调整");
+		if(vipGroup.getStatus().equals(VipGroupStatusEnum.APPLYING)){
+			throw new BizException("报名中的课程不能加课");
 		}
 
 		ClassGroup classGroup=classGroupDao.findByGroupAndType(vipGroupCourseAdjustInfo.getVipGroupId().toString(),GroupType.VIP.getCode());