GoodsDonSku.java 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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 BigDecimal renewPrice;
  91. /**
  92. * 专属用户规格
  93. */
  94. @TableField(updateStrategy = FieldStrategy.IGNORED)
  95. private String userOwns;
  96. /**
  97. * 专属用户列表
  98. */
  99. @DbIgnore
  100. @TableField(exist = false)
  101. private List<DistributeSearchView> userOwnsList;
  102. /**
  103. * 是否开启实物车票时长权益
  104. */
  105. private Boolean isBenefits;
  106. /**
  107. * 权益列表
  108. */
  109. private String benefitsList;
  110. /**
  111. * 月数
  112. */
  113. @TableField(updateStrategy = FieldStrategy.IGNORED)
  114. private Integer months;
  115. /**
  116. * 天数
  117. */
  118. @TableField(updateStrategy = FieldStrategy.IGNORED)
  119. private Integer days;
  120. // @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")
  121. // @TableField(exist = false)
  122. // private Integer orderBy;
  123. /**
  124. * 加购规格
  125. */
  126. @DbIgnore
  127. @TableField(exist = false)
  128. private List<GoodsDiscountPlusPurchaseRelation> dpSku;
  129. /**
  130. * 是否是优惠加购规格
  131. */
  132. private Boolean isDp;
  133. /**
  134. * 是否是镜像服务
  135. */
  136. private Boolean isMirror;
  137. /**
  138. * 是否是车队形式
  139. */
  140. private Boolean isCar;
  141. /**
  142. * 限制次数
  143. */
  144. private Integer gptLimitNum;
  145. /**
  146. * 限制时间
  147. */
  148. private Long gptLimitTime;
  149. /**
  150. * GPT 高级模型(thinking) 次数
  151. */
  152. @TableField(updateStrategy = FieldStrategy.IGNORED)
  153. private Integer gptThink;
  154. /**
  155. * GPT 高级模型(thinking) 限制时间
  156. */
  157. @TableField(updateStrategy = FieldStrategy.IGNORED)
  158. private Long gptThinkLimitTime;
  159. /**
  160. * GPT 高级模型(pro) 次数
  161. */
  162. @TableField(updateStrategy = FieldStrategy.IGNORED)
  163. private Integer gptPro;
  164. /**
  165. * GPT 高级模型(pro) 限制时间
  166. */
  167. @TableField(updateStrategy = FieldStrategy.IGNORED)
  168. private Long gptProLimitTime;
  169. /**
  170. * 深度研究 次数
  171. */
  172. @TableField(updateStrategy = FieldStrategy.IGNORED)
  173. private Integer gptDeepStyleLimit;
  174. /**
  175. * 深度研究 限制时间
  176. */
  177. @TableField(updateStrategy = FieldStrategy.IGNORED)
  178. private Long gptDeepStyleLimitTime;
  179. /**
  180. * mj fast次数
  181. */
  182. private Integer mjFastNum;
  183. /**
  184. * mj relax次数
  185. */
  186. @TableField(updateStrategy = FieldStrategy.IGNORED)
  187. private Integer mjRelaxNum;
  188. /**
  189. * luma次数
  190. */
  191. @TableField(updateStrategy = FieldStrategy.IGNORED)
  192. private Integer lumaNum;
  193. /**
  194. * deepseek限制次数
  195. */
  196. @TableField(updateStrategy = FieldStrategy.IGNORED)
  197. private Integer dsLimitNum;
  198. /**
  199. * deepseek限制时间
  200. */
  201. @TableField(updateStrategy = FieldStrategy.IGNORED)
  202. private Long dsLimitTime;
  203. /**
  204. * 其他模型限制次数
  205. */
  206. @TableField(updateStrategy = FieldStrategy.IGNORED)
  207. private Integer otherLimitNum;
  208. /**
  209. * 其他模型限制时间
  210. */
  211. @TableField(updateStrategy = FieldStrategy.IGNORED)
  212. private Long otherLimitTime;
  213. /**
  214. * 特定价格
  215. */
  216. private BigDecimal specificPrice;
  217. /**
  218. * 特定平台购买用户人群
  219. */
  220. private String specificGoodsIds;
  221. /**
  222. * 优惠加购商品规格展示
  223. */
  224. @DbIgnore
  225. @TableField(exist = false)
  226. private List<GoodsDiscountPlusPurchaseRelationFrontView> dpSkuList;
  227. /**
  228. * 前端展示
  229. */
  230. @DbIgnore
  231. @TableField(exist = false)
  232. @JsonProperty("gname")
  233. private String gName;
  234. /**
  235. * 前端展示
  236. */
  237. @DbIgnore
  238. @TableField(exist = false)
  239. @JsonProperty("sname")
  240. private String sName;
  241. @DbIgnore
  242. @TableField(exist = false)
  243. private BigDecimal yhShopSkuPrice;
  244. /**
  245. * 排序
  246. */
  247. @TableField(updateStrategy = FieldStrategy.IGNORED)
  248. private Integer sorted;
  249. /**
  250. * 备注
  251. */
  252. @TableField(updateStrategy = FieldStrategy.IGNORED)
  253. private String remark;
  254. /**
  255. * claude code每日限额
  256. */
  257. @TableField(updateStrategy = FieldStrategy.IGNORED)
  258. private Integer claudeDailyLimit;
  259. /**
  260. * Claude code 服务总额度
  261. */
  262. @TableField(updateStrategy = FieldStrategy.IGNORED)
  263. private Integer claudeQuota;
  264. /**
  265. * nano总配额次数
  266. */
  267. @TableField(updateStrategy = FieldStrategy.IGNORED)
  268. private Integer nanoQuota;
  269. /**
  270. * cc最高约可使用次数
  271. */
  272. @TableField(updateStrategy = FieldStrategy.IGNORED)
  273. private Integer highestUsage;
  274. /**
  275. * 是否赠送codex
  276. */
  277. private Boolean isCodex;
  278. /**
  279. * codex套餐名
  280. */
  281. private String codexPlanName;
  282. /**
  283. * 每日预算上限
  284. */
  285. @TableField(updateStrategy = FieldStrategy.IGNORED)
  286. private Integer openaiDailyLimit;
  287. /**
  288. * 每月预算上限
  289. */
  290. @TableField(updateStrategy = FieldStrategy.IGNORED)
  291. private Integer openaiQuota;
  292. /**
  293. * 是否坐满规格就下架车队 默认false
  294. */
  295. private Boolean isDown;
  296. /**
  297. * 付款说明
  298. */
  299. @TableField(updateStrategy = FieldStrategy.IGNORED)
  300. private String payDesc;
  301. /**
  302. * 是否展示规格付款说明
  303. * 默认false
  304. */
  305. private Boolean showPayDesc;
  306. /**
  307. * 是否禁止奈飞检测
  308. */
  309. private Boolean isBannedCheck;
  310. /**
  311. * 是否开启订阅提醒
  312. */
  313. private Boolean isSubscribeAlert;
  314. /**
  315. * GPT代充类型
  316. * 默认1 普通
  317. * 2.活动代充类型
  318. */
  319. private Integer rechargeType;
  320. }