diff --git a/apps/hrm/services.py b/apps/hrm/services.py index 3ba323a1..4e5ff983 100755 --- a/apps/hrm/services.py +++ b/apps/hrm/services.py @@ -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)