From 0c369f4d3dab390ab14332346b0fe6b86c999bd9 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期一, 23 六月 2025 09:46:29 +0800 Subject: [PATCH] 修复消息处理逻辑并增加地址检查在 `RequestInbound.cs` 中,更新了对 `content.Message` 的条件判断,增加了对 "无法获取目标地址" 消息的处理逻辑,并确保错误信息始终被记录。在 `Dt_TaskService.cs` 中,增加了对 `ToAddress` 变量的空值检查,确保在创建新任务实例之前,地址是有效的。 --- Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/Partial/Method.cs | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/Partial/Method.cs b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/Partial/Method.cs index a7eb02b..9000e31 100644 --- a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/Partial/Method.cs +++ b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/Partial/Method.cs @@ -4,6 +4,7 @@ using System.Text; using System.Threading.Tasks; using WIDESEAWCS_Model.Models; +using WIDESEAWCS_QuartzJob.DeviceBase; namespace WIDESEAWCS_BasicInfoService { @@ -11,7 +12,14 @@ { public List<Dt_StationManager> GetAllStationByDeviceCode(string DeviceCode) { - return BaseDal.QueryData(x => x.stationPLC == DeviceCode).ToList(); + //todo锛� 浣跨敤缂撳瓨鍌ㄥ瓨 + return BaseDal.QueryData(x => x.stationPLC == DeviceCode && x.stationStatus == "1").ToList(); } + + public Dt_StationManager GetStationInfoByChildCode(string ChildCode, string area) + { + return BaseDal.QueryFirst(x => x.stationChildCode == ChildCode && x.stationArea == area && x.stationStatus == "1"); + } + } } -- Gitblit v1.9.3