|  |  | 
 |  |  |             switch (rowLastnoType.getType()) { | 
 |  |  |                 case 1: | 
 |  |  |                     List<LocMast> locMasts; | 
 |  |  |                     Short locType1 = locTypeDto.getLocType1(); | 
 |  |  |                     for (int i = locTypeDto.getLocType1(); i < 4; i++) { | 
 |  |  |                         locMasts = locMastService.selectList(new EntityWrapper<LocMast>() | 
 |  |  |                                 .eq("loc_sts", "O").eq("loc_type1", i).eq("whs_type", rowLastnoType.getType().longValue())); | 
 |  |  |                         if (i == 3 && locMasts != null && locMasts.size() < 8) { | 
 |  |  |                             throw new CoolException("没有空库位"); | 
 |  |  |                         } | 
 |  |  |                         locType1= (short) i; | 
 |  |  |                     } | 
 |  |  |                     locTypeDto.setLocType1(locType1); | 
 |  |  |                     return getLocNoRun(whsType, staDescId, sourceStaNo, matnr, batch, grade, 0, locTypeDto, 0); | 
 |  |  |                 case 2: | 
 |  |  |                     log.error("站点={} 未查询到对应的规则", sourceStaNo); |