分组取值.求和.计数 1 var resultlist = orderllist.GroupBy(oo => new { oo.Deptname, oo.Userid, oo.Username }) 2 .Select(ss => new OBreakfirstModel 3 { 4 Number = number++, 5 Deptname = ss.Key.Deptname, 6 Userid = ss.Key.Userid, 7 Username = ss.Key.Username, 8…