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'] # 职位名