GoodsDonSku.java 3.3 KB

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