fix(api): common i18n wide (#351)

* fix(api): common_i18n wide

* fix(api): department i18n
This commit is contained in:
simontigers
2024-01-03 13:26:58 +08:00
committed by GitHub
parent 2992bc2fae
commit b3ef1aa5c1
2 changed files with 5 additions and 0 deletions

View File

@@ -385,6 +385,9 @@ class DepartmentCRUD(object):
d['employee_count'] = len(list(filter(lambda e: e['department_id'] in d_ids, all_employee_list)))
if int(department_parent_id) == -1:
d['department_name'] = ErrFormat.company_wide
return all_departments, department_id_list
@staticmethod