自动化立体仓库 - WMS系统
zhang
2025-05-19 37c04062d11f97f26ec5a48f5f6adb2f96eca7c5
src/main/java/com/zy/asrs/controller/AgvBasDevpController.java
@@ -237,7 +237,11 @@
        String barcode = map.get("barcode").toString();
        AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("barcode", barcode).eq("wrk_sts", 205L));
        if (agvWrkMast == null) {
            R.error("工作档不存在");
            agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("barcode", barcode));
            if (agvWrkMast != null && agvWrkMast.getWrkSts() != 205) {
                return R.error("工作档状态不对,还在搬运中");
            }
            return R.error("工作档不存在");
        }
        if (agvWrkMast.getIoType() != 101 && agvWrkMast.getIoType() != 110) {
            throw new CoolException("工作号为" + agvWrkMast.getWrkNo() + "类型不为101.出库,无法执行货架离场任务,请重新选择站点。");
@@ -288,7 +292,7 @@
        List<AgvWrkMast> agvWrkMastList = new ArrayList<>();
        String devNo = map.get("devNo").toString();
        String barcode = map.get("barcode").toString();
        AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("barcode", barcode).eq("wrk_sts", 205L));
        AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("barcode", barcode).eq("loc_no", devNo).eq("wrk_sts", 205L));
        if (agvWrkMast != null) {
            if (agvWrkMast.getIoType() == 101) {
                throw new CoolException("工作号为" + agvWrkMast.getWrkNo() + "类型为101.出库,无法执行拣料入库任务,请重新选择站点。");