mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
!19 新增购物车时,SkuInfo库存字段和CartItemDto库存字段不一致,导致前端购物车无法修改数量
Merge pull request !19 from Fxz/master
This commit is contained in:
commit
b2ff71c699
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user