From 5aea977984138de6fc3fd0f0d5097af1f2a0fea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= <250213850@qq.com> Date: Tue, 13 Sep 2022 19:05:51 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AD=A6=E5=8E=86=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/interview.py | 8 +++++++- liwei_接口文档.md | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/api/api_v1/endpoints/interview.py b/api/api_v1/endpoints/interview.py index 9c5d981..8c78c45 100644 --- a/api/api_v1/endpoints/interview.py +++ b/api/api_v1/endpoints/interview.py @@ -126,6 +126,9 @@ def chkData(data): else: remembrance = [] res1['remembrance'] = remembrance + if 'education' in i: + education=i['education'] + res1['education'] = education_dict[education] res_data.append(res1) return res_data @@ -523,7 +526,10 @@ async def condition( str_s = f"{k} = {v}" strs.append(str_s) else: - str_s = f"{k} = '{v}'" + if k in ['hr_id','interview_id'] and v != '': + str_s=f"{k} like '%{v}%'" + else: + str_s = f"{k} = '{v}'" strs.append(str_s) where = ' and '.join(strs) # 当前日期 diff --git a/liwei_接口文档.md b/liwei_接口文档.md index 26964eb..f0c85ca 100644 --- a/liwei_接口文档.md +++ b/liwei_接口文档.md @@ -336,4 +336,8 @@ api:/api/v1/itr/send_interviewee uid: str # 求职者uid push: List[str] # 推送 content: str # 备注内容 - bcc: List[str] # 抄送 \ No newline at end of file + bcc: List[str] # 抄送 + +#头像上传到华为云 +api:/api/v1/itr/head_to_hw +请求方式:post