check_miss_lcard bug
This commit is contained in:
parent
561bc92c4a
commit
efacae0549
|
@ -280,7 +280,7 @@ def check_miss_lcard(ep: Employee, area: Area):
|
|||
blt_list = res['recordList']
|
||||
macs = [] # 所有该区域在线标签
|
||||
for i in blt_list:
|
||||
macs.append(i['mac'])
|
||||
macs.append(i['userId'])
|
||||
td = TDevice.objects.filter(type=TDevice.DEVICE_BLT, employee=ep).first()
|
||||
if td:
|
||||
if td.code not in macs:
|
||||
|
|
Loading…
Reference in New Issue