FengChaoYu 10 bulan lalu
induk
melakukan
c9fecb8913

+ 2 - 2
mall-server-api/src/main/java/com/gree/mall/manager/logic/material/base/WorkerGoodsLogic.java

@@ -77,7 +77,7 @@ public class WorkerGoodsLogic {
         bean.setGoodsId(null);
         bean.setCompanyWechatId(adminUser.getCompanyWechatId());
 
-        final WebsitGoodsCategory category = websitGoodsCategoryService.getById(bean.getCategoryId());
+        final WebsitGoodsCategory category = websitGoodsCategoryService.getById(bean.getGoodsCategoryId());
 
         WorkerGoods workerGoods = new WorkerGoods();
         BeanUtils.copyProperties(bean, workerGoods);
@@ -117,7 +117,7 @@ public class WorkerGoodsLogic {
         WorkerGoods workerGoods = new WorkerGoods();
         BeanUtils.copyProperties(bean, workerGoods);
 
-        final WebsitGoodsCategory category = websitGoodsCategoryService.getById(bean.getCategoryId());
+        final WebsitGoodsCategory category = websitGoodsCategoryService.getById(bean.getGoodsCategoryId());
         workerGoods.setParentCategoryId(category.getParentCategoryId())
                 .setParentCategoryName(category.getParentCategoryName())
                 .setGoodsCategoryId(category.getCategoryId())