From 91b610a8cf7ad7a4e52486d3ff904df229873b23 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期五, 11 四月 2025 14:31:05 +0800
Subject: [PATCH] 1

---
 代码管理/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs"
index 2e871c8..33541af 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs"
@@ -52,6 +52,9 @@
         }
 
         public Task Execute(IJobExecutionContext context)
+
+
+
         {
             try
             {
@@ -112,7 +115,7 @@
                 string taskType = request.Value.Contains("ZJXL") ? "姝f瀬" : "璐熸瀬";
 
                 // 鏌ヨ鏄惁瀛樺湪宸茬敓鎴愮殑鏂颁换鍔�
-                var task = _taskRepository.QueryFirst(x => x.SourceAddress == fromAdd && x.TaskState == (int)TaskInStatusEnum.InNew);
+                var task = _taskRepository.QueryFirst(x => x.SourceAddress == fromAdd);//&& x.TaskState == (int)TaskInStatusEnum.InNew
                 if (task != null)
                 {
                     ConsoleHelper.WriteInfoLine($"{nameof(CommonConveyorLineJob)}: {taskType}{requestType},浠诲姟宸茬敓鎴愬瓨鍦紝绋嶅悗閲嶈瘯......");
@@ -198,11 +201,12 @@
                 CurrentAddress = currentAddress,
                 SourceAddress = currentAddress,
                 TaskState = targetAddress != "WaitBind" ? (int)TaskInStatusEnum.InNew : (int)TaskInStatusEnum.InPending,
-                TaskType = (int)TaskInboundTypeEnum.Inbound,
+                TaskType = (int)TaskOutboundTypeEnum.Outbound,
                 Grade = 1,
                 PalletCode = palletCode,
                 TargetAddress = targetAddress,
                 NextAddress = targetAddress,
+                Barcode = "",
                 Roadway = $"{taskType}AGV",
                 WMSId = 0,
                 Remark = remark

--
Gitblit v1.9.3