Skip to content

Commit 6574bdc

Browse files
committed
fix: 修复用户导出缺失部门名称的问题
1 parent 7d90348 commit 6574bdc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎dash-fastapi-backend/module_admin/service/user_service.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ async def export_user_list_services(user_list: List):
496496
}
497497

498498
for item in user_list:
499+
item['dept_name'] = item.get('dept').get('dept_name')
499500
if item.get('status') == '0':
500501
item['status'] = '正常'
501502
else:

0 commit comments

Comments
 (0)