var lisDup = cqcode.GroupBy(x => new { x.DeviceCode, x.Dzm }).Where(x => x.Count() > 1).Select(x => x.Key).ToList();
if (lisDup.Count > 0) return new JsonModel<string>(false) { Message = "数组中存在重复项" };
c# 数组判断是否有重复项
最新推荐文章于 2024-03-25 00:06:53 发布