|  | @@ -237,6 +237,7 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <sql id="studentManageAttendanceQueryCondition">
 | 
	
		
			
				|  |  |          <where>
 | 
	
		
			
				|  |  | +            CONCAT(cs.class_date_," ",cs.start_class_time_) < 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>
 | 
	
		
			
				|  |  |  
 |