报表
This commit is contained in:
parent
a1314b6657
commit
7b52af6f25
@ -240,8 +240,40 @@ async def man_info_form(
|
||||
continue
|
||||
data[key]['work_for'] = ''
|
||||
new_data = [v for k, v in data.items()]
|
||||
res_data = []
|
||||
for data in new_data:
|
||||
age = data['age']
|
||||
education = data['education']
|
||||
work_exp = data['work_exp']
|
||||
if age:
|
||||
data['age'] = str(age) + '岁'
|
||||
else:
|
||||
data['age'] = '20岁'
|
||||
if education:
|
||||
data['education'] = education_dict.get(education, '大专')
|
||||
if work_exp:
|
||||
data['work_exp'] = str(work_exp) + '年'
|
||||
else:
|
||||
data['work_exp'] = '一年以内'
|
||||
|
||||
new_res = {k: v for k, v in data.items() if k != 'work_list'}
|
||||
res_data.append(new_res)
|
||||
level_list = {
|
||||
"uid": "玩家id",
|
||||
"age": "年龄",
|
||||
"gender": "性别",
|
||||
"name": "姓名",
|
||||
"education": "学历",
|
||||
"school": "毕业院校",
|
||||
"work_exp": "工作经验",
|
||||
"job_name": "应聘职位",
|
||||
"account": "所属地",
|
||||
"graduate_time": "毕业时间",
|
||||
"phone": "电话",
|
||||
"work_for": "上家公司"
|
||||
}
|
||||
res_msg = {
|
||||
'info': new_data
|
||||
'info': {'data': res_data, 'level_list': level_list}
|
||||
}
|
||||
return schemas.Msg(code=200, msg='ok', data=res_msg)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user