|
@@ -186,11 +186,13 @@ public class PriceUtilService {
|
|
|
List<ProductItemVo> giftList = promotionsMapper.getPromotionGifts(promotions.getId());
|
|
|
promotions.setGiftList(giftList);
|
|
|
}
|
|
|
- if (promotions.getType() == 1 && promotions.getMode() == 1 && null != promotions.getTouchPrice()) {
|
|
|
+ if (promotions.getType() == 1 && promotions.getMode() == 1) {
|
|
|
+ // 单品优惠价的时候,取当前sku的touchprice
|
|
|
+ Double touchPrice=priceMapper.getTouchPriceBySku(s.getSkuId());
|
|
|
s.setOriginalPrice(s.getPrice());
|
|
|
price.setOriginalPrice(atomicDouble.get());
|
|
|
- s.setPrice(promotions.getTouchPrice());
|
|
|
- price.setPrice(promotions.getTouchPrice());
|
|
|
+ s.setPrice(touchPrice);
|
|
|
+ price.setPrice(touchPrice);
|
|
|
}
|
|
|
price.setPromotions(promotions);
|
|
|
} else {
|