作者 yangfu

用户获取修改

@@ -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}