<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="jnpf.attendance.mapper.AttendanceMachineLogMapper">

    <!-- 查询日志列表 -->
    <select id="getLogList" resultType="jnpf.model.attendance.vo.attendance.LogMiniVo">
        select F_UserName userName, F_GroupName groupName, F_CreatorTime clockInTime from ftb_attendance_machine_log
        where F_Action = #{action}
        <![CDATA[
          and date_format(F_CreatorTime, '%Y-%m-%d') >= date_format(#{date}, '%Y-%m-%d') and instr(F_ParamJson, #{mac}) > 0
        ]]>
        order by F_CreatorTime desc
    </select>
</mapper>