From 1479d5aebe9d6f4d769b744acf1790e2eb0e24a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Mon, 14 Sep 2026 16:56:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/hr_attendance_detail_wechat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py index 1ba51dd5d..615e75e5d 100644 --- a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py +++ b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py @@ -127,7 +127,7 @@ class HrAttendanceDetail(models.Model): ('checkin_time', '>=', day_start), ('checkin_time', '<=', day_end) ], order='checkin_time asc') - if daily_iot_records and daily_iot_records[0].id == record.id: + if daily_iot_records: message = f"打卡成功!今日上班时间:{record.checkin_time + timedelta(hours=8)}: {employee_id.name},祝您工作愉快!" self.sudo().env["wecom.apps"].sync_send_message( category='att', user_id=employee_id.wecom_userid,