后端:商品价格计算,接入促销活动

H5 前端:购物车接入促销
This commit is contained in:
YunaiV
2019-04-17 20:34:49 +08:00
parent 355c53df66
commit d672976b84
13 changed files with 360 additions and 122 deletions

View File

@@ -128,6 +128,10 @@ public class PromotionActivityBO implements Serializable {
* 指定可用商品列表
*/
private List<Integer> rangeValues;
/**
* 是否循环
*/
private Boolean cycled;
/**
* 优惠数组
*/

View File

@@ -0,0 +1,33 @@
package cn.iocoder.mall.promotion.api.constant;
/**
* 匹配类型枚举
*/
public enum MeetTypeEnum {
PRICE(1, "金额"),
QUANTITY(2, "数量"),;
/**
* 值
*/
private final Integer value;
/**
* 名字
*/
private final String name;
MeetTypeEnum(Integer value, String name) {
this.value = value;
this.name = name;
}
public Integer getValue() {
return value;
}
public String getName() {
return name;
}
}