| | |
| | | <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')>=#{attendance.beginTime} |
| | | </if> |
| | |
| | | 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 |
| | |
| | | number = #{number} |
| | | and |
| | | to_days(now())=to_days(clock_time) |
| | | and |
| | | is_deleted=0 |
| | | </select> |
| | | |
| | | <!--查询当前时间之前最新的一条数据--> |