| | |
| | | package com.yeshi.fanli.entity.system;
|
| | |
|
| | | import java.io.Serializable;
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Date;
|
| | |
|
| | | import org.yeshi.utils.mybatis.Column;
|
| | | import org.yeshi.utils.mybatis.Table;
|
| | |
|
| | | /**
|
| | | * 本地自定义券信息
|
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Table("yeshi_ec_system_coupon")
|
| | | public class SystemCoupon implements Serializable{
|
| | |
|
| | | /**
|
| | | * |
| | | */
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | // 券类型
|
| | | public enum CouponTypeEnum {
|
| | | freeCoupon("自购免单券"), welfareFreeCoupon("福利免单"), rebatePercentCoupon("返利比提成奖励券"),
|
| | | freeCouponBuy("自购免单券"),freeCouponGive("赠送免单券");
|
| | | private final String desc;
|
| | |
|
| | | private CouponTypeEnum(String desc) {
|
| | | this.desc = desc;
|
| | | }
|
| | |
|
| | | public String getDesc() {
|
| | | return desc;
|
| | | }
|
| | | }
|
| | |
|
| | | @Column(name = "sc_id")
|
| | | private Long id;
|
| | |
|
| | | // 用户id
|
| | | @Column(name = "sc_name")
|
| | | private String name;
|
| | |
|
| | | // 图片-有效
|
| | | @Column(name = "sc_picture")
|
| | | private String picture;
|
| | | |
| | | // 图片-失效
|
| | | @Column(name = "sc_picture_invalid")
|
| | | private String pictureInvalid;
|
| | | |
| | | // 简介作用:任性0元购、再返10%
|
| | | @Column(name = "sc_effect")
|
| | | private String effect;
|
| | | |
| | | // 券类型
|
| | | @Column(name = "sc_type")
|
| | | private CouponTypeEnum type;
|
| | |
|
| | | // 券面返利比例值
|
| | | @Column(name = "sc_percent")
|
| | | private BigDecimal percent;
|
| | |
|
| | | // 券面值
|
| | | @Column(name = "sc_amount")
|
| | | private String amount;
|
| | |
|
| | | // 有效期天-剩余激活时间
|
| | | @Column(name = "sc_activate_day")
|
| | | private Integer activateDay;
|
| | |
|
| | | // 有效期天数
|
| | | @Column(name = "sc_expiry_day")
|
| | | private Integer expiryDay;
|
| | | |
| | | // 规则
|
| | | @Column(name = "sc_rule")
|
| | | private String rule;
|
| | |
|
| | | // 规则
|
| | | @Column(name = "sc_rule_link")
|
| | | private String ruleLink;
|
| | |
|
| | | |
| | | // 备注说明
|
| | | @Column(name = "sc_remark")
|
| | | private String remark;
|
| | |
|
| | | // 状态 0未启用 1已启用
|
| | | @Column(name = "sc_state")
|
| | | private Integer state;
|
| | |
|
| | | // 创建时间
|
| | | @Column(name = "sc_create_time")
|
| | | private Date createTime;
|
| | |
|
| | | // 更新时间
|
| | | @Column(name = "sc_update_time")
|
| | | private Date updateTime;
|
| | | |
| | | public SystemCoupon() {}
|
| | | |
| | | public SystemCoupon(Long id) {
|
| | | this.id = id;
|
| | | }
|
| | |
|
| | | |
| | | public Long getId() {
|
| | | return id;
|
| | | }
|
| | |
|
| | | public void setId(Long id) {
|
| | | this.id = id;
|
| | | }
|
| | |
|
| | | public String getName() {
|
| | | return name;
|
| | | }
|
| | |
|
| | | public void setName(String name) {
|
| | | this.name = name;
|
| | | }
|
| | |
|
| | | public String getPicture() {
|
| | | return picture;
|
| | | }
|
| | |
|
| | | public void setPicture(String picture) {
|
| | | this.picture = picture;
|
| | | }
|
| | |
|
| | | public CouponTypeEnum getType() {
|
| | | return type;
|
| | | }
|
| | |
|
| | | public void setType(CouponTypeEnum type) {
|
| | | this.type = type;
|
| | | }
|
| | |
|
| | | public BigDecimal getPercent() {
|
| | | return percent;
|
| | | }
|
| | |
|
| | | public void setPercent(BigDecimal percent) {
|
| | | this.percent = percent;
|
| | | }
|
| | |
|
| | | public String getAmount() {
|
| | | return amount;
|
| | | }
|
| | |
|
| | | public void setAmount(String amount) {
|
| | | this.amount = amount;
|
| | | }
|
| | |
|
| | | public Integer getExpiryDay() {
|
| | | return expiryDay;
|
| | | }
|
| | |
|
| | | public void setExpiryDay(Integer expiryDay) {
|
| | | this.expiryDay = expiryDay;
|
| | | }
|
| | |
|
| | | public String getRule() {
|
| | | return rule;
|
| | | }
|
| | |
|
| | | public void setRule(String rule) {
|
| | | this.rule = rule;
|
| | | }
|
| | |
|
| | | public String getRemark() {
|
| | | return remark;
|
| | | }
|
| | |
|
| | | public void setRemark(String remark) {
|
| | | this.remark = remark;
|
| | | }
|
| | |
|
| | | public Integer getState() {
|
| | | return state;
|
| | | }
|
| | |
|
| | | public void setState(Integer state) {
|
| | | this.state = state;
|
| | | }
|
| | |
|
| | | public Date getCreateTime() {
|
| | | return createTime;
|
| | | }
|
| | |
|
| | | public void setCreateTime(Date createTime) {
|
| | | this.createTime = createTime;
|
| | | }
|
| | |
|
| | | public Date getUpdateTime() {
|
| | | return updateTime;
|
| | | }
|
| | |
|
| | | public void setUpdateTime(Date updateTime) {
|
| | | this.updateTime = updateTime;
|
| | | }
|
| | |
|
| | | public String getEffect() {
|
| | | return effect;
|
| | | }
|
| | |
|
| | | public void setEffect(String effect) {
|
| | | this.effect = effect;
|
| | | }
|
| | |
|
| | | public String getPictureInvalid() {
|
| | | return pictureInvalid;
|
| | | }
|
| | |
|
| | | public void setPictureInvalid(String pictureInvalid) {
|
| | | this.pictureInvalid = pictureInvalid;
|
| | | }
|
| | |
|
| | | public String getRuleLink() {
|
| | | return ruleLink;
|
| | | }
|
| | |
|
| | | public void setRuleLink(String ruleLink) {
|
| | | this.ruleLink = ruleLink;
|
| | | }
|
| | |
|
| | | public Integer getActivateDay() {
|
| | | return activateDay;
|
| | | }
|
| | |
|
| | | public void setActivateDay(Integer activateDay) {
|
| | | this.activateDay = activateDay;
|
| | | }
|
| | | }
|
| | | package com.yeshi.fanli.entity.system; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import org.yeshi.utils.generater.mybatis.Column; |
| | | import org.yeshi.utils.generater.mybatis.Table; |
| | | |
| | | /** |
| | | * 本地自定义券信息 |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | @Table("yeshi_ec_system_coupon") |
| | | public class SystemCoupon implements Serializable{ |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | // 券类型 |
| | | public enum CouponTypeEnum { |
| | | freeCoupon("自购免单券"), welfareFreeCoupon("福利免单"), rebatePercentCoupon("返利比提成奖励券"), |
| | | freeCouponBuy("自购免单券"),freeCouponGive("赠送免单券"); |
| | | private final String desc; |
| | | |
| | | private CouponTypeEnum(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | } |
| | | |
| | | @Column(name = "sc_id") |
| | | private Long id; |
| | | |
| | | // 用户id |
| | | @Column(name = "sc_name") |
| | | private String name; |
| | | |
| | | // 图片-有效 |
| | | @Column(name = "sc_picture") |
| | | private String picture; |
| | | |
| | | // 图片-失效 |
| | | @Column(name = "sc_picture_invalid") |
| | | private String pictureInvalid; |
| | | |
| | | // 简介作用:任性0元购、再返10% |
| | | @Column(name = "sc_effect") |
| | | private String effect; |
| | | |
| | | // 券类型 |
| | | @Column(name = "sc_type") |
| | | private CouponTypeEnum type; |
| | | |
| | | // 券面返利比例值 |
| | | @Column(name = "sc_percent") |
| | | private BigDecimal percent; |
| | | |
| | | // 券面值 |
| | | @Column(name = "sc_amount") |
| | | private String amount; |
| | | |
| | | // 有效期天-剩余激活时间 |
| | | @Column(name = "sc_activate_day") |
| | | private Integer activateDay; |
| | | |
| | | // 有效期天数 |
| | | @Column(name = "sc_expiry_day") |
| | | private Integer expiryDay; |
| | | |
| | | // 规则 |
| | | @Column(name = "sc_rule") |
| | | private String rule; |
| | | |
| | | // 规则 |
| | | @Column(name = "sc_rule_link") |
| | | private String ruleLink; |
| | | |
| | | |
| | | // 备注说明 |
| | | @Column(name = "sc_remark") |
| | | private String remark; |
| | | |
| | | // 状态 0未启用 1已启用 |
| | | @Column(name = "sc_state") |
| | | private Integer state; |
| | | |
| | | // 创建时间 |
| | | @Column(name = "sc_create_time") |
| | | private Date createTime; |
| | | |
| | | // 更新时间 |
| | | @Column(name = "sc_update_time") |
| | | private Date updateTime; |
| | | |
| | | public SystemCoupon() {} |
| | | |
| | | public SystemCoupon(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getPicture() { |
| | | return picture; |
| | | } |
| | | |
| | | public void setPicture(String picture) { |
| | | this.picture = picture; |
| | | } |
| | | |
| | | public CouponTypeEnum getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(CouponTypeEnum type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public BigDecimal getPercent() { |
| | | return percent; |
| | | } |
| | | |
| | | public void setPercent(BigDecimal percent) { |
| | | this.percent = percent; |
| | | } |
| | | |
| | | public String getAmount() { |
| | | return amount; |
| | | } |
| | | |
| | | public void setAmount(String amount) { |
| | | this.amount = amount; |
| | | } |
| | | |
| | | public Integer getExpiryDay() { |
| | | return expiryDay; |
| | | } |
| | | |
| | | public void setExpiryDay(Integer expiryDay) { |
| | | this.expiryDay = expiryDay; |
| | | } |
| | | |
| | | public String getRule() { |
| | | return rule; |
| | | } |
| | | |
| | | public void setRule(String rule) { |
| | | this.rule = rule; |
| | | } |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | public Integer getState() { |
| | | return state; |
| | | } |
| | | |
| | | public void setState(Integer state) { |
| | | this.state = state; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getEffect() { |
| | | return effect; |
| | | } |
| | | |
| | | public void setEffect(String effect) { |
| | | this.effect = effect; |
| | | } |
| | | |
| | | public String getPictureInvalid() { |
| | | return pictureInvalid; |
| | | } |
| | | |
| | | public void setPictureInvalid(String pictureInvalid) { |
| | | this.pictureInvalid = pictureInvalid; |
| | | } |
| | | |
| | | public String getRuleLink() { |
| | | return ruleLink; |
| | | } |
| | | |
| | | public void setRuleLink(String ruleLink) { |
| | | this.ruleLink = ruleLink; |
| | | } |
| | | |
| | | public Integer getActivateDay() { |
| | | return activateDay; |
| | | } |
| | | |
| | | public void setActivateDay(Integer activateDay) { |
| | | this.activateDay = activateDay; |
| | | } |
| | | } |