From 9de6c7c6d835ba5161d64114d154bfc7676244a1 Mon Sep 17 00:00:00 2001
From: 陈勇 <竞男@ASUNA>
Date: 星期一, 06 四月 2026 12:44:43 +0800
Subject: [PATCH] 同步

---
 项目代码/WMS/WMSServer/WIDESEA_StorageTaskServices/AutoTask/BackgroundJob.cs |   15 +++------------
 1 files changed, 3 insertions(+), 12 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageTaskServices/AutoTask/BackgroundJob.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageTaskServices/AutoTask/BackgroundJob.cs"
index 4b58e56..95c7017 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageTaskServices/AutoTask/BackgroundJob.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageTaskServices/AutoTask/BackgroundJob.cs"
@@ -1,12 +1,6 @@
 锘縰sing Masuit.Tools;
-using Microsoft.Extensions.DependencyInjection;
 using Microsoft.Extensions.Logging;
 using Quartz;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using WIDESEA_Core.Const;
 using WIDESEA_DTO.WMS;
 using WIDESEA_IServices;
@@ -51,7 +45,7 @@
                 var area = _areaInfoRepository.QueryFirst(x => x.AreaCode == "5");
                 if (area.AreaStatus != 1l) { return Task.CompletedTask; }
 
-                var lockInfo = _palletStockInfoRepository.Db.Queryable<Dt_MESLockInfo>()
+                var lockInfo = _MESLockInfoRepository.Db.Queryable<Dt_MESLockInfo>()
                     //.Where(x => x.LockStatue == 0)
                     .Includes(x => x.CarBodyInfo)
                     .OrderBy(x => x.sequenceNo) // 鎺掑簭
@@ -78,10 +72,6 @@
                 {
                     stationLists = _stationManagerRepository.QueryData(x => x.RoadwayNo == lockCar.TCLine && x.stationType == 2 && x.stationStatus == "1" && x.stationArea == "4");
                 }
-                //else if (item.CarBodyInfo.CarType == 3)
-                //{
-                //    stationLists = _stationManagerRepository.QueryData(x => x.RoadwayNo == item.TCLine && x.stationType == 7 && x.stationStatus == "1" && x.stationArea == "3");
-                //}
 
                 var stock = _VVStockInfoRepository.QueryFirst(x => x.carBodyID == lockCar.carBodyID);
                 var lockStock = _palletStockInfoRepository.QueryFirst(x => x.carBodyID == lockCar.carBodyID);
@@ -108,7 +98,7 @@
                 // 鍒涘缓骞舵坊鍔犱换鍔″埌鏁版嵁搴�
                 hasTask = new Dt_Task
                 {
-                    Grade = 1,
+                    Grade = 3,
                     Roadway = Outstation.Roadway,
                     TargetAddress = "RB043",
                     Dispatchertime = DateTime.Now,
@@ -125,6 +115,7 @@
                     CreateDate = DateTime.Now,
                     TaskId = 0,
                     CarType = stock.CarType,
+                    RoadwayNo = stock.RoadwayNo,
                 };
 
                 // 鍒涘缓浠诲姟浼犺緭鐢ㄧ殑DTO瀵硅薄

--
Gitblit v1.9.3