1.优化面试阶段

This commit is contained in:
李伟 2022-09-20 15:02:15 +08:00
parent b709076cf7
commit e67969a54d

View File

@ -817,12 +817,12 @@ async def get_job(
job_list['key'] = i['job_id'] # 职位id job_list['key'] = i['job_id'] # 职位id
# 查询对应职位id入职多少人 # 查询对应职位id入职多少人
sql = f""" sql = f"""
select count(job_id) 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(job_id) 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
""" """
hou_num = await ckdb.execute(sql1) hou_num = await ckdb.execute(sql1)
job_list['job_name'] = i['job_name'] # 职位名 job_list['job_name'] = i['job_name'] # 职位名