hrm detail get_location bug

This commit is contained in:
caoqianming 2022-11-03 16:12:45 +08:00
parent 5b7b180ee1
commit 97bdde5888
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class EmployeeDetailSerializer(EmployeeSerializer):
key_str = 'ep_{}'.format(obj.id)
ep_loc_dict = cache.get(key_str, None)
if ep_loc_dict:
area_fix_id = ep_loc_dict.get('arex_fix_id', None)
area_fix_id = ep_loc_dict.get('area_fix_id', None)
ep_loc_dict['area_fix_name'] = Area.objects.get(id=area_fix_id).name if area_fix_id else None
return ep_loc_dict