1.优化添加面试官

This commit is contained in:
李伟 2022-09-09 18:33:27 +08:00
parent 4a8b1c00f2
commit f04ab9bac0

View File

@ -89,7 +89,7 @@ def chkData(data):
res1['notice_state'] = notice_state_dict.get(key15, '未通知') res1['notice_state'] = notice_state_dict.get(key15, '未通知')
if 'pass_why' in res1: if 'pass_why' in res1:
key16 = res1['pass_why'] key16 = res1['pass_why']
res1['pass_why'] = pass_why_dict.get(key16, '初筛') res1['pass_why'] = pass_why_dict.get(key16, '')
if 'work_list' in i: if 'work_list' in i:
work_list = i['work_list'] work_list = i['work_list']
if work_list: if work_list:
@ -270,7 +270,7 @@ async def interview_update(
data = await db.execute(sql) data = await db.execute(sql)
# except: # except:
# return schemas.Msg(code=-9, msg='数据有误', data=None) # return schemas.Msg(code=-9, msg='数据有误', data=None)
interviews = interview.data.get('interview_stage', 0) # 简历阶段 interviews = int(interview.data.get('interview_stage', '0')) # 简历阶段
if interview.data_in.get('interview_stage', '') == 11 and interviews > 2: # 淘汰的时候发送钉钉消息通知面试官该求职者被淘汰 if interview.data_in.get('interview_stage', '') == 11 and interviews > 2: # 淘汰的时候发送钉钉消息通知面试官该求职者被淘汰
send_sql = f""" send_sql = f"""
select interview_id,name,job_names from HR.resumes where uid = '{interview.where.get('uid')}' limit 1 select interview_id,name,job_names from HR.resumes where uid = '{interview.where.get('uid')}' limit 1