package com.bonus.material.supplier.domain;

import com.bonus.common.core.annotation.Excel;
import com.bonus.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 物资厂家表实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MaSupplier extends BaseEntity {

    //用于excel导出的序号一列,不需要业务逻辑处理
    @Excel(name = "序号", isSequence = true, type = Excel.Type.EXPORT , sort = 0)
    int sequence;

    @ApiModelProperty("厂家主键ID")
    private Long supplierId;

    @Excel(name = "厂家编号", width = 25, sort = 1)
    @ApiModelProperty("厂家编号（如：SUP202510001）")
    private String supplierCode;

    @Excel(name = "厂家名称", width = 25, sort = 2 )
    @ApiModelProperty("厂家名称")
    private String supplierName;

    @Excel(name = "联系人", width = 25, sort = 3 )
    @ApiModelProperty("联系人")
    private String contactPerson;

    @Excel(name = "联系电话", width = 25, sort = 4 )
    @ApiModelProperty("联系电话")
    private String contactPhone;

    @Excel(name = "厂家地址", width = 25, sort = 5 )
    @ApiModelProperty("厂家地址")
    private String address;

    @Excel(name = "资质信息或营业执照编号", width = 25, sort = 6 )
    @ApiModelProperty("资质信息或营业执照编号")
    private String qualification;

    @Excel(name = "状态", width = 25, sort = 7 )
    @ApiModelProperty("状态（1启用，0停用）")
    private Integer status;

    @Excel(name = "备注", width = 25, sort = 8 )
    @ApiModelProperty("备注")
    private String remark;

    @Excel(name = "创建时间", width = 25, sort = 9 )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "更新时间", width = 25, sort = 10 )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}


