From 9f3b0f54b2c109bf32c250385b23df364c6ba4a4 Mon Sep 17 00:00:00 2001
From: leiqunqing <zhengqifeng@hnkhzn.com>
Date: 星期三, 28 一月 2026 21:40:29 +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 9c46c48..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"
@@ -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