From ff006f77f6267fc0d2c4ee810d897a85165f5b8f Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期四, 30 四月 2026 22:08:29 +0800
Subject: [PATCH] Merge branch 'xiaoyang' into dev

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/WCS/TaskService_Inbound.cs |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/WCS/TaskService_Inbound.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/WCS/TaskService_Inbound.cs
index 1a731c9..2d22bbb 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/WCS/TaskService_Inbound.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/WCS/TaskService_Inbound.cs
@@ -141,8 +141,10 @@
                             Creater = StockConstants.SYSTEM_USER,
                             Details = null,
                             LocationCode = location.LocationCode,
-                            LocationId = location.Id
+                            LocationId = location.Id,
+                            OutboundDate = DateTime.Now
                         };
+                        location.LocationStatus = LocationStatusEnum.InStock.GetHashCode();
                         var updateLocationResult = await _locationInfoService.UpdateLocationInfoAsync(location);
                         var updateStockResult = await _stockInfoService.Repository.AddDataAsync(stockInfo);
                         return await CompleteTaskAsync(task, "鍏ュ簱瀹屾垚");
@@ -161,10 +163,13 @@
                         WebResponseContent content = new WebResponseContent();
                         stockInfo.LocationCode = location.LocationCode;
                         stockInfo.LocationId = location.Id;
+                        stockInfo.WarehouseId = task.WarehouseId;
 
                         SetOutboundDateByRoadway(task, stockInfo);
 
                         stockInfo.StockStatus = StockStatusEmun.鍏ュ簱瀹屾垚.GetHashCode();
+
+                        stockInfo.CreateDate = DateTime.Now;
 
                         location.LocationStatus = LocationStatusEnum.InStock.GetHashCode();
 
@@ -188,7 +193,7 @@
                             EquipmentCode = equipmentCode,
                             ResourceCode = resourceCode,
                             LocalTime = DateTime.Now,
-                            ContainerCode = taskDto.PalletCode
+                            ContainerCode = taskDto.PalletCode,
                         };
                         string requestJson = inboundRequest.ToJson();
                         var palletCode = taskDto.PalletCode;
@@ -206,7 +211,8 @@
                                 return (
                                     result?.Data?.IsSuccess ?? false,
                                     JsonConvert.SerializeObject(result),
-                                    result?.Data?.Msg ?? result?.ErrorMessage ?? "鏈煡閿欒"
+                                    result?.Data?.Msg ?? result?.ErrorMessage ?? "鏈煡閿欒",
+                                    _mesService.BuildConfig(token ?? string.Empty).ToJson()
                                 );
                             });
 

--
Gitblit v1.9.3