From fbc6fae6c793220d0b67ac603ce9bbf22837de79 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期四, 19 六月 2025 17:50:47 +0800
Subject: [PATCH] 1
---
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/StackerCraneExtend/SignalInteraction.cs | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/StackerCraneExtend/SignalInteraction.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/StackerCraneExtend/SignalInteraction.cs"
index bf99867..9d81eb2 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/StackerCraneExtend/SignalInteraction.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/StackerCraneExtend/SignalInteraction.cs"
@@ -48,13 +48,13 @@
Dt_Task? task = GetTaskInfo(commonStackerCrane);
if (task != null)
{
- if ((task.TaskType == TaskInboundTypeEnum.Inbound.ObjToInt()
+ if ((_taskService.TaskInboundTypes.Contains(task.TaskType)
|| task.TaskType == TaskRelocationTypeEnum.Relocation.ObjToInt())
&& task.TargetIsPickPlace && ASRSRqtPutGoods)//璇锋眰鏀捐揣
{
commonStackerCrane.SetValue(StackerCraneDBName.AGVAlwASRSPuttGoods, ASRSRqtPutGoods);
}
- else if ((task.TaskType == TaskOutboundTypeEnum.Outbound.ObjToInt()
+ else if ((_taskService.TaskOutboundTypes.Contains(task.TaskType)
|| task.TaskType == TaskRelocationTypeEnum.Relocation.ObjToInt())
&& ASRSRqtGetGoods && task.SourceIsPickPlace)//璇锋眰鍙栬揣
{
@@ -66,7 +66,13 @@
}
else
{
- Dt_ShuttleCar? shuttleCar1 = GetShuttleCarInfo(ASRSRqtPutGoods ? task.TargetAddress : task.SourceAddress);
+ Dt_ShuttleCar? shuttleCar1 = _shuttleCarService.QueryCode(task.ShuttleCarCode);
+ if (task.TaskType == TaskRelocationTypeEnum.Relocation.ObjToInt() && task.Remark == "")
+ {
+ shuttleCar1 = _shuttleCarService.QueryNoCode(task.ShuttleCarCode);
+ task.Remark = shuttleCar1.ShuttleCarCode;
+ _taskService.UpdateData(task);
+ }
if (shuttleCar1 != null)
{
ShuttleCar shuttleCar = Storage.Devices.FirstOrDefault(x => x.DeviceName == shuttleCar1.ShuttleCarName) as ShuttleCar;
--
Gitblit v1.9.3