|
@ -195,7 +195,7 @@ public class AppletOrderServiceImpl implements AppletOrderService { |
|
|
//得到第三级集合数据 |
|
|
//得到第三级集合数据 |
|
|
for (CommonOrder order1 : children) { |
|
|
for (CommonOrder order1 : children) { |
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(order1.getPinId())) { |
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(order1.getPinId()) && StringUtils.isBlank(order1.getPinName())) { |
|
|
CommonVip vip = commonVipService.getById(order1.getPinId()); |
|
|
CommonVip vip = commonVipService.getById(order1.getPinId()); |
|
|
if (vip != null) { |
|
|
if (vip != null) { |
|
|
order1.setPinName(vip.getName()); |
|
|
order1.setPinName(vip.getName()); |
|
@ -205,7 +205,7 @@ public class AppletOrderServiceImpl implements AppletOrderService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 设置款式名称 |
|
|
// 设置款式名称 |
|
|
if (StringUtils.isNotBlank(order1.getStyleId())) { |
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(order1.getStyleId()) && StringUtils.isBlank(order1.getStyleName())) { |
|
|
CommonBrandProduct brandProduct = commonBrandProductService.getById(order1.getStyleId()); |
|
|
CommonBrandProduct brandProduct = commonBrandProductService.getById(order1.getStyleId()); |
|
|
if (brandProduct != null) { |
|
|
if (brandProduct != null) { |
|
|
order1.setStyleName(brandProduct.getName()); |
|
|
order1.setStyleName(brandProduct.getName()); |
|
@ -320,11 +320,13 @@ public class AppletOrderServiceImpl implements AppletOrderService { |
|
|
CommonVip vip = commonVipService.getById(sku.getPinId()); |
|
|
CommonVip vip = commonVipService.getById(sku.getPinId()); |
|
|
if (vip != null && StringUtils.isNotBlank(vip.getBrandCategory())){ |
|
|
if (vip != null && StringUtils.isNotBlank(vip.getBrandCategory())){ |
|
|
commonBrandProductPriceService.buildBrandProductPrice(brandProduct, vip.getBrandCategory()); |
|
|
commonBrandProductPriceService.buildBrandProductPrice(brandProduct, vip.getBrandCategory()); |
|
|
|
|
|
sku.setPinName(vip.getName()); |
|
|
} |
|
|
} |
|
|
if (brandProduct != null) { |
|
|
if (brandProduct != null) { |
|
|
unitMinPrice = brandProduct.getMinPrice(); |
|
|
unitMinPrice = brandProduct.getMinPrice(); |
|
|
unitMaxPrice = brandProduct.getMaxPrice(); |
|
|
unitMaxPrice = brandProduct.getMaxPrice(); |
|
|
sku.setImage(brandProduct.getImage()); |
|
|
sku.setImage(brandProduct.getImage()); |
|
|
|
|
|
sku.setStyleName(brandProduct.getName()); |
|
|
log.info("使用款式价格计算,款式ID: {}, 最低价格: {}, 最高价格: {}", |
|
|
log.info("使用款式价格计算,款式ID: {}, 最低价格: {}, 最高价格: {}", |
|
|
sku.getStyleId(), unitMinPrice, unitMaxPrice); |
|
|
sku.getStyleId(), unitMinPrice, unitMaxPrice); |
|
|
} else { |
|
|
} else { |
|
|