|  | @@ -168,8 +168,6 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private MusicGroupPaymentCalenderService musicGroupPaymentCalenderService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  | -    private MusicGroupPaymentCalenderDetailService musicGroupPaymentCalenderDetailService;
 | 
	
		
			
				|  |  | -    @Autowired
 | 
	
		
			
				|  |  |      private IdGeneratorService idGeneratorService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private MusicGroupStudentClassAdjustDao musicGroupStudentClassAdjustDao;
 | 
	
	
		
			
				|  | @@ -362,7 +360,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  | -    public ClassGroup addMixClassGroup(String musicGroupId, String name, String classGroupIds) throws Exception {
 | 
	
		
			
				|  |  | +    public ClassGroup addMixClassGroup(String musicGroupId, String name, String classGroupIds){
 | 
	
		
			
				|  |  |          Date date;
 | 
	
		
			
				|  |  |          date = new Date();
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -3264,11 +3262,6 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
 | 
	
		
			
				|  |  |          return false;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @Override
 | 
	
		
			
				|  |  | -    public List<ClassGroup> findByClassGroupIds(List<Integer> classGroupIds) {
 | 
	
		
			
				|  |  | -        return classGroupDao.findByClassGroupIds(classGroupIds);
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      public Boolean batchAddImGroup(List<ClassGroupImGroupDto> classGroupImGroupList) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          MusicGroup musicGroup = musicGroupDao.get(classGroupImGroupList.get(0).getClassGroup().getMusicGroupId());
 | 
	
	
		
			
				|  | @@ -3696,7 +3689,6 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
 | 
	
		
			
				|  |  |          //记录申请信息
 | 
	
		
			
				|  |  |          MusicGroupStudentClassAdjust musicGroupStudentClassAdjust = new MusicGroupStudentClassAdjust();
 | 
	
		
			
				|  |  |          musicGroupStudentClassAdjust.setBatchNo(batchNo);
 | 
	
		
			
				|  |  | -        musicGroupStudentClassAdjust.setCourseFlag(false);
 | 
	
		
			
				|  |  |          musicGroupStudentClassAdjust.setMusicGroupId(musicGroup.getId());
 | 
	
		
			
				|  |  |          musicGroupStudentClassAdjust.setOperatorId(sysUser.getId());
 | 
	
		
			
				|  |  |          musicGroupStudentClassAdjust.setNewClassGroupJson(JSON.toJSONString(classGroup4MixDtos));
 | 
	
	
		
			
				|  | @@ -3718,9 +3710,6 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
 | 
	
		
			
				|  |  |          musicGroupStudentClassAdjust.setStudentPaymentIds(JSON.toJSONString(studentPaymentIds));
 | 
	
		
			
				|  |  |          //计算新增班级的可排课时长,总课次*默认时长  (用学员剩余的课程时长加上购买的时长,可能导致同一班级学员时长不一致)
 | 
	
		
			
				|  |  |          musicGroupStudentClassAdjust.setClassCourseMinute(JSON.toJSONString(findClassCourseMinuteMap(classGroupIds)));
 | 
	
		
			
				|  |  | -        if(status == null || status != AUDITING){
 | 
	
		
			
				|  |  | -            musicGroupStudentClassAdjust.setCourseFlag(true);
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  |          musicGroupStudentClassAdjustDao.insert(musicGroupStudentClassAdjust);
 | 
	
		
			
				|  |  |          //如果需要审核,校验参数配置
 | 
	
		
			
				|  |  |          checkMergeClassSplitClassAffirmParam(mergeClassSplitClassAffirmDto);
 | 
	
	
		
			
				|  | @@ -3783,17 +3772,20 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
 | 
	
		
			
				|  |  |          if(classGroupIds == null || classGroupIds.size() == 0){
 | 
	
		
			
				|  |  |              throw new BizException("请填写班级信息");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        //所选班级列表,是否包含已冻结的班级
 | 
	
		
			
				|  |  | +        List<ClassGroup> lockClassGroupIds = classGroupDao.findByClassGroupIds(classGroupIds, 1);
 | 
	
		
			
				|  |  | +        if(lockClassGroupIds != null && lockClassGroupIds.size() > 0){
 | 
	
		
			
				|  |  | +            throw new BizException("所选班级有审核中的合班申请");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          for (Integer classGroupId : classGroupIds) {
 | 
	
		
			
				|  |  | -            List<CourseSchedule> courseSchedules = courseScheduleService.classGroupNotStartMergeCourseReplace(classGroupId.longValue());
 | 
	
		
			
				|  |  | +            List<CourseSchedule> courseSchedules = courseScheduleDao.findCoursesByClassGroupId(classGroupId,CourseStatusEnum.NOT_START);
 | 
	
		
			
				|  |  |              if(courseSchedules != null && courseSchedules.size() > 0){
 | 
	
		
			
				|  |  |                  throw new BizException("所选班级不能有未开始的临时合并课程");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          List<Integer> allTeacherIds = classGroupTeacherMapperList.stream()
 | 
	
		
			
				|  |  |                  .map(ClassGroupTeacherMapper::getUserId)
 | 
	
		
			
				|  |  |                  .collect(Collectors.toList());
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          //所有教师列表
 | 
	
		
			
				|  |  |          List<Teacher> teachers = teacherDao.findByTeacherIds(allTeacherIds);
 | 
	
		
			
				|  |  |          Map<Integer, Teacher> teacherMap = teachers.stream()
 |