自动化立体仓库 - WMS系统
#1
dubin
7 天以前 9268cd77b4e864b901a8b0bf965f441f2e8c4fbd
src/main/java/com/zy/common/service/CommonService.java
@@ -102,13 +102,13 @@
        StartupDto startupDto = null;
        StringBuilder builder = new StringBuilder();
        try {
            startupDto = searchLocNoByCrnNo(staDescId, sourceStaNo, findLocNoAttributeVo, locTypeDto);
            startupDto = searchLocNoByCrnNo(staDescId, sourceStaNo, findLocNoAttributeVo, locTypeDto,barcode);
        } catch (Exception e) {
            builder.append(e.getMessage()).append(",");
        }
        if(startupDto == null) {
            builder.append("找不到空库位");
            builder.append("找不到空库位--->" + barcode);
            throw new CoolException(builder.toString());
        }
@@ -125,14 +125,17 @@
     * @return locNo 检索到的库位号
     */
    @Transactional
    public StartupDto searchLocNoByCrnNo(Integer staDescId, Integer sourceStaNo, FindLocNoAttributeVo findLocNoAttributeVo, LocTypeDto locTypeDto) {
    public StartupDto searchLocNoByCrnNo(Integer staDescId, Integer sourceStaNo, FindLocNoAttributeVo findLocNoAttributeVo, LocTypeDto locTypeDto,String barcode) {
        LocMast locMast = null;
        if (staDescId == 10) {
            //搜索空托盘
            locMast = searchEmptyPallet(locTypeDto);
//            locMast = searchEmptyPallet(locTypeDto);
            locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_sts","O").eq("barcode",barcode));
        }else {
            //满托盘
            locMast = searchMaxPallet(findLocNoAttributeVo, locTypeDto);
//            locMast = searchMaxPallet(findLocNoAttributeVo, locTypeDto);
            locMast = locMastService.selectOne(new EntityWrapper<LocMast>().in("loc_sts","O","P").eq("barcode",barcode));
        }
        if(locMast == null) {