diff --git a/Hadoop/ZKLT.Hadoop/TableService.cs b/Hadoop/ZKLT.Hadoop/TableService.cs index daf6ee9..676f11c 100644 --- a/Hadoop/ZKLT.Hadoop/TableService.cs +++ b/Hadoop/ZKLT.Hadoop/TableService.cs @@ -46,12 +46,12 @@ namespace ZKLT.Hadoop if (row![_column.Key!] != null) { var _betweendata = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(row![_column.Key!])); if (_betweendata != null) { - if (_betweendata[0] != null) + if (_betweendata[0] != null && _betweendata[0].ToString() != "") { _wherestr.Append($@" AND `{_column.Key!}` >= @{_column.Key!}0"); param.Add(_column.Key! + "0", _betweendata[0]); } - if (_betweendata[1] != null) + if (_betweendata[1] != null && _betweendata[1].ToString() != "") { _wherestr.Append($@" AND `{_column.Key!}` <= @{_column.Key!}1"); param.Add(_column.Key! + "1", _betweendata[1]);