|
@@ -1187,16 +1187,16 @@ public class CartClubServiceImpl implements CartClubService {
|
|
|
shop.setPostageFlag(0);
|
|
|
}
|
|
|
shop.setPostage(shopPostage.get());
|
|
|
+ // 运费
|
|
|
+ // 包邮或者到付 冷链费为 0
|
|
|
+ coldChain = 0 == shop.getPostage() ? 0 : coldChain;
|
|
|
+ shop.setPostage(MathUtil.sub(shop.getPostage(), coldChain).doubleValue());
|
|
|
shop.setColdChain(coldChain);
|
|
|
if (0 != coldChain) {
|
|
|
shop.setIsColdChina(true);
|
|
|
} else {
|
|
|
shop.setIsColdChina(false);
|
|
|
}
|
|
|
- // 运费
|
|
|
- // 包邮或者到付 冷链费为 0
|
|
|
- coldChain = 0 == shop.getPostage() ? 0 : coldChain;
|
|
|
- shop.setPostage(MathUtil.sub(shop.getPostage(), coldChain).doubleValue());
|
|
|
log.info("shop.getPostage()******"+shop.getPostage());
|
|
|
// 供应商总金额
|
|
|
shopPrice.set(MathUtil.add(MathUtil.add(shopPrice.get(), shop.getPostage()),coldChain).doubleValue());
|
|
@@ -1659,12 +1659,7 @@ public class CartClubServiceImpl implements CartClubService {
|
|
|
shop.setPostageFlag(0);
|
|
|
}
|
|
|
shop.setPostage(shopPostage.get());
|
|
|
- shop.setColdChain(coldChain);
|
|
|
- if (0 != coldChain) {
|
|
|
- shop.setIsColdChina(true);
|
|
|
- } else {
|
|
|
- shop.setIsColdChina(false);
|
|
|
- }
|
|
|
+
|
|
|
// 总费用 + 冷链费
|
|
|
// shopPrice.set(MathUtil.add(shopPrice.get(), coldChain).doubleValue());
|
|
|
// 只有冷链费商品 运费为0
|
|
@@ -1677,6 +1672,12 @@ public class CartClubServiceImpl implements CartClubService {
|
|
|
// 包邮或者到付 冷链费为 0
|
|
|
coldChain = 0 == shop.getPostage() ? 0 : coldChain;
|
|
|
shop.setPostage(MathUtil.sub(shop.getPostage(), coldChain).doubleValue());
|
|
|
+ shop.setColdChain(coldChain);
|
|
|
+ if (0 != coldChain) {
|
|
|
+ shop.setIsColdChina(true);
|
|
|
+ } else {
|
|
|
+ shop.setIsColdChina(false);
|
|
|
+ }
|
|
|
// 供应商总金额
|
|
|
shopPrice.set(MathUtil.add(MathUtil.add(shopPrice.get(), shop.getPostage()),coldChain).doubleValue());
|
|
|
if (shopKindCount.get() > 0) {
|
|
@@ -2061,12 +2062,18 @@ public class CartClubServiceImpl implements CartClubService {
|
|
|
coldChain = baseMapper.getFreightAmount(cartItemVo.getProductId());
|
|
|
// shop.setPostageFlag(1);
|
|
|
// totalPrice.set(MathUtil.add(totalPrice.get(), coldChain).doubleValue());
|
|
|
- shop.setIsColdChina(true);
|
|
|
+ if (1 == postageFlag) {
|
|
|
+ shop.setIsColdChina(true);
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
shop.setIsColdChina(false);
|
|
|
}
|
|
|
- shop.setColdChain(coldChain);
|
|
|
+ if (1 == postageFlag) {
|
|
|
+ shop.setColdChain(coldChain);
|
|
|
+ } else {
|
|
|
+ shop.setColdChain(0d);
|
|
|
+ }
|
|
|
}
|
|
|
// 只有冷链费商品 运费为0
|
|
|
/*if (null != cartDto.getTownId()) {
|