|
|
@@ -36,7 +36,7 @@ public class ShoppingCartOrderServiceImpl extends ServiceImpl<ShoppingCartDonMap
|
|
|
//最多添加购物车数量30
|
|
|
int count = this.count(Wrappers.lambdaQuery(ShoppingCartDon.class)
|
|
|
.eq(ShoppingCartDon::getUserId, goodsCartDon.getUserId()));
|
|
|
- if (count > 30) {
|
|
|
+ if (count >= 30) {
|
|
|
throw BusinessRuntimeException.getInstance("最多添加30件商品至购物车");
|
|
|
}
|
|
|
Long skuId = goodsCartDon.getSkuId();
|