|
@@ -59,6 +59,14 @@ public class ProductSpuServiceImpl implements ProductSpuService {
|
|
// 校验分类、品牌
|
|
// 校验分类、品牌
|
|
validateCategory(createReqVO.getCategoryId());
|
|
validateCategory(createReqVO.getCategoryId());
|
|
brandService.validateProductBrand(createReqVO.getBrandId());
|
|
brandService.validateProductBrand(createReqVO.getBrandId());
|
|
|
|
+
|
|
|
|
+ // 根据商户ID查询对应的店铺ID
|
|
|
|
+ // todo 后续如果存在多店铺的情况下
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
// 校验 SKU
|
|
// 校验 SKU
|
|
List<ProductSkuSaveReqVO> skuSaveReqList = createReqVO.getSkus();
|
|
List<ProductSkuSaveReqVO> skuSaveReqList = createReqVO.getSkus();
|
|
productSkuService.validateSkuList(skuSaveReqList, createReqVO.getSpecType());
|
|
productSkuService.validateSkuList(skuSaveReqList, createReqVO.getSpecType());
|