From a8e17feaaaafd549c81ea7e18f5c968af28d9391 Mon Sep 17 00:00:00 2001 From: huanghongfeng <huanghongfeng@hnkhzn.com> Date: 星期二, 09 七月 2024 14:01:13 +0800 Subject: [PATCH] 工单清理,检测线段 --- 代码管理/WMS/WMS_Server/WIDESEA_WMS/Common/GetStation/EmptyTrayIn.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Common/GetStation/EmptyTrayIn.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Common/GetStation/EmptyTrayIn.cs" index f7ddcc4..27b7e4c 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Common/GetStation/EmptyTrayIn.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Common/GetStation/EmptyTrayIn.cs" @@ -11,7 +11,7 @@ using WIDESEA_WMS.IRepositories; using WIDESEA_WMS.Repositories; -namespace WIDESEA_WCS.JobsPart.Common +namespace WIDESEA_WMS.Common { public class EmptyTray { @@ -91,7 +91,7 @@ agv_taskstate = "Create", agv_qty = EmptyStation.quantity <= quantity ? EmptyStation.quantity : quantity, //agv_qty = EmptyStation.quantity - toEmptyStation.quantity, - StarQuantity = toEmptyStation.quantity, + StarQuantity = EmptyStation.quantity <= quantity ? 0 : EmptyStation.quantity - quantity, EndQuantity = toEmptyStation.quantity, agv_tasktype = "TaskType_EmptyPallet", agv_toaddress = toEmptyStation.stationCode, @@ -103,6 +103,7 @@ EmptyStation.location_state = LocationStateEnum.Busy.ToString(); stationinfoRepository.Update(EmptyStation, true); toEmptyStation.location_state = LocationStateEnum.Busy.ToString(); + toEmptyStation.tray_status = TrayStateEnum.EmptyTray.ToString(); stationinfoRepository.Update(toEmptyStation, true); WriteDBLog.Success("鍒涘缓鍙犵洏浣嶇┖鎵樺叆搴撲换鍔�", $"浠诲姟缂栧彿锛歿agvtask.agv_tasknum}", "PCS"); } -- Gitblit v1.9.3