qx
czw
2025-06-17 63b7c5764a2b567a1aeaf939e0edabf98aba2378
HH.WCS.QingXiNongfu/core/TaskCore.cs
@@ -6,6 +6,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Configuration;
using System.Xml.Schema;
using static HH.WCS.QingXigongchang.api.ApiModel;
@@ -199,6 +200,17 @@
            var list = TaskHelper.GetTaskListByState("未执行");
            if (list.Count > 0)
            {
                foreach (var mst in list)
                {
                    var dinfo = Settings.GetDeviceInfoList().FindAll(x => x.deviceType == 13);
                    if (dinfo.Find(x => x.location.Contains(mst.S_START_LOC)) != null)
                        mst.N_PRIORITY = 99;
                    else
                    if (dinfo.Find(x => x.location.Contains(mst.S_END_LOC)) != null)
                        mst.N_PRIORITY = 98;
                }
                list = list.OrderByDescending(x => x.N_PRIORITY).ToList();
                list.ForEach(task =>
                {
                    if (!TaskProcess.Intercept(task))