From 3013957144c18d89bee7ea32449dc737970632c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= <250213850@qq.com> Date: Tue, 20 Sep 2022 15:27:48 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E9=9D=A2=E8=AF=95=E9=98=B6?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/interview.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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: