diff --git a/api/api_v1/endpoints/interview.py b/api/api_v1/endpoints/interview.py index b3fb304..cd122ff 100644 --- a/api/api_v1/endpoints/interview.py +++ b/api/api_v1/endpoints/interview.py @@ -816,10 +816,10 @@ async def get_job( job_list = {} job_list['key'] = i['job_id'] # 职位id # 查询对应职位id入职多少人 - sql = f""" - select count(*) as nu from HR.resumes where job_id = '{i['job_id']}' and interview_stage = 7 - """ - num = await ckdb.execute(sql) + # sql = f""" + # select count(*) as nu from HR.resumes where job_id = '{i['job_id']}' and interview_stage = 7 + # """ + # num = await ckdb.execute(sql) # 候选人总数 sql1 = f""" 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['job_sector'] = i['job_sector'] # 部门 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.append(job_list) if data_in != None: