| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- package com.study.mall.entity;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.baomidou.mybatisplus.annotation.TableId;
- import com.baomidou.mybatisplus.annotation.TableLogic;
- import com.baomidou.mybatisplus.annotation.TableName;
- import lombok.Data;
- import java.io.Serializable;
- import java.math.BigDecimal;
- /**
- * 商品
- *
- * @author codingliang
- * @email codingliang@gmail.com
- * @date 2023-09-01 09:43:35
- */
- @Data
- @TableName("mall_goods")
- public class GoodsEntity extends BaseOperateEntity implements Serializable {
- private static final long serialVersionUID = 1L;
- /**
- * id
- */
- @TableId
- private Long id;
- /**
- * 一级分类id
- */
- private Long categoryOneId;
- /**
- * 二级分类id
- */
- private Long categoryTwoId;
- /**
- * 品牌id
- */
- private Long brandId;
- /**
- * 排序
- */
- private Integer sort;
- /**
- * 商品名称
- */
- private String name;
- /**
- * 是否开启sku;开启sku后使用sku价格
- */
- private String enableSku;
- /**
- * 商品状态;0下架 1在售 2 待审核
- */
- private String state;
- /**
- * 商品图片地址;多张图片使用,分割
- */
- private String imgs;
- /**
- * 销售价格
- */
- private BigDecimal price;
- /**
- * 市场价格
- */
- private BigDecimal marketPrice;
- /**
- * 是否热门推荐;0否1是
- */
- private String hot;
- /**
- * 是否限时精选;0否1是
- */
- private String limited;
- /**
- * 限购数量
- */
- @TableField(value = "`limit`")
- private Integer limit;
- /**
- * 库存数量
- */
- private Integer stockNum;
- /**
- * 收藏量
- */
- private Integer collectCnt;
- /**
- * 已售量
- */
- private Integer saleCnt;
- /**
- * 浏览量
- */
- private Integer visitCnt;
- /**
- * 分享量
- */
- private Integer shareCnt;
- /**
- * 是否显示收藏数量;0隐藏 1显示
- */
- private String showCollect;
- /**
- * 是否显示已售数量;0隐藏 1显示
- */
- private String showSale;
- /**
- * 是否显示访问数量;0隐藏 1显示
- */
- private String showVisit;
- /**
- * 是否显示分享数量;0隐藏 1显示
- */
- private String showShare;
- @TableLogic(value = "0", delval = "1")
- private String deleted;
- }
|