From f73254e04fe308d7f87e9593e4e62baa1688c247 Mon Sep 17 00:00:00 2001
From: ChenYi <296215406@outlook.com>
Date: Wed, 14 May 2025 11:33:31 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96IoTDB=E6=9F=A5=E8=AF=A2?=
=?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=A4=84=E7=90=86=EF=BC=8C=E4=BD=BF=E7=94=A8?=
=?UTF-8?q?=E5=A7=94=E6=89=98=E8=BF=9B=E8=A1=8C=E5=AE=9E=E7=8E=B0=E5=80=BC?=
=?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2=E6=8B=BC=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Options/QueryCondition.cs | 43 +++++++++++++--
.../Provider/IoTDBProvider.cs | 10 ++--
.../Samples/SampleAppService.cs | 37 +++++++++++--
.../BasicScheduledMeterReadingService.cs | 53 ++++++++++---------
...nergySystemScheduledMeterReadingService.cs | 39 +++++++++++++-
...ataInfo.cs => DeviceTableModelDataInfo.cs} | 2 +-
.../Devices/DeviceTreeModelDataInfo.cs | 22 ++++++++
web/JiShe.CollectBus.Host/appsettings.json | 18 +++----
8 files changed, 173 insertions(+), 51 deletions(-)
rename services/JiShe.CollectBus.Domain/IotSystems/Devices/{DeviceDataInfo.cs => DeviceTableModelDataInfo.cs} (93%)
create mode 100644 services/JiShe.CollectBus.Domain/IotSystems/Devices/DeviceTreeModelDataInfo.cs
diff --git a/modules/JiShe.CollectBus.IoTDB/Options/QueryCondition.cs b/modules/JiShe.CollectBus.IoTDB/Options/QueryCondition.cs
index 40dd443..f5249b0 100644
--- a/modules/JiShe.CollectBus.IoTDB/Options/QueryCondition.cs
+++ b/modules/JiShe.CollectBus.IoTDB/Options/QueryCondition.cs
@@ -1,4 +1,7 @@
-namespace JiShe.CollectBus.IoTDB.Options
+using JiShe.CollectBus.Common.Extensions;
+using JiShe.CollectBus.Common.Helpers;
+
+namespace JiShe.CollectBus.IoTDB.Options
{
///
/// 查询条件
@@ -19,10 +22,44 @@
/// 是否数值,如果是数值,则进行数值比较,否则进行字符串比较
///
public bool IsNumber { get; set; } = false;
-
+
+ private object _rawValue;
///
/// 值
///
- public object Value { get; set; }
+ public object Value
+ {
+ get => ApplyValueConversion(_rawValue);
+ set => _rawValue = value;
+ }
+
+ ///
+ /// 值转换
+ ///
+ ///
+ ///
+ private object ApplyValueConversion(object rawValue)
+ {
+ string declaredTypeName = rawValue.GetType().Name;
+
+ Func