(from context in retDataList group context by context.ResourceId into g select g.OrderByDescending(b => b.OperationSum).First()).ToList();