#
luxiaotao1123
2025-01-08 aa6f20d98b5d8e18ae56f9562a78d403a5417b48
zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/PatrolService.java
@@ -66,17 +66,18 @@
    }
    private void patrolOfMove(String agvNo) {
        Agv agv = agvService.selectByUuid(agvNo);
        AgvDetail agvDetail = agvDetailService.selectMajorByAgvId(agv.getId());
        Long agvId = agvService.getAgvId(agvNo);
        AgvDetail agvDetail = agvDetailService.selectMajorByAgvId(agvId);
        if (taskService.count(new LambdaQueryWrapper<Task>()
                .eq(Task::getAgvId, agv.getId())
                .eq(Task::getAgvId, agvId)
                .in(Task::getTaskSts, TaskStsType.ASSIGN.val(), TaskStsType.PROGRESS.val())
                ) > 0) {
            return;
        }
        if (!agvService.judgeEnable(agv.getId())) {
        if (!agvService.judgeEnable(agvId)) {
            return;
        }
        Agv agv = agvService.getById(agvId);
        Code destinationCode = this.getDestinationCode(agv, agvDetail);
        if (null == destinationCode) {
            return;