From 3602e4088519be44965118c852593c6376217d4e Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期六, 03 六月 2023 13:46:38 +0800
Subject: [PATCH] jlwms ==> xzjlwms
---
src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java | 28 +++++++++++++++++++---------
1 files changed, 19 insertions(+), 9 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 12559a5..9c72ba2 100644
--- a/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
@@ -44,17 +44,18 @@
public synchronized Double getIoPri(Integer ioType, String locNo) {
Double defaultIoPri = null;
if (Cools.isEmpty(ioType, locNo)) {
- return 15.0D;
+ return 100.0D;
}
if (ioType != 11) {
// 鍏ュ簱
if (ioType < 100) {
- List<String> groupOuterLoc = Utils.getGroupOuterLoc(locNo);
+ List<String> groupOuterLoc = Utils.getGroupOuterLocIoPri(locNo);
if (!Cools.isEmpty(groupOuterLoc)) {
for (String outerLoc : groupOuterLoc) {
WrkMast wrkMast = this.baseMapper.selectByLocNoOfPakin(outerLoc);
if (wrkMast != null) {
- defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() + 2 : defaultIoPri + 2;
+ defaultIoPri = wrkMast.getIoPri() - 2;
+// defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() - 2 : defaultIoPri - 2;
}
}
}
@@ -63,27 +64,31 @@
for (String insideLoc : groupInsideLoc) {
WrkMast wrkMast = this.baseMapper.selectByLocNoOfPakin(insideLoc);
if (wrkMast != null) {
- defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() - 2 : defaultIoPri - 2;
+ defaultIoPri = wrkMast.getIoPri() + 2;
+// defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() + 2 : defaultIoPri + 2;
}
}
}
// 鍑哄簱
} else {
- List<String> groupOuterLoc = Utils.getGroupOuterLoc(locNo);
+ List<String> groupOuterLoc = Utils.getGroupInsideLoc(locNo);
if (!Cools.isEmpty(groupOuterLoc)) {
for (String outerLoc : groupOuterLoc) {
WrkMast wrkMast = this.baseMapper.selectBySourceLocNoOfPakout(outerLoc);
if (wrkMast != null) {
- defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() - 2 : defaultIoPri - 2;
+ defaultIoPri = wrkMast.getIoPri() - 2;
+ break;
+// defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() - 2 : defaultIoPri - 2;
}
}
}
- List<String> groupInsideLoc = Utils.getGroupInsideLoc(locNo);
+ List<String> groupInsideLoc = Utils.getGroupOuterLocIoPri(locNo);
if (!Cools.isEmpty(groupInsideLoc)) {
for (String insideLoc : groupInsideLoc) {
WrkMast wrkMast = this.baseMapper.selectBySourceLocNoOfPakout(insideLoc);
if (wrkMast != null) {
- defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() + 2 : defaultIoPri + 2;
+ defaultIoPri = wrkMast.getIoPri() + 2;
+// defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() + 2 : defaultIoPri + 2;
}
}
}
@@ -92,7 +97,7 @@
} else {
// @Deprecated
}
- return defaultIoPri == null ? 15.0D : defaultIoPri;
+ return defaultIoPri == null ? 300.0D : defaultIoPri;
}
@Override
@@ -111,4 +116,9 @@
return this.baseMapper.selectOfPick(wrkNo, ioType);
}
+ @Override
+ public List<WrkMast> selectSameMatnrs(String matnr) {
+ return this.baseMapper.selectSameMatnrs(matnr);
+ }
+
}
--
Gitblit v1.9.1