package cn.iocoder.yudao.module.inspection.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import cn.iocoder.yudao.annotation.Excel;
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;

import java.math.BigDecimal;
import java.util.List;

/**
 * 检测商品对象 shop_inspection_goods
 *
 * @author ruoyi
 * @date 2023-07-08
 */
@Data
public class ShopInspectionGoods extends TenantBaseDO
{
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    //标题
    private String title;
    //商品分类id
    private Long goodsCategoryId;
    //合作商id
    private Integer partnerId;
    //价格，单位为：分
    private Long price;
    //封面图
    private String image;
    //商品图片
    private String images;
    //特价，0-正常，1-特价
    private Integer isSpecial=0;
    //详细描述
    private String goodsDesc;
    //0下架1上架
    private String isListing;
    private Integer orderNum;
    //是否参与优惠0不参与1参与
    private String isAttend="0";
    //是否为主页推荐 最多设置3个 默认为0
    private String setHome="0";
    private String listingStatus;
    private String rejectReason;
    //合作商名称
    @TableField(exist = false)
    private String partnerName;
    //商品分类名称
    @TableField(exist = false)
    private String categoryName;
    @TableField(exist = false)
    //是否为首页推荐0否1是
    private String homeShow="0";
    /** 价格 */
    @TableField(exist = false)
    private BigDecimal originalPrice;
    @TableField(exist = false)
    private BigDecimal lowPrice;
    @TableField(exist = false)
    private BigDecimal realPrice;
    @TableField(exist = false)
    private String[] imageList;
    @TableField(exist = false)
    private List<InspectionGoodsSku> skuList;
}
