he2802 2 years ago
parent
commit
f1199ab17b

+ 0 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/CourseMapper.xml

@@ -589,7 +589,6 @@
             and (SELECT count(*) from user_study_record usr where usr.user_id = o.user_id and usr.order_goods_id = og.order_goods_id ) >0
             and (SELECT count(*) from user_study_record usr where usr.user_id = o.user_id and usr.order_goods_id = og.order_goods_id ) >0
         </if>
         </if>
         <if test="studyStatus != null and studyStatus == 1">
         <if test="studyStatus != null and studyStatus == 1">
-            and (SELECT count(*) from class_grade_user cgu where cgu.user_id = o.user_id and cgu.grade_id = og.grade_id and cgu.period_status = -1) >0
             and (SELECT count(*) from user_study_record usr where usr.user_id = o.user_id and usr.order_goods_id = og.order_goods_id ) =0
             and (SELECT count(*) from user_study_record usr where usr.user_id = o.user_id and usr.order_goods_id = og.order_goods_id ) =0
         </if>
         </if>
         order by o.create_time desc
         order by o.create_time desc