package com.bonus.material.device.domain.dto;

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

import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @Author：liang.chao
 * @Date：2024/12/4 - 13:59
 */
@Data
public class DevInfoImpDto {

    /** 设备编码 */
    @ApiModelProperty(value = "设备编码")
    private String code;

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

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

    @Excel(name = "出厂日期")
    @ApiModelProperty(value = "出厂日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date productionDate;

    @ApiModelProperty(value = "创建人")
    private Long creator;

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

    @ApiModelProperty(value = "联系电话")
    @Excel(name = "联系电话")
    @Size(min = 11, max = 11, message = "手机号长度不能超过11位")
    private String personPhone;

    @ApiModelProperty(value = "整机装备重量（kg）")
    @Excel(name = "整机装备重量（kg）")
    private String deviceWeight;

    @ApiModelProperty(value = "上传人Id")
    private Long ownId;

    @ApiModelProperty(value = "校验日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "校验日期")
    private Date checkDate;

    @ApiModelProperty(value = "校验周期（月）")
    @Excel(name = "校验周期（月）")
    private Integer checkCycle;

    @ApiModelProperty(value = "设备状态")
    private Integer maStatus;

}
