| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- package com.cyksj.model.views;
- import com.cyksj.model.entity.LuckyDraw;
- 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;
- /*
- *项目名: netflix
- *文件名: LuckyDrawView
- *创建者: JavaZou
- *创建时间:2022/12/27 16:35
- */
- @Getter
- @Setter
- @SearchBean(tables = "lucky_draw ld" +
- " left join coupon c on c.id = ld.coupon_id" +
- " left join goods_don gd on gd.id = ld.goods_id" +
- " left join goods_don_sku gdk on gdk.id = ld.sku_id",
- where = "ld.deleted is true")
- public class LuckyDrawView {
- @DbField("ld.id")
- private Long id;
- @DbField("ld.type")
- private LuckyDraw.Type type;
- @DbField("ld.name")
- private String name;
- @DbField("ld.points")
- private Integer points;
- @DbField("ld.coupon_id")
- private Long couponId;
- /**
- * 优惠券名称
- */
- @DbField("c.name")
- private String couponName;
- @DbField("ld.goods_id")
- private Long goodsId;
- /**
- * 平台名称
- */
- @DbField("gd.title")
- private String goodsName;
- @DbField("ld.sku_id")
- private Long skuId;
- /**
- * 规格
- */
- @DbField("gdk.spec_val")
- private String specVal;
- @DbField("ld.cost")
- private Integer cost;
- @DbField("ld.position")
- private String position;
- @DbField("ld.probability")
- private BigDecimal probability;
- @DbField("ld.days")
- private Integer days;
- @DbField("ld.num")
- private Integer num;
- @DbField("ld.picture")
- private String picture;
- @DbField("ld.draw_type")
- private LuckyDraw.DrawType drawType;
- @DbField("ld.status")
- private Boolean status;
- @DbIgnore
- private Long recordId;
- /**
- * 中奖人数
- */
- @DbIgnore
- private Integer LotteryNum;
- /**
- * 中奖次数
- */
- @DbIgnore
- private Integer LotteryCount;
- /**
- * 奖品领取次数
- */
- @DbIgnore
- private Integer luckyOrderCount;
- }
|