From a184ffdb8a61fc232c4e2dc3da2a3afa83efe4cb Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期四, 16 五月 2024 11:03:38 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java |   70 +++++++++-------------------------
 1 files changed, 19 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 9c72ba2..e9cf7f1 100644
--- a/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
@@ -46,58 +46,22 @@
         if (Cools.isEmpty(ioType, locNo)) {
             return 100.0D;
         }
-        if (ioType != 11) {
-            // 鍏ュ簱
-            if (ioType < 100) {
-                List<String> groupOuterLoc = Utils.getGroupOuterLocIoPri(locNo);
-                if (!Cools.isEmpty(groupOuterLoc)) {
-                    for (String outerLoc : groupOuterLoc) {
-                        WrkMast wrkMast = this.baseMapper.selectByLocNoOfPakin(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.selectByLocNoOfPakin(insideLoc);
-                        if (wrkMast != null) {
-                            defaultIoPri = wrkMast.getIoPri() + 2;
-//                            defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() + 2 : defaultIoPri + 2;
-                        }
-                    }
-                }
-            // 鍑哄簱
-            } else {
-                List<String> groupOuterLoc = Utils.getGroupInsideLoc(locNo);
-                if (!Cools.isEmpty(groupOuterLoc)) {
-                    for (String outerLoc : groupOuterLoc) {
-                        WrkMast wrkMast = this.baseMapper.selectBySourceLocNoOfPakout(outerLoc);
-                        if (wrkMast != null) {
-                            defaultIoPri = wrkMast.getIoPri() - 2;
-                            break;
-//                            defaultIoPri = defaultIoPri == null ? wrkMast.getIoPri() - 2 : defaultIoPri - 2;
-                        }
-                    }
-                }
-                List<String> groupInsideLoc = Utils.getGroupOuterLocIoPri(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
+        int row = Utils.getRow(locNo);
+        if (row == 6) {
+            return 101D;
         }
-        return defaultIoPri == null ? 300.0D : defaultIoPri;
+
+        if (row == 13) {
+            return 103D;
+        }
+        if (row == 14) {
+            return 102D;
+        }
+        if (row == 15) {
+            return 101D;
+        }
+
+        return defaultIoPri == null ? 100.0D : defaultIoPri;
     }
 
     @Override
@@ -121,4 +85,8 @@
         return this.baseMapper.selectSameMatnrs(matnr);
     }
 
+    @Override
+    public List<WrkMast> selectSameLevMatnrs(String matnr, Integer lev) {
+        return this.baseMapper.selectSameLevMatnrs(matnr, lev);
+    }
 }

--
Gitblit v1.9.1