|
|
@ -319,7 +319,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!) && row[_column.Key!] != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_colstr.Append($@"`{_column.Key!}`,");
|
|
|
|
_colstr.Append($@"`{_column.Key!}`,");
|
|
|
|
_parmstr.Append($@"@{_column.Key},");
|
|
|
|
_parmstr.Append($@"@{_column.Key},");
|
|
|
@ -405,7 +405,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!) && !where.ContainsKey(_column.Key!))
|
|
|
|
if (row.ContainsKey(_column.Key!) && !where.ContainsKey(_column.Key!) && row[_column.Key!] != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_colstr.Append($@"`{_column.Key!}`=@{_column.Key!},");
|
|
|
|
_colstr.Append($@"`{_column.Key!}`=@{_column.Key!},");
|
|
|
|
_params.Add(_column.Key!, row[_column.Key!]);
|
|
|
|
_params.Add(_column.Key!, row[_column.Key!]);
|
|
|
|