|
@@ -201,7 +201,6 @@ public class CourseRepliedServiceImpl extends ServiceImpl<CourseScheduleRepliedD
|
|
|
QueryWrapper<CourseScheduleStudentPayment> wrapper = new QueryWrapper<>();
|
|
|
wrapper.eq("user_id_", userId);
|
|
|
wrapper.eq("course_id_", scheduleId);
|
|
|
- wrapper.eq("course_type_", CourseScheduleEnum.PRACTICE.getCode());
|
|
|
CourseScheduleStudentPayment payment = paymentDao.selectOne(wrapper);
|
|
|
if (payment == null) {
|
|
|
throw new RuntimeException("学生未购买该课无法评论");
|