From 49b8b52ae6dfb28e3e9a741bb277c231bd13418d Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期五, 04 七月 2025 15:51:45 +0800 Subject: [PATCH] 库存明细出库 --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java | 35 ++++++++++++++++++++++++++++++----- 1 files changed, 30 insertions(+), 5 deletions(-) diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java index e9621aa..5363d26 100644 --- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java +++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java @@ -219,9 +219,9 @@ List<Order> orders = orderService.list(new LambdaQueryWrapper<Order>().in(Order::getId, list)); //璁㈠崟鍏ュ巻鍙叉。 orders.forEach(order -> { - if (order.getOrderType() != OrderType.PK_IN_ORDER.id) { - throw new CoolException("褰撳墠璁㈠崟绫诲瀷:" + order.getOrderType() + ",涓嶅彲鍋氬钩搴撲笂鏋舵搷浣滐紒锛�"); - } +// if (order.getOrderType() != OrderType.PK_IN_ORDER.id) { +// throw new CoolException("褰撳墠璁㈠崟绫诲瀷:" + order.getOrderType() + ",涓嶅彲鍋氬钩搴撲笂鏋舵搷浣滐紒锛�"); +// } //淇敼璁㈠崟鐘舵�佷负宸插畬鎴� order.setOrderSettle(OrderSettleType.COMPLETE.val()); OrderLog orderLog = new OrderLog(); @@ -397,7 +397,10 @@ if (Objects.isNull(order)) { throw new CoolException("缁戝畾璁㈠崟涓嶅瓨鍦紒锛�"); } - siteNo.setOrderNo(order.getOrderNo()).setOrderId(order.getId()).setSiteStatus(CacheSiteStatusType.R.id).setBarcode(param.get("barcode").toString()); + siteNo.setOrderNo(order.getOrderNo()) + .setOrderId(order.getId()) + .setSiteStatus(CacheSiteStatusType.R.id) + .setBarcode(param.get("barcode").toString()); if (cacheSiteMapper.updateById(siteNo) < 1) { throw new CoolException("璁㈠崟鎾浣嶇粦瀹氬け璐ワ紒锛�" ); } @@ -413,7 +416,7 @@ if (StringUtil.isNullOrEmpty(siteNo.getOrderNo())) { throw new CoolException("褰撳墠鎾绔欑偣鏈粦瀹氳鍗曪紒锛�"); } - siteNo.setOrderId(null).setOrderNo(null).setSiteNo("0"); + siteNo.setOrderId(null).setOrderNo(null).setBarcode(null).setSiteNo("0"); if (cacheSiteMapper.updateById(siteNo) < 1) { throw new CoolException("璁㈠崟涓庢挱绉嶄綅瑙g粦澶辫触锛侊紒" ); } @@ -557,4 +560,26 @@ return R.ok("鍙戣揣瀹屾垚锛侊紒"); } + /** + * @author Ryan + * @date 2025/6/28 + * @description: 鑾峰彇骞冲簱鎺ㄨ崘搴撲綅 + * @version 1.0 + */ + @Override + public R getRecommendLocs() { + return locService.getRecommengLocs(); + } + + /** + * @author Ryan + * @date 2025/6/28 + * @description: 鏌ヨ鐗╂枡淇℃伅 + * @version 1.0 + */ + @Override + public R getMatsByCode(String matnr) { + return R.ok().add(matService.list(new LambdaQueryWrapper<Mat>().eq(Mat::getMatnr, matnr))); + } + } -- Gitblit v1.9.1