Commit 883cddac by caosy

抵扣劵领取日起

parent 8f31f60e
package com.ctrip.fun.common.vo.basic;
import java.util.HashMap;
import java.util.Map;
public enum TimeTypeEnum {
TIME_SLOT(1, "时间段"),
RECEIVE_TIME(2, "领取日起");
private int value;
private String msg;
private static Map<Integer, TimeTypeEnum> map = new HashMap<Integer, TimeTypeEnum>();
static {
for (TimeTypeEnum it : TimeTypeEnum.values()) {
map.put(it.value, it);
}
}
TimeTypeEnum(int value, String msg) {
this.value = value;
this.msg = msg;
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public static TimeTypeEnum valueOf(int value) {
return map.get(value);
}
}
...@@ -201,8 +201,26 @@ public class VoucherRuleBean implements java.io.Serializable { ...@@ -201,8 +201,26 @@ public class VoucherRuleBean implements java.io.Serializable {
private String percent; private String percent;
private int canFreeReceive;//判断券是可以免费领取 private int canFreeReceive;//判断券是可以免费领取
/**
* 发放时间类型
* 1 时间段 2领取日起
*/
private int timeType;
/**
* 领取日时间
*/
private int timeDay;
/**
* 发放时间类型msg
*/
private String timeTypeMsg;
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public AbstractRuleConditionBean getRuleCondition() { public AbstractRuleConditionBean getRuleCondition() {
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
...@@ -527,6 +545,27 @@ public class VoucherRuleBean implements java.io.Serializable { ...@@ -527,6 +545,27 @@ public class VoucherRuleBean implements java.io.Serializable {
this.canFreeReceive = canFreeReceive; this.canFreeReceive = canFreeReceive;
} }
public int getTimeType() {
return timeType;
}
public void setTimeType(int timeType) {
this.timeType = timeType;
}
public int getTimeDay() {
return timeDay;
}
public void setTimeDay(int timeDay) {
this.timeDay = timeDay;
}
public String getTimeTypeMsg() {
return timeTypeMsg;
}
public void setTimeTypeMsg(String timeTypeMsg) {
this.timeTypeMsg = timeTypeMsg;
}
} }
...@@ -99,6 +99,12 @@ public class VoucherRuleQuery extends AbstractPagedQuery<VoucherRuleQuery> { ...@@ -99,6 +99,12 @@ public class VoucherRuleQuery extends AbstractPagedQuery<VoucherRuleQuery> {
private Date endUseDateEnd; private Date endUseDateEnd;
/**
* 发放时间类型
* 1 时间段 2领取日起
*/
private int timeType;
public Integer getId() { public Integer getId() {
return id; return id;
} }
...@@ -270,4 +276,12 @@ public class VoucherRuleQuery extends AbstractPagedQuery<VoucherRuleQuery> { ...@@ -270,4 +276,12 @@ public class VoucherRuleQuery extends AbstractPagedQuery<VoucherRuleQuery> {
public void setEndUseDateEnd(Date endUseDateEnd) { public void setEndUseDateEnd(Date endUseDateEnd) {
this.endUseDateEnd = endUseDateEnd; this.endUseDateEnd = endUseDateEnd;
} }
public int getTimeType() {
return timeType;
}
public void setTimeType(int timeType) {
this.timeType = timeType;
}
} }
...@@ -63,6 +63,17 @@ public class VoucherRuleVO implements Serializable { ...@@ -63,6 +63,17 @@ public class VoucherRuleVO implements Serializable {
private Date expireDate; private Date expireDate;
private int validFlag; private int validFlag;
/**
* 发放时间类型
* 1 时间段 2领取日起
*/
private int timeType;
/**
* 领取日时间
*/
private int timeDay;
/** /**
* @return the id * @return the id
*/ */
...@@ -226,5 +237,21 @@ public class VoucherRuleVO implements Serializable { ...@@ -226,5 +237,21 @@ public class VoucherRuleVO implements Serializable {
public void setValidFlag(int validFlag) { public void setValidFlag(int validFlag) {
this.validFlag = validFlag; this.validFlag = validFlag;
} }
public int getTimeType() {
return timeType;
}
public void setTimeType(int timeType) {
this.timeType = timeType;
}
public int getTimeDay() {
return timeDay;
}
public void setTimeDay(int timeDay) {
this.timeDay = timeDay;
}
} }
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