瀏覽代碼

1、vip课加学员

Joburgess 5 年之前
父節點
當前提交
6358ab9f08
共有 1 個文件被更改,包括 2 次插入3 次删除
  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());