|
@@ -601,13 +601,13 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
|
|
.eq(CourseGroup::getId, groupId)
|
|
.eq(CourseGroup::getId, groupId)
|
|
.eq(CourseGroup::getType, CourseScheduleEnum.LIVE.getCode())
|
|
.eq(CourseGroup::getType, CourseScheduleEnum.LIVE.getCode())
|
|
);
|
|
);
|
|
|
|
+ if (Objects.isNull(courseGroup)) {
|
|
|
|
+ throw new BizException("课程组不存在!");
|
|
|
|
+ }
|
|
//只要不是销售中的课程组都提示无法购买
|
|
//只要不是销售中的课程组都提示无法购买
|
|
if (!courseGroup.getStatus().equals(CourseGroupEnum.APPLY.getCode())) {
|
|
if (!courseGroup.getStatus().equals(CourseGroupEnum.APPLY.getCode())) {
|
|
throw new BizException("课程已结束销售!");
|
|
throw new BizException("课程已结束销售!");
|
|
}
|
|
}
|
|
- if (Objects.isNull(courseGroup)) {
|
|
|
|
- throw new BizException("课程组不存在!");
|
|
|
|
- }
|
|
|
|
//课程信息
|
|
//课程信息
|
|
List<CourseSchedule> courseList = courseScheduleService.list(Wrappers.<CourseSchedule>lambdaQuery()
|
|
List<CourseSchedule> courseList = courseScheduleService.list(Wrappers.<CourseSchedule>lambdaQuery()
|
|
.eq(CourseSchedule::getCourseGroupId, groupId));
|
|
.eq(CourseSchedule::getCourseGroupId, groupId));
|