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 >= #{params.date} and personal_attendance_records.date < DATE_ADD(DATE(#{params.date}), INTERVAL 1 DAY) </if> </select> </mapper>