自动化立体仓库 - WMS系统
pang.jiabao
2025-04-28 89142d4419ba96a94384b9aca370e70318d4194a
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -1285,6 +1285,7 @@
        }else {
            pla.setStatus(GlobleParameter.PLA_STATUS_3);
        }
        log.warn("pla出库v1,更新为待出库或则全部出库,pla:{},anfme:{}",pla,anfme);
        plaService.updateById(pla);
        SaasUtils.insertLog(1,locNo,pla.getBrand(),anfme,null,null,
                pla.getBatch(),pla.getPackageNo(),pla.getOwner(),pla.getWorkshop(),null);
@@ -1292,7 +1293,9 @@
        //更新订单明细
        Order order = orderService.selectByNo(orderNo);
        OrderDetl orderDetl = orderDetlService.selectById(plaQty.getOrderDetlId());
        if (orderDetl == null){
            throw new CoolException("订单明细不存在或者不匹配");
        }
        orderDetl.setQty(orderDetl.getQty() + anfme);
        orderDetlService.updateById(orderDetl);
@@ -1313,7 +1316,7 @@
            throw new CoolException("当前物料剩余库存不足");
        }
        log.warn("无订单拣货出库,更新为待出库或则全部出库,pla:{},anfme:{}",pla,anfme);
        pla.setWeightAnfme(pla.getWeightAnfme() - anfme);
        if(pla.getWeightAnfme() > 0){
            pla.setStatus(GlobleParameter.PLA_STATUS_3);
@@ -1342,7 +1345,7 @@
        plaService.updateById(plaNew);
        plaOld.setStatus(GlobleParameter.PLA_STATUS_1);
        plaOld.setQtyAnfme(plaOld.getQtyAnfme() - manPakOut.getCount());
        plaOld.setQtyAnfme(0.0);
        plaService.updateById(plaOld);