|
|
|
@@ -378,13 +378,13 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) { |
|
|
|
log.Info("writer exel error." + err.Error()) |
|
|
|
} |
|
|
|
} else { |
|
|
|
result := make([]models.Invitation, 0) |
|
|
|
result := make([]*models.Invitation, 0) |
|
|
|
userIds := make([]int64, 0) |
|
|
|
end := len(invitaionNumList) - 1 |
|
|
|
for start := (page - 1) * pageSize; start <= end; start++ { |
|
|
|
invi := invitaionNumList[start] |
|
|
|
//todo name phone,createunix |
|
|
|
result = append(result, invi) |
|
|
|
result = append(result, &invi) |
|
|
|
userIds = append(userIds, invi.SrcUserID) |
|
|
|
if len(result) == pageSize { |
|
|
|
break |
|
|
|
@@ -401,7 +401,6 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) { |
|
|
|
} |
|
|
|
} |
|
|
|
if invi.SrcUserID == tmpUser.ID { |
|
|
|
log.Info("find name........") |
|
|
|
invi.Name = tmpUser.Name |
|
|
|
invi.Phone = tmpUser.PhoneNumber |
|
|
|
invi.CreatedUnix = tmpUser.CreatedUnix |
|
|
|
|