From 0b3084df2f37271b84f6c748a5f50e0b2da2709a Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期五, 27 六月 2025 15:56:54 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java
index b65db04..a3b0320 100644
--- a/src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java
@@ -335,13 +335,22 @@
                 throw new CoolException("宸ヤ綔妗f槑缁嗕笉瀛樺湪");
             }
 
+            NccScPcdaWms nccScPcdaWms = nccScPcdaWmsService.selectOne(new EntityWrapper<NccScPcdaWms>()
+                    .eq("WLBM", inventoryCheckOrderDetl.getMatnr())
+                    .eq("VBATCHCODE", inventoryCheckOrderDetl.getBatch())
+            );
+            if(null == nccScPcdaWms) {
+                throw new CoolException("ERP鏁版嵁搴撴棤娉曟煡璇㈠埌鐩樼偣涓婃姤鏁版嵁");
+            }
+
             cwarehouseid = wrkDetls.get(0).getStandby1();
 
             InvCountBodyVO invCountBodyVO = new InvCountBodyVO();
             invCountBodyVO.setCmaterialoid(inventoryCheckOrderDetl.getMatnr());
             invCountBodyVO.setVbatchcode(inventoryCheckOrderDetl.getBatch());
             invCountBodyVO.setNcountastnum(inventoryCheckOrderDetl.getCheckAnfme());
-            invCountBodyVO.setCstateid("1001A1100000000H0KJN");
+            invCountBodyVO.setCstateid(nccScPcdaWms.getPkStorestate());
+            invCountBodyVO.setPk_batchcode(nccScPcdaWms.getPkBatchcode());
             invCountBodyVOList.add(invCountBodyVO);
         }
 

--
Gitblit v1.9.1