CouponView.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. package com.cyksj.model.views;
  2. import com.cyksj.model.entity.Coupon;
  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. import java.util.Date;
  10. import java.util.List;
  11. /*
  12. *项目名: netflix
  13. *文件名: CouponView
  14. *创建者: JavaZou
  15. *创建时间:2022/11/17 18:32
  16. */
  17. @Getter
  18. @Setter
  19. @SearchBean(tables = "coupon c left join coupon_classification cc on cc.id = c.classification_id",
  20. where = "c.deleted is true")
  21. public class CouponView {
  22. @DbField("c.id")
  23. private Long id;
  24. /**
  25. * 优惠券名称
  26. */
  27. @DbField("c.name")
  28. private String name;
  29. @DbField("cc.id")
  30. private Long classificationId;
  31. @DbField("cc.name")
  32. private String couponClassificationName;
  33. /**
  34. * 优惠券平台类型
  35. */
  36. @DbField("c.goods_type")
  37. private Coupon.GoodsType goodsType;
  38. /**
  39. * 优惠券类型
  40. */
  41. @DbField("c.type")
  42. private Coupon.Type type;
  43. /**
  44. * 可用满减卷金额条件
  45. */
  46. @DbField("c.reduce_condition")
  47. private BigDecimal reduceCondition;
  48. /**
  49. * 抵扣金额
  50. */
  51. @DbField("c.reduce_money")
  52. private BigDecimal reduceMoney;
  53. /**
  54. * 折扣
  55. */
  56. @DbField("c.discount")
  57. private BigDecimal discount;
  58. /**
  59. * 领取人范围
  60. */
  61. @DbField("c.scope")
  62. private Coupon.Scope scope;
  63. /**
  64. * 平台规格集合
  65. */
  66. @DbField("c.goods_sku_ids")
  67. private String goodsSkuIds;
  68. /**
  69. * 是否是有效时间
  70. */
  71. @DbField("c.is_valid_time")
  72. private Boolean isValidTime;
  73. /**
  74. * 起始有效时间
  75. */
  76. @DbField("c.valid_start_time")
  77. private Date validStartTime;
  78. /**
  79. * 截止有效时间
  80. */
  81. @DbField("c.valid_end_time")
  82. private Date validEndTime;
  83. /**
  84. * 领取有效天数
  85. */
  86. @DbField("c.valid_days")
  87. private Integer validDays;
  88. /**
  89. * 领取有效小时
  90. */
  91. @DbField("c.valid_hours")
  92. private Integer validHours;
  93. /**
  94. * 使用范围
  95. */
  96. @DbField("c.use_scope")
  97. private Coupon.UseScope useScope;
  98. /**
  99. * 兑换码
  100. */
  101. @DbField("c.ex_code")
  102. private String exCode;
  103. @DbIgnore
  104. private Integer usedNum;
  105. /**
  106. * 发放状态
  107. */
  108. @DbField("c.send_status")
  109. private Boolean sendStatus;
  110. /**
  111. * 推荐状态
  112. */
  113. @DbField("c.hot_status")
  114. private Boolean hotStatus;
  115. @DbIgnore
  116. private Integer relationNum;
  117. @DbIgnore
  118. private String goodsSkuStr;
  119. @DbIgnore
  120. private List<GoodsDonSkuView> skuViewList;
  121. @DbField("c.created_time")
  122. private Date createdTime;
  123. }