From e90dba0edc93be26e1509cfb2ec1d0681eb86e48 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期三, 27 八月 2025 08:37:04 +0800 Subject: [PATCH] 合并出库添加日志 --- src/main/java/com/zy/common/service/AgvCommonService.java | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/common/service/AgvCommonService.java b/src/main/java/com/zy/common/service/AgvCommonService.java index 103b8b3..e360c91 100644 --- a/src/main/java/com/zy/common/service/AgvCommonService.java +++ b/src/main/java/com/zy/common/service/AgvCommonService.java @@ -134,7 +134,7 @@ // } else { // //涓嶅姩杩欎釜閫昏緫 if (type == 6) { - locMast = locUtils.getLocNoRuleByFloor(type, floor); + locMast = locUtils.getLocNoRuleByFloor6(type, floor); } else { locMast = getLocNoRule(type, floor, isEmpty, isCurrLev); } @@ -313,7 +313,7 @@ List<AgvLocMast> agvLocMasts = agvLocMastService.selectList(wrapper); if (lev1 == 2) { int num = 20; - Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "LOC_3_NUM")); + Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "LOC_3_NUM2")); if (config != null && !Cools.isEmpty(config.getValue())) { num = Integer.parseInt(config.getValue()); } @@ -323,7 +323,7 @@ } } else if (lev1 == 1) { int num = 8; - Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "LOC_3_NUM2")); + Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "LOC_3_NUM")); if (config != null && !Cools.isEmpty(config.getValue())) { num = Integer.parseInt(config.getValue()); } @@ -352,15 +352,16 @@ try { EntityWrapper<AgvLocMast> wrapper = new EntityWrapper<>(); wrapper.eq("loc_sts", "O").eq("loc_type1", type); - wrapper.eq("floor", floor).eq("lev1", lev1); - + wrapper.eq("floor", floor).eq("lev1", lev1).orderBy("bay1", true); List<AgvLocMast> agvLocMasts = agvLocMastService.selectList(wrapper); + for (AgvLocMast agvLocMast : agvLocMasts) { AgvLocMast agvLocMast1 = agvLocMastService.selectOne(new EntityWrapper<AgvLocMast>().eq("loc_no", agvLocMast.getLocNo())); if (agvLocMast1.getLocSts().equals("O")) { return agvLocMast1; } } + return null; } catch (Exception e) { throw new CoolException("鎼滅储搴撲綅鏃讹紝鏈壘鍒板彲鍏ュ簱搴撲綅銆�"); -- Gitblit v1.9.1