From f3e60a45d7c07391f3449e168c8e11f845bed967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E5=BB=BA=E4=B8=9C?= <617601767@qq.com> Date: Tue, 19 Mar 2024 09:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DIN=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E9=97=AE=E9=A2=98=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hadoop/ZKLT.Hadoop/TableService.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Hadoop/ZKLT.Hadoop/TableService.cs b/Hadoop/ZKLT.Hadoop/TableService.cs index 7cc06c2..f6d4f98 100644 --- a/Hadoop/ZKLT.Hadoop/TableService.cs +++ b/Hadoop/ZKLT.Hadoop/TableService.cs @@ -68,7 +68,13 @@ namespace ZKLT.Hadoop { _guid = Guid.NewGuid().ToString("N"); _wherestr.AppendLine(@$"AND `{_item.Name}` {_item.Value.ToString()} @{_guid}"); - param.Add(_guid, ((JValue)_data[_item.Name]!).Value!); + if (_data[_item.Name]!.Type == JTokenType.Object || _data[_item.Name]!.Type == JTokenType.Array) + { + param.Add(_guid, _data[_item.Name]!); + } + else { + param.Add(_guid, ((JValue)_data[_item.Name]!).Value!); + } } else if (_item.Value.Type == JTokenType.Array) {