Commit c4a43b9e by huiyang.chen

log

parent 9c89f33a
...@@ -21,6 +21,8 @@ import com.freemud.sdk.api.assortment.order.response.order.QueryOrdersResponse; ...@@ -21,6 +21,8 @@ import com.freemud.sdk.api.assortment.order.response.order.QueryOrdersResponse;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -44,6 +46,8 @@ import java.util.Objects; ...@@ -44,6 +46,8 @@ import java.util.Objects;
@Service @Service
public class ActivityCalculationDiscountService { public class ActivityCalculationDiscountService {
private static Logger logger = LoggerFactory.getLogger(ActivityCalculationDiscountService.class);
private final static String RESPONSE_SUCCESS_STR = "100"; private final static String RESPONSE_SUCCESS_STR = "100";
@Autowired @Autowired
...@@ -86,6 +90,7 @@ public class ActivityCalculationDiscountService { ...@@ -86,6 +90,7 @@ public class ActivityCalculationDiscountService {
.build(); .build();
CalculationDiscountResultDto calculationDiscountResultDto = getCalculationResult(request, coupons); CalculationDiscountResultDto calculationDiscountResultDto = getCalculationResult(request, coupons);
logger.info("促销分摊:{}",calculationDiscountResultDto);
// 默认计算 // 默认计算
defaultPromotionService.updateDiscountApportion(shoppingCartGoodsResponse, request, calculationDiscountResultDto, couponPromotionDto, activityQueryDto, isApportion); defaultPromotionService.updateDiscountApportion(shoppingCartGoodsResponse, request, calculationDiscountResultDto, couponPromotionDto, activityQueryDto, isApportion);
// 套餐计算 // 套餐计算
...@@ -96,6 +101,7 @@ public class ActivityCalculationDiscountService { ...@@ -96,6 +101,7 @@ public class ActivityCalculationDiscountService {
fullPromotionService.updateDiscountApportion(shoppingCartGoodsResponse, request, calculationDiscountResultDto, couponPromotionDto, activityQueryDto, isApportion); fullPromotionService.updateDiscountApportion(shoppingCartGoodsResponse, request, calculationDiscountResultDto, couponPromotionDto, activityQueryDto, isApportion);
// 限时特价 // 限时特价
timeSalePromotionService.updateDiscountApportion(shoppingCartGoodsResponse, request, calculationDiscountResultDto, couponPromotionDto, activityQueryDto, isApportion); timeSalePromotionService.updateDiscountApportion(shoppingCartGoodsResponse, request, calculationDiscountResultDto, couponPromotionDto, activityQueryDto, isApportion);
logger.info("限时特价shoppingCartGoodsResponse:{}",shoppingCartGoodsResponse);
// 积分抵扣 // 积分抵扣
customerScoreService.updateDiscountApportion(shoppingCartGoodsResponse, request, calculationDiscountResultDto, couponPromotionDto, activityQueryDto, isApportion); customerScoreService.updateDiscountApportion(shoppingCartGoodsResponse, request, calculationDiscountResultDto, couponPromotionDto, activityQueryDto, isApportion);
return shoppingCartGoodsResponse; return shoppingCartGoodsResponse;
......
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