GoodsDonSku.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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 lombok.Getter;
  10. import lombok.Setter;
  11. import java.math.BigDecimal;
  12. import java.util.List;
  13. /**
  14. * @author chan
  15. * @date 2022/9/26 4:58 PM
  16. */
  17. @Getter
  18. @Setter
  19. @SearchBean(tables = "goods_don_sku")
  20. @JsonInclude(JsonInclude.Include.NON_NULL)
  21. public class GoodsDonSku extends BaseEntity {
  22. private Long goodsId;
  23. private String subTitle;
  24. /**
  25. * 商品规格 ids
  26. */
  27. private String specIds;
  28. /**
  29. * 重复校验规格ids
  30. */
  31. private String dupSpecIds;
  32. /**
  33. * 商品规格 value
  34. */
  35. private String specVal;
  36. /**
  37. * 商品规格 json
  38. */
  39. private String specJson;
  40. /**
  41. * 规格说明信息
  42. */
  43. private String notifyText;
  44. /**
  45. * 商品预览图
  46. */
  47. private String picture;
  48. /**
  49. * 商品详情图
  50. */
  51. private String detail;
  52. /**
  53. * 标签
  54. */
  55. private String tags;
  56. /**
  57. * true 上架 / false 下架
  58. */
  59. private Boolean status;
  60. /**
  61. * 车位数
  62. */
  63. private Integer num;
  64. /**
  65. * 价格
  66. */
  67. private BigDecimal price;
  68. /**
  69. * 是否开启实物车票时长权益
  70. */
  71. private Boolean isBenefits;
  72. /**
  73. * 权益列表
  74. */
  75. private String benefitsList;
  76. /**
  77. * 月数
  78. */
  79. @TableField(updateStrategy = FieldStrategy.IGNORED)
  80. private Integer months;
  81. /**
  82. * 天数
  83. */
  84. @TableField(updateStrategy = FieldStrategy.IGNORED)
  85. private Integer days;
  86. @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")
  87. @TableField(exist = false)
  88. private Integer orderBy;
  89. /**
  90. * 加购规格
  91. */
  92. @DbIgnore
  93. @TableField(exist = false)
  94. private List<GoodsDiscountPlusPurchaseRelation> dpSku;
  95. /**
  96. * 是否是优惠加购规格
  97. */
  98. private Boolean isDp;
  99. /**
  100. * 特定价格
  101. */
  102. private BigDecimal specificPrice;
  103. /**
  104. * 特定平台购买用户人群
  105. */
  106. private String specificGoodsIds;
  107. /**
  108. * 优惠加购商品规格展示
  109. */
  110. @DbIgnore
  111. @TableField(exist = false)
  112. private List<GoodsDiscountPlusPurchaseRelationFrontView> dpSkuViews;
  113. }