fix:商城系统->营销中心->优惠活动->限时在折扣,折扣百分比按正常折扣(比如说90%)填写时,后端报错“折扣百分比需要大于等于 1,小于等于 99”
parent
bcc713f4ae
commit
e455e2efff
|
@ -67,7 +67,7 @@ public class DiscountActivityBaseVO {
|
|||
@JsonIgnore
|
||||
public boolean isDiscountPercentValid() {
|
||||
return ObjectUtil.notEqual(discountType, PromotionDiscountTypeEnum.PERCENT.getType())
|
||||
|| (discountPercent != null && discountPercent >= 1 && discountPercent<= 99);
|
||||
|| (discountPercent != null && discountPercent / 100 >= 1 && discountPercent / 100 <= 99);
|
||||
}
|
||||
|
||||
@AssertTrue(message = "优惠金额不能为空")
|
||||
|
|
Loading…
Reference in New Issue