Commit 88631438 by yu.sun

sunyu::update::fix bug about clear monthCard info

parent 3c57777a
...@@ -358,7 +358,7 @@ public class ShoppingCartMCoffeeServiceImpl { ...@@ -358,7 +358,7 @@ public class ShoppingCartMCoffeeServiceImpl {
for (CartGoods goods : cartGoodsList) { for (CartGoods goods : cartGoodsList) {
if (Objects.equals(1,goods.getIsMonthCard()) if (Objects.equals(1,goods.getIsMonthCard())
&& goods.getGoodsId().equals(updateShoppingCartGoodsQtyRequestVo.getCartGoodsUid())){ && goods.getCartGoodsUid().equals(updateShoppingCartGoodsQtyRequestVo.getCartGoodsUid())){
if (updateShoppingCartGoodsQtyRequestVo.getQty() == 0){ if (updateShoppingCartGoodsQtyRequestVo.getQty() == 0){
Iterator<CartGoods> cartGoodsIterator = cartGoodsList.iterator(); Iterator<CartGoods> cartGoodsIterator = cartGoodsList.iterator();
while (cartGoodsIterator.hasNext()){ while (cartGoodsIterator.hasNext()){
......
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