GoodsDonSku.java 3.1 KB

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