src/main/java/org/springblade/modules/attendance/mapper/AttendanceMapper.xml
@@ -61,7 +61,7 @@ where number = #{number} and to_days(now())=to_days(clockTime) to_days(now())=to_days(clock_time) and is_deleted=0 </select> @@ -70,12 +70,10 @@ <select id="selAttendanceNewNow" resultType="org.springblade.modules.attendance.entity.Attendance"> select * from sys_attendance where number = #{number} user_id = #{userId} and to_days(now())=to_days(clockTime) and is_deleted=0 order by clockTime desc to_days(now())=to_days(clock_time) order by clock_time desc limit 1 </select>