mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-01 02:38:43 +08:00 
			
		
		
		
	!1056 【功能优化】商城优惠券模板添加描述字段
Merge pull request !1056 from 卢越/master-jdk17
This commit is contained in:
		| @@ -95,6 +95,9 @@ 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() { | ||||
|   | ||||
| @@ -67,4 +67,7 @@ public class AppCouponTemplateRespVO { | ||||
|     @Schema(description = "是否可以领取", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") | ||||
|     private Boolean canTake; | ||||
|  | ||||
|     @Schema(description = "优惠券说明", example = "优惠券使用说明") // 单位:分,仅在 discountType 为 PERCENT 使用 | ||||
|     private String description; | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -11,6 +11,7 @@ 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; | ||||
|  | ||||
| @@ -162,5 +163,6 @@ public class CouponTemplateDO extends BaseDO { | ||||
|  | ||||
|     // TODO 芋艿:领取开始时间、领取结束时间 | ||||
|  | ||||
|     // TODO 芋艿:要不要加描述 | ||||
|     @Schema(description = "优惠券说明", example = "优惠券使用说明") // 单位:分,仅在 discountType 为 PERCENT 使用 | ||||
|     private String description; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 芋道源码
					芋道源码