package com.matrix.system.shopXcx.bean; 
 | 
  
 | 
import com.matrix.core.pojo.EntityDTO; 
 | 
import com.matrix.core.anotations.Extend; 
 | 
import com.matrix.core.tools.DateUtil; 
 | 
import org.springframework.format.annotation.DateTimeFormat; 
 | 
  
 | 
import java.math.BigDecimal; 
 | 
import java.util.Date; 
 | 
  
 | 
/** 
 | 
 * @description 优惠券 
 | 
 * @author jyy 
 | 
 * @date 2019-06-12 15:17 
 | 
 */ 
 | 
public class ShopCoupon  extends EntityDTO{ 
 | 
    @Extend 
 | 
    private static final long serialVersionUID = 1L; 
 | 
  
 | 
    /** 
 | 
     * 主键 
 | 
     */ 
 | 
    private Integer  id; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 优惠券名称 
 | 
     */ 
 | 
    private String  cName; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 抵消金额 
 | 
     */ 
 | 
    private BigDecimal offsetAmount; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 最低消费金额(满减) 
 | 
     */ 
 | 
    private BigDecimal  minAmount; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 开始时间 
 | 
     */ 
 | 
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm") 
 | 
    private Date beginTime; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 结束时间 
 | 
     */ 
 | 
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm") 
 | 
    private Date  endTime; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 最大发券数量 
 | 
     */ 
 | 
    private Integer  maxQuantity; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 领取限制(1=所有人,2=新人) 
 | 
     */ 
 | 
    private Integer  getLimit; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 已领取数量 
 | 
     */ 
 | 
    private Integer  quantityReceive; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 优惠券状态(1=未开始,2=进行中,3=已结束) 
 | 
     */ 
 | 
    private Integer  couponStatus; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 是否启用(1=是,2=否) 
 | 
     */ 
 | 
    private Integer  isOpen; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 是否所有产品可以(1=是,0=否) 
 | 
     */ 
 | 
    private Integer  isAll; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 使用产品ids 
 | 
     */ 
 | 
    private String  productIds; 
 | 
             
 | 
     
 | 
    /** 
 | 
     * 使用属性ids 
 | 
     */ 
 | 
    private String  attrIds; 
 | 
  
 | 
    /** 
 | 
     * 标签 
 | 
     */ 
 | 
    private String tag; 
 | 
  
 | 
  
 | 
    /** 
 | 
     * 1.优惠券,2优惠活动 
 | 
     */ 
 | 
    private Integer kind; 
 | 
  
 | 
    private Long shopId; 
 | 
  
 | 
    private String shopName; 
 | 
  
 | 
    /** 
 | 
     * 是否可领取 
 | 
     */ 
 | 
    @Extend 
 | 
    private Integer canReceive; 
 | 
  
 | 
    /** 
 | 
     * 是否已使用 
 | 
     */ 
 | 
    private Integer isUsing; 
 | 
  
 | 
    /** 
 | 
     * 开始时间(查询用) 
 | 
     */ 
 | 
    @Extend 
 | 
    private String couponBeginTime; 
 | 
  
 | 
    /** 
 | 
     * 结束时间(查询用) 
 | 
     */ 
 | 
    @Extend 
 | 
    private String couponEndTime; 
 | 
  
 | 
    /** 
 | 
     * 微信展示开始时间 
 | 
     */ 
 | 
    @Extend 
 | 
    private String beginTimeWx; 
 | 
  
 | 
    /** 
 | 
     * 微信展示结束时间 
 | 
     */ 
 | 
    @Extend 
 | 
    private String endTimeWx; 
 | 
    private Long companyId; 
 | 
    public Long getCompanyId() { 
 | 
        return companyId; 
 | 
    } 
 | 
  
 | 
    public void setCompanyId(Long companyId) { 
 | 
        this.companyId = companyId; 
 | 
    } 
 | 
  
 | 
    public String getShopName() { 
 | 
        return shopName; 
 | 
    } 
 | 
  
 | 
    public void setShopName(String shopName) { 
 | 
        this.shopName = shopName; 
 | 
    } 
 | 
  
 | 
    public Integer getId() { 
 | 
        return id; 
 | 
    } 
 | 
        
 | 
       public void setId(Integer id) { 
 | 
        this.id=id; 
 | 
    } 
 | 
  
 | 
    public Integer getKind() { 
 | 
        return kind; 
 | 
    } 
 | 
  
 | 
    public void setKind(Integer kind) { 
 | 
        this.kind = kind; 
 | 
    } 
 | 
  
 | 
    public String getCName() { 
 | 
        return cName; 
 | 
    } 
 | 
        
 | 
       public void setCName(String cName) { 
 | 
        this.cName=cName; 
 | 
    } 
 | 
        
 | 
  
 | 
    public BigDecimal getOffsetAmount() { 
 | 
        return offsetAmount; 
 | 
    } 
 | 
        
 | 
       public void setOffsetAmount(BigDecimal offsetAmount) { 
 | 
        this.offsetAmount=offsetAmount; 
 | 
    } 
 | 
        
 | 
  
