From 05c38226a1a4bd02f5d8cfd5179c3599982b2b67 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 14:10:12 +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 ++ 1 file changed, 2 insertions(+) diff --git a/api/api_v1/endpoints/forms.py b/api/api_v1/endpoints/forms.py index 7dee972..cffb2a1 100644 --- a/api/api_v1/endpoints/forms.py +++ b/api/api_v1/endpoints/forms.py @@ -897,6 +897,8 @@ async def hr_works_form( hr_names.append(hr_name) job_data = await crud.jobs.find_job_name(db, ck_job_id) + if not job_data: + continue job_name = job_data['job_name'] # 职位 job_sector = job_data['job_sector'] # 部门 job_name_sector.update({