package com.bonus.material.device.domain;

import com.bonus.common.biz.domain.BmFileInfo;
import com.bonus.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 装备质检表(MaDevQc)实体类
 *
 * @author makejava
 * @since 2024-12-05 15:51:33
 */
@Data
@Accessors(chain = true)
public class MaDevQc extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 810056154627295208L;

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

    @ApiModelProperty(value = "装备id")
    private Integer maId;

    @ApiModelProperty(value = "设备编码")
    private String deviceCode;

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

    @ApiModelProperty(value = "下次检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date nextCheckTime;


    @ApiModelProperty(value = "上次检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date upCheckTime;

    @ApiModelProperty(value = "质检编码")
    private String qcCode;

    @ApiModelProperty(value = "质检员")
    private String qcUser;

    @ApiModelProperty(value = "质检日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date qcTime;

    @ApiModelProperty(value = "质检开始日期")
    private String qcStartTime;

    @ApiModelProperty(value = "质检结束日期")
    private String qcEndTime;

    @ApiModelProperty(value = "上传开始日期")
    private String createStartTime;

    @ApiModelProperty(value = "上传结束日期")
    private String createEndTime;

    @ApiModelProperty(value = "附件信息")
    private List<BmFileInfo> fileInfoList;

    @ApiModelProperty(value = "附件信息")
    private BmFileInfo fileInfo;

    @ApiModelProperty(value = "附件地址")
    private String url;

    @ApiModelProperty(value = "上传人")
    private String nickName;

    @ApiModelProperty(value = "创建人所属公司")
    private String qcCom;

    @ApiModelProperty(value = "创建人所属公司名称")
    private String comName;

    @ApiModelProperty(value = "质检次数")
    private Integer minNum;
    private Integer maxNum;

    private Integer maintenanceAlarmDay;
    private Integer ownId;
    private Integer fileId;

    private String itemTypeModel;

    private String phonenumber;

    private String alert;

    private Long companyId;
}

