From 687665486b2610d7ca5ce3e49da4f86f48d58a93 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, 17 Nov 2025 20:01:00 +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.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index 3a9741a58..e104b3f5c 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -803,7 +803,7 @@ class HrAttendance(models.Model): slot_end = datetime.combine(current_date + timedelta(days=1), datetime.min.time()) # 构建查询条件 domain = [ - ('planning_name', '=', planning_name), + ('template_id.planning_name', '=', planning_name), ('start_datetime', '>=', slot_start), ('start_datetime', '<', slot_end), ('role_id.name', '=', dept_name),