|
@@ -536,6 +536,10 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
// 店铺促销优先
|
|
|
if (null == shopPromotions) {
|
|
|
promotions = baseMapper.getPromotionByProductId(product.getProductId());
|
|
|
+ if (null != promotions && 1 == promotions.getType() && 1 == promotions.getMode()) {
|
|
|
+ //单品促销的优惠价时,touchPrice取当前sku的
|
|
|
+ promotions.setTouchPrice(baseMapper.getTouchPriceBySku(skuId));
|
|
|
+ }
|
|
|
}
|
|
|
//促销活动如果协销不可见,置为空
|
|
|
if (promotions != null && promotions.getSeen() != null && promotions.getSeen() == 2 && 3 == orderParamBo.getCartType()) {
|
|
@@ -599,8 +603,7 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
}
|
|
|
product.setLadderPrices(ladderPrices);
|
|
|
product.setActProduct(2);
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else {
|
|
|
// 复购价
|
|
|
Double repurchase = baseMapper.getRepurchasePrice(skuId, orderParamBo.getUserId());
|
|
|
if (null != repurchase && repurchase > 0) {
|
|
@@ -639,9 +642,9 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
// 单个商品总税费
|
|
|
Double taxFee = MathUtil.mul(discountTax, productNum).doubleValue();
|
|
|
if (hasActProductFlag && null != promotions) {
|
|
|
- // 单品优惠
|
|
|
+ // 单品促销
|
|
|
if (promotions.getType() == 1) {
|
|
|
- // 是否满足单品优惠条件
|
|
|
+ // 是否满足单品优惠条件(满足优惠价或者满减在这里进行设值)
|
|
|
if (promotions.getMode() == 1 || MathUtil.compare(productFee, promotions.getTouchPrice()) >= 0) {
|
|
|
// 满减
|
|
|
if (promotions.getMode() == 2) {
|