From f1cad31b8247a57699c34067cfc0cd31cf0a91c8 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期五, 18 七月 2025 16:06:53 +0800 Subject: [PATCH] 更新任务逻辑、版本号及发布历史记录 --- CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs | 23 ++++++++++++++--------- 1 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs index 7095436..17fb6a1 100644 --- a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs +++ b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs @@ -609,13 +609,13 @@ } LogFactory.GetLog("浠诲姟瀹屾垚").InfoFormat(true, "楠岃瘉浠诲姟鏄惁瀛樺湪", JsonConvert.SerializeObject(task)); - if (task.TaskType == (int)TaskOutboundTypeEnum.InToOut) - { - return await CompleteInToOutTaskAsync(task); - } + // 楠岃瘉搴撳瓨鏄惁瀛樺湪 var stock = await _stockInfoRepository.QueryFirstNavAsync(x => x.PalletCode == task.PalletCode); - + if (task.TaskType == (int)TaskOutboundTypeEnum.InToOut) + { + return await CompleteInToOutTaskAsync(task,stock); + } // 鏍规嵁浠诲姟绫诲瀷璋冪敤鐩稿簲鐨勫畬鎴愪换鍔℃柟娉� switch (task.TaskType) { @@ -666,6 +666,11 @@ var stock = await QueryStockInfo(input.PalletCode); if (stock != null) { + List<string> strings = new List<string>() { "GW", "CW", "FR" }; + if (stock.AreaCode.Contains(strings)) + { + return content.Error($"鎵樼洏銆恵stock.PalletCode}銆戝瓨鍦ㄥ簱瀛樹笉鍏佽鍏ュ簱"); + } Dt_Task taskNew = new Dt_Task { Grade = 1, @@ -2238,10 +2243,10 @@ // 鑾峰彇鐩爣鍦板潃鍜屾洿鏂颁换鍔$姸鎬� input.Position = Regex.Replace(input.Position, @"-(\d+)", ""); - if (Convert.ToInt32(input.Position) > 1999) - { - input.Position = (Convert.ToInt32(input.Position) - 1000).ToString(); - } + //if (Convert.ToInt32(input.Position) > 1999) + //{ + // input.Position = (Convert.ToInt32(input.Position) - 1000).ToString(); + //} if (task.TaskType == (int)TaskInboundTypeEnum.InNG) { -- Gitblit v1.9.3