LuckyDrawView.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package com.cyksj.model.views;
  2. import com.cyksj.model.entity.LuckyDraw;
  3. import com.ejlchina.searcher.bean.DbField;
  4. import com.ejlchina.searcher.bean.DbIgnore;
  5. import com.ejlchina.searcher.bean.SearchBean;
  6. import lombok.Getter;
  7. import lombok.Setter;
  8. import java.math.BigDecimal;
  9. /*
  10. *项目名: netflix
  11. *文件名: LuckyDrawView
  12. *创建者: JavaZou
  13. *创建时间:2022/12/27 16:35
  14. */
  15. @Getter
  16. @Setter
  17. @SearchBean(tables = "lucky_draw ld" +
  18. " left join coupon c on c.id = ld.coupon_id" +
  19. " left join goods_don gd on gd.id = ld.goods_id" +
  20. " left join goods_don_sku gdk on gdk.id = ld.sku_id",
  21. where = "ld.deleted is true")
  22. public class LuckyDrawView {
  23. @DbField("ld.id")
  24. private Long id;
  25. @DbField("ld.type")
  26. private LuckyDraw.Type type;
  27. @DbField("ld.name")
  28. private String name;
  29. @DbField("ld.points")
  30. private Integer points;
  31. @DbField("ld.coupon_id")
  32. private Long couponId;
  33. /**
  34. * 优惠券名称
  35. */
  36. @DbField("c.name")
  37. private String couponName;
  38. @DbField("ld.goods_id")
  39. private Long goodsId;
  40. /**
  41. * 平台名称
  42. */
  43. @DbField("gd.title")
  44. private String goodsName;
  45. @DbField("ld.sku_id")
  46. private Long skuId;
  47. /**
  48. * 规格
  49. */
  50. @DbField("gdk.spec_val")
  51. private String specVal;
  52. @DbField("ld.cost")
  53. private Integer cost;
  54. @DbField("ld.position")
  55. private String position;
  56. @DbField("ld.probability")
  57. private BigDecimal probability;
  58. @DbField("ld.days")
  59. private Integer days;
  60. @DbField("ld.num")
  61. private Integer num;
  62. @DbField("ld.picture")
  63. private String picture;
  64. @DbField("ld.draw_type")
  65. private LuckyDraw.DrawType drawType;
  66. @DbField("ld.status")
  67. private Boolean status;
  68. @DbIgnore
  69. private Long recordId;
  70. /**
  71. * 中奖人数
  72. */
  73. @DbIgnore
  74. private Integer LotteryNum;
  75. /**
  76. * 中奖次数
  77. */
  78. @DbIgnore
  79. private Integer LotteryCount;
  80. /**
  81. * 奖品领取次数
  82. */
  83. @DbIgnore
  84. private Integer luckyOrderCount;
  85. }