1.优化面试阶段

This commit is contained in:
李伟 2022-09-20 15:27:48 +08:00
parent e67969a54d
commit 3013957144

View File

@ -816,10 +816,10 @@ async def get_job(
job_list = {} job_list = {}
job_list['key'] = i['job_id'] # 职位id job_list['key'] = i['job_id'] # 职位id
# 查询对应职位id入职多少人 # 查询对应职位id入职多少人
sql = f""" # sql = f"""
select count(*) as nu from HR.resumes where job_id = '{i['job_id']}' and interview_stage = 7 # select count(*) as nu from HR.resumes where job_id = '{i['job_id']}' and interview_stage = 7
""" # """
num = await ckdb.execute(sql) # num = await ckdb.execute(sql)
# 候选人总数 # 候选人总数
sql1 = f""" sql1 = f"""
select count(*) as nu from HR.resumes where job_id = '{i['job_id']}' and interview_stage < 6 select count(*) as nu from HR.resumes where job_id = '{i['job_id']}' and interview_stage < 6
@ -829,7 +829,7 @@ async def get_job(
job_list['principal'] = i['principal'] # 招聘负责人 job_list['principal'] = i['principal'] # 招聘负责人
job_list['job_sector'] = i['job_sector'] # 部门 job_list['job_sector'] = i['job_sector'] # 部门
job_list['job_num'] = i['job_num'] # 目标招聘人数 job_list['job_num'] = i['job_num'] # 目标招聘人数
job_list['now_job_num'] = num[0]['nu'] # 对应职位的入职人数 job_list['now_job_num'] = i['now_job_num'] # 对应职位的入职人数
job_list['hou_num'] = hou_num[0]['nu'] # 候选人总数 job_list['hou_num'] = hou_num[0]['nu'] # 候选人总数
job.append(job_list) job.append(job_list)
if data_in != None: if data_in != None: