|  |  | 
 |  |  |         //获取所有移库任务 | 
 |  |  |         List<WrkMast> wrkMasts=wrkMastMapper.selectLocMoves(slave.getId()); | 
 |  |  |         // 获取工作档信息 | 
 |  |  |         WrkMast wrkMast = wrkMastMapper.selectLocMove(slave.getId()); | 
 |  |  |         WrkMast wrkMast =null; | 
 |  |  |         if(Cools.isEmpty(wrkMasts)){ | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  |         if (null == wrkMast) { | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  |         //先查测试库位转OK或者NG库位按了按钮的 | 
 |  |  |         for (WrkMast wm: wrkMasts) { | 
 |  |  |             LocMast sourceSta1 = locMastService.selectById(wm.getSourceLocNo()); | 
 |  |  |             LocMast sourceSta1 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no",wm.getSourceLocNo())); | 
 |  |  |             if (!Cools.isEmpty(sourceSta1.getCtnKind())){ | 
 |  |  |                 if(sourceSta1.getCtnKind()==1){ | 
 |  |  |                     wrkMast=wm; | 
 |  |  | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         //后查等待库位转测试库位 | 
 |  |  |         if(Cools.isEmpty(wrkMast)){ | 
 |  |  |             for (WrkMast wm: wrkMasts) { | 
 |  |  |                 LocMast sourceSta1 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no",wm.getSourceLocNo())); | 
 |  |  |                 if (sourceSta1.getLocType1()==3){ | 
 |  |  |                         wrkMast=wm; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         //都没有满足条件的,跳过移库 | 
 |  |  |         if(Cools.isEmpty(wrkMast)){ | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         // 获取源库位信息 | 
 |  |  |         LocMast sourceSta = locMastService.selectById(wrkMast.getSourceLocNo()); | 
 |  |  |         if (null == sourceSta) { |