diff --git a/framework/src/main/java/cn/lili/modules/order/order/entity/dto/DiscountPriceItem.java b/framework/src/main/java/cn/lili/modules/order/order/entity/dto/DiscountPriceItem.java new file mode 100644 index 00000000..912d7a2c --- /dev/null +++ b/framework/src/main/java/cn/lili/modules/order/order/entity/dto/DiscountPriceItem.java @@ -0,0 +1,38 @@ +package cn.lili.modules.order.order.entity.dto; + +import cn.lili.common.enums.PromotionTypeEnum; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 优惠信息详情 + * + * @author liushuai(liushuai711 @ gmail.com) + * @version v4.0 + * @Description: + * @since 2022/12/23 14:52 + */ +@Data +public class DiscountPriceItem { + + + @ApiModelProperty(value = "促销类型") + private PromotionTypeEnum promotionTypeEnum; + + @ApiModelProperty(value = "促销id") + private String promotionId; + + @ApiModelProperty(value = "减免金额") + private Double discountPrice; + + @ApiModelProperty(value = "涉及 商品ID") + private String goodsId; + + @ApiModelProperty(value = "涉及 SKU ID") + private String skuId; + + + public String getPromotionName() { + return promotionTypeEnum.description(); + } +} diff --git a/framework/src/main/java/cn/lili/modules/order/order/entity/dto/PriceDetailDTO.java b/framework/src/main/java/cn/lili/modules/order/order/entity/dto/PriceDetailDTO.java index 029ead8f..22361ecd 100644 --- a/framework/src/main/java/cn/lili/modules/order/order/entity/dto/PriceDetailDTO.java +++ b/framework/src/main/java/cn/lili/modules/order/order/entity/dto/PriceDetailDTO.java @@ -42,7 +42,7 @@ public class PriceDetailDTO implements Serializable { @ApiModelProperty(value = "优惠金额") private Double discountPrice; - @ApiModelProperty(value = "优惠金额") + @ApiModelProperty(value = "优惠详情") private String discountPriceDetail; @ApiModelProperty(value = "优惠券金额")