Commit 9ef80bef by zhiheng.zhang

购物车加车算价

parent 10b902d5
......@@ -273,38 +273,37 @@ public class ShoppingCartMallServiceImpl implements ShoppingCartNewService {
Long deliveryAmount = 0L;
ActivityQueryDto activityQueryDto = activityAdapter.getActivityQueryDto(partnerId, storeId, userId, appId, updateShoppingCartGoodsQtyRequestVo.getOrderType());
if (grayPush(partnerId,storeId,"2")) {
CalculationSharingDiscountResponseDto.CalculationDiscountResult discountResult = null;
discountResult = sharingDiscountService.getCalculationSharingDiscountResult(menuType
, partnerId
, storeId
, userId
, appId
, orderType
, assortmentCustomerInfoVo.isMemberPaid()
, cartGoodsList
, new ArrayList() //券
, null //加价购商品
, deliveryAmount
, null);
sharingCartService.distribute(discountResult
, cartGoodsList
, shoppingCartGoodsResponseVo
, null //入参
, userLoginInfoDto
, null //券信息
, activityQueryDto
, menuType
, deliveryAmount
, ShoppingCartConstant.ADD_AND_UPDATE
, partnerId
, null
, userId
, storeId);
buildShoppingCartGoodsResponse(shoppingCartGoodsResponseVo,discountResult,null,partnerId);
}
CalculationSharingDiscountResponseDto.CalculationDiscountResult discountResult = null;
discountResult = sharingDiscountService.getCalculationSharingDiscountResult(menuType
, partnerId
, storeId
, userId
, appId
, orderType
, assortmentCustomerInfoVo.isMemberPaid()
, cartGoodsList
, new ArrayList() //券
, null //加价购商品
, deliveryAmount
, null);
sharingCartService.distribute(discountResult
, cartGoodsList
, shoppingCartGoodsResponseVo
, null //入参
, userLoginInfoDto
, null //券信息
, activityQueryDto
, menuType
, deliveryAmount
, ShoppingCartConstant.ADD_AND_UPDATE
, partnerId
, null
, userId
, storeId);
buildShoppingCartGoodsResponse(shoppingCartGoodsResponseVo,discountResult,null,partnerId);
return ResponseUtil.success(shoppingCartGoodsResponseVo);
}
......
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