///
/// 实体类的新旧值比较方法(参数1 新的实体类,参数二 旧实体类,参数三 需要比较的属性的集合,参数四 需要比较的集合的显示值)
///
/// 新实体类
/// 旧实体类
/// 需要比较的属性集合
/// 需要比较的属性集合的中文名集合
/// 返回有差异的数据的拼接字符串
public static string ModelCompare(object newAverage, object oldAverage, List compareAttribute, List compareAttributeName)
{
if (newAverage == null || oldAverage == null)
{
return "传入比较值为空,请检查传入值!";
}
if (compareAttribute.Count() != compareAttributeName.Count())
{
return "传入的要比较的列与对应的显示值数量不等,请检查要比较的列的数量与对应显示列的数量!";
}
string differentThing = null;
List