作者 yangfu

Merge remote-tracking branch 'origin/dev' into test

@@ -738,7 +738,6 @@ func GenAuditFlowProcess(header *protocol.RequestHeader, chanceId int64, related @@ -738,7 +738,6 @@ func GenAuditFlowProcess(header *protocol.RequestHeader, chanceId int64, related
738 } 738 }
739 break 739 break
740 case protocol.AuditByRole: 740 case protocol.AuditByRole:
741 - //roleName="" //TODO:角色  
742 if e := json.Unmarshal([]byte(config.ToRole), &roleId); e == nil { 741 if e := json.Unmarshal([]byte(config.ToRole), &roleId); e == nil {
743 if userIds, err = getRoleUsers(header, roleId[0]); err != nil { 742 if userIds, err = getRoleUsers(header, roleId[0]); err != nil {
744 log.Error(err) 743 log.Error(err)
@@ -968,14 +967,13 @@ func ChancePool(header *protocol.RequestHeader, request *protocol.ChancePoolRequ @@ -968,14 +967,13 @@ func ChancePool(header *protocol.RequestHeader, request *protocol.ChancePoolRequ
968 log.Error(err) 967 log.Error(err)
969 return 968 return
970 } 969 }
971 - if provider, err = agg.GetUserBaseInfo(header.UserId, header.CompanyId); err != nil {  
972 - log.Error(err)  
973 - return  
974 - }  
975 rsp = &protocol.ChancePoolResponse{Total: total} 970 rsp = &protocol.ChancePoolResponse{Total: total}
976 -  
977 for i := 0; i < len(myChances); i++ { 971 for i := 0; i < len(myChances); i++ {
978 chance := myChances[i] 972 chance := myChances[i]
  973 + if provider, err = agg.GetUserBaseInfo(chance.Uid, header.CompanyId); err != nil {
  974 + log.Error(err)
  975 + return
  976 + }
979 commItem := protocol.CommonListItem{} 977 commItem := protocol.CommonListItem{}
980 { 978 {
981 item := protocol.ChanceItem{ 979 item := protocol.ChanceItem{
@@ -63,7 +63,7 @@ func IComment(header *protocol.RequestHeader, request *protocol.ICommentRequest) @@ -63,7 +63,7 @@ func IComment(header *protocol.RequestHeader, request *protocol.ICommentRequest)
63 orm.Rollback() 63 orm.Rollback()
64 return 64 return
65 } 65 }
66 - if baseUserInfo, err = agg.GetUserBaseInfo(header.Uid, header.CompanyId); err != nil { 66 + if baseUserInfo, err = agg.GetUserBaseInfo(header.UserId, header.CompanyId); err != nil {
67 log.Error(err) 67 log.Error(err)
68 return 68 return
69 } 69 }