package com.bonus.material.ma.domain;

import com.bonus.common.core.annotation.Excel;
import com.bonus.common.core.web.domain.BaseEntity;
import com.bonus.material.ma.domain.vo.SampleSync;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 机具设备管理对象 ma_machine
 *
 * @author xsheng
 * @date 2024-09-27
 */


@Data
@ToString
public class MachineSynch extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 机具ID
     */
    private Long maId;

    /**
     * 类型ID
     */
    @Excel(name = "类型ID")
    @ApiModelProperty(value = "类型ID")
    private Long typeId;

    /**
     * 机具编号
     */
    @Excel(name = "机具编号")
    @ApiModelProperty(value = "机具编号")
    private String maCode;

    /**
     * 原编号
     */
    @Excel(name = "原编号")
    @ApiModelProperty(value = "原编号")
    private String preCode;

    /**
     * 机具状态（数据字典）
     */
    @Excel(name = "机具状态")
    @ApiModelProperty(value = "机具状态")
    private String maStatus;

    /**
     * 机具名称
     */
    @Excel(name = "机具名称")
    @ApiModelProperty(value = "机具名称")
    private String typeModelName;

    /**
     * 规格型号
     */
    @Excel(name = "规格型号")
    @ApiModelProperty(value = "规格型号")
    private String typeName;


    /**
     * 本次检验人
     */
    @Excel(name = "本次检验人")
    @ApiModelProperty(value = "本次检验人")
    private String checkMan;

    /**
     * 本次检验日期
     */
    @ApiModelProperty(value = "本次检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "本次检验日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date thisCheckTime;

    /**
     * 下次检验日期
     */
    @ApiModelProperty(value = "下次检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次检验日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextCheckTime;


    /**
     * 检验人员
     */
    @Excel(name = "检验人员")
    @ApiModelProperty(value = "检验人员")
    private String inspectMan;

    /**
     * 检验结论
     */
    @Excel(name = "检验结论")
    @ApiModelProperty(value = "检验结论")
    private String reason;

    @ApiModelProperty(value = "关键字")
    private String keyWord;

    @ApiModelProperty("检测报告编号")
    private String exCode;

    @ApiModelProperty("检测报告地址")
    private String exUrl;

    @ApiModelProperty("是否为机具 (0 代表机具)")
    private Integer isJj;

    @ApiModelProperty(value = "报告编号")
    private String reportCode;


    private String nextCheckTimeSynch;

    private String checkTimeSynch;

    @ApiModelProperty(value = "报告编号")
    private String reportNum;

    @ApiModelProperty(value = "pdf")
    private String pdf;

    @ApiModelProperty(value = "code")
    private String code;

    @ApiModelProperty(value = "报告名称")
    private String reportName;

    /**
     * 1-工器具，2-安全工器具
     */
    private int jiJuType;

    private Integer isSynch;

    /**
     * 检验结果
     */
    @Excel(name = "检验结果")
    @ApiModelProperty(value = "检验结果")
    private String result;

    private int parentId;
}
