林豪 左 3 ani în urmă
părinte
comite
ed74a769b4
1 a modificat fișierele cu 11 adăugiri și 1 ștergeri
  1. 11 1
      Projects/永冠OPP/WCS.Service/Works/RGV/RGVWorks.cs

+ 11 - 1
Projects/永冠OPP/WCS.Service/Works/RGV/RGVWorks.cs

@@ -129,7 +129,7 @@ namespace WCS.Service.Works.RGV
                         // 筛选出有任务号和起始及目标地址的设备
                         var devs = pickStation.RGVGetTaskedDevice();
                         //是否需要取货
-                        if (devs != null && devs.Count() > 0)
+                        if (devs != null && devs.Count > 0)
                         {
                             //开始下达取货任务
                             DB.Do(db =>
@@ -167,6 +167,16 @@ namespace WCS.Service.Works.RGV
                             });
                             return;
                         }
+                        else if (pickStation.Entity.CODE == "G9")
+                        {
+                            //九站台的小车需要额外检测一下11站台是否需要取货
+                            var station11 = Device.Find("G11").Create<StationDeviceGroup>();
+                            var station11Dev = station11.RGVGetTaskedDevice();
+                            if (station11Dev != null && station11Dev.Count > 0)
+                            {
+                                obj.Move(station11);
+                            }
+                        }
 
                         //找到自己的后一个小车
                         var afterRgv = obj.After();