CouponRecommendView.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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 com.fasterxml.jackson.annotation.JsonIgnore;
  7. import lombok.Getter;
  8. import lombok.Setter;
  9. import java.math.BigDecimal;
  10. import java.util.Date;
  11. /*
  12. *项目名: netflix
  13. *文件名: CouponRecommendView
  14. *创建者: JavaZou
  15. *创建时间:2022/11/18 10:07
  16. */
  17. @Setter
  18. @Getter
  19. @SearchBean(tables = "coupon_recommend cr left join coupon c on c.id = cr.coupon_id",
  20. where = "cr.deleted is true and c.deleted is true")
  21. public class CouponRecommendView {
  22. @DbField("cr.id")
  23. private Long id;
  24. @DbField("cr.coupon_id")
  25. private Long couponId;
  26. /**
  27. * 优惠券名称
  28. */
  29. @DbField("c.name")
  30. private String name;
  31. /**
  32. * 优惠券平台类型
  33. */
  34. @DbField("c.goods_type")
  35. private Coupon.GoodsType goodsType;
  36. /**
  37. * 优惠券类型
  38. */
  39. @DbField("c.type")
  40. private Coupon.Type type;
  41. /**
  42. * 可用满减卷金额条件
  43. */
  44. @DbField("c.reduce_condition")
  45. private BigDecimal reduceCondition;
  46. /**
  47. * 抵扣金额
  48. */
  49. @DbField("c.reduce_money")
  50. private BigDecimal reduceMoney;
  51. /**
  52. * 折扣
  53. */
  54. @DbField("c.discount")
  55. private BigDecimal discount;
  56. /**
  57. * 平台规格集合
  58. */
  59. @DbField("c.goods_sku_ids")
  60. private String goodsSkuIds;
  61. @DbIgnore
  62. private String goodsSkuStr;
  63. /**
  64. * 领取人范围
  65. */
  66. @DbField("c.scope")
  67. private Coupon.Scope scope;
  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_start_time")
  87. @JsonIgnore
  88. private Date userValidStartTime;
  89. /**
  90. * 用户领取后截止有效时间
  91. */
  92. @DbField("c.valid_end_time")
  93. @JsonIgnore
  94. private Date userValidEndTime;
  95. /**
  96. * 领取有效天数
  97. */
  98. @DbField("c.valid_days")
  99. private Integer validDays;
  100. /**
  101. * 是否可在续费时使用
  102. */
  103. @DbField("c.is_renew")
  104. private Boolean isRenew;
  105. /**
  106. * 推荐状态
  107. */
  108. @DbField("cr.status")
  109. private Boolean status;
  110. /**
  111. * 推荐时间
  112. */
  113. @DbField("cr.created_time")
  114. private Date createdTime;
  115. /**
  116. * 推荐领取人数
  117. */
  118. @DbIgnore
  119. private Integer receiptNum;
  120. /**
  121. * 使用人数
  122. */
  123. @DbIgnore
  124. private Integer usedNum;
  125. @DbIgnore
  126. private CouponActiveView.CouponStatus couponStatus;
  127. }