From fa092027f8767b166ee62a6b91264805b72620e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80=C3=AE=C3=97=C3=9A=C3=95=C3=B1?= Date: Wed, 14 Sep 2022 11:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/forms.py | 2 +- models/interview_zsgc.py | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) 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: