Commit 9a7eabea by xiaoer.li

Add:增加商品渠道给促销

parent 1ee962b0
......@@ -17,6 +17,10 @@ public class ActivityCalculationDiscountRequestDto {
*/
private String channel;
/**
* 渠道
*/
private String productChannel;
/**
* 绑定的小程序id
*/
private String appId;
......
......@@ -1358,6 +1358,12 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
if (!Objects.isNull(activityChannelEnum)) {
activityCalculationDiscountRequestDto.setChannel(activityChannelEnum.getCode());
}
if (Objects.equals(orderType, CreateOrderType.COLLECT_GOODS.getCode())) {
activityCalculationDiscountRequestDto.setProductChannel(BusinessTypeEnum.SAAS_PICKUP.getCode());
} else if (Objects.equals(orderType, CreateOrderType.TAKE_OUT.getCode())) {
activityCalculationDiscountRequestDto.setProductChannel(BusinessTypeEnum.SAAS_DELIVERY.getCode());
}
return activityCalculationDiscountRequestDto;
}
......
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