From e67969a54d681099a91d540e635f80772f602878 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:02:15 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api_v1/endpoints/interview.py b/api/api_v1/endpoints/interview.py index 2c14d0b..b3fb304 100644 --- a/api/api_v1/endpoints/interview.py +++ b/api/api_v1/endpoints/interview.py @@ -817,12 +817,12 @@ async def get_job( job_list['key'] = i['job_id'] # 职位id # 查询对应职位id入职多少人 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) # 候选人总数 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) job_list['job_name'] = i['job_name'] # 职位名