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

pull/1/head
YunaiV 2019-03-31 23:38:05 +08:00
parent a6c3bf440f
commit ed8c6b9b64
3 changed files with 115 additions and 38 deletions

View File

@ -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;
}
}

View File

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

View File

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