From 8ea7d56801214f50f45c7f8982cd28ac58cfd7c5 Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期四, 04 九月 2025 10:39:27 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/web/WcsController.java | 12 ++++++++---- 1 files changed, 8 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 7adca3c..ac04da3 100644 --- a/src/main/java/com/zy/common/web/WcsController.java +++ b/src/main/java/com/zy/common/web/WcsController.java @@ -122,7 +122,7 @@ // 妫�绱㈠簱浣� FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(); - StartupDto dto = commonService.getLocNo(10, 12, findLocNoAttributeVo, locTypeDto); + StartupDto dto = commonService.getLocNo(10, 12, findLocNoAttributeVo, locTypeDto, null); Date now = new Date(); // 鐢熸垚宸ヤ綔妗� WrkMast wrkMast = new WrkMast(); @@ -176,7 +176,9 @@ // List<String> matnrs = waitPakins.stream().map(WaitPakin::getMatnr).distinct().collect(Collectors.toList()); // List<String> batchs = waitPakins.stream().map(WaitPakin::getBatch).distinct().collect(Collectors.toList()); // FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(matnrs.get(0), batchs.get(0)); - FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(waitPakins.get(0)); + WaitPakin waitPakin1 = waitPakins.get(0); + FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(); + findLocNoAttributeVo.setMatnr(waitPakin1.getMatnr()); //TODO 娴嬭瘯 // StartupDto dto = new StartupDto(); @@ -187,7 +189,7 @@ // dto.setLocNo(locMastxx.getLocNo()); // dto.setWorkNo(Integer.parseInt((System.currentTimeMillis() + "").substring(10))); - StartupDto dto = commonService.getLocNo( 1, devpNo,findLocNoAttributeVo, locTypeDto); + StartupDto dto = commonService.getLocNo(1, devpNo, findLocNoAttributeVo, locTypeDto, barcode); if (dto == null) { throw new CoolException("鎵句笉鍒扮┖搴撲綅"); } @@ -214,6 +216,8 @@ // 鎿嶄綔浜哄憳鏁版嵁 wrkMast.setAppeTime(now); wrkMast.setModiTime(now); + wrkMast.setModiUser(waitPakin1.getModiUser()); + wrkMast.setAppeUser(waitPakin1.getAppeUser()); boolean res = wrkMastService.insert(wrkMast); if (!res) { throw new CoolException("淇濆瓨宸ヤ綔妗eけ璐�"); @@ -261,7 +265,7 @@ // 妫�绱㈠簱浣� FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(); - StartupDto dto = commonService.getLocNo(10, devpNo, findLocNoAttributeVo, locTypeDto); + StartupDto dto = commonService.getLocNo(10, devpNo, findLocNoAttributeVo, locTypeDto, barcode); int workNo = dto.getWorkNo(); // 鐢熸垚宸ヤ綔妗� WrkMast wrkMast = new WrkMast(); -- Gitblit v1.9.1