自动化立体仓库 - WMS系统
#
zyx
2024-06-03 ea594a1dbe6191a0cf555e3902eaa5b76888241d
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -546,10 +546,10 @@
        Pla pla = plaService.selectByBatchAndPackageNo(batch, packageNo,brand);
        if ((Cools.isEmpty(pla))){
            return R.error("该包物料未录入,无法查询到相关信息");
            return R.error("该包物料未录入,无法查询到相关信息").add(pla);
        }
        if(!(Cools.eq(pla.getStatus(), GlobleParameter.PLA_STATUS_0) || Cools.eq(pla.getStatus(), GlobleParameter.PLA_STATUS_00)) && type != 2){
            return R.error("该包物料不为待入库状态,无法进行入库操作");
            return R.error("该包物料的状态为" + pla.getStatus() +",无法进行入库操作").add(pla);
        }
        return R.ok(pla);
    }
@@ -582,7 +582,7 @@
                throw new CoolException("该包物料未录入,无法查询到相关信息");
            }
            if(!Cools.eq(pla.getStatus(),GlobleParameter.PLA_STATUS_1) && !Cools.eq(pla.getStatus(),GlobleParameter.PLA_STATUS_3)){
                throw new CoolException("该包物料状态不为入库状态,无法转移");
                throw new CoolException("该包物料的状态为" + pla.getStatus() +",无法进行入库操作");
            }
            String sourceLocNo = pla.getLocNo();