|
@@ -3776,11 +3776,10 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
if(lockClassGroupIds != null && lockClassGroupIds.size() > 0){
|
|
|
throw new BizException("所选班级包含审核中的学员班级调整申请");
|
|
|
}
|
|
|
- for (Integer classGroupId : classGroupIds) {
|
|
|
- List<CourseSchedule> courseSchedules = courseScheduleDao.findCoursesByClassGroupId(classGroupId,CourseStatusEnum.NOT_START);
|
|
|
- if(courseSchedules != null && courseSchedules.size() > 0){
|
|
|
- throw new BizException("所选班级不能有未开始的临时合并课程");
|
|
|
- }
|
|
|
+ //所选班级不能有未开始的临时合并课程
|
|
|
+ int courseNum = courseScheduleDao.findNoStartMasterCourseNum(classGroupIds);
|
|
|
+ if(courseNum > 0){
|
|
|
+ throw new BizException("所选班级不能有未开始的临时合并课程");
|
|
|
}
|
|
|
List<Integer> allTeacherIds = classGroupTeacherMapperList.stream()
|
|
|
.map(ClassGroupTeacherMapper::getUserId)
|