自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-23 035bd551cd55080e71687e79c8f5ea59ff542c7a
src/main/java/com/zy/asrs/service/impl/BasDevpServiceImpl.java
@@ -19,12 +19,22 @@
    @Override
    public List<Integer> getAvailableInSite() {
        return this.baseMapper.getAvailableInSite();
        return this.baseMapper.getAvailableInSite(1);
    }
    @Override
    public List<Integer> getAvailableEmptyInSite() {
        return this.baseMapper.getAvailableInSite(10);
    }
    @Override
    public List<Integer> getAvailableOutSite() {
        return this.baseMapper.getAvailableOutSite();
        return this.baseMapper.getAvailableOutSite(101);
    }
    @Override
    public List<Integer> getAvailableEmptyOutSite() {
        return this.baseMapper.getAvailableOutSite(110);
    }
    @Override
@@ -34,13 +44,13 @@
            throw new CoolException("站点不存在");
        }
        if(station.getAutoing()==null || !station.getAutoing().equals("Y")) {
            throw new CoolException("入库站点不是自动状态");
            throw new CoolException("站点不是自动状态");
        }
        if(station.getLoading()==null || !station.getLoading().equals("Y")) {
            throw new CoolException("入库站点无物");
            throw new CoolException("站点无物");
        }
        if(station.getWrkNo()!=null && station.getWrkNo()>0) {
            throw new CoolException("入库站点已有工作号");
            throw new CoolException("站点已有工作号");
        }
        if(wrkMastService.getWorkingMast(devpNo)>0){
            throw new CoolException("同一站点不能同时生成两笔入库工作档");