From 825eecad93210119f76dda5348088a055107b721 Mon Sep 17 00:00:00 2001 From: zc <zc> Date: 星期二, 30 七月 2024 18:10:07 +0800 Subject: [PATCH] 订单只传递一种物料的时候,订单皆苦的批量出库查询接口数据返回不对 --- src/main/java/com/zy/common/web/WcsController.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/common/web/WcsController.java b/src/main/java/com/zy/common/web/WcsController.java index fd6bd8a..3798a5f 100644 --- a/src/main/java/com/zy/common/web/WcsController.java +++ b/src/main/java/com/zy/common/web/WcsController.java @@ -53,6 +53,9 @@ @Autowired private StaDescService staDescService; + @Autowired + private OrderService orderService; + @PostMapping("/pakin/loc/v1") @ResponseBody @@ -112,6 +115,7 @@ @ResponseBody @Transactional public synchronized R getLocNo2(@RequestBody SearchLocParam param) { + log.info("鏀跺埌WCS鍏ュ簱鎺ュ彛璇锋眰2====>>鍏ュ弬:{}", param); if (Cools.isEmpty(param.getIoType())) { return R.error("鍏ュ嚭搴撶被鍨嬩笉鑳戒负绌�"); } @@ -353,6 +357,11 @@ wrkDetl.setIoTime(wrkMast.getIoTime()); wrkDetl.setAppeTime(now); wrkDetl.setModiTime(now); + if (!Cools.isEmpty(waitPakin.getOrderNo())) { + Order order = orderService.selectByNo(waitPakin.getOrderNo()); + wrkDetl.setSPgNO(order.getTemp2()); + + } if (!wrkDetlService.insert(wrkDetl)) { throw new CoolException("淇濆瓨宸ヤ綔鏄庣粏澶辫触"); } -- Gitblit v1.9.1