Merge branch 'master' of gitee.com:youlaitech/youlai-mall

This commit is contained in:
郝先瑞 2022-05-17 21:50:14 +08:00
commit 3c26599bbc

View File

@ -87,6 +87,7 @@ public class CartServiceImpl implements ICartService {
SkuInfoDTO skuInfo = skuFeignService.getSkuInfo(skuId).getData();
if (skuInfo != null) {
BeanUtil.copyProperties(skuInfo,cartItem);
cartItem.setStock(skuInfo.getStockNum());
cartItem.setCount(1);
cartItem.setChecked(true);
}