123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- package com.caimei.modules.coupon.entity;
- import com.caimei.modules.user.entity.NewCmShop;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import com.thinkgem.jeesite.common.persistence.DataEntity;
- import org.hibernate.validator.constraints.Length;
- import java.math.BigDecimal;
- import java.util.Date;
- import java.util.List;
- /**
- * 优惠券管理Entity
- *
- * @author plf
- * @version 2021-08-02
- */
- public class CmCoupon extends DataEntity<CmCoupon> {
- private static final long serialVersionUID = 1L;
- private String name; // 活动主题
- private BigDecimal couponAmount; // 优惠券金额(面值)
- private BigDecimal touchPrice; // 优惠满减条件金额
- private Date startDate; // 使用开始时间(有效期)
- private Date endDate; // 使用结束时间(有效期)
- private Integer receivePeriod; // 领取期限(天)
- private Integer receiveFlag; // 领取期限同开始-结束时间
- private Integer usePeriod; // 使用期限(天)
- private String status; // 状态 0未生效 1已生效 2已关闭 3已失效
- private Integer couponType; // 劵类型 0活动券 1品类券 2用户专享券 3店铺券 4新用户券
- private Integer vipFlag; // 超级会员专享优惠券标志:0否,1是
- private Integer userId; //机构用户id(用户专享券有效)
- private Integer shopId; //供应商id(店铺券有效)
- private String productType; // 优惠商品:1全商城商品 2指定商品(活动券有效)
- private String pcBanner; //网站活动页banner
- private String appletsBanner; //小程序活动页banner
- private String categoryType; // 优惠品类:1产品 2仪器(品类券有效)
- private String couponsMode; // 领券方式:0正常 1使用兑换码
- private String productInfo; //商品json数据
- private String clubName; //机构名称
- private String claimStatus; //领取状态:1未领取 2已领取
- private String useStatus; //使用状态 1未使用 2已使用
- private String source; //领取渠道:1小程序 2网站 3订单退回
- private String shopName; //供应商名称
- private Integer codeNum; //兑换码数量
- private Integer clubCouponId; //机构领券id
- private String couponName; //优惠券名称
- private String couponDesc; //描述
- private String redemptionCode; //兑换码
- private CmCouponClub couponClub;
- private NewCmShop shop;
- private List<Integer> productIdList;
- private Date receiveDate; // 领取时间
- private Date useEndDate; // 使用截止时间
- public CmCoupon() {
- super();
- }
- public CmCoupon(String id) {
- super(id);
- }
- @Length(min = 0, max = 50, message = "活动主题长度必须介于 0 和 50 之间")
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public BigDecimal getCouponAmount() {
- return couponAmount;
- }
- public void setCouponAmount(BigDecimal couponAmount) {
- this.couponAmount = couponAmount;
- }
- public BigDecimal getTouchPrice() {
- return touchPrice;
- }
- public void setTouchPrice(BigDecimal touchPrice) {
- this.touchPrice = touchPrice;
- }
- @JsonFormat(pattern = "yyyy-MM-dd")
- public Date getStartDate() {
- return startDate;
- }
- public void setStartDate(Date startDate) {
- this.startDate = startDate;
- }
- @JsonFormat(pattern = "yyyy-MM-dd")
- public Date getEndDate() {
- return endDate;
- }
- public void setEndDate(Date endDate) {
- this.endDate = endDate;
- }
- @Length(min = 0, max = 2, message = "状态 0未生效 1已生效 2已关闭长度必须介于 0 和 2 之间")
- public String getStatus() {
- return status;
- }
- public void setStatus(String status) {
- this.status = status;
- }
- public Integer getCouponType() {
- return couponType;
- }
- public void setCouponType(Integer couponType) {
- this.couponType = couponType;
- }
- @Length(min = 0, max = 2, message = "优惠商品:1全商城商品 2指定商品(活动券有效)长度必须介于 0 和 2 之间")
- public String getProductType() {
- return productType;
- }
- public void setProductType(String productType) {
- this.productType = productType;
- }
- public Integer getVipFlag() {
- return vipFlag;
- }
- public void setVipFlag(Integer vipFlag) {
- this.vipFlag = vipFlag;
- }
- public String getPcBanner() {
- return pcBanner;
- }
- public void setPcBanner(String pcBanner) {
- this.pcBanner = pcBanner;
- }
- public String getAppletsBanner() {
- return appletsBanner;
- }
- public void setAppletsBanner(String appletsBanner) {
- this.appletsBanner = appletsBanner;
- }
- @Length(min = 0, max = 2, message = "优惠品类:1产品 2仪器(品类券有效)长度必须介于 0 和 2 之间")
- public String getCategoryType() {
- return categoryType;
- }
- public void setCategoryType(String categoryType) {
- this.categoryType = categoryType;
- }
- @Length(min = 0, max = 2, message = "领券方式:0正常 1使用兑换码长度必须介于 0 和 2 之间")
- public String getCouponsMode() {
- return couponsMode;
- }
- public void setCouponsMode(String couponsMode) {
- this.couponsMode = couponsMode;
- }
- public String getProductInfo() {
- return productInfo;
- }
- public void setProductInfo(String productInfo) {
- this.productInfo = productInfo;
- }
- public String getClubName() {
- return clubName;
- }
- public void setClubName(String clubName) {
- this.clubName = clubName;
- }
- public String getClaimStatus() {
- return claimStatus;
- }
- public void setClaimStatus(String claimStatus) {
- this.claimStatus = claimStatus;
- }
- public String getUseStatus() {
- return useStatus;
- }
- public void setUseStatus(String useStatus) {
- this.useStatus = useStatus;
- }
- public String getSource() {
- return source;
- }
- public void setSource(String source) {
- this.source = source;
- }
- public CmCouponClub getCouponClub() {
- return couponClub;
- }
- public void setCouponClub(CmCouponClub couponClub) {
- this.couponClub = couponClub;
- }
- public Integer getUserId() {
- return userId;
- }
- public void setUserId(Integer userId) {
- this.userId = userId;
- }
- public String getShopName() {
- return shopName;
- }
- public void setShopName(String shopName) {
- this.shopName = shopName;
- }
- public Integer getCodeNum() {
- return codeNum;
- }
- public void setCodeNum(Integer codeNum) {
- this.codeNum = codeNum;
- }
- public Integer getShopId() {
- return shopId;
- }
- public void setShopId(Integer shopId) {
- this.shopId = shopId;
- }
- public NewCmShop getShop() {
- return shop;
- }
- public void setShop(NewCmShop shop) {
- this.shop = shop;
- }
- public Integer getClubCouponId() {
- return clubCouponId;
- }
- public void setClubCouponId(Integer clubCouponId) {
- this.clubCouponId = clubCouponId;
- }
- public List<Integer> getProductIdList() {
- return productIdList;
- }
- public void setProductIdList(List<Integer> productIdList) {
- this.productIdList = productIdList;
- }
- public String getCouponName() {
- return couponName;
- }
- public void setCouponName(String couponName) {
- this.couponName = couponName;
- }
- public String getCouponDesc() {
- return couponDesc;
- }
- public void setCouponDesc(String couponDesc) {
- this.couponDesc = couponDesc;
- }
- public String getRedemptionCode() {
- return redemptionCode;
- }
- public void setRedemptionCode(String redemptionCode) {
- this.redemptionCode = redemptionCode;
- }
- public Integer getReceivePeriod() {
- return receivePeriod;
- }
- public void setReceivePeriod(Integer receivePeriod) {
- this.receivePeriod = receivePeriod;
- }
- public Integer getReceiveFlag() {
- return receiveFlag;
- }
- public void setReceiveFlag(Integer receiveFlag) {
- this.receiveFlag = receiveFlag;
- }
- public Integer getUsePeriod() {
- return usePeriod;
- }
- public void setUsePeriod(Integer usePeriod) {
- this.usePeriod = usePeriod;
- }
- public Date getReceiveDate() {
- return receiveDate;
- }
- public void setReceiveDate(Date receiveDate) {
- this.receiveDate = receiveDate;
- }
- public Date getUseEndDate() {
- return useEndDate;
- }
- public void setUseEndDate(Date useEndDate) {
- this.useEndDate = useEndDate;
- }
- }
|