| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- 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;
- }
|