|
@@ -86,6 +86,7 @@ public class PriceUtilService {
|
|
|
price.setActStatus(0);
|
|
|
// 设置划线价
|
|
|
price.setOriginalPrice(price.getPrice());
|
|
|
+ price.setRetailPrice(price.getPrice());
|
|
|
//税费标志
|
|
|
boolean taxFlag = "0".equals(price.getIncludedTax()) && ("1".equals(price.getInvoiceType()) || "2".equals(price.getInvoiceType()));
|
|
|
// 根据商品id查询商品活动
|
|
@@ -141,6 +142,7 @@ public class PriceUtilService {
|
|
|
price.setPrice(0d);
|
|
|
price.setOriginalPrice(0d);
|
|
|
price.setUserIdentity(0);
|
|
|
+ price.setRetailPrice(0d);
|
|
|
}
|
|
|
// 屏蔽成本价
|
|
|
price.setCostProportional(0d);
|
|
@@ -156,6 +158,7 @@ public class PriceUtilService {
|
|
|
public void setItemPriceByUserId(ProductItemVo product, Integer userId) {
|
|
|
// 设置价格等级
|
|
|
product.setPriceGrade(getPriceGrade(product.getPrice()));
|
|
|
+ product.setRetailPrice(product.getPrice());
|
|
|
// 根据用户Id查询用户身份
|
|
|
Integer identity = priceMapper.getIdentityByUserId(userId);
|
|
|
if (null != identity && identity > 0) {
|
|
@@ -172,7 +175,7 @@ public class PriceUtilService {
|
|
|
if (null != promotions) {
|
|
|
// 促销活动
|
|
|
product.setActStatus(1);
|
|
|
- product.setLadderFlag(0);
|
|
|
+ product.setLadderPriceFlag(0);
|
|
|
if (promotions.getMode() == 3) {
|
|
|
// 获取赠品
|
|
|
List<ProductItemVo> giftList = promotionsMapper.getPromotionGifts(promotions.getId());
|
|
@@ -189,7 +192,7 @@ public class PriceUtilService {
|
|
|
product.setPromotions(promotions);
|
|
|
} else {
|
|
|
if (null != userId) {
|
|
|
- if (1 == product.getLadderFlag()) {
|
|
|
+ if (1 == product.getLadderPriceFlag()) {
|
|
|
// 阶梯价
|
|
|
LadderPriceVo lowerPrice = priceMapper.findLowerLadderPrice(product.getProductId());
|
|
|
LadderPriceVo lowerBuyNum = priceMapper.findMaxLadderPrice(product.getProductId());
|
|
@@ -199,14 +202,14 @@ public class PriceUtilService {
|
|
|
product.setMin(lowerBuyNum.getBuyNum());
|
|
|
}
|
|
|
} else {
|
|
|
- product.setLadderFlag(0);
|
|
|
+ product.setLadderPriceFlag(0);
|
|
|
}
|
|
|
} else {
|
|
|
// 复购价
|
|
|
Double repurchase = priceMapper.getRepurchasePrice(product.getProductId(), userId);
|
|
|
if (null != repurchase && repurchase > 0) {
|
|
|
product.setPrice(repurchase);
|
|
|
- product.setLadderFlag(0);
|
|
|
+ product.setLadderPriceFlag(0);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -220,6 +223,7 @@ public class PriceUtilService {
|
|
|
product.setPrice(0d);
|
|
|
product.setOriginalPrice(0d);
|
|
|
product.setUserIdentity(0);
|
|
|
+ product.setRetailPrice(0d);
|
|
|
}
|
|
|
}
|
|
|
}
|