zouxuan 4 years ago
parent
commit
4480f3a6ba

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

@@ -511,7 +511,7 @@
     </select>
     </select>
     <select id="findFirstSign" resultType="java.lang.Long">
     <select id="findFirstSign" resultType="java.lang.Long">
         SELECT sa.course_schedule_id_ FROM student_attendance sa
         SELECT sa.course_schedule_id_ FROM student_attendance sa
-        WHERE sa.current_schedule_id_ = #{currentScheduleId} AND sa.user_id_ = #{userId}
+        WHERE sa.current_schedule_id_ = #{courseScheduleId} AND sa.user_id_ = #{userId}
         AND sa.sign_in_time_ IS NOT NULL ORDER BY sa.sign_in_time_ ASC LIMIT 1
         AND sa.sign_in_time_ IS NOT NULL ORDER BY sa.sign_in_time_ ASC LIMIT 1
     </select>
     </select>
 </mapper>
 </mapper>