fix: 优惠券选择接口接收积分参数
This commit is contained in:
@@ -16,7 +16,9 @@ public class UseCouponDTO {
|
||||
private Integer orderId;
|
||||
private Integer userId;
|
||||
@Valid
|
||||
@NotEmpty(message = "请选择优惠券信息")
|
||||
// @NotEmpty(message = "请选择优惠券信息")
|
||||
private List<UserCouponInfoDTO> userCouponInfos = new ArrayList<>();
|
||||
// 使用的积分抵扣数量
|
||||
private Integer pointsNum;
|
||||
|
||||
}
|
||||
|
||||
@@ -1603,6 +1603,7 @@ public class CartService {
|
||||
orderDTO.setUserId(Integer.valueOf(orderInfo.getUserId()));
|
||||
orderDTO.setUserCouponInfos(useCouponDTO.getUserCouponInfos());
|
||||
orderDTO.setOnlyChangeCoupon(true);
|
||||
orderDTO.setPointsNum(useCouponDTO.getPointsNum());
|
||||
return createOrder(orderDTO);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user