From b54877f2400f752f5b9a1c8aef39c4aa9e851ac5 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期三, 11 三月 2026 09:54:19 +0800
Subject: [PATCH] docs: 添加WCS系统DDD重构设计文档

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs
index 28564a1..db2cb23 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs
@@ -8,6 +8,7 @@
 using WIDESEA_Core;
 using WIDESEA_Core.BaseRepository;
 using WIDESEA_Core.BaseServices;
+using WIDESEA_Core.Core;
 using WIDESEA_DTO;
 using WIDESEA_DTO.Task;
 using WIDESEA_IBasicService;
@@ -209,6 +210,7 @@
                     var r when r.Contains("CW") => DateTime.Now.AddHours(1),
                     _ => DateTime.Now
                 };
+                stockInfo.StockStatus = StockStatusEmun.鍏ュ簱瀹屾垚.GetHashCode();
 
                 location.LocationStatus = LocationStatusEnum.InStock.GetHashCode();
 
@@ -492,8 +494,8 @@
 
                 // 4. 鑾峰彇閰嶇疆鐨勭洰鏍囧湴鍧�鏄犲皠
                 var targetAddressMap = _configuration.GetSection("AutoOutboundTask:TargetAddresses")
-                    .Get<Dictionary<string, string>>()
-                    ?? new Dictionary<string, string>();
+                    .Get<Dictionary<string, List<string>>>()
+                    ?? new Dictionary<string, List<string>>();
 
                 // 5. 鎵归噺鍒涘缓浠诲姟
                 var taskList = new List<Dt_Task>();
@@ -517,7 +519,7 @@
                         TaskType = TaskTypeEnum.Outbound.GetHashCode(),
                         TaskStatus = TaskStatusEnum.New.GetHashCode(),
                         Grade = 1,
-                        TaskNum = 0,  // 浣跨敤 0 璁╂暟鎹簱鑷姩鐢熸垚浠诲姟鍙�
+                        TaskNum = await BaseDal.GetTaskNo(),
                         Creater = "system_auto"
                     };
                     taskList.Add(task);
@@ -538,7 +540,7 @@
                         {
                             var wmstaskDto = _mapper.Map<WMSTaskDTO>(task);
                             _httpClientHelper.Post<WebResponseContent>(
-                                "http://logistics-service/api/logistics/notifyoutbound",
+                                "http://localhost:9292/api/Task/ReceiveTask",
                                 JsonSerializer.Serialize(wmstaskDto));
                         }
                         catch (Exception ex)

--
Gitblit v1.9.3