zhou zhou
2 天以前 1dcfa3702505f0c431757312b5304531029f90f6
rsf-server/src/main/java/com/vincent/rsf/server/manager/utils/WarehouseLocationRetrievalUtil.java
@@ -139,9 +139,9 @@
                    .eq(BasStation::getStationName, site).last("limit 1"));
            if (!Cools.isEmpty(basStation)){
                BasStationTypeService basStationTypeService = SpringUtils.getBean(BasStationTypeService.class);
                BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getContainerType()).last("limit 1"));
                BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getStationTypeCode()).last("limit 1"));
                if (!Cools.isEmpty(one)) {
                    if (one.getTaskType().contains(type)){
                    if (one.getTaskType().contains("all") || one.getTaskType().contains(type)){
                        outboundSite.add(site);
                    }
                }
@@ -407,16 +407,19 @@
                    }
                }
                BasStationTypeService basStationTypeService = SpringUtils.getBean(BasStationTypeService.class);
                BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getContainerType()).last("limit 1"));
                if (!Cools.isEmpty(one)) {
                    if (one.getTaskType().contains(type)){
                BasStationType stationType = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getStationTypeCode()).last("limit 1"));
                if (!Cools.isEmpty(stationType)) {
                    if (stationType.getTaskType().contains("all")){
                        return true;
                    }
                    if (!Cools.isEmpty(stationType.getTaskType()) && stationType.getTaskType().contains(type)) {
                        return true;
                    }
                    log.error("目标站点:" + targetCode+" 不支持作业此任务类型:"+type);
                }
                log.error("目标站点:" + targetCode+" 不支持作业此任务类型:"+type);
                log.error("目标站点:" + targetCode+" 未匹配到站点类型");
            }
            log.error("queryPathIsItAvailableInArea: error");
            log.error("queryPathIsItAvailableOutArea: error");
        }
        return false;
    }
@@ -446,14 +449,17 @@
                    }
                }
                BasStationTypeService basStationTypeService = SpringUtils.getBean(BasStationTypeService.class);
                BasStationType one = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getContainerType()).last("limit 1"));
                if (!Cools.isEmpty(one)) {
                    if (one.getTaskType().contains(type)){
                BasStationType stationType = basStationTypeService.getOne(new LambdaQueryWrapper<BasStationType>().eq(BasStationType::getStationTypeCode, basStation.getStationTypeCode()).last("limit 1"));
                if (!Cools.isEmpty(stationType)) {
                    if (stationType.getTaskType().contains("all")){
                        return true;
                    }
                    if (!Cools.isEmpty(stationType.getTaskType()) && stationType.getTaskType().contains(type)) {
                        return true;
                    }
                    log.error("当前站点:" + sourceCode+" 不支持作业此任务类型:"+type);
                }
                log.error("当前站点:" + sourceCode+" 不支持作业此任务类型:"+type);
                log.error("当前站点:" + sourceCode+" 未匹配到站点类型");
            }
            log.error("queryPathIsItAvailableInArea: error");
        }