zouxuan 5 年之前
父節點
當前提交
d175288ff2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      mec-biz/src/main/resources/config/mybatis/StudentManageDao.xml

+ 2 - 1
mec-biz/src/main/resources/config/mybatis/StudentManageDao.xml

@@ -237,6 +237,7 @@
 
     <sql id="studentManageAttendanceQueryCondition">
         <where>
+            CONCAT(cs.class_date_," ",cs.start_class_time_) &lt; NOW()
             <if test="studentId!=null">
                 and sa.user_id_=#{studentId}
             </if>
@@ -270,7 +271,7 @@
             LEFT JOIN course_schedule cs ON sa.course_schedule_id_=cs.id_
             LEFT JOIN sys_user su ON sa.teacher_id_=su.id_
         <include refid="studentManageAttendanceQueryCondition"/>
-        ORDER BY sa.id_ DESC
+        ORDER BY course_date_ DESC
         <include refid="global.limit"/>
     </select>