|
@@ -191,7 +191,7 @@ public class FsStoreCartServiceImpl implements IFsStoreCartService
|
|
|
@Override
|
|
|
public R changeNum(long userId, FsStoreCartNumParam cartParam) {
|
|
|
FsStoreCart cart=fsStoreCartMapper.selectFsStoreCartById(cartParam.getId());
|
|
|
-// checkProductStock(cart.getProductId(),cart.getProductAttrValueId());
|
|
|
+ checkProductStock(cart.getProductId(),cart.getProductAttrValueId());
|
|
|
cart.setCartNum(cartParam.getNumber());
|
|
|
cart.setUpdateTime(new Date());
|
|
|
fsStoreCartMapper.updateFsStoreCart(cart);
|