|
@@ -48,6 +48,8 @@ public class PageServiceImpl implements PageService {
|
|
|
private PriceUtilService priceUtilService;
|
|
|
@Resource
|
|
|
private ProductTypeMapper productTypeMapper;
|
|
|
+ @Resource
|
|
|
+ private PageService pageService;
|
|
|
|
|
|
/**
|
|
|
* 获取分类列表
|
|
@@ -432,6 +434,9 @@ public class PageServiceImpl implements PageService {
|
|
|
product.setRepurchasePriceState(state);
|
|
|
// 设置商品主图及价格
|
|
|
priceUtilService.setProductDetails(userId, product);
|
|
|
+ //优惠券标识
|
|
|
+ Boolean couponsLogo = pageService.setCouponsLogo(userId, product.getProductId(), 2);
|
|
|
+ product.setCouponsLogo(couponsLogo);
|
|
|
});
|
|
|
PaginationVo<ProductItemVo> pageData = new PaginationVo<>(productList);
|
|
|
return ResponseJson.success(pageData);
|