|
@@ -612,6 +612,8 @@ namespace WCS.Service.Extensions
|
|
|
//获取目标站台的设备组信息
|
|
|
var station = Device.Find($"G{target}").Create<StationDeviceGroup>();
|
|
|
|
|
|
+ if (station.Distance(rgv) < 5000) return false;
|
|
|
+
|
|
|
//当前RGV与目标站台的距离小于传入RGV到达目标站台的距离
|
|
|
return (this.Distance(station) < rgv.Distance(station)) || station.CurrentRGV()?.Entity.CODE == this.Entity.CODE;
|
|
|
}
|