From dcc9b7294a7f47c00445d2b8dec0097b6b3b0e5e Mon Sep 17 00:00:00 2001 From: zhangc <zc@123> Date: 星期一, 23 十二月 2024 15:45:11 +0800 Subject: [PATCH] Merge branch 'phyzasrs-erp' into phyzasrs-erp-4 --- src/main/java/com/zy/common/service/AgvCommonService.java | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 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..b3b3a6a 100644 --- a/src/main/java/com/zy/common/service/AgvCommonService.java +++ b/src/main/java/com/zy/common/service/AgvCommonService.java @@ -114,7 +114,13 @@ try{ // 寮�濮嬫煡鎵惧簱浣� ==============================>> - locMast = getLocNoRule(type,floor,isEmpty,isCurrLev); + //濡傛灉鏄崐鎴愬搧绠卞3 + if (type == 6) { + + }else { + //涓嶅姩杩欎釜閫昏緫 + locMast = getLocNoRule(type,floor,isEmpty,isCurrLev); + } if (locMast != null) { return locMast; } @@ -238,7 +244,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 +262,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