fix(权限完善):1.权限优化以下模块按钮查看权限全部归属超级管理员,只有职称角色未超级管理员用户才可以查看进入操作
deploy-hxtesting / build-and-deploy (push) Successful in 1m17s
deploy-hxtesting / build-and-deploy (push) Successful in 1m17s
1)如图一所示点击左下角个人信息弹出框中的“空间设置”、“成员管理“、”模型管理“、”全部设置“、”系统管理“ 2)点击进入”设置“页面中”空间“、”模型“、”发布集成“、”数据与扩展“、”系统管理“这几个大模块相关内容入口 2.成员管理页面增加一个字段”状态“:1-5 在职状态(试用/试用延期/正式/临时/实习)、6离职/7退休(顺便对数据进行清洗,工号首位带字母的都标记为离职其他都标记为正式) 3.检查各业务需求里所有选择员工相关都只能拉取选择正式员工!
This commit is contained in:
1 parent
b762deaf15
commit
7034d93256
49 files changed
+809
-130
No files matched your search
@@ -77,6 +77,10 @@ func (r *orgCenterRepository) employeeFilter(ctx context.Context, tenantID uint6
|
||||
if q.DeptID != "" {
|
||||
tx = tx.Where("org_employees.dept_id = ?", q.DeptID)
|
||||
}
|
||||
// 在职状态过滤(000167):选人场景(学员/讲师/推送等)按正式员工口径拉取。
|
||||
if q.EmploymentStatus > 0 {
|
||||
tx = tx.Where("u.employment_status = ?", q.EmploymentStatus)
|
||||
}
|
||||
if q.Keyword != "" {
|
||||
// 按姓名/工号/部门名/岗位模糊查找;姓名取真实姓名(display_name)
|
||||
// 回退平台账号(username),与列表展示口径一致。
|
||||
@@ -242,7 +246,9 @@ func (r *orgCenterRepository) ListTenantUsers(ctx context.Context, tenantID uint
|
||||
Joins("JOIN tenant_members tm ON tm.user_id = u.id AND tm.tenant_id = ? "+
|
||||
"AND tm.status = 'active' AND tm.deleted_at IS NULL", tenantID).
|
||||
Joins("LEFT JOIN org_employees m ON m.user_id = u.id AND m.tenant_id = ? AND m.deleted_at IS NULL", tenantID).
|
||||
Where("u.is_active = TRUE AND u.deleted_at IS NULL").
|
||||
// 「从平台用户添加员工档案」属选人场景:仅正式员工(000167)可选入册,
|
||||
// 离职/退休账号不再出现在档案添加下拉。
|
||||
Where("u.is_active = TRUE AND u.deleted_at IS NULL AND u.employment_status = ?", types.EmploymentStatusFormal).
|
||||
Order("u.created_at ASC").
|
||||
Scan(&users).Error
|
||||
return users, err
|
||||
|
||||
Reference in new issue
Block a user