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({