Commit 49f6412fa7115ab6e1f57e584d11e30696bfa653

Authored by fengliang
1 parent b404e1c3

update:购物车库存为0异常修复

etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/ShopCartImpl.java
... ... @@ -151,7 +151,7 @@ public class ShopCartImpl implements IShopCartService {
151 151 shopCartMessageVo.setUnitAmount(productPresetVo.getPrePrice() == null ? 0L : productPresetVo.getPrePrice());
152 152 //预设件重克
153 153 shopCartMessageVo.setPieceWeight(productPresetVo.getPieceWeight());
154   - if(shopCartMessageVo.getWeight().equals(0L)){
  154 + if(shopCartMessageVo.getMaxWeight().equals(0L)){
155 155 shopCartMessageVo.setProductState(ShopCartMessageProductState.ZERO.getCodeInteger());
156 156 }
157 157 }
... ...