测试情况下定位于危废车间
This commit is contained in:
parent
94f3b7cf7d
commit
04315446d1
|
@ -499,8 +499,12 @@ def handle_xx_event(name: str, data: dict):
|
|||
key_str = 'ep_{}'.format(blts.employee.id)
|
||||
ep_loc_dict = cache.get(key_str, None)
|
||||
if ep_loc_dict:
|
||||
area = None
|
||||
if ep_loc_dict['area_fix_id']:
|
||||
event.area = Area.objects.get(id=ep_loc_dict['area_fix_id'])
|
||||
area = Area.objects.get(id=ep_loc_dict['area_fix_id'])
|
||||
else:
|
||||
area = Area.objects.get(id='1569585234968711168')
|
||||
event.area = area
|
||||
event.location = ep_loc_dict['xx_detail']
|
||||
event.obj_cate = 'people'
|
||||
event.employee = blts.employee
|
||||
|
|
Loading…
Reference in New Issue