From cd17f3d755f98e4d1275f68a2a0c4d0cdcc17f75 Mon Sep 17 00:00:00 2001 From: Chopper711 Date: Fri, 23 Dec 2022 15:13:05 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=9E=84=E5=BB=BA=E4=BF=83=E9=94=80=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=A8=A1=E5=9E=8B'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order/entity/dto/DiscountPriceItem.java | 38 +++++++++++++++++++ .../order/entity/dto/PriceDetailDTO.java | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 framework/src/main/java/cn/lili/modules/order/order/entity/dto/DiscountPriceItem.java 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 = "优惠券金额")