Commit 1f923ff3 by chongli

增加onlyMe字段

parent 4bbba582
......@@ -18,6 +18,7 @@ public abstract class AbstractRuleConditionBean<T extends AbstractRuleConditionB
protected String resourceIds; // 资源ID
protected Date productStartDate; // 产品或资源ID的开始时间
protected Date productEndDate;// 产品或资源的结束时间
protected Integer onlyMe; // onlyMe:0/1 是否只能本人使用
public abstract boolean isEnableUse(T t);
......@@ -63,4 +64,12 @@ public abstract class AbstractRuleConditionBean<T extends AbstractRuleConditionB
this.productEndDate = productEndDate;
}
public Integer getOnlyMe() {
return onlyMe;
}
public void setOnlyMe(Integer onlyMe) {
this.onlyMe = onlyMe;
}
}
......@@ -14,6 +14,7 @@ public class MultipleCourseConditionBean {
protected Integer type; // 类型
protected Date productStartDate; // 产品或资源ID的开始时间
protected Date productEndDate;// 产品或资源的结束时间
protected Integer onlyMe; // onlyMe:0/1 是否只能本人使用
/**
......@@ -135,6 +136,14 @@ public class MultipleCourseConditionBean {
public void setConditionList(List<ConditionMultipleElement> conditionList) {
this.conditionList = conditionList;
}
public Integer getOnlyMe() {
return onlyMe;
}
public void setOnlyMe(Integer onlyMe) {
this.onlyMe = onlyMe;
}
......
......@@ -43,6 +43,7 @@ public class VoucherItemDTO implements Serializable {
private int multiple;
private String multiAmount;
private Integer onlyMe;//是否本人使用1是本人使用;0是非本人使用
public void doExecuteNullField() {
if (description == null) {
......@@ -259,4 +260,14 @@ public class VoucherItemDTO implements Serializable {
this.multiAmount = multiAmount;
}
public Integer getOnlyMe() {
return onlyMe;
}
public void setOnlyMe(Integer onlyMe) {
this.onlyMe = onlyMe;
}
}
......@@ -151,6 +151,11 @@ public class VoucherRuleBean implements java.io.Serializable {
* 发放用户类型Msg
*/
private String sendToUserValueMsg;
/**
* 是否仅限本人使用
*/
private int onlyMe;//仅限本人使用:1是;0否
@SuppressWarnings("rawtypes")
public AbstractRuleConditionBean getRuleCondition() {
......@@ -389,4 +394,12 @@ public class VoucherRuleBean implements java.io.Serializable {
this.multiple = multiple;
}
public int getOnlyMe() {
return onlyMe;
}
public void setOnlyMe(int onlyMe) {
this.onlyMe = onlyMe;
}
}
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