自动化立体仓库 - WMS系统
#
lty
2025-07-18 e6a09e06c1d9f6d8bc16e0af0d204deee46ba3df
src/main/java/com/zy/common/service/CommonService.java
@@ -137,8 +137,11 @@
     */
    @Transactional
    public StartupDto getLocNoRun(Integer whsType, Integer staDescId, Integer sourceStaNo, String matnr, String batch, String grade, Integer moveCrnNo, LocTypeDto locTypeDto, int times) {
        int tagId = 0;
        if (Cools.isEmpty(matnr)) {  //物料号
            matnr = "";
        }else{
            tagId = matService.getTagIdByMatnr(matnr);
        }
        if (Cools.isEmpty(batch)) {  //箱号
            batch = "";
@@ -159,8 +162,6 @@
        int sRow = rowLastno.getsRow();
        int eRow = rowLastno.geteRow();
        int crnNumber = rowLastno.getCrnQty();
        int tagId = matService.getTagIdByMatnr(matnr);
        if (Cools.isEmpty(rowLastno)) {
            throw new CoolException("数据异常,请联系管理员");
        }
@@ -418,7 +419,7 @@
//                return getLocNo(1, staDescId, sourceStaNo, matnr,batch,grade, locTypeDto, 0);
//            }
            log.error("系统没有空库位!!! 尺寸规格: {}, 轮询次数:{}", JSON.toJSONString(locTypeDto), times);
            throw new CoolException("没有空库位");
            throw new CoolException("没有空库位或堆垛机异常");
        }
        String locNo = locMast.getLocNo();