【代码优化】商城: 满减送活动

This commit is contained in:
puhui999
2024-09-02 17:20:41 +08:00
parent 1bf7fd39fc
commit 79cb96702a
10 changed files with 26 additions and 20 deletions

View File

@@ -80,7 +80,7 @@ public class RewardActivityBaseVO {
private Integer point;
@Schema(description = "赠送的优惠劵编号的数组")
private Map<Long, Integer> giveCoupons;
private Map<Long, Integer> giveCouponTemplateCounts;
@AssertTrue(message = "赠送的积分不能小于 0")
@JsonIgnore

View File

@@ -107,9 +107,12 @@ public class RewardActivityDO extends BaseDO {
/**
* 赠送的优惠劵
*
* key: 优惠劵模版编号value对应的数量
* key: 优惠劵模版编号
* value对应的优惠券数量
*
* 目的:用于订单支付后赠送优惠券
*/
private Map<Long, Integer> giveCoupons;
private Map<Long, Integer> giveCouponTemplateCounts;
}