Pre Merge pull request !148 from 卖瓜猹/fix_bug_branch

pull/148/MERGE
卖瓜猹 2024-10-27 07:55:18 +00:00 committed by Gitee
commit ebab005856
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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 = "优惠金额不能为空")