找出不同项
1 var query = List.GroupBy(o => o.id).Select(p => new { p.Key, count = p.Count() }).Where(p => p.count > 1).ToList();
1 resultMsg = string.Join(",", query.select(p=>p.key).ToList())