From 4b24db42be9c3100783b8de055e72f93fd573ec8 Mon Sep 17 00:00:00 2001
From: mrzhssss <pro6@qq.com>
Date: 星期四, 16 二月 2023 16:27:48 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/common/web/WcsController.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/common/web/WcsController.java b/src/main/java/com/zy/common/web/WcsController.java
index 2a4cb17..46005e3 100644
--- a/src/main/java/com/zy/common/web/WcsController.java
+++ b/src/main/java/com/zy/common/web/WcsController.java
@@ -166,12 +166,12 @@
         // 妫�绱㈠簱浣�
         List<String> matNos = waitPakins.stream().map(WaitPakin::getMatnr).distinct().collect(Collectors.toList());
         int rowCount = rowLastnoService.selectCount(null);
-        Integer integer = 1;
+        Integer integer = 2;
         for (int i = 1; i <= rowCount; i++) {
             integer = rowLastnoService.selectNextWhsType();
             BasCrnp crn_no = basCrnpService.selectOne(new EntityWrapper<BasCrnp>()
-                    .eq("crn_no", i));
-            if (crn_no.getInEnable().equals("Y") && crn_no.getCrnSts().equals("3")){
+                    .eq("crn_no", integer));
+            if (crn_no.getInEnable().equals("Y") && crn_no.getCrnSts() == 3){
                 break;
             }
         }
@@ -251,7 +251,7 @@
         // 婧愮珯鐐圭姸鎬佹娴�
         BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true);
         int rowCount = rowLastnoService.selectCount(null);
-        Integer integer = 1;
+        Integer integer = 2;
         for (int i = 1; i <= rowCount; i++) {
             integer = rowLastnoService.selectNextWhsType();
             BasCrnp crn_no = basCrnpService.selectOne(new EntityWrapper<BasCrnp>()

--
Gitblit v1.9.1