change 3 жил өмнө
parent
commit
8cffe66b67

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

@@ -358,6 +358,7 @@
         WHERE
             cgu.user_id =#{userId}
         AND cg.status=1
+          AND  (unix_timestamp(now()) < cg.class_end_time or cg.class_start_time is null)
     </select>
 
     <select id="listSection" parameterType="com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo"  resultMap="GoodsPeriodStatusVo">