Commit cd0ace1a by chongli

一单多人可使用多个抵用券功能

parent c19269b7
...@@ -48,6 +48,12 @@ public class VoucherItemDTO implements Serializable { ...@@ -48,6 +48,12 @@ public class VoucherItemDTO implements Serializable {
private Integer userLimit;//领券人限制 private Integer userLimit;//领券人限制
private String alreadyShared;//是否被抢走 private String alreadyShared;//是否被抢走
private String qiangQuanUid;//抢券人UID private String qiangQuanUid;//抢券人UID
//是否可以和其他种类券一起用
private int exclusive;//0否 1是
//一单可以使用的张数
private int canUseAmount;//限制同类型的券一单可以使用几张
//每满多少减多少 列:如值为100,则 200<=订单金额<300可以使用两张
private BigDecimal fullCutAmount;
public void doExecuteNullField() { public void doExecuteNullField() {
if (description == null) { if (description == null) {
...@@ -313,6 +319,36 @@ public class VoucherItemDTO implements Serializable { ...@@ -313,6 +319,36 @@ public class VoucherItemDTO implements Serializable {
public void setQiangQuanUid(String qiangQuanUid) { public void setQiangQuanUid(String qiangQuanUid) {
this.qiangQuanUid = qiangQuanUid; this.qiangQuanUid = qiangQuanUid;
} }
public int getExclusive() {
return exclusive;
}
public void setExclusive(int exclusive) {
this.exclusive = exclusive;
}
public int getCanUseAmount() {
return canUseAmount;
}
public void setCanUseAmount(int canUseAmount) {
this.canUseAmount = canUseAmount;
}
public BigDecimal getFullCutAmount() {
return fullCutAmount;
}
public void setFullCutAmount(BigDecimal fullCutAmount) {
this.fullCutAmount = fullCutAmount;
}
} }
...@@ -166,6 +166,21 @@ public class VoucherRuleBean implements java.io.Serializable { ...@@ -166,6 +166,21 @@ public class VoucherRuleBean implements java.io.Serializable {
* 分享领取限制 * 分享领取限制
*/ */
private int userLimit;//分享领取限制0:不限 2社员 private int userLimit;//分享领取限制0:不限 2社员
/**
* 是否可以和其他种类券一起用,0否 1是
*/
private int exclusive;
/**
* 一单可以使用的张数
*/
private int canUseAmount;
/**
* 每满多少减多少 列:如值为100,则 200<=订单金额<300可以使用两张
*/
private BigDecimal fullCutAmount;
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public AbstractRuleConditionBean getRuleCondition() { public AbstractRuleConditionBean getRuleCondition() {
...@@ -428,4 +443,28 @@ public class VoucherRuleBean implements java.io.Serializable { ...@@ -428,4 +443,28 @@ public class VoucherRuleBean implements java.io.Serializable {
this.userLimit = userLimit; this.userLimit = userLimit;
} }
public int getExclusive() {
return exclusive;
}
public void setExclusive(int exclusive) {
this.exclusive = exclusive;
}
public int getCanUseAmount() {
return canUseAmount;
}
public void setCanUseAmount(int canUseAmount) {
this.canUseAmount = canUseAmount;
}
public BigDecimal getFullCutAmount() {
return fullCutAmount;
}
public void setFullCutAmount(BigDecimal fullCutAmount) {
this.fullCutAmount = fullCutAmount;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment