From 880b7feed920575c19931c214b7d624aa93c6df5 Mon Sep 17 00:00:00 2001
From: 肖洋 <cathay_xy@163.com>
Date: 星期六, 21 十二月 2024 11:30:13 +0800
Subject: [PATCH] 优化入库任务创建逻辑,调整任务状态和地址处理,改进异常处理机制

---
 Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
index 000de4c..04de7fa 100644
--- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
+++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
@@ -1323,7 +1323,7 @@
 
     #region 闈欑疆寮傚父鍙e叆搴�
 
-    public async Task<WebResponseContent> CreateAndSendInboundTask(string locationCode, string palletCode, string position)
+    public async Task<WebResponseContent> CreateAndSendInboundTask(string palletCode, string position)
     {
         WebResponseContent content = new WebResponseContent();
         try
@@ -1347,7 +1347,7 @@
                         // 鍒涘缓鏂颁换鍔″疄渚�
                         var task = new Dt_Task
                         {
-                            CurrentAddress = locationCode,
+                            CurrentAddress = station.stationLocation,
                             Grade = 1,
                             Roadway = station.Roadway,
                             TargetAddress = location.LocationCode,
@@ -1356,7 +1356,7 @@
                             NextAddress = location.LocationCode,
                             OrderNo = null,
                             PalletCode = palletCode,
-                            SourceAddress = locationCode,
+                            SourceAddress = position,
                             TaskState = (int)TaskInStatusEnum.Line_InFinish,
                             TaskType = (int)TaskInboundTypeEnum.Inbound,
                             TaskNum = await BaseDal.GetTaskNo(),

--
Gitblit v1.9.3