|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void initLocFloor3(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | AgvLocMast select30EmptyZpallet(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<AgvLocMast> queryFreeLocMast2(Short locType1, Integer rowBeg, Integer rowEnd, Integer bayBeg, Integer bayEnd, Integer levBeg, Integer levEnd); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | void updateLocType2ByRBL(Integer locType2, AgvLocRule locRule); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public AgvLocMast select30EmptyZpallet() { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return this.selectOne(new EntityWrapper<AgvLocMast>().eq("loc_sts","D").eq("loc_type2",30).eq("floor",1).eq("lev1",2)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public AgvLocMast selectEmptyZpalletByLocType1(int type) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return this.selectOne(new EntityWrapper<AgvLocMast>().eq("loc_sts","D").eq("loc_type1",type)); | 
|---|
|  |  |  | 
|---|
|  |  |  | if (!Cools.isEmpty(agvWrkMast)) { | 
|---|
|  |  |  | throw new CoolException("有货架在往站点搬运" + agvBasDevp.getDevNo() + ",无法进行空板出库"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | AgvLocMast agvLocMast = null; | 
|---|
|  |  |  | if (station.startsWith("XI") && station.endsWith("F4") && containerType == 30) { | 
|---|
|  |  |  | agvLocMast = agvLocMastService.select30EmptyZpallet(); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | //寻找相应类型的空货架 | 
|---|
|  |  |  | Integer floor = agvBasDevp.getFloor(); | 
|---|
|  |  |  | if (floor == 4) { | 
|---|
|  |  |  | floor = 1; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | agvLocMast = agvLocMastService.selectEmptyZpallet(containerType, floor); | 
|---|
|  |  |  | if (containerType == 0) { | 
|---|
|  |  |  | //空板自动出库,根据站点类型选择 | 
|---|
|  |  |  | agvLocMastService.selectEmptyZpalletByLocType1(agvBasDevp.getLocType1()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //寻找相应类型的空货架 | 
|---|
|  |  |  | Integer floor = agvBasDevp.getFloor(); | 
|---|
|  |  |  | if (floor == 4) { | 
|---|
|  |  |  | floor = 1; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | AgvLocMast agvLocMast = agvLocMastService.selectEmptyZpallet(containerType, floor); | 
|---|
|  |  |  | if (containerType == 0) { | 
|---|
|  |  |  | //空板自动出库,根据站点类型选择 | 
|---|
|  |  |  | agvLocMastService.selectEmptyZpalletByLocType1(agvBasDevp.getLocType1()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (Cools.isEmpty(agvLocMast)) { | 
|---|
|  |  |  | throw new CoolException("暂无当前出库站点类型的空货架!"); | 
|---|