GoodsDon.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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 g",
  18. where = ":condition:")
  19. public class GoodsDon extends BaseEntity {
  20. /**
  21. * 商品录入人
  22. */
  23. private String writer;
  24. /**
  25. * 标签
  26. */
  27. private String tags;
  28. /**
  29. * 商品名称
  30. */
  31. private String title;
  32. /**
  33. * 缩略图
  34. */
  35. private String logo;
  36. /**
  37. * 背景图
  38. */
  39. private String img;
  40. /**
  41. * true 上架 / false 下架
  42. */
  43. private Boolean status;
  44. /**
  45. * true 存在 / false 删除
  46. */
  47. private Boolean deleted;
  48. /**
  49. * 详情
  50. */
  51. private String detail;
  52. /**
  53. * 描述
  54. */
  55. private String remark;
  56. private Integer type;
  57. /**
  58. * 分类
  59. * 1、AI 2、流媒体
  60. */
  61. private Long category;
  62. @DbIgnore
  63. @TableField(exist = false)
  64. private List<Long> categoryList;
  65. /**
  66. * 二级分类
  67. * 虚物品 1邀请制 2非邀请制
  68. */
  69. private Integer secondType;
  70. private String banner;
  71. /**
  72. * 商品搭配图
  73. */
  74. private String matchImg;
  75. /**
  76. * 是否贴片 false
  77. */
  78. private Boolean isPatch;
  79. /**
  80. * H5标签
  81. */
  82. private String mobileTags;
  83. /**
  84. * 平台分销比例
  85. */
  86. private Integer rate;
  87. /**
  88. * 第二分销比例 不包含套餐
  89. */
  90. private Integer secondRate;
  91. /**
  92. * 排序
  93. */
  94. private Integer sortBy;
  95. /**
  96. * 虚拟销量
  97. */
  98. private Integer virtualSold;
  99. /**
  100. * 最小规格价格
  101. */
  102. private BigDecimal minPrice;
  103. /**
  104. * 最小规格价格月份
  105. */
  106. private Integer minMonths;
  107. /**
  108. * 最小规格 天数
  109. */
  110. private Integer minDays;
  111. /**
  112. * 最大规格价格
  113. */
  114. private BigDecimal maxPrice;
  115. /**
  116. * 最大规格价格月份
  117. */
  118. private Integer maxMonths;
  119. /**
  120. * 最大规格 天数
  121. */
  122. private Integer maxDays;
  123. /**
  124. * 付款说明
  125. */
  126. private String payDesc;
  127. /**
  128. * 特殊类型
  129. */
  130. @TableField(updateStrategy = FieldStrategy.IGNORED)
  131. private GoodsDon.SpecialType specialType;
  132. /**
  133. * 视频
  134. */
  135. @TableField(updateStrategy = FieldStrategy.IGNORED)
  136. private String video;
  137. /**
  138. * 推荐标题
  139. */
  140. @TableField(updateStrategy = FieldStrategy.IGNORED)
  141. private String recommendTitle;
  142. @TableField(exist = false)
  143. @DbIgnore
  144. private List<Long> recommendGoodsList;
  145. /**
  146. * 推荐平台
  147. */
  148. @TableField(updateStrategy = FieldStrategy.IGNORED)
  149. private String recommendGoods;
  150. @TableField(exist = false)
  151. @DbIgnore
  152. private BigDecimal price;
  153. @TableField(exist = false)
  154. @DbIgnore
  155. private Integer soldNum;
  156. @TableField(exist = false)
  157. @DbIgnore
  158. private Integer accountCount;
  159. /**
  160. * 是否是特定价格 规格平台
  161. */
  162. private Boolean isSp;
  163. /**
  164. * 是否有专属用户规格属性
  165. */
  166. private Boolean isOwns;
  167. /**
  168. * 是否参与分销 默认参与
  169. */
  170. private Boolean isDistribute;
  171. /**
  172. * 是否开启规格分销 默认未开启
  173. */
  174. private Boolean isSkuDistribute;
  175. @AllArgsConstructor
  176. @Getter
  177. public enum SpecialType {
  178. recharge("代充"),
  179. courseware("课程"),
  180. giftCard("礼品卡")
  181. ;
  182. private String desc;
  183. }
  184. }