|
@@ -250,8 +250,8 @@ public class CourseScheduleConvertServiceImpl implements CourseScheduleConvertSe
|
|
throw new BizException("操作失败:所选部分课程不支持课程转换");
|
|
throw new BizException("操作失败:所选部分课程不支持课程转换");
|
|
}
|
|
}
|
|
//校验学员时长是否一致
|
|
//校验学员时长是否一致
|
|
- int errorNum = courseScheduleConvertDao.checkStudentCourseNum(courseIds,split.length);
|
|
|
|
- if (errorNum > 0){
|
|
|
|
|
|
+ Integer errorNum = courseScheduleConvertDao.checkStudentCourseNum(courseIds,split.length);
|
|
|
|
+ if (errorNum != null && errorNum > 0){
|
|
throw new BizException("操作失败: 课程关联学员不一致");
|
|
throw new BizException("操作失败: 课程关联学员不一致");
|
|
}
|
|
}
|
|
}
|
|
}
|