package com.xingxi.master.merchant.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xingxi.common.annotation.Excel;
import com.xingxi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * 店铺商品对象 m_merchant_prod
 *
 * @author xingxi
 * @date 2025-03-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString
public class MerchantProd extends BaseEntity {
    private static final long serialVersionUID = 1L;

    // 主键
    private Long mercProdId;

    // 商户ID
    @Excel(name = "商户ID")
    private Long mercId;

    // 商品ID
    @Excel(name = "商品ID")
    private Long prodId;

    // 商品属性ID
    @Excel(name = "商品属性ID")
    private Long prodAttrId;

    // 上架时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shelfTime;

    // 上架标志
    @Excel(name = "上架标志")
    private String shelfFlag;

    // 删除标志
    @Excel(name = "删除标志")
    private String delFlag;
}
