From b41175b526252a8796de62e0f3ba7ec6c531de52 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 12 六月 2025 14:54:38 +0800 Subject: [PATCH] 寻找待机位和充电桩的时候,找空闲的 --- zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/impl/AgvDetailServiceImpl.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/impl/AgvDetailServiceImpl.java b/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/impl/AgvDetailServiceImpl.java index dce8c0c..e432eec 100644 --- a/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/impl/AgvDetailServiceImpl.java +++ b/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/impl/AgvDetailServiceImpl.java @@ -82,11 +82,14 @@ @Override public Code getCurrentCode(Long agvId) { AgvDetail agvDetail = this.selectMajorByAgvId(agvId); + if (null == agvDetail) { + return null; + } Long recentCode = agvDetail.getRecentCode(); if (null == recentCode) { return null; } - return codeService.getById(recentCode); + return codeService.getCacheById(recentCode); } } -- Gitblit v1.9.1