【同步】BOOT 和 CLOUD 的功能(所有)

pull/162/MERGE
YunaiV 2024-12-31 09:36:40 +08:00
parent 0082bd2189
commit 59fa135677
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ public class DiscountActivityServiceImpl implements DiscountActivityService {
private void validateProductExists(List<DiscountActivityBaseVO.Product> products) {
// 1.获得商品所有的 sku
List<ProductSkuRespDTO> skus = productSkuApi.getSkuListBySpuId(
convertList(products, DiscountActivityBaseVO.Product::getSpuId));
convertList(products, DiscountActivityBaseVO.Product::getSpuId)).getCheckedData();
Map<Long, ProductSkuRespDTO> skuMap = convertMap(skus, ProductSkuRespDTO::getId);
// 2. 校验商品 sku 都存在
products.forEach(product -> {