From 183d00d631493ba8689934c4b3961c705f409c83 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期日, 01 十月 2023 09:55:01 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java | 61 +++++------------------------- 1 files changed, 10 insertions(+), 51 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 6ab6642..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,31 +49,14 @@ if (ioType != 11) { // 鍏ュ簱 if (ioType < 100) { - List<String> groupOuterLoc = Utils.getGroupOuterLoc(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; - } - } - } - int row = getRow(locNo); - if (row<=4){ - return defaultIoPri == null ? 300.0D-row*2 : defaultIoPri-row*2; - }else { - return defaultIoPri == null ? 300.0D+row*2 : defaultIoPri+row*2; } // 鍑哄簱 } else { @@ -83,41 +66,12 @@ 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.getGroupInsideLoc(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; - } - } - } - int row = getRow(locNo); - if (row<=4){ - return defaultIoPri == null ? 300.0D+row*2 : defaultIoPri+row*2; - }else { - return defaultIoPri == null ? 300.0D-row*2 : defaultIoPri-row*2; } } - // 绉诲簱 - } else { -// @Deprecated } - return 300.0D; - } - /** - * 閫氳繃搴撲綅鍙疯幏鍙� 鎺� - */ - public static int getRow(String locNo) { - if (!Cools.isEmpty(locNo)) { - return Integer.parseInt(locNo.substring(0, 2)); - } - throw new RuntimeException("搴撲綅瑙f瀽寮傚父"); + return defaultIoPri == null ? 100.0D : defaultIoPri; } @Override @@ -136,4 +90,9 @@ return this.baseMapper.selectOfPick(wrkNo, ioType); } + @Override + public List<WrkMast> selectSameMatnrs(String matnr) { + return this.baseMapper.selectSameMatnrs(matnr); + } + } -- Gitblit v1.9.1