...
|
...
|
@@ -738,7 +738,6 @@ func GenAuditFlowProcess(header *protocol.RequestHeader, chanceId int64, related |
|
|
}
|
|
|
break
|
|
|
case protocol.AuditByRole:
|
|
|
//roleName="" //TODO:角色
|
|
|
if e := json.Unmarshal([]byte(config.ToRole), &roleId); e == nil {
|
|
|
if userIds, err = getRoleUsers(header, roleId[0]); err != nil {
|
|
|
log.Error(err)
|
...
|
...
|
@@ -968,14 +967,13 @@ func ChancePool(header *protocol.RequestHeader, request *protocol.ChancePoolRequ |
|
|
log.Error(err)
|
|
|
return
|
|
|
}
|
|
|
if provider, err = agg.GetUserBaseInfo(header.UserId, header.CompanyId); err != nil {
|
|
|
log.Error(err)
|
|
|
return
|
|
|
}
|
|
|
rsp = &protocol.ChancePoolResponse{Total: total}
|
|
|
|
|
|
for i := 0; i < len(myChances); i++ {
|
|
|
chance := myChances[i]
|
|
|
if provider, err = agg.GetUserBaseInfo(chance.Uid, header.CompanyId); err != nil {
|
|
|
log.Error(err)
|
|
|
return
|
|
|
}
|
|
|
commItem := protocol.CommonListItem{}
|
|
|
{
|
|
|
item := protocol.ChanceItem{
|
...
|
...
|
|