GoodsDonSku.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 picture;
  49. /**
  50. * 商品详情图
  51. */
  52. private String detail;
  53. /**
  54. * 标签
  55. */
  56. private String tags;
  57. /**
  58. * true 上架 / false 下架
  59. */
  60. private Boolean status;
  61. /**
  62. * 车位数
  63. */
  64. private Integer num;
  65. /**
  66. * 价格
  67. */
  68. private BigDecimal price;
  69. /**
  70. * 是否开启实物车票时长权益
  71. */
  72. private Boolean isBenefits;
  73. /**
  74. * 权益列表
  75. */
  76. private String benefitsList;
  77. /**
  78. * 月数
  79. */
  80. @TableField(updateStrategy = FieldStrategy.IGNORED)
  81. private Integer months;
  82. /**
  83. * 天数
  84. */
  85. @TableField(updateStrategy = FieldStrategy.IGNORED)
  86. private Integer days;
  87. @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")
  88. @TableField(exist = false)
  89. private Integer orderBy;
  90. /**
  91. * 加购规格
  92. */
  93. @DbIgnore
  94. @TableField(exist = false)
  95. private List<GoodsDiscountPlusPurchaseRelation> dpSku;
  96. /**
  97. * 是否是优惠加购规格
  98. */
  99. private Boolean isDp;
  100. /**
  101. * 特定价格
  102. */
  103. private BigDecimal specificPrice;
  104. /**
  105. * 特定平台购买用户人群
  106. */
  107. private String specificGoodsIds;
  108. /**
  109. * 优惠加购商品规格展示
  110. */
  111. @DbIgnore
  112. @TableField(exist = false)
  113. private List<GoodsDiscountPlusPurchaseRelationFrontView> dpSkuList;
  114. /**
  115. * 前端展示
  116. */
  117. @DbIgnore
  118. @TableField(exist = false)
  119. @JsonProperty("gname")
  120. private String gName;
  121. /**
  122. * 前端展示
  123. */
  124. @DbIgnore
  125. @TableField(exist = false)
  126. @JsonProperty("sname")
  127. private String sName;
  128. @DbIgnore
  129. @TableField(exist = false)
  130. private BigDecimal yhShopSkuPrice;
  131. }