From d51f64c1f0105d4b18aa8344c11e47827730a40c Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期五, 08 八月 2025 10:42:39 +0800
Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop

---
 rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/WcsServiceImpl.java |   52 ++++++++++++++++++++++++++--------------------------
 1 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/WcsServiceImpl.java b/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/WcsServiceImpl.java
index 3950c36..c6bec07 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/WcsServiceImpl.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/WcsServiceImpl.java
@@ -388,23 +388,20 @@
 
         InTaskMsgDto inTaskMsgDto = new InTaskMsgDto();
 
-        int sRow = deviceBind.getStartRow();
-        int eRow = deviceBind.getEndRow();
         int deviceQty = deviceBind.getDeviceQty();
 
 
         // ===============>>>> 寮�濮嬫墽琛�
         curRow = deviceBind.getCurrentRow();
 
-        //姝ょ▼搴忕敤浜庝紭鍖栧爢鍨涙満寮傚父鏃剁殑杩愯鏃堕棿
-        for (int i = times; i <= deviceQty * 2; i++) {
-            int[] locNecessaryParameters = LocUtils.LocNecessaryParameters(deviceBind, curRow, deviceQty);
-            curRow = locNecessaryParameters[1];
-            channel = locNecessaryParameters[2];
-            rowCount = locNecessaryParameters[0];
-            nearRow = locNecessaryParameters[3];
-            break;
-        }
+        //鑾峰彇鎺�
+        int[] locNecessaryParameters = LocUtils.LocNecessaryParameters(deviceBind, curRow, deviceQty);
+        curRow = locNecessaryParameters[1];
+        channel = locNecessaryParameters[2];
+        rowCount = locNecessaryParameters[0];
+        nearRow = locNecessaryParameters[3];
+
+
         if (nearRow == 0) {
             throw new CoolException("鏃犲彲鐢ㄥ爢鍨涙満");
         }
@@ -500,12 +497,13 @@
                             .eq(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_O.type)
                             .eq(Loc::getAreaId, area)
                     );
-                    if (null != orgMoveLoc){
-                        if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) {
-                            break;
-                        }
-                    }
+
                     if (!Cools.isEmpty(locMast2)) {
+                        if (null != orgMoveLoc){
+                            if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) {
+                                break;
+                            }
+                        }
                         loc = locMast2;
                         break;
                     }
@@ -556,12 +554,13 @@
                                 .eq(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_O.type)
                                 .eq(Loc::getAreaId, area)
                         );
-                        if (null != orgMoveLoc){
-                            if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) {
-                                break;
-                            }
-                        }
+
                         if (!Cools.isEmpty(locMast2)) {
+                            if (null != orgMoveLoc){
+                                if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) {
+                                    break;
+                                }
+                            }
                             loc = locMast2;
                             break;
                         } else {
@@ -570,12 +569,13 @@
                                     .in(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_D.type, LocStsType.LOC_STS_TYPE_D.type)
                                     .eq(Loc::getAreaId, area)
                             );
-                            if (null != orgMoveLoc){
-                                if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) {
-                                    break;
-                                }
-                            }
+
                             if (!Cools.isEmpty(locMast2)) {
+                                if (null != orgMoveLoc){
+                                    if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) {
+                                        break;
+                                    }
+                                }
                                 loc = locMast1;
                                 break;
                             }

--
Gitblit v1.9.1