| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- package com.cyksj.model.views;
- import com.cyksj.model.entity.Coupon;
- import com.ejlchina.searcher.bean.DbField;
- import com.ejlchina.searcher.bean.DbIgnore;
- import com.ejlchina.searcher.bean.SearchBean;
- import lombok.Getter;
- import lombok.Setter;
- import java.math.BigDecimal;
- import java.util.Date;
- import java.util.List;
- /*
- *项目名: netflix
- *文件名: CouponView
- *创建者: JavaZou
- *创建时间:2022/11/17 18:32
- */
- @Getter
- @Setter
- @SearchBean(tables = "coupon c left join coupon_classification cc on cc.id = c.classification_id",
- where = "c.deleted is true")
- public class CouponView {
- @DbField("c.id")
- private Long id;
- /**
- * 优惠券名称
- */
- @DbField("c.name")
- private String name;
- @DbField("cc.id")
- private Long classificationId;
- @DbField("cc.name")
- private String couponClassificationName;
- /**
- * 优惠券平台类型
- */
- @DbField("c.goods_type")
- private Coupon.GoodsType goodsType;
- /**
- * 优惠券类型
- */
- @DbField("c.type")
- private Coupon.Type type;
- /**
- * 可用满减卷金额条件
- */
- @DbField("c.reduce_condition")
- private BigDecimal reduceCondition;
- /**
- * 抵扣金额
- */
- @DbField("c.reduce_money")
- private BigDecimal reduceMoney;
- /**
- * 折扣
- */
- @DbField("c.discount")
- private BigDecimal discount;
- /**
- * 领取人范围
- */
- @DbField("c.scope")
- private Coupon.Scope scope;
- /**
- * 平台规格集合
- */
- @DbField("c.goods_sku_ids")
- private String goodsSkuIds;
- /**
- * 是否是有效时间
- */
- @DbField("c.is_valid_time")
- private Boolean isValidTime;
- /**
- * 起始有效时间
- */
- @DbField("c.valid_start_time")
- private Date validStartTime;
- /**
- * 截止有效时间
- */
- @DbField("c.valid_end_time")
- private Date validEndTime;
- /**
- * 领取有效天数
- */
- @DbField("c.valid_days")
- private Integer validDays;
- /**
- * 领取有效小时
- */
- @DbField("c.valid_hours")
- private Integer validHours;
- /**
- * 使用范围
- */
- @DbField("c.use_scope")
- private Coupon.UseScope useScope;
- /**
- * 兑换码
- */
- @DbField("c.ex_code")
- private String exCode;
- @DbIgnore
- private Integer usedNum;
- /**
- * 发放状态
- */
- @DbField("c.send_status")
- private Boolean sendStatus;
- /**
- * 推荐状态
- */
- @DbField("c.hot_status")
- private Boolean hotStatus;
- @DbIgnore
- private Integer relationNum;
- @DbIgnore
- private String goodsSkuStr;
- @DbIgnore
- private List<GoodsDonSkuView> skuViewList;
- @DbField("c.created_time")
- private Date createdTime;
- }
|