no message

This commit is contained in:
cb 2025-06-24 17:52:14 +08:00
parent 47f5c7b039
commit 7f959107da
3 changed files with 9 additions and 1 deletions

View File

@ -379,6 +379,8 @@ public class GoodsController extends BaseController {
try {
Goods result = goodsService.selectById(goods.getGoodsId());
Shop shop=shopService.getShop(result.getShopId());
result.setShop(shop);
// 补全商品类目及父级类目信息
GoodsCategory goodsCategory = goodsCategoryService.selectById(result.getDeptGoodsCategoryId());
result.setDeptGoodsCategoryName(goodsCategory.getGoodsCategoryName());

View File

@ -26,6 +26,10 @@
<groupId>com.ghy</groupId>
<artifactId>ghy-custom</artifactId>
</dependency>
<dependency>
<groupId>com.ghy</groupId>
<artifactId>ghy-shop</artifactId>
</dependency>
</dependencies>

View File

@ -2,6 +2,7 @@ package com.ghy.goods.domain;
import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import com.ghy.shop.domain.Shop;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -114,4 +115,5 @@ public class Goods extends BaseEntity {
private Integer storeService;
private Shop shop;
}