package com.cyksj.model.views; import com.cyksj.model.entity.Coupon; import com.cyksj.model.entity.CouponUser; import com.ejlchina.searcher.bean.DbField; import com.ejlchina.searcher.bean.SearchBean; import lombok.Getter; import lombok.Setter; import java.math.BigDecimal; import java.util.Date; /* *项目名: netflix *文件名: CouponUserEnableView *创建者: JavaZou *创建时间:2022/11/21 10:33 */ @Getter @Setter @SearchBean(tables = "coupon_user cu left join coupon_active ca on ca.id = cu.coupon_active_id" + " left join coupon c on c.id = cu.coupon_id", where = "order by cu.id desc") public class CouponUserEnableView { @DbField("cu.id") private Long id; /** * 获取渠道 */ @DbField("cu.channel") private CouponUser.Channel channel; /** * 优惠券使用状态 */ @DbField("cu.status") private CouponUser.Status couponUserStatus; /** * 用户id */ @DbField("cu.user_id") private Long userId; /** * 优惠券id */ @DbField("c.id") private Long couponId; /** * 优惠券发放id */ @DbField("ca.id") private Long couponActiveId; /** * 优惠券名称 */ @DbField("ca.name") private String name; /** * 优惠券平台类型 */ @DbField("ca.goods_type") private Coupon.GoodsType goodsType; /** * 优惠券类型 */ @DbField("ca.type") private Coupon.Type type; /** * 抵扣金额 */ @DbField("ca.reduce_money") private BigDecimal reduceMoney; /** * 折扣 */ @DbField("ca.discount") private BigDecimal discount; /** * 平台规格集合 */ @DbField("c.goods_sku_ids") private String goodsSkuIds; /** * 是否是有效时间 */ @DbField("ca.is_valid_time") private Boolean isValidTime; /** * 起始有效时间 */ @DbField("ca.valid_start_time") private Date validStartTime; /** * 领取有效天数 */ @DbField("ca.valid_days") private Integer validDays; /** * 截止有效时间 */ @DbField("ca.valid_end_time") private Date validEndTime; /** * 是否可在续费时使用 */ @DbField("ca.is_renew") private Boolean isRenew; /** * 发放优惠券状态(默认启用) */ @DbField("ca.status") private Boolean status; /** * 有效状态(默认有效) */ @DbField("ca.expiry_status") private Boolean expiryStatus; @DbField("ca.created_time") private Date createdTime; }