|  |  | 
 |  |  |      */ | 
 |  |  | //    @Scheduled(cron = "0/2 * * * * ? ") | 
 |  |  |     private void autoMove(){ | 
 |  |  |         List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>().eq("io_type", 121).eq("wrk_sts",11)); | 
 |  |  |         List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>().eq("io_type", 121).eq("wrk_sts",11).orderBy("io_pri",false)); | 
 |  |  |         for (AgvWrkMast agvWrkMast:agvWrkMastList){ | 
 |  |  |             try{ | 
 |  |  |                 Date now = new Date(); | 
 |  |  | 
 |  |  |      */ | 
 |  |  | //    @Scheduled(cron = "0/2 * * * * ? ") | 
 |  |  |     private void autoMoveEnd(){ | 
 |  |  |         List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>().eq("io_type", 121).eq("wrk_sts",12)); | 
 |  |  |         List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>().eq("io_type", 121).eq("wrk_sts",12).orderBy("io_pri",false)); | 
 |  |  |         for (AgvWrkMast agvWrkMast:agvWrkMastList){ | 
 |  |  |             try{ | 
 |  |  |                 WrkMastExecute wrkMastExecute = wrkMastExecuteService.selectOne(new EntityWrapper<WrkMastExecute>().eq("io_type", 121).eq("wrk_no", agvWrkMast.getWrkNo().longValue())); | 
 
 |  |  | 
 |  |  |                         .isNotNull("loc_type") | 
 |  |  |                         .ne("loc_type", "") | 
 |  |  |                         .eq("floor", 1) | 
 |  |  |                         .eq("loc_sts","F")); | 
 |  |  |                         .eq("loc_sts","F") | 
 |  |  |                         .orderBy("io_pri",false)); | 
 |  |  |         if (agvLocMasts.isEmpty()) { | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  | 
 |  |  |                 .andNew().eq("io_type",108) | 
 |  |  |                         .andNew() | 
 |  |  |                         .eq("crn_no",2).or().eq("crn_no",3) | 
 |  |  |                         .orderBy("appe_time",true) | 
 |  |  |                         .orderBy("io_pri",false).orderBy("appe_time",true) | 
 |  |  |                 ); | 
 |  |  |         if (agvWrkMastList.isEmpty()) { | 
 |  |  |             return; | 
 |  |  | 
 |  |  |         List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>() | 
 |  |  |                 .eq("wrk_sts", 214) | 
 |  |  |                 .eq("loc_no","") | 
 |  |  |                 .eq("io_type",113)); | 
 |  |  |                 .eq("io_type",113) | 
 |  |  |                 .orderBy("io_pri",false)); | 
 |  |  |         if (agvWrkMastList.isEmpty()) { | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  | 
 |  |  |                     new EntityWrapper<AgvLocMast>() | 
 |  |  |                             .ne("floor", 1) | 
 |  |  |                             .eq("loc_sts","D") | 
 |  |  |                             .eq("loc_type1",3)); | 
 |  |  |                             .eq("loc_type1",3) | 
 |  |  |                             .orderBy("io_pri",false)); | 
 |  |  |             if (agvLocMasts.isEmpty()) { | 
 |  |  |                 return; | 
 |  |  |             } | 
 |  |  | 
 |  |  |         List<AgvBasDevp> agvBasDevps = agvBasDevpService.selectList(new EntityWrapper<AgvBasDevp>() | 
 |  |  |                 .ne("floor", 1) | 
 |  |  |                 .eq("loc_sts", "F") | 
 |  |  |                 .like("dev_no", "DB")); | 
 |  |  |                 .like("dev_no", "DB") | 
 |  |  |                 .orderBy("io_pri",false)); | 
 |  |  |         if (agvBasDevps.isEmpty()) { | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  | 
 |  |  |         List<AgvBasDevp> agvBasDevps = agvBasDevpService.selectList(new EntityWrapper<AgvBasDevp>() | 
 |  |  |                 .eq("floor", 1) | 
 |  |  |                 .eq("loc_sts", "F") | 
 |  |  |                 .like("dev_no", "DB")); | 
 |  |  |                 .like("dev_no", "DB") | 
 |  |  |                 .orderBy("io_pri",false)); | 
 |  |  |         if (agvBasDevps.isEmpty()) { | 
 |  |  |             return; | 
 |  |  |         } |