diff --git a/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/SecondaryCircuitInspectionPlanService.cs b/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/SecondaryCircuitInspectionPlanService.cs index 23dd30d..4961452 100644 --- a/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/SecondaryCircuitInspectionPlanService.cs +++ b/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/SecondaryCircuitInspectionPlanService.cs @@ -525,8 +525,8 @@ namespace YunDa.Server.ISMSTcp.Services private async Task ExecutePlan(SecondaryCircuitInspectionItemOutputEx itemEx) { - string func2 = ""; - string data2 = ""; + //string func2 = ""; + //string data2 = ""; try { var item = itemEx.Item; @@ -554,7 +554,6 @@ namespace YunDa.Server.ISMSTcp.Services var engine = new Jint.Engine(); engine.Execute(item.CalculationExpression); - func2 = item.CalculationExpression; ObjectInstance? saveObj = null; @@ -632,7 +631,6 @@ namespace YunDa.Server.ISMSTcp.Services var js = $"JSON.parse('{json.Replace("'", "\\'")}')"; - data2 = json; var jsObj = engine.Evaluate(js).ToObject(); diff --git a/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/ZzDataCacheContainer.cs b/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/ZzDataCacheContainer.cs index 1cce302..85b676e 100644 --- a/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/ZzDataCacheContainer.cs +++ b/src/YunDa.Server/YunDa.Server.ISMSTcp/Services/ZzDataCacheContainer.cs @@ -97,6 +97,7 @@ namespace YunDa.Server.ISMSTcp.Services { public string Id { get; set; } = string.Empty; public string Name { get; set; } = string.Empty; + public string DeviceName { get; set; } = string.Empty; public int? DispatcherAddress { get; set; } = null; public double Value { get; set; } public string ValueStr { get; set; } = string.Empty;