From 50553bd0c0e70c602c01ed35b30a26a44a1e3db8 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 13 Apr 2023 08:01:11 +0800 Subject: [PATCH] fix: swip_next bug --- 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 4e5ff983..3b6a48ec 100755 --- a/apps/hrm/services.py +++ b/apps/hrm/services.py @@ -277,7 +277,7 @@ class HrmService: # 先直接创建记录 cr = ClockRecord.objects.filter(employee=ep, create_time=s_time_f).first() if cr: - ClockRecord.objects.filter(id=cr.id).update(exception_type=None, detail=detail) + ClockRecord.objects.filter(id=cr.id).update(exception_type=None, detail=detail, type=card_type, trigger=trigger) else: cr = ClockRecord() cr.type = card_type