GoodsDonSku.java 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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.DistributeSearchView;
  5. import com.cyksj.model.views.GoodsDiscountPlusPurchaseRelationFrontView;
  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. where = ":condition:")
  22. @JsonInclude(JsonInclude.Include.NON_NULL)
  23. public class GoodsDonSku extends BaseEntity {
  24. private Long goodsId;
  25. private String subTitle;
  26. /**
  27. * 商品规格 ids
  28. */
  29. private String specIds;
  30. /**
  31. * 重复校验规格ids
  32. */
  33. private String dupSpecIds;
  34. /**
  35. * 商品规格 value
  36. */
  37. private String specVal;
  38. /**
  39. * 商品规格 json
  40. */
  41. private String specJson;
  42. /**
  43. * 规格说明信息
  44. */
  45. private String notifyText;
  46. /**
  47. * H5标签
  48. */
  49. private String mobileTags;
  50. /**
  51. * 规格背景图
  52. */
  53. private String img;
  54. /**
  55. * 规格框提示
  56. */
  57. private String smallMsg;
  58. /**
  59. * 双重验证码次数
  60. */
  61. private Integer codeNum;
  62. /**
  63. * 商品预览图
  64. */
  65. private String picture;
  66. /**
  67. * 商品详情图
  68. */
  69. private String detail;
  70. /**
  71. * 标签
  72. */
  73. private String tags;
  74. /**
  75. * true 上架 / false 下架
  76. */
  77. private Boolean status;
  78. /**
  79. * 车位数
  80. */
  81. private Integer num;
  82. /**
  83. * 价格
  84. */
  85. private BigDecimal price;
  86. /**
  87. * 专属用户规格
  88. */
  89. @TableField(updateStrategy = FieldStrategy.IGNORED)
  90. private String userOwns;
  91. /**
  92. * 专属用户列表
  93. */
  94. @DbIgnore
  95. @TableField(exist = false)
  96. private List<DistributeSearchView> userOwnsList;
  97. /**
  98. * 是否开启实物车票时长权益
  99. */
  100. private Boolean isBenefits;
  101. /**
  102. * 权益列表
  103. */
  104. private String benefitsList;
  105. /**
  106. * 月数
  107. */
  108. @TableField(updateStrategy = FieldStrategy.IGNORED)
  109. private Integer months;
  110. /**
  111. * 天数
  112. */
  113. @TableField(updateStrategy = FieldStrategy.IGNORED)
  114. private Integer days;
  115. // @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")
  116. // @TableField(exist = false)
  117. // private Integer orderBy;
  118. /**
  119. * 加购规格
  120. */
  121. @DbIgnore
  122. @TableField(exist = false)
  123. private List<GoodsDiscountPlusPurchaseRelation> dpSku;
  124. /**
  125. * 是否是优惠加购规格
  126. */
  127. private Boolean isDp;
  128. /**
  129. * 是否是镜像服务
  130. */
  131. private Boolean isMirror;
  132. /**
  133. * 是否是车队形式
  134. */
  135. private Boolean isCar;
  136. /**
  137. * 限制次数
  138. */
  139. private Integer gptLimitNum;
  140. /**
  141. * 限制时间
  142. */
  143. private Long gptLimitTime;
  144. /**
  145. * mj fast次数
  146. */
  147. private Integer mjFastNum;
  148. /**
  149. * mj relax次数
  150. */
  151. @TableField(updateStrategy = FieldStrategy.IGNORED)
  152. private Integer mjRelaxNum;
  153. /**
  154. * luma次数
  155. */
  156. @TableField(updateStrategy = FieldStrategy.IGNORED)
  157. private Integer lumaNum;
  158. /**
  159. * deepseek限制次数
  160. */
  161. @TableField(updateStrategy = FieldStrategy.IGNORED)
  162. private Integer dsLimitNum;
  163. /**
  164. * deepseek限制时间
  165. */
  166. @TableField(updateStrategy = FieldStrategy.IGNORED)
  167. private Long dsLimitTime;
  168. /**
  169. * 其他模型限制次数
  170. */
  171. @TableField(updateStrategy = FieldStrategy.IGNORED)
  172. private Integer otherLimitNum;
  173. /**
  174. * 其他模型限制时间
  175. */
  176. @TableField(updateStrategy = FieldStrategy.IGNORED)
  177. private Long otherLimitTime;
  178. /**
  179. * 特定价格
  180. */
  181. private BigDecimal specificPrice;
  182. /**
  183. * 特定平台购买用户人群
  184. */
  185. private String specificGoodsIds;
  186. /**
  187. * 优惠加购商品规格展示
  188. */
  189. @DbIgnore
  190. @TableField(exist = false)
  191. private List<GoodsDiscountPlusPurchaseRelationFrontView> dpSkuList;
  192. /**
  193. * 前端展示
  194. */
  195. @DbIgnore
  196. @TableField(exist = false)
  197. @JsonProperty("gname")
  198. private String gName;
  199. /**
  200. * 前端展示
  201. */
  202. @DbIgnore
  203. @TableField(exist = false)
  204. @JsonProperty("sname")
  205. private String sName;
  206. @DbIgnore
  207. @TableField(exist = false)
  208. private BigDecimal yhShopSkuPrice;
  209. /**
  210. * 排序
  211. */
  212. @TableField(updateStrategy = FieldStrategy.IGNORED)
  213. private Integer sorted;
  214. /**
  215. * 备注
  216. */
  217. @TableField(updateStrategy = FieldStrategy.IGNORED)
  218. private String remark;
  219. /**
  220. * 镜像规格续费分类 默认基础
  221. */
  222. private String classTab;
  223. }