|  |  | 
 |  |  |                     boolean success = true; | 
 |  |  |                     List<String> insideLoc = Utils.getGroupInsideLoc(one.getLocNo()); | 
 |  |  |                     for (String inside : insideLoc) { | 
 |  |  |                         if (!locMastService.selectById(inside).getLocSts().equals("O")) { | 
 |  |  |                         if (locMastService.selectById(inside).getLocSts().equals("P") || locMastService.selectById(inside).getLocSts().equals("R")) { | 
 |  |  |                             success = false; break; | 
 |  |  |                         } | 
 |  |  |                     } | 
 |  |  |  | 
 |  |  |                     Integer steNo = this.hasCar(one.getLocNo()); | 
 |  |  |                     if (steNo != null) { | 
 |  |  |                         continue; | 
 |  |  |                     } | 
 |  |  |  | 
 |  |  |                     if (success) { | 
 |  |  |                         loc = one; | 
 |  |  |                         break; | 
 
 |  |  | 
 |  |  |                     // 写数据 ID+目标站 | 
 |  |  |                     case 2: | 
 |  |  |                         write((StaProtocol)task.getData()); | 
 |  |  |                         Thread.sleep(300); | 
 |  |  |                         read(); | 
 |  |  |                         break; | 
 |  |  |                     default: | 
 |  |  |                         break; |