mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-01 02:38:43 +08:00 
			
		
		
		
	【代码优化】商城:优惠劵的描述字段新增
This commit is contained in:
		| @@ -33,6 +33,9 @@ public class CouponTemplateBaseVO { | ||||
|     @NotNull(message = "优惠劵名不能为空") | ||||
|     private String name; | ||||
|  | ||||
|     @Schema(description = "优惠券说明", example = "优惠券使用说明") | ||||
|     private String description; | ||||
|  | ||||
|     @Schema(description = "发行总量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") // -1 - 则表示不限制发放数量 | ||||
|     @NotNull(message = "发行总量不能为空") | ||||
|     private Integer totalCount; | ||||
| @@ -95,9 +98,6 @@ public class CouponTemplateBaseVO { | ||||
|     @Schema(description = "折扣上限", example = "100") // 单位:分,仅在 discountType 为 PERCENT 使用 | ||||
|     private Integer discountLimitPrice; | ||||
|  | ||||
|     @Schema(description = "优惠券说明", example = "优惠券使用说明") // 单位:分,仅在 discountType 为 PERCENT 使用 | ||||
|     private String description; | ||||
|  | ||||
|     @AssertTrue(message = "商品范围编号的数组不能为空") | ||||
|     @JsonIgnore | ||||
|     public boolean isProductScopeValuesValid() { | ||||
|   | ||||
| @@ -1,8 +1,5 @@ | ||||
| package cn.iocoder.yudao.module.promotion.controller.app.coupon.vo.template; | ||||
|  | ||||
| import cn.iocoder.yudao.framework.mybatis.core.type.LongListTypeHandler; | ||||
| import cn.iocoder.yudao.module.promotion.enums.common.PromotionProductScopeEnum; | ||||
| import com.baomidou.mybatisplus.annotation.TableField; | ||||
| import io.swagger.v3.oas.annotations.media.Schema; | ||||
| import lombok.Data; | ||||
|  | ||||
| @@ -20,6 +17,9 @@ public class AppCouponTemplateRespVO { | ||||
|     @Schema(description = "优惠劵名", requiredMode = Schema.RequiredMode.REQUIRED, example = "春节送送送") | ||||
|     private String name; | ||||
|  | ||||
|     @Schema(description = "优惠券说明", example = "优惠券使用说明") | ||||
|     private String description; | ||||
|  | ||||
|     @Schema(description = "每人限领个数", requiredMode = Schema.RequiredMode.REQUIRED, example = "66") // -1 - 则表示不限制 | ||||
|     private Integer takeLimitCount; | ||||
|  | ||||
| @@ -67,7 +67,4 @@ public class AppCouponTemplateRespVO { | ||||
|     @Schema(description = "是否可以领取", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") | ||||
|     private Boolean canTake; | ||||
|  | ||||
|     @Schema(description = "优惠券说明", example = "优惠券使用说明") // 单位:分,仅在 discountType 为 PERCENT 使用 | ||||
|     private String description; | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -11,7 +11,6 @@ import com.baomidou.mybatisplus.annotation.KeySequence; | ||||
| import com.baomidou.mybatisplus.annotation.TableField; | ||||
| import com.baomidou.mybatisplus.annotation.TableId; | ||||
| import com.baomidou.mybatisplus.annotation.TableName; | ||||
| import io.swagger.v3.oas.annotations.media.Schema; | ||||
| import lombok.Data; | ||||
| import lombok.EqualsAndHashCode; | ||||
|  | ||||
| @@ -41,6 +40,10 @@ public class CouponTemplateDO extends BaseDO { | ||||
|      * 优惠劵名 | ||||
|      */ | ||||
|     private String name; | ||||
|     /** | ||||
|      * 优惠券说明 | ||||
|      */ | ||||
|     private String description; | ||||
|     /** | ||||
|      * 状态 | ||||
|      * | ||||
| @@ -159,10 +162,9 @@ public class CouponTemplateDO extends BaseDO { | ||||
|      * 使用优惠券的次数 | ||||
|      */ | ||||
|     private Integer useCount; | ||||
|  | ||||
|     // ========== 统计信息 END ========== | ||||
|  | ||||
|     // TODO 芋艿:领取开始时间、领取结束时间 | ||||
|  | ||||
|     @Schema(description = "优惠券说明", example = "优惠券使用说明") // 单位:分,仅在 discountType 为 PERCENT 使用 | ||||
|     private String description; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV