xiaoyong931011
2023-02-09 ae99a4a7654a6a3d8fd8343c22c415930f0a18cb
src/main/java/cc/mrbird/febs/mall/entity/MallGoods.java
@@ -1,8 +1,12 @@
package cc.mrbird.febs.mall.entity;
import cc.mrbird.febs.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
/**
 * @author wzy
@@ -22,9 +26,20 @@
    private String thumb;
    private String goodsParameter;
    private String goodsDetails;
    private Integer isSale;
    /**
     * 上架
     */
    public static final Integer ISSALE_STATUS_ENABLE = 1;
    /**
     * 下架
     */
    public static final Integer ISSALE_STATUS_DISABLED = 2;
    private String originalPrice;
@@ -32,5 +47,80 @@
    private Long categoryId;
    /**
     * 是否热卖  1:是  2:否
     */
    public static final Integer ISHOT_STATE_YES = 1;
    public static final Integer ISHOT_STATE_NO = 2;
    private Integer isHot;
    /**
     * 静态倍数
     */
    private BigDecimal staticMulti;
    /**
     * 静态占比
     */
    private BigDecimal staticProp;
    /**
     * 是否多规则 1-是 2-否
     */
    private Integer isSku;
    /**
     * 是否普通商品 1-普通商品 2-套餐
     */
    private Integer isNormal;
    /**
     * 库存
     */
    private Integer stock;
    /**
     * 销量
     */
    private Integer volume;
    /**
     * 成本价
     */
    private BigDecimal costPrice;
    /**
     * 商品类型 1-付费商品 2-积分商品
     */
    private Integer goodsType;
    /**
     * 积分
     */
    private BigDecimal score;
    @TableField(exist = false)
    private List<MallGoodsStyle> styles;
    @TableField(exist = false)
    private List<MallGoodsSku> skus;
    @TableField(exist = false)
    private List<String> images;
    @TableField(exist = false)
    private String orderNo;
    private Integer hasCarriage;
    private BigDecimal carriage;
    private String wxCodeImg;
    //运费方式  (1:固定运费 2:运费模板)
    private Integer carriageType;
    //运费金额
    private BigDecimal carriageAmount;
    //运费模板ID
    private Long carriageRuleId;
}