From 977c0527b1a63826f19fbf48431893532c266945 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sun, 12 Mar 2023 21:09:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E5=8D=A1=E8=80=83=E5=8B=A4=E6=8E=A8?= =?UTF-8?q?=E6=B5=8B=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/hrm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hrm/services.py b/apps/hrm/services.py index e8d35b5d..50fa133d 100755 --- a/apps/hrm/services.py +++ b/apps/hrm/services.py @@ -334,7 +334,7 @@ class HrmService: ep.save() # 判断是否有异常 # 找到最近的上班时间 - cr_e = ClockRecord.objects.filter(create_time__lte=cr_20.create_time, type=10).order_by('-create_time').first() + cr_e = ClockRecord.objects.filter(create_time__lte=cr_20.create_time, type=10, employee=ep).order_by('-create_time').first() if cr_e: time_d = cr_20.create_time - cr_e.create_time if time_d < timedelta(hours=7):