From d0f01f571918ae942349068776fa7fb70f3ab5cd Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期三, 28 八月 2024 16:20:18 +0800
Subject: [PATCH] 更新设备信息表从表导入问题

---
 WIDESEAWCS_Server/WIDESEAWCS_Communicator/BaseCommunicator.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Communicator/BaseCommunicator.cs b/WIDESEAWCS_Server/WIDESEAWCS_Communicator/BaseCommunicator.cs
index 0a0707d..d781b94 100644
--- a/WIDESEAWCS_Server/WIDESEAWCS_Communicator/BaseCommunicator.cs
+++ b/WIDESEAWCS_Server/WIDESEAWCS_Communicator/BaseCommunicator.cs
@@ -17,6 +17,7 @@
 
 using HslCommunication;
 using HslCommunication.LogNet;
+using System.Diagnostics.CodeAnalysis;
 
 namespace WIDESEAWCS_Communicator
 {
@@ -106,6 +107,6 @@
 
         public abstract T ReadCustomer<T>(string address) where T : IDataTransfer, new();
 
-        public abstract bool WriteCustomer<T>(string address, T value) where T : IDataTransfer, new();
+        public abstract bool WriteCustomer<T>(string address, [NotNull] T value) where T : IDataTransfer, new();
     }
 }

--
Gitblit v1.9.3