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