This commit is contained in:
Àî×ÚÕñ 2022-09-14 11:28:33 +08:00
parent a510529e15
commit fa092027f8
2 changed files with 3 additions and 8 deletions

View File

@ -1233,7 +1233,7 @@ async def owner_form(
return schemas.Msg(code=200, msg='ok', data=res_data) return schemas.Msg(code=200, msg='ok', data=res_data)
# 渠道质量报表 # 渠道效果报表
@router.post("/owner_effect") @router.post("/owner_effect")
async def owner_effect( async def owner_effect(
request: Request, request: Request,

View File

@ -620,13 +620,8 @@ class InterviewDo:
sql = f"select {findStr} from HR.resumes where {whereStr} and job_id in {job_ids}" sql = f"select {findStr} from HR.resumes where {whereStr} and job_id in {job_ids}"
else: else:
sql = f"select {findStr} from HR.resumes where job_id in {job_ids}" sql = f"select {findStr} from HR.resumes where job_id in {job_ids}"
if start_time or end_time:
sql += f" where"
if start_time: if start_time:
if whereStr:
sql += f" and toDate(addHours(`event_time`, 0)) >= '{start_time}'" sql += f" and toDate(addHours(`event_time`, 0)) >= '{start_time}'"
else:
sql += f" toDate(addHours(`event_time`, 0)) >= '{start_time}'"
if end_time: if end_time:
sql += f" and toDate(addHours(`event_time`, 0)) <= '{end_time}'" sql += f" and toDate(addHours(`event_time`, 0)) <= '{end_time}'"
# 没有日期条件 # 没有日期条件
@ -763,7 +758,7 @@ class InterviewDo:
if whereStr: if whereStr:
sql = f"select {findStr} from HR.resumes where {whereStr}" sql = f"select {findStr} from HR.resumes where {whereStr}"
else: else:
sql = f"select {findStr} from HR.resumes where '1'" sql = f"select {findStr} from HR.resumes"
if start_time or end_time: if start_time or end_time:
sql += f" where" sql += f" where"
if start_time: if start_time: