|
@@ -1472,7 +1472,7 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
|
|
|
//查询是否有人购买
|
|
//查询是否有人购买
|
|
List<CourseScheduleStudentPayment> studentPayments = paymentDao.queryByCourseId(courseId.longValue());
|
|
List<CourseScheduleStudentPayment> studentPayments = paymentDao.queryByCourseId(courseId.longValue());
|
|
- if (CollectionUtils.isNotEmpty(studentPayments)) {
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(studentPayments)) {
|
|
throw new BizException("课程无人购买");
|
|
throw new BizException("课程无人购买");
|
|
}
|
|
}
|
|
|
|
|