GoodsDon.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. package com.cyksj.model.entity;
  2. import com.baomidou.mybatisplus.annotation.FieldStrategy;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.ejlchina.searcher.bean.DbIgnore;
  5. import com.ejlchina.searcher.bean.SearchBean;
  6. import lombok.AllArgsConstructor;
  7. import lombok.Getter;
  8. import lombok.Setter;
  9. import java.math.BigDecimal;
  10. import java.util.List;
  11. /**
  12. * @author chan
  13. * @date 2022/9/26 4:58 PM
  14. */
  15. @Getter
  16. @Setter
  17. @SearchBean(tables = "goods_don")
  18. public class GoodsDon extends BaseEntity {
  19. /**
  20. * 商品录入人
  21. */
  22. private String writer;
  23. /**
  24. * 标签
  25. */
  26. private String tags;
  27. /**
  28. * 商品名称
  29. */
  30. private String title;
  31. /**
  32. * 缩略图
  33. */
  34. private String logo;
  35. /**
  36. * 背景图
  37. */
  38. private String img;
  39. /**
  40. * true 上架 / false 下架
  41. */
  42. private Boolean status;
  43. /**
  44. * true 存在 / false 删除
  45. */
  46. private Boolean deleted;
  47. /**
  48. * 详情
  49. */
  50. private String detail;
  51. /**
  52. * 描述
  53. */
  54. private String remark;
  55. private Integer type;
  56. /**
  57. * 分类
  58. * 1、AI 2、流媒体
  59. */
  60. private Integer category;
  61. /**
  62. * 二级分类
  63. * 虚物品 1邀请制 2非邀请制
  64. */
  65. private Integer secondType;
  66. private String banner;
  67. /**
  68. * 平台分销比例
  69. */
  70. private Integer rate;
  71. /**
  72. * 第二分销比例 不包含套餐
  73. */
  74. private Integer secondRate;
  75. /**
  76. * 排序
  77. */
  78. private Integer sortBy;
  79. /**
  80. * 虚拟销量
  81. */
  82. private Integer virtualSold;
  83. /**
  84. * 最小规格价格
  85. */
  86. private BigDecimal minPrice;
  87. /**
  88. * 最小规格价格月份
  89. */
  90. private Integer minMonths;
  91. /**
  92. * 最小规格 天数
  93. */
  94. private Integer minDays;
  95. /**
  96. * 最大规格价格
  97. */
  98. private BigDecimal maxPrice;
  99. /**
  100. * 最大规格价格月份
  101. */
  102. private Integer maxMonths;
  103. /**
  104. * 最大规格 天数
  105. */
  106. private Integer maxDays;
  107. /**
  108. * 付款说明
  109. */
  110. private String payDesc;
  111. /**
  112. * 特殊类型
  113. */
  114. @TableField(updateStrategy = FieldStrategy.IGNORED)
  115. private GoodsDon.SpecialType specialType;
  116. /**
  117. * 视频
  118. */
  119. @TableField(updateStrategy = FieldStrategy.IGNORED)
  120. private String video;
  121. /**
  122. * 推荐标题
  123. */
  124. @TableField(updateStrategy = FieldStrategy.IGNORED)
  125. private String recommendTitle;
  126. @TableField(exist = false)
  127. @DbIgnore
  128. private List<Long> recommendGoodsList;
  129. /**
  130. * 推荐平台
  131. */
  132. @TableField(updateStrategy = FieldStrategy.IGNORED)
  133. private String recommendGoods;
  134. @TableField(exist = false)
  135. @DbIgnore
  136. private BigDecimal price;
  137. @TableField(exist = false)
  138. @DbIgnore
  139. private Integer soldNum;
  140. @TableField(exist = false)
  141. @DbIgnore
  142. private Integer accountCount;
  143. /**
  144. * 是否是特定价格 规格平台
  145. */
  146. private Boolean isSp;
  147. @AllArgsConstructor
  148. @Getter
  149. public enum SpecialType {
  150. recharge("代充"),
  151. ;
  152. private String desc;
  153. }
  154. }