From 45333415b7634fc20b03b7e8ae3b7eee91101bda Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期四, 07 十二月 2023 10:48:31 +0800
Subject: [PATCH] 增加筛选条件
---
src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java | 52 +++++++++++++++++++++++-----------------------------
1 files changed, 23 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 b5bd119..4633630 100644
--- a/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
@@ -44,26 +44,17 @@
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);
- 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 = 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 = defaultIoPri == null ? wrkMast.getIoPri() - 2 : defaultIoPri - 2;
+ defaultIoPri = wrkMast.getIoPri() - 2;
}
}
}
@@ -74,25 +65,13 @@
for (String outerLoc : groupOuterLoc) {
WrkMast wrkMast = this.baseMapper.selectBySourceLocNoOfPakout(outerLoc);
if (wrkMast != null) {
- 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 = defaultIoPri == null ? wrkMast.getIoPri() + 2 : defaultIoPri + 2;
+ defaultIoPri = wrkMast.getIoPri() - 2;
}
}
}
}
- // 绉诲簱
- } else {
-// @Deprecated
}
- return defaultIoPri == null ? 15.0D : defaultIoPri;
+ return defaultIoPri == null ? 100.0D : defaultIoPri;
}
@Override
@@ -101,4 +80,19 @@
.last(" and (wrk_sts in (1,2) or (wrk_sts=3 and wrk_no in (select wrk_no from asr_bas_devp)))"));
}
+ @Override
+ public Boolean setSteEmpty(Integer wrkNo) {
+ return this.baseMapper.setSteEmpty(wrkNo) > 0;
+ }
+
+ @Override
+ public WrkMast selectOfPick(Integer wrkNo, Integer ioType) {
+ return this.baseMapper.selectOfPick(wrkNo, ioType);
+ }
+
+ @Override
+ public List<WrkMast> selectSameMatnrs(String matnr) {
+ return this.baseMapper.selectSameMatnrs(matnr);
+ }
+
}
--
Gitblit v1.9.1