Commit 1b7bd87e by 章家宝

feat:优惠券使用门槛做校验 0 - 999 9999

1 parent 07903efb
......@@ -35,6 +35,7 @@ public class CouponTemplateAddVO implements Serializable {
@Schema(description = "使用门槛(元,0 代表无门槛)", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "10000.00")
@DecimalMin(value = "0", message = "门槛必须>=0")
@DecimalMax(value = "9999999", message = "门槛必须<=9999999")
private BigDecimal thresholdAmount;
@Schema(description = "抵扣类型 (1:抵扣车款;2:抵扣佣金)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
......
......@@ -39,6 +39,7 @@ public class CouponTemplateUpdateVO implements Serializable {
@Schema(description = "使用门槛(元,0 代表无门槛)", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "10000.00")
@DecimalMin(value = "0", message = "门槛必须>=0")
@DecimalMax(value = "9999999", message = "门槛必须<=9999999")
private BigDecimal thresholdAmount;
@Schema(description = "抵扣类型 (1:抵扣车款;2:抵扣佣金)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!