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