A2/A4/A6 实现员工头像后端、组织架构接口与合同模型
这个提交包含在:
@@ -108,6 +108,7 @@ function mapPresenceEmployee(row) {
|
||||
employeeNo: row.employee_no,
|
||||
name: row.name,
|
||||
title: row.title,
|
||||
avatarUrl: row.avatar_path ? `/api/avatars/${row.id}` : null,
|
||||
employmentStatus: row.employment_status,
|
||||
department: row.department ? { id: row.department.id, name: row.department.name } : null,
|
||||
};
|
||||
@@ -309,6 +310,7 @@ async function listActivePresenceEmployees(prisma, filters = {}) {
|
||||
employee_no: true,
|
||||
name: true,
|
||||
title: true,
|
||||
avatar_path: true,
|
||||
employment_status: true,
|
||||
department: { select: { id: true, name: true } },
|
||||
},
|
||||
|
||||
在新工单中引用
屏蔽一个用户