GoodsDonSku.java 2.4 KB

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