From 2dc8402ebc25928614334407b9d736af0daeb6e1 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期三, 12 四月 2023 13:57:16 +0800 Subject: [PATCH] Merge branch 'dev-cqy(1.5.9)' of http://172.16.1.23:6688/r/~wxr/OnPro into dev-cqy(1.5.9) --- HDL_ON/Entity/Function/Sensor.cs | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/HDL_ON/Entity/Function/Sensor.cs b/HDL_ON/Entity/Function/Sensor.cs index aff130f..b53b38a 100644 --- a/HDL_ON/Entity/Function/Sensor.cs +++ b/HDL_ON/Entity/Function/Sensor.cs @@ -78,12 +78,23 @@ function.SetAttrState(FunctionAttributeKey.Value, value); } + List<string> _intervalValue = new List<string>(); + + public void SetIntervalValue(List<string> intervalValue) + { + _intervalValue = intervalValue; + } + /// <summary> /// 姣忎釜绛夌骇瀵瑰尯闂村�� /// </summary> public List<string> GetIntervalValue(string spk) { - var _intervalValue = new List<string>(); + if(_intervalValue.Count != 0) + { + return _intervalValue; + } + _intervalValue = new List<string>(); switch (spk) { case SPK.SensorPm25: -- Gitblit v1.8.0