|
@@ -1443,8 +1443,7 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
CourseSchedule schedule = baseMapper.selectOne(Wrappers.<CourseSchedule>lambdaQuery()
|
|
|
.eq(CourseSchedule::getId, courseId)
|
|
|
.eq(CourseSchedule::getLock, 0)
|
|
|
- .eq(CourseSchedule::getStatus, CourseScheduleEnum.NOT_START)
|
|
|
- .in(CourseSchedule::getType, CourseScheduleEnum.PRACTICE, CourseScheduleEnum.VIP));
|
|
|
+ .eq(CourseSchedule::getStatus, CourseScheduleEnum.NOT_START));
|
|
|
if (ObjectUtil.isEmpty(schedule)) {
|
|
|
throw new BizException("无法调整该课程,课程不存在");
|
|
|
}
|
|
@@ -1461,8 +1460,7 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
|
|
|
//查询是否有人购买
|
|
|
CourseScheduleStudentPayment studentPayment = paymentDao.selectOne(Wrappers.<CourseScheduleStudentPayment>lambdaQuery()
|
|
|
- .eq(CourseScheduleStudentPayment::getCourseId, courseId)
|
|
|
- .in(CourseScheduleStudentPayment::getCourseType, CourseScheduleEnum.PRACTICE,CourseScheduleEnum.VIP));
|
|
|
+ .eq(CourseScheduleStudentPayment::getCourseId, courseId));
|
|
|
if (ObjectUtil.isEmpty(studentPayment)) {
|
|
|
throw new BizException("课程无人购买");
|
|
|
}
|