From 4b483d9d06bead231b88ca212fd799196668a057 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 28 四月 2026 22:58:27 +0800
Subject: [PATCH] fix(任务服务): 修复出库任务选择逻辑和货位分配问题

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
index 72db775..3cb1f0d 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
@@ -1,21 +1,10 @@
 using MapsterMapper;
 using SqlSugar;
-using System.Diagnostics.CodeAnalysis;
-using WIDESEA_Core;
 using WIDESEAWCS_Common.TaskEnum;
-using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.BaseServices;
-using WIDESEAWCS_Core.Enums;
-using WIDESEAWCS_DTO;
-using WIDESEAWCS_DTO.Stock;
-using WIDESEAWCS_DTO.TaskInfo;
 using WIDESEAWCS_ITaskInfoRepository;
 using WIDESEAWCS_ITaskInfoService;
 using WIDESEAWCS_Model.Models;
-using WIDESEAWCS_QuartzJob;
-using WIDESEAWCS_QuartzJob.DeviceBase;
-using WIDESEAWCS_QuartzJob.DTO;
-using WIDESEAWCS_QuartzJob.Models;
 using WIDESEAWCS_QuartzJob.Service;
 
 namespace WIDESEAWCS_TaskInfoService;
@@ -70,5 +59,8 @@
         _inboundTaskFlowService = inboundTaskFlowService;
         _relocationTaskFlowService = relocationTaskFlowService;
         _robotTaskFlowService = robotTaskFlowService;
+
+        // 璁剧疆濮旀墭锛岄伩鍏峅utboundTaskFlowService閫氳繃IComponentContext寤惰繜瑙f瀽瀵艰嚧ObjectDisposedException
+        _outboundTaskFlowService.SetReceiveWMSTaskDelegate(ReceiveWMSTask);
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3