2022-11-25 焊接材料匹配任务清单树优化
This commit is contained in:
@@ -1022,11 +1022,17 @@ namespace BLL
|
||||
T entity = new T();
|
||||
foreach (PropertyInfo p in pArray)
|
||||
{
|
||||
if (string.IsNullOrEmpty(row[p.Name].ToString()))
|
||||
{
|
||||
p.SetValue(entity, "", null);
|
||||
continue;
|
||||
}
|
||||
if (row[p.Name] is Int64)
|
||||
{
|
||||
p.SetValue(entity, Convert.ToInt32(row[p.Name]), null);
|
||||
continue;
|
||||
}
|
||||
|
||||
p.SetValue(entity, row[p.Name], null);
|
||||
}
|
||||
list.Add(entity);
|
||||
|
||||
Reference in New Issue
Block a user