南昌市物联网技防平台-后台
Administrator
2021-08-27 16abd944c4331a31e99c28564c9b8a31bfbbfefc
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/attendance/mapper/AttendanceMapper.xml
@@ -20,10 +20,11 @@
    </resultMap>
    <select id="selectAttendancePage" resultMap="attendanceResultMap">
        select * from sys_attendance where is_deleted = 0
        <if test="attendance.name!=null and attendance.name != ''">
            and name = #{attendance.name}
            and name like concat('%',#{attendance.name},'%')
        </if>
        <if test="attendance.department!=null and attendance.department != ''">
            and department = #{department}
@@ -66,5 +67,18 @@
        is_deleted=0
    </select>
    <!--查询当前时间之前最新的一条数据-->
    <select id="selAttendanceNewNow" resultType="org.springblade.jfpt.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
      limit 1
    </select>
</mapper>