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