Junjie
2024-08-30 77ab0bff6c81109f2b8f8353d08e625abbcc4b8b
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java
@@ -50,11 +50,21 @@
        if(executeMotion != null) {
            if (executeMotion.getSync() == 0) {
                //检测是否有同步动作
                List<Motion> syncMotion = this.list(new LambdaQueryWrapper<Motion>()
                        .eq(Motion::getUuid, uuid)
                        .eq(Motion::getMotionSts, MotionStsType.EXECUTING.val())
                        .eq(Motion::getHostId, hostId)
                        .eq(Motion::getSync, 1));
                if (!syncMotion.isEmpty()) {
                    return true;//存在同步动作
                }
                return false;//当前动作为异步操作
            }
            return true;
        }
        return true;
        return false;
    }
    @Override