Commit fdb37cd6 by 周晓航

打个日志

parent 241c4a51
...@@ -10,6 +10,8 @@ import cn.freemud.entities.vo.ShoppingCartGoodsResponseVo; ...@@ -10,6 +10,8 @@ import cn.freemud.entities.vo.ShoppingCartGoodsResponseVo;
import cn.freemud.entities.vo.ShoppingCartInfoRequestVo; import cn.freemud.entities.vo.ShoppingCartInfoRequestVo;
import cn.freemud.enums.OrderChannelType; import cn.freemud.enums.OrderChannelType;
import cn.freemud.service.impl.calculate.promotion.*; import cn.freemud.service.impl.calculate.promotion.*;
import com.alibaba.fastjson.JSON;
import com.freemud.application.sdk.api.ordercenter.util.LogUtil;
import com.freemud.sdk.api.assortment.shoppingcart.enums.BusinessTypeEnum; import com.freemud.sdk.api.assortment.shoppingcart.enums.BusinessTypeEnum;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -52,6 +54,8 @@ public class CalculationSharingCartService { ...@@ -52,6 +54,8 @@ public class CalculationSharingCartService {
@Autowired @Autowired
private BuyOneGiveOneSendService buyOneGiveOneSendService; private BuyOneGiveOneSendService buyOneGiveOneSendService;
@Autowired
private LogUtil logUtil;
/** /**
* 响应购物车价格计算依赖促销 * 响应购物车价格计算依赖促销
*/ */
...@@ -82,6 +86,11 @@ public class CalculationSharingCartService { ...@@ -82,6 +86,11 @@ public class CalculationSharingCartService {
if (BusinessTypeEnum.SAAS_MALL.getCode().equals(menuType) && null != shoppingCartInfoRequestVo && OrderChannelType.SAASMALL.getCode().equalsIgnoreCase(shoppingCartInfoRequestVo.getChannelType())) { if (BusinessTypeEnum.SAAS_MALL.getCode().equals(menuType) && null != shoppingCartInfoRequestVo && OrderChannelType.SAASMALL.getCode().equalsIgnoreCase(shoppingCartInfoRequestVo.getChannelType())) {
deliverySharingService.mallDeliveryResponse(shoppingCartGoodsResponseVo, deliveryAmount,discountResult); deliverySharingService.mallDeliveryResponse(shoppingCartGoodsResponseVo, deliveryAmount,discountResult);
} }
logUtil.info("fisherman 1 ", JSON.toJSONString(discountResult));
logUtil.info("fisherman 2 ", JSON.toJSONString(cartGoodsList));
logUtil.info("fisherman 3 ", JSON.toJSONString(shoppingCartGoodsResponseVo));
logUtil.info("fisherman 4 ", JSON.toJSONString(couponPromotionVO));
logUtil.info("fisherman 5 ", JSON.toJSONString(shoppingCartInfoRequestVo));
/** /**
* 可用券及券折扣 * 可用券及券折扣
*/ */
......
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