后端:和老田沟通了下,修改了优惠码的存储方式

master
YunaiV 7 years ago
parent a6c3bf440f
commit ed8c6b9b64

@ -0,0 +1,90 @@
package cn.iocoder.mall.promotion.biz.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
import java.util.Date;
/**
*
*/
public class CouponCodeDO extends BaseDO {
/**
*
*/
private Integer id;
/**
* {@link CouponTemplateDO} id
*/
private Integer templateId;
/**
*
*/
private Integer code;
/**
*
*/
private Date takeTime;
/**
*
*/
private Integer userId;
/**
*
*/
private Integer couponId;
public Integer getId() {
return id;
}
public CouponCodeDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getTemplateId() {
return templateId;
}
public CouponCodeDO setTemplateId(Integer templateId) {
this.templateId = templateId;
return this;
}
public Integer getCode() {
return code;
}
public CouponCodeDO setCode(Integer code) {
this.code = code;
return this;
}
public Date getTakeTime() {
return takeTime;
}
public CouponCodeDO setTakeTime(Date takeTime) {
this.takeTime = takeTime;
return this;
}
public Integer getUserId() {
return userId;
}
public CouponCodeDO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public Integer getCouponId() {
return couponId;
}
public CouponCodeDO setCouponId(Integer couponId) {
this.couponId = couponId;
return this;
}
}

@ -11,16 +11,9 @@ public class CouponDO extends BaseDO {
// ========== 基本信息 BEGIN ========== // ========== 基本信息 BEGIN ==========
/** /**
* *
*/ */
private Integer id; private Integer id;
/**
*
*
* 1-
* 2-
*/
private Integer type;
/** /**
* {@link CouponTemplateDO} id * {@link CouponTemplateDO} id
*/ */
@ -46,17 +39,9 @@ public class CouponDO extends BaseDO {
// ========== 领取情况 BEGIN ========== // ========== 领取情况 BEGIN ==========
/** /**
* *
*/
private Boolean taked;
/**
*
*/ */
private Integer userId; private Integer userId;
/**
*
*/
private Date takeTime;
/** /**
* *
* *

@ -31,6 +31,15 @@ public class CouponTemplateDO extends BaseDO {
* 2- * 2-
*/ */
private Integer type; private Integer type;
/**
*
*
* 1-UNIQUE
* 2-GENERAL
*
* @see CouponCodeDO
*/
private Integer codeType;
/** /**
* *
* *
@ -56,26 +65,16 @@ public class CouponTemplateDO extends BaseDO {
* *
*/ */
private Date deleteTime; private Date deleteTime;
// ========== 基本信息 END ==========
// ========== 码信息 BEGIN ==========
/** /**
* *
*
* 1-UNIQUE
* 2-GENERAL
*
*
*/ */
private Integer codeType; private Date beginTime;
/** /**
* *
*
*
*/ */
private String code; private Date endTime;
// ========== 码信息 END ==========
// ========== 基本信息 END ==========
// ========== 领取规则 BEGIN ========== // ========== 领取规则 BEGIN ==========
// /** // /**
@ -119,12 +118,15 @@ public class CouponTemplateDO extends BaseDO {
/** /**
* *
* *
* 1-ALL * 10-ALL
* 2-PART * 20-PART
* 21-PART
* 30-PART
* 31-PART
*/ */
private Integer rangeType; private Integer rangeType;
/** /**
* 使 * / 使
*/ */
private String rangeValues; private String rangeValues;
/** /**

Loading…
Cancel
Save