EnumTaskChainType新增,电梯,输送线
This commit is contained in:
@@ -73,5 +73,9 @@ public partial class WmsAreaH : BaseEntity<string>
|
||||
/// 时间戳(用于并发控制)
|
||||
/// </summary>
|
||||
public DateTime? timestamp { get; set; }
|
||||
/// <summary>
|
||||
/// 第三方设备类型
|
||||
/// </summary>
|
||||
public string third_eqp_type { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -13,4 +13,9 @@ public partial class WmsPretaskH : ITaskManagerDel
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int move_num { get; set; }
|
||||
/// <summary>
|
||||
/// 第三方设备类型
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string third_eqp_type { get; set; }
|
||||
}
|
||||
|
||||
@@ -8,5 +8,7 @@
|
||||
CTU = 1,
|
||||
KIVA = 2,
|
||||
AGV = 3,
|
||||
电梯 = 4,
|
||||
输送线 = 5,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -256,7 +256,8 @@ namespace Tnb.WarehouseMgr
|
||||
.OrderBy(a => new { priority = SqlFunc.Desc(a.priority), a.bill_code })
|
||||
.Select((a, b, c) => new WmsPretaskH
|
||||
{
|
||||
move_num = c.move_num
|
||||
move_num = c.move_num,
|
||||
third_eqp_type = c.third_eqp_type,
|
||||
}, true)
|
||||
.ToListAsync();
|
||||
List<WmsPretaskH> agvElevatorTasks = preTasks
|
||||
@@ -297,7 +298,7 @@ namespace Tnb.WarehouseMgr
|
||||
{
|
||||
List<WmsPretaskH> areaPreTasks = itGroup.ToList();
|
||||
|
||||
if (moveNum == 1 || (moveNum > areaPreTasks.Count && areaPreTasks.Count == 1))
|
||||
if (moveNum == 1 || (moveNum > areaPreTasks.Count && areaPreTasks.Count == 1) || areaPreTasks.Any(x => x.third_eqp_type.ToEnum<EnumTaskChainType>() != EnumTaskChainType.CTU))
|
||||
{
|
||||
items.ForEach(x =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user