自动化立体仓库 - WMS系统
zyx
2024-02-02 00b8e7a256d8508043784f061a4afe5b1107d9aa
src/main/java/com/zy/asrs/service/impl/PlaServiceImpl.java
@@ -118,6 +118,7 @@
            //直接更新pla的库存
            Pla pla = this.selectByBatchAndPackageNo(plaQty.getBatch(), plaQty.getPackageNo());
            //pla.setStatus(GlobleParameter.PLA_STATUS_0);
            pla.setModifyTime(new Date());
            pla.setWeightAnfme(pla.getWeightAnfme() + plaQty.getOrderWeight());
            pla.setStatus(GlobleParameter.PLA_STATUS_1);
@@ -136,8 +137,14 @@
               throw new CoolException("选中的数据不是暂入库状态,请核对状态");
            }
            pla = this.selectById(pla.getId());
            pla.setModifyTime(new Date());
            pla.setStatus(GlobleParameter.PLA_STATUS_0);
            this.updateById(pla);
        });
    }
    @Override
    public List<Pla> selectToHistory() {
        return this.selectList(new EntityWrapper<Pla>().eq("status",GlobleParameter.PLA_STATUS_4));
    }
}