添加功能

This commit is contained in:
李鹏宇
2026-01-09 11:06:55 +08:00
parent d3061174ce
commit f4036cacd4
@@ -90,7 +90,7 @@ class HrAttendanceDetail(models.Model):
if record.employee_id and record.checkin_time and record.source == 'iot':
employee_id = record.employee_id
checkin_datetime = record.checkin_time
current_data = record.checkin_time.date()
current_data = record.checkin_time.date() + timedelta(hours=8)
day_start = checkin_datetime.replace(hour=0, minute=0, second=0, microsecond=0)
day_end = checkin_datetime.replace(hour=23, minute=59, second=59, microsecond=99)
daily_iot_records = self.search([