1.优化面试阶段
This commit is contained in:
parent
6f3905b368
commit
0b12fcedbf
@ -2139,22 +2139,26 @@ async def interview(
|
||||
times = get_time()
|
||||
# 今天及之后的面试
|
||||
len_sql = f"""select count(*) as v from HR.resumes where {where} and toDate(star_time) >= '{times}' and interview_stage = 3"""
|
||||
if where == '':
|
||||
len_sql = len_sql.replace('where and', 'where', 1)
|
||||
# 返回数据条数
|
||||
df_len = await ckdb.execute(len_sql)
|
||||
print(len_sql)
|
||||
# 已反馈的面试
|
||||
sql1 = f"""
|
||||
select count(*) as v from HR.resumes where {where} and teacher_state = 2 and interview_stage = 3
|
||||
"""
|
||||
print(sql1)
|
||||
# 未反馈的面试
|
||||
sql2 = f"""
|
||||
select count(*) as v from HR.resumes where {where} and teacher_state = 1 and interview_stage = 3
|
||||
"""
|
||||
print(sql2)
|
||||
# 已失效的面试
|
||||
sql3 = f"""
|
||||
|
||||
"""
|
||||
if where == '':
|
||||
len_sql = len_sql.replace('where and', 'where', 1)
|
||||
sql1 = sql1.replace('where and', 'where', 1)
|
||||
sql2 = sql2.replace('where and', 'where', 1)
|
||||
df_len = await ckdb.execute(len_sql)
|
||||
len1 = await ckdb.execute(sql1)
|
||||
len2 = await ckdb.execute(sql2)
|
||||
len3 = 0
|
||||
|
Loading…
Reference in New Issue
Block a user