yanjinhui
2026-03-05 2a849d2f6220733dea112d09eb1f0bfb8fa2e28f
´úÂë¹ÜÀí/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;
        }