瀏覽代碼

小组课

zouxuan 7 月之前
父節點
當前提交
9a7f143bbf

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/CourseScheduleServiceImpl.java

@@ -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("课程无人购买");
         }
         }