GoodsEntity.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. package com.study.mall.entity;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableLogic;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import lombok.Data;
  7. import java.io.Serializable;
  8. import java.math.BigDecimal;
  9. /**
  10. * 商品
  11. *
  12. * @author codingliang
  13. * @email codingliang@gmail.com
  14. * @date 2023-09-01 09:43:35
  15. */
  16. @Data
  17. @TableName("mall_goods")
  18. public class GoodsEntity extends BaseOperateEntity implements Serializable {
  19. private static final long serialVersionUID = 1L;
  20. /**
  21. * id
  22. */
  23. @TableId
  24. private Long id;
  25. /**
  26. * 一级分类id
  27. */
  28. private Long categoryOneId;
  29. /**
  30. * 二级分类id
  31. */
  32. private Long categoryTwoId;
  33. /**
  34. * 品牌id
  35. */
  36. private Long brandId;
  37. /**
  38. * 排序
  39. */
  40. private Integer sort;
  41. /**
  42. * 商品名称
  43. */
  44. private String name;
  45. /**
  46. * 是否开启sku;开启sku后使用sku价格
  47. */
  48. private String enableSku;
  49. /**
  50. * 商品状态;0下架 1在售 2 待审核
  51. */
  52. private String state;
  53. /**
  54. * 商品图片地址;多张图片使用,分割
  55. */
  56. private String imgs;
  57. /**
  58. * 销售价格
  59. */
  60. private BigDecimal price;
  61. /**
  62. * 市场价格
  63. */
  64. private BigDecimal marketPrice;
  65. /**
  66. * 是否热门推荐;0否1是
  67. */
  68. private String hot;
  69. /**
  70. * 是否限时精选;0否1是
  71. */
  72. private String limited;
  73. /**
  74. * 限购数量
  75. */
  76. @TableField(value = "`limit`")
  77. private Integer limit;
  78. /**
  79. * 库存数量
  80. */
  81. private Integer stockNum;
  82. /**
  83. * 收藏量
  84. */
  85. private Integer collectCnt;
  86. /**
  87. * 已售量
  88. */
  89. private Integer saleCnt;
  90. /**
  91. * 浏览量
  92. */
  93. private Integer visitCnt;
  94. /**
  95. * 分享量
  96. */
  97. private Integer shareCnt;
  98. /**
  99. * 是否显示收藏数量;0隐藏 1显示
  100. */
  101. private String showCollect;
  102. /**
  103. * 是否显示已售数量;0隐藏 1显示
  104. */
  105. private String showSale;
  106. /**
  107. * 是否显示访问数量;0隐藏 1显示
  108. */
  109. private String showVisit;
  110. /**
  111. * 是否显示分享数量;0隐藏 1显示
  112. */
  113. private String showShare;
  114. @TableLogic(value = "0", delval = "1")
  115. private String deleted;
  116. }