소스 검색

no message

FengChaoYu 10 달 전
부모
커밋
c9fecb8913
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      mall-server-api/src/main/java/com/gree/mall/manager/logic/material/base/WorkerGoodsLogic.java

+ 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())