This commit is contained in:
Àî×ÚÕñ 2022-09-16 18:52:58 +08:00
commit 968825baa0
2 changed files with 34 additions and 8 deletions

View File

@ -140,6 +140,9 @@ def chkData(data):
if 'education' in res1:
education = res1['education']
res1['education'] = education_dict[education]
if 'teacher_txt' in res1:
teacher_txt=json.loads(res1['teacher_txt'])
res1['teacher_txt'] = teacher_txt
res_data.append(res1)
return res_data
@ -2091,3 +2094,20 @@ async def interview_find(
# 格式化数据
res_data = len(data)
return schemas.Msg(code=200, msg='ok', data=res_data)
@router.post("/interview_teacher")
async def interview_teacher(
request: Request,
data_in: schemas.interview_teacher,
ckdb: CKDrive = Depends(get_ck_db),
current_user: schemas.UserDB = Depends(deps.get_current_user)
) -> schemas.Msg:
""" 面试反馈 """
date=json.dumps(data_in.date)
sql=f"""
ALTER TABLE HR.resumes update teacher_state = 2,teacher_back={data_in.teacher_back},teacher_txt='{date}'
WHERE uid = '{data_in.uid}'
"""
await ckdb.execute(sql)
return schemas.Msg(code=200, msg='ok', data='')

View File

@ -143,8 +143,6 @@ class send_in(BaseModel):
uid: str # 求职者uid
class add_inter(BaseModel):
uid: str # 求职者uid
user_id: List[str] # 面试官的钉钉id
@ -168,3 +166,11 @@ class nterview(BaseModel):
# interview_sign: int # 面试签到
# feedback: int # 面试反馈
# interview_round: int # 面试轮次
class interview_teacher(BaseModel):
date: dict # 存储的面试反馈
teacher_back:int # 面试反馈选择
uid: str # 求职者唯一id
#date数据
#{'voice':1,'thought':1,'diathesis':1,'evaluate':'评价'}