|
@@ -1,10 +1,10 @@
|
|
|
-using System.ComponentModel;
|
|
|
-using Newtonsoft.Json;
|
|
|
+using Newtonsoft.Json;
|
|
|
using ServiceCenter.Extensions;
|
|
|
using ServiceCenter.Logs;
|
|
|
using ServiceCenter.Redis;
|
|
|
using ServiceCenter.SqlSugars;
|
|
|
using SqlSugar;
|
|
|
+using System.ComponentModel;
|
|
|
using WCS.Core;
|
|
|
using WCS.Entity;
|
|
|
using WCS.Entity.Protocol.Station;
|
|
@@ -167,7 +167,7 @@ namespace WCS.WorkEngineering.Systems.分拣支线
|
|
|
#region 初始化一个信息的缓存信息
|
|
|
|
|
|
//找到一个可以进行缓存的线体号
|
|
|
- var devCode = cacheLineDevList.Select(x => x.Code.ToShort())
|
|
|
+ var devCode = cacheLineDevList.Select(x => x.Code.ToShort()).OrderByDescending(x => x)
|
|
|
.FirstOrDefault(x => !cacheLineList.Select(s => s.LocationNo).Contains(x));
|
|
|
if (devCode == 0)
|
|
|
{
|
|
@@ -334,4 +334,4 @@ namespace WCS.WorkEngineering.Systems.分拣支线
|
|
|
#endregion 初始化一个信息的缓存信息
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|