Commit 03f68c2b by xiaoer.li@freemud.com

Merge remote-tracking branch 'remotes/origin/feature/1.9.26_积分抵扣规则,新增是否与促销和优惠券同享' into qa

parents 3c228f3f f66f76dd
...@@ -14,11 +14,13 @@ import cn.freemud.service.thirdparty.CustomScoreClient; ...@@ -14,11 +14,13 @@ import cn.freemud.service.thirdparty.CustomScoreClient;
import cn.freemud.utils.LogUtil; import cn.freemud.utils.LogUtil;
import com.freemud.application.sdk.api.constant.FMStatusCode; import com.freemud.application.sdk.api.constant.FMStatusCode;
import com.freemud.application.sdk.api.log.ErrorLog; import com.freemud.application.sdk.api.log.ErrorLog;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Collections;
import java.util.List; import java.util.List;
/** /**
...@@ -70,7 +72,8 @@ public class CustomerScoreService implements IPromotionService { ...@@ -70,7 +72,8 @@ public class CustomerScoreService implements IPromotionService {
if (getValue(userScoreUseDetail.getResult().getOverlayOffers()) == 0) { if (getValue(userScoreUseDetail.getResult().getOverlayOffers()) == 0) {
customerScoreVo.setScoreReduceState(getValue(userScoreUseDetail.getResult().getScoreState())); customerScoreVo.setScoreReduceState(getValue(userScoreUseDetail.getResult().getScoreState()));
} else { } else {
if (StringUtils.isNotBlank(shoppingCartInfoRequestVo.getCouponCode()) || (calculationDiscountResult != null && calculationDiscountResult.getTotalDiscountAmount().intValue() > 0)) { if (StringUtils.isNotBlank(shoppingCartInfoRequestVo.getCouponCode()) || (calculationDiscountResult != null && calculationDiscountResult.getTotalDiscountAmount().intValue() > 0)
|| (calculationDiscountResult != null && !CollectionUtils.isEmpty(calculationDiscountResult.getDiscounts()))) {
//积分抵扣开关禁用 //积分抵扣开关禁用
customerScoreVo.setScoreReduceState(5); customerScoreVo.setScoreReduceState(5);
userScoreUseDetail.getResult().setScoreState(5); userScoreUseDetail.getResult().setScoreState(5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment