#
Junjie
2024-06-22 1fdb2ee8b5482b53825815fb4f73a5bb0fd33b22
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java
@@ -42,8 +42,19 @@
    @Override
    public Boolean hasRunningMotion(String uuid, Long hostId) {
        return null != this.selectOfTop1(uuid, MotionStsType.EXECUTING.val(), hostId)
                || null != this.selectOfTop1(uuid, MotionStsType.ERROR.val(), hostId);
        Motion executeMotion = this.selectOfTop1(uuid, MotionStsType.EXECUTING.val(), hostId);
        Motion errorMotion = this.selectOfTop1(uuid, MotionStsType.ERROR.val(), hostId);
        if(errorMotion != null) {
            return true;
        }
        if(executeMotion != null) {
            if (executeMotion.getSync() == 0) {
                return false;//当前动作为异步操作
            }
            return true;
        }
        return true;
    }
    @Override