自动化立体仓库 - WMS系统
#
Junjie
2025-06-27 0b3084df2f37271b84f6c748a5f50e0b2da2709a
src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java
@@ -335,12 +335,22 @@
                throw new CoolException("工作档明细不存在");
            }
            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(nccScPcdaWms.getPkStorestate());
            invCountBodyVO.setPk_batchcode(nccScPcdaWms.getPkBatchcode());
            invCountBodyVOList.add(invCountBodyVO);
        }
@@ -351,8 +361,8 @@
        data.put("InvCountHeaderVO", invCountHeaderVO);
        data.put("InvCountBodyVO", invCountBodyVOList);
        data.put("paper", "2");
        data.put("splr", "1");
        data.put("paper", "1");
        data.put("splr", "0");
        ArrayList<Map<String, Object>> list = new ArrayList<>();
        list.add(data);