GoodsBean.java 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. package com.miekir.shibei.bean;
  2. import javax.persistence.*;
  3. /**
  4. *
  5. *
  6. * @author Miekir
  7. * @date 2020/7/5 21:50
  8. * Description: 商品实体
  9. */
  10. @Entity
  11. @Table(name = "t_goods", schema = "shibei", catalog = "")
  12. public class GoodsBean {
  13. public static final int TYPE_RECOMMEND = 0;
  14. public static final int TYPE_TECHNOLOGY = 1;
  15. public static final int TYPE_LIFE = 2;
  16. public static final int TYPE_NETWORK = 3;
  17. @Id
  18. @GeneratedValue(strategy= GenerationType.AUTO)
  19. @Column(name = "id", nullable = false, insertable = true, updatable = false)
  20. public long id;
  21. /**
  22. * 封面图片地址
  23. */
  24. @Basic
  25. @Column(columnDefinition = "MEDIUMTEXT", name = "coverImageUrl", nullable = true, insertable = true, updatable = true)
  26. public String coverImageUrl;
  27. /**
  28. * 视频地址
  29. */
  30. @Basic
  31. @Column(columnDefinition = "MEDIUMTEXT", name = "videoUrl", nullable = true, insertable = true, updatable = true)
  32. public String videoUrl;
  33. /**
  34. * 标题
  35. */
  36. @Basic
  37. @Column(name = "title", nullable = true, insertable = true, updatable = true)
  38. public String title;
  39. /**
  40. * 商品描述
  41. */
  42. @Basic
  43. @Column(name = "description", nullable = true, insertable = true, updatable = true)
  44. public String description;
  45. /**
  46. * 商品推荐理由(一句话推荐、推荐者心声)
  47. */
  48. @Basic
  49. @Column(name = "reason", nullable = true, insertable = true, updatable = true)
  50. public String reason;
  51. /**
  52. * 原价
  53. */
  54. @Basic
  55. @Column(name = "oldPrice", nullable = true, insertable = true, updatable = true)
  56. public long oldPrice;
  57. /**
  58. * 现价
  59. */
  60. @Basic
  61. @Column(name = "nowPrice", nullable = true, insertable = true, updatable = true)
  62. public long nowPrice;
  63. /**
  64. * 返利
  65. */
  66. @Basic
  67. @Column(name = "rebate", nullable = true, insertable = true, updatable = true)
  68. public long rebate;
  69. /**
  70. * 店名
  71. */
  72. @Basic
  73. @Column(name = "shopName", nullable = true, insertable = true, updatable = true)
  74. public String shopName;
  75. /**
  76. * 商店所属省份
  77. */
  78. @Basic
  79. @Column(name = "province", nullable = true, insertable = true, updatable = true)
  80. public String province;
  81. /**
  82. * 是否自营
  83. */
  84. @Basic
  85. @Column(name = "isSelfBusiness", nullable = true, insertable = true, updatable = true)
  86. public boolean isSelfBusiness;
  87. /**
  88. * 是否有券
  89. */
  90. @Basic
  91. @Column(name = "hasCoupon", nullable = true, insertable = true, updatable = true)
  92. public boolean hasCoupon;
  93. /**
  94. * 优惠券信息
  95. */
  96. @Basic
  97. @Column(name = "couponInfo", nullable = true, insertable = true, updatable = true)
  98. public String couponInfo;
  99. /**
  100. * 所属类型
  101. */
  102. @Basic
  103. @Column(name = "goodsType", nullable = true, insertable = true, updatable = true)
  104. public int goodsType;
  105. /**
  106. * 商品链接
  107. */
  108. @Basic
  109. @Column(columnDefinition = "MEDIUMTEXT", name = "goodsUrl", nullable = true, insertable = true, updatable = true)
  110. public String goodsUrl;
  111. /**
  112. * 月销量
  113. */
  114. @Basic
  115. @Column(name = "salesPerMonth", nullable = true, insertable = true, updatable = true)
  116. public long salesPerMonth;
  117. /**
  118. * 评论条数
  119. */
  120. @Basic
  121. @Column(name = "commentNum", nullable = true, insertable = true, updatable = true)
  122. public long commentNum;
  123. /**
  124. * 好评率
  125. */
  126. @Basic
  127. @Column(name = "goodCommentPercent", nullable = true, insertable = true, updatable = true)
  128. public double goodCommentPercent;
  129. /**
  130. * 创建时间
  131. */
  132. @Basic
  133. @Column(name = "createTimeMillis", nullable = true, insertable = true, updatable = true)
  134. public long createTimeMillis;
  135. /**
  136. * 更新时间
  137. */
  138. @Basic
  139. @Column(name = "updateTimeMillis", nullable = true, insertable = true, updatable = true)
  140. public long updateTimeMillis;
  141. @Basic
  142. @Column(name = "enable", nullable = true, insertable = true, updatable = true)
  143. public boolean enable;
  144. /**是否是本地写死的数据*/
  145. @Basic
  146. @Column(name = "isLocal", nullable = true, insertable = true, updatable = true)
  147. public boolean isLocal;
  148. }