|  |  |  | 
|---|
|  |  |  | runRgv: | 
|---|
|  |  |  | for (List<WrkMast> wrkMastList : wrkMastLists){ | 
|---|
|  |  |  | for (WrkMast wrkMast: wrkMastList){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | log.error("存在任务,RGV号={},任务数据={}", rgvId, JSON.toJSON(wrkMast)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | rgvId++; | 
|---|
|  |  |  | BasCircularShuttle basCircularShuttle = basCircularShuttleService.selectOne(new EntityWrapper<BasCircularShuttle>().eq("rgv_id", 1L)); | 
|---|
|  |  |  | BasCircularShuttle basCircularShuttle = basCircularShuttleService.selectOne(new EntityWrapper<BasCircularShuttle>().eq("rgv_id", rgvId)); | 
|---|
|  |  |  | RgvThread rgvThread = (RgvThread) SlaveConnection.get(SlaveType.Rgv, basCircularShuttle.getRgvNo()); | 
|---|
|  |  |  | RgvProtocol rgvProtocol = rgvThread.getRgvProtocol(); | 
|---|
|  |  |  | if (rgvProtocol == null){ | 
|---|
|  |  |  | continue ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<WrkMast> wrkMasts = wrkMastService.selectList(new EntityWrapper<WrkMast>().eq("rgv_no", rgvProtocol.getRgvNo()).eq("wrk_sts", 2L)); | 
|---|
|  |  |  | if (!wrkMasts.isEmpty()){ | 
|---|
|  |  |  | continue ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (rgvProtocol != null | 
|---|
|  |  |  | && rgvProtocol.modeType == RgvModeType.AUTO | 
|---|
|  |  |  | && (rgvProtocol.getStatusType() == RgvStatusType.IDLE || rgvProtocol.getStatusType() == RgvStatusType.ROAM) | 
|---|
|  |  |  | 
|---|
|  |  |  | break runRgv; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|