正在显示
1 个修改的文件
包含
6 行增加
和
5 行删除
@@ -126,11 +126,12 @@ func (ptr *PgBatchAddUserService) BatchAddUser(optUser *domain.OperateInfo, user | @@ -126,11 +126,12 @@ func (ptr *PgBatchAddUserService) BatchAddUser(optUser *domain.OperateInfo, user | ||
126 | failRows = append(failRows, user) | 126 | failRows = append(failRows, user) |
127 | continue | 127 | continue |
128 | } | 128 | } |
129 | - if dep != nil && !dep.IsChild(optUser.OrgId) { | ||
130 | - user.FailReason = fmt.Sprintf("导入的所属部门不是当前登录组织(%v)的子部门:%v", optUserOrg.OrgName, user.Department) | ||
131 | - failRows = append(failRows, user) | ||
132 | - continue | ||
133 | - } | 129 | + //TODO:子部门判断 |
130 | + //if dep != nil && !dep.IsChild(optUser.OrgId) { | ||
131 | + // user.FailReason = fmt.Sprintf("导入的所属部门不是当前登录组织(%v)的子部门:%v", optUserOrg.OrgName, user.Department) | ||
132 | + // failRows = append(failRows, user) | ||
133 | + // continue | ||
134 | + //} | ||
134 | newUser := &domain.User{ | 135 | newUser := &domain.User{ |
135 | CompanyId: user.CompanyId, | 136 | CompanyId: user.CompanyId, |
136 | UserType: user.UserType, | 137 | UserType: user.UserType, |
-
请 注册 或 登录 后发表评论