1.两种表的数据,查询两次
var view = Resolve<IAccountService>().GetPagedList(query); var userIds = view.Select(r => r.UserId).ToList(); var userList = Resolve<IUserService>().GetValue(r => userIds.Contains(r.Id), r => new User { UserName = r.UserName });
时间: 2024-10-08 10:28:06