智慧保安后台管理-外网项目备份
Administrator
2022-03-01 539102799d858a428ff6c6e1ad12b208d01b1750
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>