智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/modules/attendance/mapper/AttendanceMapper.xml
@@ -39,6 +39,9 @@
        <if test="attendance.clockType!=null">
            and sa.clock_type = #{attendance.clockType}
        </if>
        <if test="attendance.legwork!=null">
            and sa.legwork = #{attendance.legwork}
        </if>
        <if test="attendance.beginTime!=null and attendance.beginTime!=''">
            and date_format(sa.clock_time,'%Y-%m-%d')&gt;=#{attendance.beginTime}
        </if>
@@ -57,7 +60,6 @@
        case when sa.attendance_type=1 then '正常'
        when sa.attendance_type=2 then '迟到'
        when sa.attendance_type=3 then '早退'
        when sa.attendance_type=4 then '外勤'
        else '无效打卡' end as attendanceType
         from sys_attendance sa
        left join blade_user bu on bu.id = sa.user_id
@@ -94,8 +96,6 @@
        number = #{number}
            and
        to_days(now())=to_days(clock_time)
            and
        is_deleted=0
    </select>
    <!--查询当前时间之前最新的一条数据-->