|
|
@ -72,6 +72,10 @@ namespace ZKLT.Hadoop
|
|
|
|
{
|
|
|
|
{
|
|
|
|
param.Add(_guid, _data[_item.Name]!);
|
|
|
|
param.Add(_guid, _data[_item.Name]!);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (_item.Value.ToString() == HDP_WhereType.LIKE)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
param.Add(_guid,$@"%{((JValue)_data[_item.Name]!).Value!}%" );
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
param.Add(_guid, ((JValue)_data[_item.Name]!).Value!);
|
|
|
|
param.Add(_guid, ((JValue)_data[_item.Name]!).Value!);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -525,6 +529,15 @@ namespace ZKLT.Hadoop
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new ArgumentNullException("条件无效");
|
|
|
|
throw new ArgumentNullException("条件无效");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
List<JObject> _where = new List<JObject>();
|
|
|
|
|
|
|
|
if (where.Type == JTokenType.Object)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_where.Add((JObject)where);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (where.Type == JTokenType.Array)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_where.AddRange(((JArray)where).ToObject<JObject[]>()!);
|
|
|
|
|
|
|
|
}
|
|
|
|
if (data == null || data.Count == 0)
|
|
|
|
if (data == null || data.Count == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new ArgumentNullException("数据无效");
|
|
|
|
throw new ArgumentNullException("数据无效");
|
|
|
@ -564,7 +577,7 @@ namespace ZKLT.Hadoop
|
|
|
|
for (var i = 0; i < table.Columns.Length; i++)
|
|
|
|
for (var i = 0; i < table.Columns.Length; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var _column = table.Columns[i];
|
|
|
|
var _column = table.Columns[i];
|
|
|
|
if (_row.ContainsKey(_column.Key!))
|
|
|
|
if (_row.ContainsKey(_column.Key!) && !_where.Any(x => x.ContainsKey(_column.Key!)))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_colstr.Append($@"`{_column.Key!}`=@{_column.Key!},");
|
|
|
|
_colstr.Append($@"`{_column.Key!}`=@{_column.Key!},");
|
|
|
|
_params.Add(_column.Key!, ((JValue)_row[_column.Key!]!).Value!);
|
|
|
|
_params.Add(_column.Key!, ((JValue)_row[_column.Key!]!).Value!);
|
|
|
|