 | 
    public BigDecimal getMinAmount() { 
 | 
        return minAmount; 
 | 
    } 
 | 
        
 | 
       public void setMinAmount(BigDecimal minAmount) { 
 | 
        this.minAmount=minAmount; 
 | 
    } 
 | 
        
 | 
  
 | 
    public Date getBeginTime() { 
 | 
        return beginTime; 
 | 
    } 
 | 
        
 | 
       public void setBeginTime(Date beginTime) { 
 | 
        this.beginTime=beginTime; 
 | 
    } 
 | 
        
 | 
  
 | 
    public Date getEndTime() { 
 | 
        return endTime; 
 | 
    } 
 | 
        
 | 
       public void setEndTime(Date endTime) { 
 | 
        this.endTime=endTime; 
 | 
    } 
 | 
        
 | 
  
 | 
    public Integer getMaxQuantity() { 
 | 
        return maxQuantity; 
 | 
    } 
 | 
        
 | 
       public void setMaxQuantity(Integer maxQuantity) { 
 | 
        this.maxQuantity=maxQuantity; 
 | 
    } 
 | 
        
 | 
  
 | 
    public Integer getGetLimit() { 
 | 
        return getLimit; 
 | 
    } 
 | 
        
 | 
       public void setGetLimit(Integer getLimit) { 
 | 
        this.getLimit=getLimit; 
 | 
    } 
 | 
        
 | 
  
 | 
    public Integer getQuantityReceive() { 
 | 
        return quantityReceive; 
 | 
    } 
 | 
        
 | 
       public void setQuantityReceive(Integer quantityReceive) { 
 | 
        this.quantityReceive=quantityReceive; 
 | 
    } 
 | 
        
 | 
  
 | 
    public Integer getCouponStatus() { 
 | 
        return couponStatus; 
 | 
    } 
 | 
        
 | 
       public void setCouponStatus(Integer couponStatus) { 
 | 
        this.couponStatus=couponStatus; 
 | 
    } 
 | 
        
 | 
  
 | 
    public Integer getIsOpen() { 
 | 
        return isOpen; 
 | 
    } 
 | 
        
 | 
       public void setIsOpen(Integer isOpen) { 
 | 
        this.isOpen=isOpen; 
 | 
    } 
 | 
        
 | 
  
 | 
    public Integer getIsAll() { 
 | 
        return isAll; 
 | 
    } 
 | 
        
 | 
       public void setIsAll(Integer isAll) { 
 | 
        this.isAll=isAll; 
 | 
    } 
 | 
        
 | 
  
 | 
    public String getProductIds() { 
 | 
        return productIds; 
 | 
    } 
 | 
        
 | 
       public void setProductIds(String productIds) { 
 | 
        this.productIds=productIds; 
 | 
    } 
 | 
        
 | 
  
 | 
    public String getAttrIds() { 
 | 
        return attrIds; 
 | 
    } 
 | 
        
 | 
       public void setAttrIds(String attrIds) { 
 | 
        this.attrIds=attrIds; 
 | 
    } 
 | 
  
 | 
  
 | 
    public String getTag() { 
 | 
        return tag; 
 | 
    } 
 | 
  
 | 
    public void setTag(String tag) { 
 | 
        this.tag = tag; 
 | 
    } 
 | 
  
 | 
    public Integer getCanReceive() { 
 | 
        return canReceive; 
 | 
    } 
 | 
  
 | 
    public void setCanReceive(Integer canReceive) { 
 | 
        this.canReceive = canReceive; 
 | 
    } 
 | 
  
 | 
    public Integer getIsUsing() { 
 | 
        return isUsing; 
 | 
    } 
 | 
  
 | 
    public void setIsUsing(Integer isUsing) { 
 | 
        this.isUsing = isUsing; 
 | 
    } 
 | 
  
 | 
    public String getCouponBeginTime() { 
 | 
        return couponBeginTime; 
 | 
    } 
 | 
  
 | 
    public void setCouponBeginTime(String couponBeginTime) { 
 | 
        this.couponBeginTime = couponBeginTime; 
 | 
    } 
 | 
  
 | 
    public String getCouponEndTime() { 
 | 
        return couponEndTime; 
 | 
    } 
 | 
  
 | 
    public void setCouponEndTime(String couponEndTime) { 
 | 
        this.couponEndTime = couponEndTime; 
 | 
    } 
 | 
  
 | 
    public String getBeginTimeWx() { 
 | 
        if (this.beginTime == null) { 
 | 
            return ""; 
 | 
        } 
 | 
        return DateUtil.dateToString(this.beginTime, DateUtil.DATE_FORMAT_SS); 
 | 
    } 
 | 
  
 | 
    public String getEndTimeWx() { 
 | 
        if (this.endTime == null) { 
 | 
            return ""; 
 | 
        } 
 | 
        return DateUtil.dateToString(this.endTime, DateUtil.DATE_FORMAT_SS); 
 | 
    } 
 | 
  
 | 
    public Long getShopId() { 
 | 
        return shopId; 
 | 
    } 
 | 
  
 | 
    public void setShopId(Long shopId) { 
 | 
        this.shopId = shopId; 
 | 
    } 
 | 
} 
 |