empolyee update dahua
This commit is contained in:
parent
63bd3286c6
commit
98035be264
|
@ -78,7 +78,7 @@ class EmployeeCreateUpdateSerializer(CustomModelSerializer):
|
|||
# 同时去除门禁授权
|
||||
if settings.DAHUA_ENABLED and dhClient:
|
||||
# 如果是正式员工或相关方且有门禁权限:
|
||||
if instance.type in ['employee', 'remployee'] and instance.third_info.get('dh_face_card', None):
|
||||
if instance.type in ['employee', 'remployee']:
|
||||
start_time = None
|
||||
end_time = None
|
||||
if instance.job_state == 20 and old_job_state == 10: # 离职
|
||||
|
|
Loading…
Reference in New Issue