StringBuilder str = new StringBuilder();
                var res = new ResParameter() { code = ResponseCode.exception };


                var result = from isbn in dt.AsEnumerable()
                             group isbn by isbn.Field<string>("isbn") into grp
                             where grp.Count() > 1
                             select grp.Key;


                if (result.Count() > 0)
                {
                    foreach (var item in result)
                    {
                        str.Append(item + ",  ");
                    }
                    res.info ="导入EXCEL中包含重复ISBN'  "+ str.ToString()+"'  请整理后再重新导入";
                    return res;
                }

 

相关文章:

  • 2022-12-23
  • 2021-06-16
  • 2021-06-13
  • 2021-06-20
  • 2021-11-08
  • 2022-02-16
  • 2022-12-23
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-03-05
相关资源
相似解决方案