diff --git a/models/user_invitation.go b/models/user_invitation.go index a462ee74a..7b0ca1cf9 100644 --- a/models/user_invitation.go +++ b/models/user_invitation.go @@ -36,7 +36,7 @@ func QueryInvitaionByPhone(phone string) []*Invitation { func GetAllUserName() map[int64]string { sess := x.NewSession() defer sess.Close() - sess.Select("`user`.id,`user`.name,").Table("user") + sess.Select("id,name").Table("user") userList := make([]*User, 0) reMap := make(map[int64]string) sess.Find(&userList)