fix(api): get_employee_notice check data None

This commit is contained in:
simontigers 2023-12-13 09:08:28 +08:00 committed by GitHub
parent 21c9d9accd
commit 7ebb60e2da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -563,6 +563,7 @@ class EmployeeCRUD(object):
for column in direct_columns:
tmp[column] = d.get(column, '')
notice_info = d.get('notice_info', {})
notice_info = copy.deepcopy(notice_info) if notice_info else {}
tmp.update(**notice_info)
results.append(tmp)
return results