Commit cc24dd2d by 周晓航

修改购物车加购扣除数量限制

parent f80290f2
...@@ -475,7 +475,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -475,7 +475,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
// throw new ServiceException(ResponseResult.SHOPPING_CART_SHOP_ID_NOT_EMPTY); // throw new ServiceException(ResponseResult.SHOPPING_CART_SHOP_ID_NOT_EMPTY);
} }
// fisherman 购物车加车数量限制 // fisherman 购物车加车数量限制
if (updateShoppingCartGoodsQtyRequestVo.getQty().compareTo(500) > 0 || updateShoppingCartGoodsQtyRequestVo.getQty().compareTo(0) <= 0 ) { if (updateShoppingCartGoodsQtyRequestVo.getQty().compareTo(500) > 0 || updateShoppingCartGoodsQtyRequestVo.getQty().compareTo(0) < 0 ) {
return ResponseUtil.error(ResponseResult.SHOPPING_CART_LIMIT_ADD); return ResponseUtil.error(ResponseResult.SHOPPING_CART_LIMIT_ADD);
} }
ShoppingCartGoodsResponseVo shoppingCartGoodsResponseVo = new ShoppingCartGoodsResponseVo(); ShoppingCartGoodsResponseVo shoppingCartGoodsResponseVo = new ShoppingCartGoodsResponseVo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment