|
@@ -76,11 +76,11 @@ public class ProductSpuServiceImpl implements ProductSpuService {
|
|
UserShopDetailsVO userShopDetails = userService.getUserShopDetails();
|
|
UserShopDetailsVO userShopDetails = userService.getUserShopDetails();
|
|
|
|
|
|
spu.setShopId(userShopDetails.getShopId());
|
|
spu.setShopId(userShopDetails.getShopId());
|
|
- spu.setMerchantId(userShopDetails.getMerchantId());
|
|
|
|
|
|
+ spu.setMerchantId(userShopDetails.getMerId());
|
|
|
|
|
|
for (ProductSkuSaveReqVO productSkuSaveReqVO : skuSaveReqList) {
|
|
for (ProductSkuSaveReqVO productSkuSaveReqVO : skuSaveReqList) {
|
|
productSkuSaveReqVO.setShopId(userShopDetails.getShopId());
|
|
productSkuSaveReqVO.setShopId(userShopDetails.getShopId());
|
|
- productSkuSaveReqVO.setMerchantId(userShopDetails.getMerchantId());
|
|
|
|
|
|
+ productSkuSaveReqVO.setMerchantId(userShopDetails.getMerId());
|
|
}
|
|
}
|
|
|
|
|
|
// 插入 SPU
|
|
// 插入 SPU
|
|
@@ -227,7 +227,7 @@ public class ProductSpuServiceImpl implements ProductSpuService {
|
|
UserShopDetailsVO userShopDetails = userService.getUserShopDetails();
|
|
UserShopDetailsVO userShopDetails = userService.getUserShopDetails();
|
|
|
|
|
|
pageReqVO.setShopId(userShopDetails.getShopId());
|
|
pageReqVO.setShopId(userShopDetails.getShopId());
|
|
- pageReqVO.setMerchantId(userShopDetails.getMerchantId());
|
|
|
|
|
|
+ pageReqVO.setMerchantId(userShopDetails.getMerId());
|
|
return productSpuMapper.selectPage(pageReqVO);
|
|
return productSpuMapper.selectPage(pageReqVO);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -298,19 +298,19 @@ public class ProductSpuServiceImpl implements ProductSpuService {
|
|
|
|
|
|
// 查询销售中的商品数量
|
|
// 查询销售中的商品数量
|
|
counts.put(ProductSpuPageReqVO.FOR_SALE,
|
|
counts.put(ProductSpuPageReqVO.FOR_SALE,
|
|
- productSpuMapper.selectCount(ProductSpuDO::getStatus, ProductSpuStatusEnum.ENABLE.getStatus(), userShopDetails.getMerchantId(),userShopDetails.getShopId()));
|
|
|
|
|
|
+ productSpuMapper.selectCount(ProductSpuDO::getStatus, ProductSpuStatusEnum.ENABLE.getStatus(), userShopDetails.getMerId(),userShopDetails.getShopId()));
|
|
// 查询仓库中的商品数量
|
|
// 查询仓库中的商品数量
|
|
counts.put(ProductSpuPageReqVO.IN_WAREHOUSE,
|
|
counts.put(ProductSpuPageReqVO.IN_WAREHOUSE,
|
|
- productSpuMapper.selectCount(ProductSpuDO::getStatus, ProductSpuStatusEnum.DISABLE.getStatus(), userShopDetails.getMerchantId(),userShopDetails.getShopId()));
|
|
|
|
|
|
+ productSpuMapper.selectCount(ProductSpuDO::getStatus, ProductSpuStatusEnum.DISABLE.getStatus(), userShopDetails.getMerId(),userShopDetails.getShopId()));
|
|
// 查询售空的商品数量
|
|
// 查询售空的商品数量
|
|
counts.put(ProductSpuPageReqVO.SOLD_OUT,
|
|
counts.put(ProductSpuPageReqVO.SOLD_OUT,
|
|
- productSpuMapper.selectCount(ProductSpuDO::getStock, 0, userShopDetails.getMerchantId(),userShopDetails.getShopId()));
|
|
|
|
|
|
+ productSpuMapper.selectCount(ProductSpuDO::getStock, 0, userShopDetails.getMerId(),userShopDetails.getShopId()));
|
|
// 查询触发警戒库存的商品数量
|
|
// 查询触发警戒库存的商品数量
|
|
counts.put(ProductSpuPageReqVO.ALERT_STOCK,
|
|
counts.put(ProductSpuPageReqVO.ALERT_STOCK,
|
|
- productSpuMapper.selectCount(userShopDetails.getMerchantId(),userShopDetails.getShopId()));
|
|
|
|
|
|
+ productSpuMapper.selectCount(userShopDetails.getMerId(),userShopDetails.getShopId()));
|
|
// 查询回收站中的商品数量
|
|
// 查询回收站中的商品数量
|
|
counts.put(ProductSpuPageReqVO.RECYCLE_BIN,
|
|
counts.put(ProductSpuPageReqVO.RECYCLE_BIN,
|
|
- productSpuMapper.selectCount(ProductSpuDO::getStatus, ProductSpuStatusEnum.RECYCLE.getStatus(), userShopDetails.getMerchantId(),userShopDetails.getShopId()));
|
|
|
|
|
|
+ productSpuMapper.selectCount(ProductSpuDO::getStatus, ProductSpuStatusEnum.RECYCLE.getStatus(), userShopDetails.getMerId(),userShopDetails.getShopId()));
|
|
return counts;
|
|
return counts;
|
|
}
|
|
}
|
|
|
|
|