refector: swipe_next 优化2
This commit is contained in:
parent
f4aacc2129
commit
68c54a73e3
|
@ -320,9 +320,9 @@ class HrmService:
|
|||
if last_obj_t:
|
||||
update_fields = {'last_check_time': last_obj_t.create_time}
|
||||
if last_obj_t.type == 10:
|
||||
update_fields['is_at_work'] = True
|
||||
update_fields['is_atwork'] = True
|
||||
else:
|
||||
update_fields['is_at_work'] = False
|
||||
update_fields['is_atwork'] = False
|
||||
Employee.objects.filter(id=ep.id).update(**update_fields)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue