From 57448954d59595b87cbb7efad52f59e61fd14d61 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期三, 01 二月 2023 09:19:05 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/common/service/CommonService.java |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/zy/common/service/CommonService.java b/src/main/java/com/zy/common/service/CommonService.java
index 249584e..f70fdf4 100644
--- a/src/main/java/com/zy/common/service/CommonService.java
+++ b/src/main/java/com/zy/common/service/CommonService.java
@@ -314,7 +314,7 @@
         if (locMast == null) {
 
             // 搴撳尯閿佸畾
-            LocRule locRule = locRuleService.find(Cools.isEmpty(matNos) ? null : matNos.get(0), null);
+            LocRule locRule = locRuleService.find(Cools.isEmpty(matNos) ? null : matNos.get(0), null, start, end);
             if (!Cools.isEmpty(locRule)) {
                 List<Integer> rows = Utils.getGroupLoc(locRule.getRowBeg());
                 List<LocMast> locMasts = locMastService.queryFreeLocMast1(rows, rows.size(), locTypeDto.getLocType1(), inoutEveryday
@@ -374,10 +374,8 @@
                 Integer innermostRow = Utils.getInnermostRow(locMasts1.get(0).getLocNo());
                 for (LocMast locMast2:locMasts1){
                     if (locMast2.getLocSts().equals("O")){
-                        if (locMast2.getRow1().equals(innermostRow)) {
-                            locMast = locMast2;
-                            break;
-                        }
+                        locMast = locMast2;
+                        break;
                     }else if (!locMast2.getLocSts().equals("F")){
                         break;
                     }

--
Gitblit v1.9.1