huminmin
3 天以前 a12abb1d2d96ad93e4db9305966163841c542172
src/main/resources/mapper/staff/PersonalAttendanceRecordsMapper.xml
@@ -30,10 +30,11 @@
        sys_dept sd ON sd.dept_id = soj.sys_dept_id
        where 1=1
        <if test="params.deptId != null and params.deptId > 0">
            AND sys_dept.dept_id = #{params.deptId}
            AND sd.dept_id = #{params.deptId}
        </if>
        <if test="params.date != null">
            AND personal_attendance_records.date = DATE_FORMAT(#{params.date},'%Y-%m-%d')
            and personal_attendance_records.date &gt;= #{params.date}
            and personal_attendance_records.date &lt; DATE_ADD(DATE(#{params.date}), INTERVAL 1 DAY)
        </if>
    </select>
</mapper>