From ba4e5ac7bd44e0d24f480b44a94cfe8d256a86e9 Mon Sep 17 00:00:00 2001 From: 野心家 <1051256694@qq.com> Date: 星期二, 10 十月 2023 14:09:20 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java | 37 ++++++------------------------------- 1 files changed, 6 insertions(+), 31 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java index 0fc3482..4633630 100644 --- a/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java @@ -49,54 +49,29 @@ if (ioType != 11) { // 鍏ュ簱 if (ioType < 100) { - List<String> groupOuterLoc = Utils.getGroupOuterLocIoPri(locNo); - if (!Cools.isEmpty(groupOuterLoc)) { - for (String outerLoc : groupOuterLoc) { - WrkMast wrkMast = this.baseMapper.selectByLocNoOfPakin(outerLoc); + List<String> groupInnerLoc = Utils.getGroupInnerLoc(locNo); + if (!Cools.isEmpty(groupInnerLoc)) { + for (String innerLoc : groupInnerLoc) { + WrkMast wrkMast = this.baseMapper.selectByLocNoOfPakin(innerLoc); if (wrkMast != null) { defaultIoPri = wrkMast.getIoPri() - 2; -// defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() - 2 : defaultIoPri - 2; - } - } - } - List<String> groupInsideLoc = Utils.getGroupInsideLoc(locNo); - if (!Cools.isEmpty(groupInsideLoc)) { - for (String insideLoc : groupInsideLoc) { - WrkMast wrkMast = this.baseMapper.selectByLocNoOfPakin(insideLoc); - if (wrkMast != null) { - defaultIoPri = wrkMast.getIoPri() + 2; -// defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() + 2 : defaultIoPri + 2; } } } // 鍑哄簱 } else { - List<String> groupOuterLoc = Utils.getGroupInsideLoc(locNo); + List<String> groupOuterLoc = Utils.getGroupOuterLoc(locNo); if (!Cools.isEmpty(groupOuterLoc)) { for (String outerLoc : groupOuterLoc) { WrkMast wrkMast = this.baseMapper.selectBySourceLocNoOfPakout(outerLoc); if (wrkMast != null) { defaultIoPri = wrkMast.getIoPri() - 2; -// defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() - 2 : defaultIoPri - 2; - } - } - } - List<String> groupInsideLoc = Utils.getGroupOuterLocIoPri(locNo); - if (!Cools.isEmpty(groupInsideLoc)) { - for (String insideLoc : groupInsideLoc) { - WrkMast wrkMast = this.baseMapper.selectBySourceLocNoOfPakout(insideLoc); - if (wrkMast != null) { - defaultIoPri = wrkMast.getIoPri() + 2; -// defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() + 2 : defaultIoPri + 2; } } } } - // 绉诲簱 - } else { -// @Deprecated } - return defaultIoPri == null ? 300.0D : defaultIoPri; + return defaultIoPri == null ? 100.0D : defaultIoPri; } @Override -- Gitblit v1.9.1