From bbfcd81bc4121a93ae50e36c27600a6c23dbf217 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期一, 20 四月 2026 17:53:03 +0800
Subject: [PATCH] 1
---
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/Task/RGVTaskExtend.cs | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/Task/RGVTaskExtend.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/Task/RGVTaskExtend.cs"
index cdd43c3..60f4039 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/Task/RGVTaskExtend.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/Task/RGVTaskExtend.cs"
@@ -4,6 +4,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
+using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Common;
@@ -234,6 +235,16 @@
var responseContent = AddMoveTask(item.blockPods, task);//娣诲姞绉诲簱浠诲姟
if (!responseContent.Status) task.ExceptionMessage = responseContent.Message;
else task.TaskState = (int)TaskStatusEnum.RGV_WaitMoveToExecute;
+ #region 绉诲簱鐘舵�佸弽棣堢粰WMS
+ WMSInOutBoundCompleteFeedback boundCompleteFeedback = new WMSInOutBoundCompleteFeedback();
+ boundCompleteFeedback.taskCode = task.WMSTaskNum;
+ boundCompleteFeedback.containerCode = task.PalletCode;
+ boundCompleteFeedback.fromStationCode = task.SourceAddress;
+ boundCompleteFeedback.toLocationCode = task.TargetAddress;
+ boundCompleteFeedback.status = 5;
+ boundCompleteFeedback.custStatus = "";
+ _apiInfoService.PostInterfaceRequest(nameof(WMSInOutBoundCompleteFeedback), boundCompleteFeedback.Serialize(), "鎴愬搧鍑哄簱浠诲姟绛夊緟绉诲簱涓婃姤WMS");
+ #endregion
}
else
{
@@ -565,11 +576,12 @@
List<Dt_Task> tasks = Items.Item1;
List<Dt_RGVLocationInfo> _UpRGVLocationInfos = Items.Item2;
if (tasks.Count < blockPods.Count) throw new Exception("鍙Щ搴撶┖璐т綅灏戜簬闇�绉诲簱鎵樼洏鏁伴噺");
-
+ int i = 0;
tasks.ForEach(x =>
{
+ i++;
x.TaskNum = _taskService.GetTaskNum(nameof(SequenceEnum.SeqTaskNum));
- //x.WMSTaskNum = task.WMSTaskNum;
+ x.WMSTaskNum = $"Move_{i}&" + task.WMSTaskNum;
});
rGVLocationInfos.ForEach(x =>
{
@@ -584,7 +596,7 @@
_unitOfWorkManage.BeginTran();
_rGVLocationInfoService.UpdateData(rGVLocationInfos);
_rGVLocationInfoService.UpdateData(_UpRGVLocationInfos);
- _taskService.AddData(tasks);
+ _taskService.Repository.AddData(tasks);
_unitOfWorkManage.CommitTran();
content.OK();
}
--
Gitblit v1.9.3