From e81c782b3e7a632ffb8e32be56fce931a8c89ae6 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期一, 09 二月 2026 08:55:42 +0800
Subject: [PATCH] 修复bug
---
项目代码/WCSServices/WIDESEAWCS_Tasks/AGV/AGVExtend.cs | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_Tasks/AGV/AGVExtend.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_Tasks/AGV/AGVExtend.cs"
index 8d9aeaa..4babe88 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_Tasks/AGV/AGVExtend.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_Tasks/AGV/AGVExtend.cs"
@@ -31,10 +31,15 @@
{
foreach (var GroupTask in newTasksOut.GroupBy(x=>x.NextAddress))
{
- var tasks = GroupTask.OrderBy(x => x.TaskNum).ToList();
+ int taskCount = 6;
+ if (GroupTask.ObjToInt() > 201)
+ {
+ taskCount = 4;
+ }
+ var tasks = GroupTask.Take(taskCount).ToList();
TimeSpan span = DateTime.Now - tasks.FirstOrDefault().CreateDate;
int taskDownCount = taskDownOut.Where(x => x.NextAddress == GroupTask.Key).Count();
- if (taskDownCount < (GroupTask.ObjToInt() > 201 ? 4 : 6) && (int)span.TotalSeconds > 20)
+ if (taskDownCount < (GroupTask.ObjToInt() > 201 ? 4 : 6) && (tasks.Count >= 4 || (int)span.TotalSeconds >= 20))
{
try
{
@@ -43,6 +48,7 @@
MissionData = new List<MissionDataItem>()
};
string taskGroupId = Guid.NewGuid().ToString().Replace("-", "");
+
foreach (var task in tasks)
{
//鑾峰彇鐩爣鐐硅揣浣�
--
Gitblit v1.9.3