Skip to content

Commit

Permalink
【同步】BOOT 和 CLOUD 的功能(所有)
Browse files Browse the repository at this point in the history
  • Loading branch information
YunaiV committed Dec 31, 2024
1 parent 0082bd2 commit 59fa135
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private void validateDiscountActivityProductConflicts(Long id, List<DiscountActi
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 -> {
Expand Down

0 comments on commit 59fa135

Please sign in to comment.