|  |  | 
 |  |  |     /** | 
 |  |  |      * 检索库位号 | 
 |  |  |      * @param whsType 类型 1:双深式货架 | 
 |  |  |      * @param staDescId 路径ID | 
 |  |  |      * @param sourceStaNo 源站 | 
 |  |  |      * @return locNo 检索到的库位号 | 
 |  |  |      */ | 
 |  |  |     public StartupDto getLocNo(Integer whsType, Integer sourceStaNo) { | 
 |  |  |     public StartupDto getLocNo(Integer whsType, Integer staDescId, Integer sourceStaNo) { | 
 |  |  |         StartupDto startupDto = new StartupDto(); | 
 |  |  |         RowLastno rowLastno = rowLastnoService.selectById(whsType); | 
 |  |  |         if (Cools.isEmpty(rowLastno)) { | 
 |  |  | 
 |  |  |                     break; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             BasCrnp crnp = basCrnpService.selectById(crnNo); | 
 |  |  |             if (Cools.isEmpty(crnp)) { | 
 |  |  |                 throw new CoolException("堆垛机编号错误"); | 
 |  |  |             } | 
 |  |  |             if (!"Y".equals(crnp.getInEnable())) { | 
 |  |  |                 throw new CoolException("当前堆垛机无法入库"); | 
 |  |  |             } | 
 |  |  |             basCrnpService.checkSiteStatus(crnNo); | 
 |  |  |             // 获取目标站 | 
 |  |  |             Wrapper<StaDesc> wrapper = new EntityWrapper<StaDesc>() | 
 |  |  |                     .eq("type_no", 1) | 
 |  |  |                     .eq("type_no", staDescId) | 
 |  |  |                     .eq("stn_no", sourceStaNo) | 
 |  |  |                     .eq("crn_no", crnNo); | 
 |  |  |             StaDesc staDesc = staDescService.selectOne(wrapper); |