GoodsDonSku.java 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. package com.cyksj.model.entity;
  2. import com.baomidou.mybatisplus.annotation.FieldStrategy;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.cyksj.model.views.DistributeSearchView;
  5. import com.cyksj.model.views.GoodsDiscountPlusPurchaseRelationFrontView;
  6. import com.ejlchina.searcher.bean.DbField;
  7. import com.ejlchina.searcher.bean.DbIgnore;
  8. import com.ejlchina.searcher.bean.SearchBean;
  9. import com.fasterxml.jackson.annotation.JsonInclude;
  10. import com.fasterxml.jackson.annotation.JsonProperty;
  11. import lombok.Getter;
  12. import lombok.Setter;
  13. import java.math.BigDecimal;
  14. import java.util.List;
  15. /**
  16. * @author chan
  17. * @date 2022/9/26 4:58 PM
  18. */
  19. @Getter
  20. @Setter
  21. @SearchBean(tables = "goods_don_sku",
  22. where = ":condition:")
  23. @JsonInclude(JsonInclude.Include.NON_NULL)
  24. public class GoodsDonSku extends BaseEntity {
  25. private Long goodsId;
  26. private String subTitle;
  27. /**
  28. * 商品规格 ids
  29. */
  30. private String specIds;
  31. /**
  32. * 重复校验规格ids
  33. */
  34. private String dupSpecIds;
  35. /**
  36. * 商品规格 value
  37. */
  38. private String specVal;
  39. /**
  40. * 商品规格 json
  41. */
  42. private String specJson;
  43. /**
  44. * 规格说明信息
  45. */
  46. private String notifyText;
  47. /**
  48. * H5标签
  49. */
  50. private String mobileTags;
  51. /**
  52. * 规格背景图
  53. */
  54. private String img;
  55. /**
  56. * 规格框提示
  57. */
  58. private String smallMsg;
  59. /**
  60. * 双重验证码次数
  61. */
  62. private Integer codeNum;
  63. /**
  64. * 商品预览图
  65. */
  66. private String picture;
  67. /**
  68. * 商品详情图
  69. */
  70. private String detail;
  71. /**
  72. * 标签
  73. */
  74. private String tags;
  75. /**
  76. * true 上架 / false 下架
  77. */
  78. private Boolean status;
  79. /**
  80. * 车位数
  81. */
  82. private Integer num;
  83. /**
  84. * 价格
  85. */
  86. private BigDecimal price;
  87. /**
  88. * 专属用户规格
  89. */
  90. @TableField(updateStrategy = FieldStrategy.IGNORED)
  91. private String userOwns;
  92. /**
  93. * 专属用户列表
  94. */
  95. @DbIgnore
  96. @TableField(exist = false)
  97. private List<DistributeSearchView> userOwnsList;
  98. /**
  99. * 是否开启实物车票时长权益
  100. */
  101. private Boolean isBenefits;
  102. /**
  103. * 权益列表
  104. */
  105. private String benefitsList;
  106. /**
  107. * 月数
  108. */
  109. @TableField(updateStrategy = FieldStrategy.IGNORED)
  110. private Integer months;
  111. /**
  112. * 天数
  113. */
  114. @TableField(updateStrategy = FieldStrategy.IGNORED)
  115. private Integer days;
  116. @DbField("case when spec_val like '%月%' and spec_val not like '%年%' then 0 when spec_val like '%季%' then 1 when spec_val like '%半年%' then 2 when spec_val like '%年%' then 3 else 66 end")
  117. @TableField(exist = false)
  118. private Integer orderBy;
  119. /**
  120. * 加购规格
  121. */
  122. @DbIgnore
  123. @TableField(exist = false)
  124. private List<GoodsDiscountPlusPurchaseRelation> dpSku;
  125. /**
  126. * 是否是优惠加购规格
  127. */
  128. private Boolean isDp;
  129. /**
  130. * 特定价格
  131. */
  132. private BigDecimal specificPrice;
  133. /**
  134. * 特定平台购买用户人群
  135. */
  136. private String specificGoodsIds;
  137. /**
  138. * 优惠加购商品规格展示
  139. */
  140. @DbIgnore
  141. @TableField(exist = false)
  142. private List<GoodsDiscountPlusPurchaseRelationFrontView> dpSkuList;
  143. /**
  144. * 前端展示
  145. */
  146. @DbIgnore
  147. @TableField(exist = false)
  148. @JsonProperty("gname")
  149. private String gName;
  150. /**
  151. * 前端展示
  152. */
  153. @DbIgnore
  154. @TableField(exist = false)
  155. @JsonProperty("sname")
  156. private String sName;
  157. @DbIgnore
  158. @TableField(exist = false)
  159. private BigDecimal yhShopSkuPrice;
  160. }