From 8ff069bc70aaf3338052b5eb5d3f0f188c66e56b Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期四, 16 四月 2026 14:58:53 +0800
Subject: [PATCH] 优化海康跨楼层任务,以及处理提升机异常信号问题

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs"
index cc115e0..07e6933 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs"
@@ -5,7 +5,7 @@
 using System.Threading.Tasks;
 using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.Helper;
-using WIDESEAWCS_DTO.TaskInfo;
+using WIDESEAWCS_DTO.WMS;
 
 namespace WIDESEAWCS_TaskInfoService
 {
@@ -17,8 +17,8 @@
             try
             {
                 if (taskDTO.containerCode.IsNullOrEmpty()) throw new Exception("鏂欑鍙蜂笉鑳戒负绌�");
-                if (taskDTO.toAreaCode.IsNullOrEmpty() || taskDTO.toLocationCode.IsNullOrEmpty()) throw new Exception("缁堢偣鍖哄煙鎴栫粓鐐逛綅缃笉鑳戒负绌�");
-                if (isType) if (taskDTO.containerType.IsNullOrEmpty()) throw new Exception("鏂欑鍙蜂笉鑳戒负绌�");
+                if (taskDTO.toAreaCode.IsNullOrEmpty() && taskDTO.toLocationCode.IsNullOrEmpty()) throw new Exception("缁堢偣鍖哄煙鎴栫粓鐐逛綅缃笉鑳戒负绌�");
+                //if (isType) if (taskDTO.containerType.IsNullOrEmpty()) throw new Exception("鏂欑绫诲瀷涓嶈兘涓虹┖");
                 if (isfrom) if (taskDTO.fromLocationCode.IsNullOrEmpty()) throw new Exception("璧风偣浣嶇疆涓嶈兘涓虹┖");
             }
             catch (Exception ex)

--
Gitblit v1.9.3