From 8e5da13518ce272e81d099650ee4de723257a658 Mon Sep 17 00:00:00 2001 From: starrysky <838252223@qq.com> Date: Sun, 17 May 2020 12:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ProductCountServiceImpl.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/eladmin-system/src/main/java/me/zhengjie/modules/wms/sr/productCount/service/impl/ProductCountServiceImpl.java b/eladmin-system/src/main/java/me/zhengjie/modules/wms/sr/productCount/service/impl/ProductCountServiceImpl.java index 54b24eaf..65d9fbc3 100644 --- a/eladmin-system/src/main/java/me/zhengjie/modules/wms/sr/productCount/service/impl/ProductCountServiceImpl.java +++ b/eladmin-system/src/main/java/me/zhengjie/modules/wms/sr/productCount/service/impl/ProductCountServiceImpl.java @@ -132,6 +132,17 @@ public class ProductCountServiceImpl implements ProductCountService { resources.setProductName(productInfo.getName()); //验证产品库存统计是否存在 + Long productSeriesId = productInfo.getProductSeriesId(); + String productSeriesName = productInfo.getProductSeriesName(); + long productCategoryId = productInfo.getProductCategoryId(); + String productCategoryName = productInfo.getProductCategoryName(); + + resources.setProductSeriesId(productSeriesId); + resources.setProductSeriesName(productSeriesName); + + resources.setProductCategoryId(productCategoryId); + resources.setProductCategoryName(productCategoryName); + ProductCount productCountTemp = productCountRepository.findByProductId(productId); if(null != productCountTemp){ throw new BadRequestException("该产品统计记录已经存在 !");