7,765
社区成员
发帖
与我相关
我的任务
分享
protected static userStat[] AnswerAgreeUsers(int id, int userId)
{
return diantou.dataProxy.answer.get(id)
.to(answer => diantou.dataProxy.focusAnswer.getUserIds(id, diantou.dataProxy.focusType.agree)
.toArray(value => diantou.dataProxy.user.get(value))
.groupBy(value => value.grade)
.toArray(value => new userStat
{
grade = value.Key,
count = value.Value.Count,
path = answer.path.agree,
users = value.Value.sub(0, 6).toArray(user => diantou.dataProxy.user.get(user, userId))
}));
}