refector: swipe_next 优化2

This commit is contained in:
caoqianming 2023-04-12 17:10:38 +08:00
parent f4aacc2129
commit 68c54a73e3
1 changed files with 2 additions and 2 deletions

View File

@ -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)