From d50dd7a141ea33b90dfe3227d94a00cf9c97d5b7 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期一, 23 十二月 2024 08:31:16 +0800
Subject: [PATCH] 浅库位堵塞移库找库位优化

---
 src/main/resources/mapper/LocMastMapper.xml            |    2 +-
 src/main/java/com/zy/service/impl/MainServiceImpl.java |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/service/impl/MainServiceImpl.java b/src/main/java/com/zy/service/impl/MainServiceImpl.java
index 6d86d71..07aa65a 100644
--- a/src/main/java/com/zy/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/service/impl/MainServiceImpl.java
@@ -1882,7 +1882,7 @@
             LocMast loc = null;
             for (Integer row : rows) {
                 if (Utils.isDeepLoc(slaveProperties, row)) {
-                    loc = locMastService.queryFreeLocMast(row, shallowLoc.getLocType1());
+                    loc = locMastService.queryFreeLocMast(row, shallowLoc.getLocType2());
 
                     if (loc != null) {
                         if (Utils.isDeepLoc(slaveProperties, loc.getLocNo())) {
diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index 26e5424..065e056 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -43,7 +43,7 @@
         where row1=#{row}
         and loc_sts='O'
         <if test="locType1 != null">
-            and loc_type1 = #{locType1}
+            and loc_type2 = #{locType1}
         </if>
         order by NEWID(),lev1 asc,bay1 asc
     </select>

--
Gitblit v1.9.1