zjj
2025-02-17 200a5b4d08215c44fd3fb2d010191e7dedb5e4c5
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/BasConveyorSta.java
@@ -359,4 +359,15 @@
        return siteStatus.toLowerCase().replaceAll("_", "-");
    }
    public Long getConveyorDeviceId() {
        if (null == this.conveyorId){ return null; }
        BasConveyorService basConveyorService = SpringUtils.getBean(BasConveyorService.class);
        BasConveyor basConveyor = basConveyorService.getById(this.conveyorId);
        if (basConveyor == null) {
            return null;
        }
        return basConveyor.getDeviceId();
    }
}