List<Model> list= new List<Model>();
var lProducts = list.GroupBy(p => p.分组字段).Select(g => (new { 分组字段= g.Key, sum = g.Sum(t => 需要统计字段) })).ToList();
List<Model> list= new List<Model>();
var lProducts = list.GroupBy(p => p.分组字段).Select(g => (new { 分组字段= g.Key, sum = g.Sum(t => 需要统计字段) })).ToList();