From 7b26abe9d5e833901783613bbb3cfa27fa75a346 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期一, 20 十一月 2023 20:17:41 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java | 38 +++++++++-----------------------------
1 files changed, 9 insertions(+), 29 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 78e5554..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,23 +49,12 @@
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;
}
}
}
@@ -77,24 +66,10 @@
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 ? 100.0D : defaultIoPri;
}
@@ -115,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