| | |
| | | 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; |
| | | } |
| | | } |
| | | } |
| | |
| | | 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; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // 移库 |
| | | } else { |
| | | // @Deprecated |
| | | } |
| | | return defaultIoPri == null ? 300.0D : defaultIoPri; |
| | | return defaultIoPri == null ? 100.0D : defaultIoPri; |
| | | } |
| | | |
| | | @Override |