From 8f0c149e3b08a0fe7e113e3006df8c0c8988a235 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期四, 23 五月 2024 11:06:49 +0800
Subject: [PATCH] 优化叠盘区空托入库逻辑
---
代码管理/PCS/WCS_Server/WIDESEA_Comm/TaskNo/IdenxManager.cs | 2 +-
代码管理/WMS/WMS_Server/WIDESEA_WMS/Common/GetStation/EmptyTrayIn.cs | 2 +-
代码管理/WMS/WMS_Server/WIDESEA_WMS/Common/AGVTask/EmptyPalletTask.cs | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_Comm/TaskNo/IdenxManager.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_Comm/TaskNo/IdenxManager.cs"
index 6c2d804..ad90310 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_Comm/TaskNo/IdenxManager.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_Comm/TaskNo/IdenxManager.cs"
@@ -30,7 +30,7 @@
if (numType == "stacker" || numType == "WMS")
{
//闄愬埗鏈�灏忓拰鏈�澶у��
- if (taskno < 1000 || taskno >= 10000)
+ if (taskno < 1000 || taskno >= 100000)
{
taskno = 1000;
}
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Common/AGVTask/EmptyPalletTask.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Common/AGVTask/EmptyPalletTask.cs"
index a485791..04ce2fd 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Common/AGVTask/EmptyPalletTask.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Common/AGVTask/EmptyPalletTask.cs"
@@ -37,7 +37,7 @@
var EmptyD = EmptyStations.Where(x => x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity == 5).FirstOrDefault();
if (EmptyD != null) EmptyTray.CreateEmptyTrayIn(stationinfoRepository, EmptyD);
var val = timeRepository.Find(x => x.management_name == "StackingArea").FirstOrDefault().management_numericalvalue;
- EmptyD = EmptyStations.Where(x => x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity < 5 && x.lastUpdateTime.AddHours(val) < DateTime.Now).FirstOrDefault();//鏃堕棿瓒呰繃6灏忔椂鍏ュ簱
+ EmptyD = EmptyStations.Where(x => x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity < 5 && x.lastUpdateTime.AddHours(val) < DateTime.Now).FirstOrDefault();
if (EmptyD != null) EmptyTray.CreateEmptyTrayIn(stationinfoRepository, EmptyD);
#endregion
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..d02d587 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"
@@ -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 : toEmptyStation.quantity,
EndQuantity = toEmptyStation.quantity,
agv_tasktype = "TaskType_EmptyPallet",
agv_toaddress = toEmptyStation.stationCode,
--
Gitblit v1.9.3