智慧保安后台管理-外网项目备份
Administrator
2022-03-01 7c2c09439da3dccf1e032e89e1cb950b8fa1cc26
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>
@@ -69,13 +69,11 @@
    <!--查询当前时间之前最新的一条数据-->
    <select id="selAttendanceNewNow" resultType="org.springblade.modules.attendance.entity.Attendance">
        select * from sys_attendance
            where
        number = #{number}
                    and
        to_days(now())=to_days(clockTime)
            and
        is_deleted=0
         order by clockTime desc
        where
        user_id = #{userId}
        and
        to_days(now())=to_days(clock_time)
      order by clock_time desc
      limit 1
    </select>