From f0c73d72fe7f939be2d3fdf5fc90889971a67fe5 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 11 六月 2024 17:18:25 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/service/AgvCommonService.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/common/service/AgvCommonService.java b/src/main/java/com/zy/common/service/AgvCommonService.java index 8efe2b6..f87765f 100644 --- a/src/main/java/com/zy/common/service/AgvCommonService.java +++ b/src/main/java/com/zy/common/service/AgvCommonService.java @@ -253,7 +253,11 @@ if (isEmpty) { wrapper.eq("floor", floor).eq("lev1",1); } else { - wrapper.eq("floor", floor).orderBy("lev1",!orderBy); + if (isCurrLev) { + wrapper.eq("floor", floor).eq("lev1",1); + } else { + wrapper.eq("floor", floor).orderBy("lev1",!orderBy); + } } -- Gitblit v1.9.1