package com.bonus.material.device.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 lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 设备信息对象 ma_dev_info
 *
 * @author syruan
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString
@Accessors(chain = true)
public class DevInfoDt {

    private static final long serialVersionUID = 429270031714225761L;

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "装备名称")
    @Excel(name = "装备名称")
    private String deviceName;

    @ApiModelProperty(value = "装备类目")
    @Excel(name = "装备类目")
    private String categoryName;

    @ApiModelProperty(value = "装备单位")
    @Excel(name = "装备单位")
    private String unitName;

    /** 设备品牌 */
    @Excel(name = "装备品牌")
    @ApiModelProperty(value = "设备品牌")
    private String brand;

    /** 出厂日期 */
    @Excel(name = "出厂日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "出厂日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date productionDate;

    @ApiModelProperty(value = "联系人")
    @Excel(name = "联系人")
    private String person;

    @ApiModelProperty(value = "联系人电话")
    @Excel(name = "联系人电话")
    private String personPhone;

    @Excel(name = "上架数量")
    @ApiModelProperty(value = "设备数量")
    private Integer deviceCount;


    @ApiModelProperty(value = "录入人")
    @Excel(name = "录入人")
    private String creatorName;

    @ApiModelProperty(value = "录入时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "所属公司")
    @ApiModelProperty(value = "所属公司")
    private String comName;

}
