diff --git a/api/api_v1/endpoints/forms.py b/api/api_v1/endpoints/forms.py index 601f2db..7dee972 100644 --- a/api/api_v1/endpoints/forms.py +++ b/api/api_v1/endpoints/forms.py @@ -1233,7 +1233,7 @@ async def owner_form( return schemas.Msg(code=200, msg='ok', data=res_data) -# 渠道质量报表 +# 渠道效果报表 @router.post("/owner_effect") async def owner_effect( request: Request, diff --git a/models/interview_zsgc.py b/models/interview_zsgc.py index 720ba0c..f101850 100644 --- a/models/interview_zsgc.py +++ b/models/interview_zsgc.py @@ -620,13 +620,8 @@ class InterviewDo: sql = f"select {findStr} from HR.resumes where {whereStr} and job_id in {job_ids}" else: 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 whereStr: - sql += f" and toDate(addHours(`event_time`, 0)) >= '{start_time}'" - else: - sql += f" toDate(addHours(`event_time`, 0)) >= '{start_time}'" + sql += f" and toDate(addHours(`event_time`, 0)) >= '{start_time}'" if end_time: sql += f" and toDate(addHours(`event_time`, 0)) <= '{end_time}'" # 没有日期条件 @@ -763,7 +758,7 @@ class InterviewDo: if whereStr: sql = f"select {findStr} from HR.resumes where {whereStr}" else: - sql = f"select {findStr} from HR.resumes where '1'" + sql = f"select {findStr} from HR.resumes" if start_time or end_time: sql += f" where" if start_time: