重跑一段时间的打卡记录bug

This commit is contained in:
caoqianming 2022-11-03 13:08:37 +08:00
parent 6c846386e6
commit 1bf37aa239
1 changed files with 2 additions and 0 deletions

View File

@ -239,6 +239,7 @@ class HrmService:
cr_10.employee = ep
cr_10.trigger = 'door'
cr_10.detail = data['info']['extend']
cr_10.create_time = s_time_f
cr_10.save()
ep.is_atwork = True
ep.last_check_time = s_time_f
@ -264,6 +265,7 @@ class HrmService:
cr_20.employee = ep
cr_20.trigger = 'door'
cr_20.detail = data['info']['extend']
cr_20.create_time = s_time_f
cr_20.save()
ep.is_atwork = False
ep.last_check_time = s_time_f