Commit 8f402ca8 by ping.wu

算价接口增加spuId字段,促销需要

parent 049338ed
......@@ -15,6 +15,9 @@ public class CalculationDiscountGoodsDto {
@NotNull(message = "不可为空")
private String goodsId;
private String spuId;
/**
* 商品数量
*/
......
......@@ -870,6 +870,7 @@ public class SellCouponOrderServiceImpl {
List<CalculationDiscountGoodsDto> discountGoodsDtoList = new ArrayList<>();
CalculationDiscountGoodsDto discountGoodsDto = new CalculationDiscountGoodsDto();
discountGoodsDto.setGoodsId(products.getPid());
discountGoodsDto.setSpuId(products.getPid());
discountGoodsDto.setGoodsQuantity(1);
discountGoodsDto.setOriginalPrice(products.getFinalPrice().intValue());
discountGoodsDtoList.add(discountGoodsDto);
......
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