Commit 606cd72551932da36ccd3329f01d969246379223
1 parent
b9b34817
update:购物车数量判断修正
Showing
1 changed file
with
1 additions
and
1 deletions
etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/OrderServiceImpl.java
... | ... | @@ -1526,7 +1526,7 @@ public class OrderServiceImpl implements OrderService { |
1526 | 1526 | for(ShopCartMessage shopCartMessage : messages){ |
1527 | 1527 | if(shopCartMessage.getId().equals(productDto.getShopCertMessageId())){ |
1528 | 1528 | Long wight= productDto.getProductWeight().multiply(NumberTransform.ONE_HUNDERD).longValue(); |
1529 | - if(wight.equals(shopCartMessage.getWeight())){ | |
1529 | + if(!wight.equals(shopCartMessage.getWeight())){ | |
1530 | 1530 | throw new OrderException(OrderErrorCode.PARAM_ERROR,productDto.getProductName()+"的数量已发生变更,请刷新后重试"); |
1531 | 1531 | } |
1532 | 1532 | } | ... | ... |