|
@@ -192,7 +192,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
}
|
|
|
var quantity = obj.Entity.GetFlag<int>(warehouseCode); //获取当前侧执行的次数
|
|
|
var maxQuantity = 3; //南北库的周期检查比为3:3
|
|
|
- if (quantity >= quantity) //如果当前侧检查周期大于等于最大检查周期,切换到另一侧
|
|
|
+ if (quantity >= maxQuantity) //如果当前侧检查周期大于等于最大检查周期,切换到另一侧
|
|
|
{
|
|
|
obj.Entity.SetFlag(warehouseCode, 0);
|
|
|
warehouseCode = warehouseCode == "N" ? "S" : "N"; //如果是北侧切换到南侧 如果是南侧切换到北侧
|