From b367d83eaff9c2f629c7e10b028bbb06b6dbce1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E5=BB=BA=E4=B8=9C?= <617601767@qq.com> Date: Thu, 14 Mar 2024 14:52:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9between=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hadoop/ZKLT.Hadoop/TableService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]);