fix: swip_next bug

This commit is contained in:
caoqianming 2023-04-13 08:01:11 +08:00
parent 005919af19
commit 50553bd0c0
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ class HrmService:
# 先直接创建记录 # 先直接创建记录
cr = ClockRecord.objects.filter(employee=ep, create_time=s_time_f).first() cr = ClockRecord.objects.filter(employee=ep, create_time=s_time_f).first()
if cr: 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: else:
cr = ClockRecord() cr = ClockRecord()
cr.type = card_type cr.type = card_type