From 73cddc1f15fbee51a0f79189f7df631361483b0d Mon Sep 17 00:00:00 2001 From: zhangc <zc@123> Date: 星期四, 19 十二月 2024 14:23:23 +0800 Subject: [PATCH] 优化AGV工作处理及上报逻辑 --- src/main/java/com/zy/common/service/AgvCommonService.java | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 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..e7aded0 100644 --- a/src/main/java/com/zy/common/service/AgvCommonService.java +++ b/src/main/java/com/zy/common/service/AgvCommonService.java @@ -238,7 +238,10 @@ Boolean orderBy = false; int levCount = 0; int times = 1; - if (floor == 1) { + if (floor == 1 || floor >= 4) { + if (floor >= 4 ) { + floor = 1; + } orderBy = true; levCount = 2; } else { @@ -253,7 +256,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