正在显示
1 个修改的文件
包含
9 行增加
和
3 行删除
@@ -360,10 +360,16 @@ func (userService *UserService) GetUser(getUserQuery *query.GetUserQuery) (inter | @@ -360,10 +360,16 @@ func (userService *UserService) GetUser(getUserQuery *query.GetUserQuery) (inter | ||
360 | _, org, _ := factory.FastPgOrg(transactionContext, user.OrganizationId) | 360 | _, org, _ := factory.FastPgOrg(transactionContext, user.OrganizationId) |
361 | _, company, _ := factory.FastPgCompany(transactionContext, user.CompanyId) | 361 | _, company, _ := factory.FastPgCompany(transactionContext, user.CompanyId) |
362 | _, userBase, _ := factory.FastPgUserBase(transactionContext, user.UserBaseId) | 362 | _, userBase, _ := factory.FastPgUserBase(transactionContext, user.UserBaseId) |
363 | - if dep != nil && org != nil && userBase != nil { | ||
364 | - user.Department = dep.ConvDep() | ||
365 | - user.Organization = org.CloneSample() | 363 | + if company != nil { |
366 | user.Company = company.CloneSample() | 364 | user.Company = company.CloneSample() |
365 | + } | ||
366 | + if org != nil { | ||
367 | + user.Organization = org.CloneSample() | ||
368 | + } | ||
369 | + if dep != nil { | ||
370 | + user.Department = dep.ConvDep() | ||
371 | + } | ||
372 | + if userBase != nil { | ||
367 | user.UserInfo = userBase.UserInfo | 373 | user.UserInfo = userBase.UserInfo |
368 | } | 374 | } |
369 | userDto := &dto.UserDto{Im: userBase.Im} | 375 | userDto := &dto.UserDto{Im: userBase.Im} |
-
请 注册 或 登录 后发表评论