|
@@ -14,6 +14,7 @@ import com.caimei365.order.model.po.CartPo;
|
|
|
import com.caimei365.order.model.vo.*;
|
|
|
import com.caimei365.order.service.CartClubService;
|
|
|
import com.caimei365.order.service.RemoteCallService;
|
|
|
+import com.caimei365.order.utils.ImageUtil;
|
|
|
import com.caimei365.order.utils.MathUtil;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.util.concurrent.AtomicDouble;
|
|
@@ -1030,7 +1031,14 @@ public class CartClubServiceImpl implements CartClubService {
|
|
|
// 迭代器设置商品信息
|
|
|
for (CartItemVo cartItemVo : productList) {
|
|
|
// 设置商品图片及税费
|
|
|
- boolean taxFlag = productService.setCartItemImgAndTax(cartItemVo);
|
|
|
+ boolean taxFlag = false;
|
|
|
+ if (0 == organizeId) {
|
|
|
+ taxFlag = productService.setCartItemImgAndTax(cartItemVo);
|
|
|
+ } else {
|
|
|
+ // 图片路径
|
|
|
+ String image = ImageUtil.getImageUrl("product", cartItemVo.getImage(), domain);
|
|
|
+ cartItemVo.setImage(image);
|
|
|
+ }
|
|
|
// 是否充值商品
|
|
|
boolean recharge = productService.isRechargeProduct(cartItemVo.getProductId());
|
|
|
if (recharge) {
|
|
@@ -1787,7 +1795,13 @@ public class CartClubServiceImpl implements CartClubService {
|
|
|
shopIds.add(shop.getShopId());
|
|
|
List<CartShopVo> shopList = new ArrayList<>();
|
|
|
// 设置商品图片及税费
|
|
|
- boolean taxFlag = productService.setCartItemImgAndTax(cartItemVo);
|
|
|
+ boolean taxFlag = false;
|
|
|
+ if (0 == organizeId) {
|
|
|
+ taxFlag = productService.setCartItemImgAndTax(cartItemVo);
|
|
|
+ } else {
|
|
|
+ String image = ImageUtil.getImageUrl("product", cartItemVo.getImage(), domain);
|
|
|
+ cartItemVo.setImage(image);
|
|
|
+ }
|
|
|
// 促销活动(总)
|
|
|
List<PromotionsVo> totalPromotions = new ArrayList<>();
|
|
|
// 统计商品总金额
|