自动化立体仓库 - WMS系统
#
lty
3 天以前 e8e108b1f18fb0b73f9752ac6cedaf47f1ce26f1
src/main/java/com/zy/common/web/WcsController.java
@@ -85,8 +85,8 @@
        if (Cools.isEmpty(param.getCargoHeight())) {
            return Re.error("高低库类型不能为空");
        }
        if (Cools.isEmpty(param.getFromPort())) {
            return Re.error("源站编号不能为空");
        if (Cools.isEmpty(param.getFromPort()) && !param.getFromPort().equals("1001")) {
            return Re.error("入库站点编号错误:"+param.getFromPort());
        }
        if(Cools.isEmpty(param.getWarehouse())){
            return Re.error("仓库编号不能为空");
@@ -98,7 +98,7 @@
        if (param.getFromPort().equals("1001")) {
            //有空板出库时禁止入库
            int wrkCount = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("io_type", 110).eq("sta_no", 100).notIn("wrk_sts", 7));
            int wrkCount = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("io_type", 110).eq("sta_no", 1001).notIn("wrk_sts", 7));
            if(wrkCount > 0){
                return Re.error("有空板出库到1001站时时禁止入库");
            }
@@ -121,7 +121,7 @@
            }
        } else {
            //有满板出库时禁止空板入库
            int wrkCount = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("sta_no", 100).andNew().eq("io_type", 101).or().eq("io_type", 110));
            int wrkCount = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("sta_no", 1001).andNew().eq("io_type", 101).or().eq("io_type", 110));
            if (wrkCount > 0) {
                return Re.error("有满板出库时禁止空板入库");
            }
@@ -140,6 +140,9 @@
        // 源站点状态检测
        BasDevp sourceStaNo = basDevpService.checkSiteStatus(Integer.valueOf(param.getFromPort()), true);
        if(sourceStaNo == null){
            return Re.error("站点不存在");
        }
        sourceStaNo.setLocType1(param.getCargoHeight().shortValue()); // 高低库位
//        if (param.getBarCode().startsWith("7")){
//            sourceStaNo.setLocType2((short) 1); // 宽窄库位 1.窄库位1200*1000*990
@@ -524,7 +527,7 @@
            } else if ((wrkMast.getIoType() == 101 || wrkMast.getIoType() == 110) && statusParam.getTaskStatus() != 8) {
                wrkMast.setWrkSts(7L);//7.出库完成
            } else if (wrkMast.getWrkSts() == 7 && statusParam.getTaskStatus() == 8){
                wrkMast.setWrkSts(15L);//15.出库更新完成,任务结束
                wrkMast.setWrkSts(14L);//15.出库更新完成,任务结束
            }
        }
        wrkMastService.updateById(wrkMast);