提交当前本机整理版本
This commit is contained in:
@@ -879,4 +879,38 @@ namespace Lskj.Util
|
||||
|
||||
foreach (string field in fields)
|
||||
{
|
||||
|
||||
fieldValues = string.Empty;
|
||||
start = string.Empty;
|
||||
end = string.Empty;
|
||||
|
||||
string key = field.Replace("[", "").Replace("]", "");
|
||||
if (key.StartsWith("!"))
|
||||
{
|
||||
key = key.Replace("!", "");
|
||||
start = end = "'";
|
||||
}
|
||||
else if (key.StartsWith("@"))
|
||||
{
|
||||
key = key.Replace("@", "");
|
||||
start = end = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach (DataRow item in rows)
|
||||
{
|
||||
if (item.Table.Columns.Contains(key) && !string.IsNullOrWhiteSpace(item[key] + ""))
|
||||
fieldValues += start + item[key] + end + ",";
|
||||
}
|
||||
param = param.Replace(field, fieldValues.TrimEnd(','));
|
||||
}
|
||||
|
||||
return param;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user