|
@@ -271,7 +271,12 @@ public class ProductSpuServiceImpl implements ProductSpuService {
|
|
|
|
|
|
@Override
|
|
|
public Map<Integer, Long> getTabsCount(ProductSpuPageReqVO pageVO) {
|
|
|
+ UserShopDetailsVO userShopDetails = userService.getUserShopDetails();
|
|
|
+ pageVO.setShopId(userShopDetails.getShopId());
|
|
|
+ pageVO.setMerchantId(userShopDetails.getMerId());
|
|
|
+
|
|
|
Map<Integer, Long> counts = Maps.newLinkedHashMapWithExpectedSize(5);
|
|
|
+
|
|
|
// 查询销售中的商品数量
|
|
|
counts.put(ProductSpuPageReqVO.FOR_SALE,
|
|
|
productSpuMapper.selectCount(ProductSpuDO::getStatus, ProductSpuStatusEnum.ENABLE.getStatus(),pageVO));
|