Commit 92aea48e08ae93f2975406d33b39e4b41243b106

Authored by fengliang
1 parent b37a315c

update:库存修正

etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/ShopCartImpl.java
@@ -252,7 +252,8 @@ public class ShopCartImpl implements IShopCartService { @@ -252,7 +252,8 @@ public class ShopCartImpl implements IShopCartService {
252 if(checkflag){ 252 if(checkflag){
253 checkMaxProductWeight(shopCartMessageDto,shopCartMessageOld); 253 checkMaxProductWeight(shopCartMessageDto,shopCartMessageOld);
254 } 254 }
255 - shopCartMessageService.updateByOld(shopCartMessageOld, shopCartDto.getShopCartMessageDto(),shopCartDto.getBo()); 255 + //默认为true,每次离开强制更新
  256 + shopCartMessageService.updateByOld(shopCartMessageOld, shopCartDto.getShopCartMessageDto(),true);
256 } 257 }
257 258
258 private void checkMaxProductWeight(ShopCartMessageDto shopCartMessageDto, ShopCartMessage shopCartMessageOld) { 259 private void checkMaxProductWeight(ShopCartMessageDto shopCartMessageDto, ShopCartMessage shopCartMessageOld) {