From c0586c8f9da15829be14077c2a1c22caa1e8cf83 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期五, 15 三月 2024 14:37:42 +0800
Subject: [PATCH] 查看单据明细时显示该物料在立库和平库中的库存

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

diff --git a/src/main/java/com/zy/common/web/WcsController.java b/src/main/java/com/zy/common/web/WcsController.java
index 035d519..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;
             }
         }

--
Gitblit v1.9.1