|
@@ -216,7 +216,7 @@ public class CourseScheduleConvertServiceImpl implements CourseScheduleConvertSe
|
|
|
String studentIds = courseConvertLog.getStudentIds();
|
|
|
//学员是否还在班级
|
|
|
Integer num = classGroupStudentMapperService.getDao().countByUserIdsAndClassIds(studentIds,oldClassId);
|
|
|
- if(Objects.isNull(num) || num < studentIds.split(",").length){
|
|
|
+ if(num != null && num < studentIds.split(",").length){
|
|
|
throw new BizException("操作失败:部分学员已退班");
|
|
|
}
|
|
|
//课程是否有消耗
|