From bc8d5d9f033b638e97007c8a9cec8a703879fcbe Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 27 二月 2026 18:15:33 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/RuiShengZhiNeng/GaoPuLiTiKu
---
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 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..949dc5e 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,13 +17,13 @@
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)
{
- content.Error(ex.Message);
+ throw new Exception(ex.Message);
}
return content;
}
--
Gitblit v1.9.3