package org.jeecg.modules.workOrder.entity;

import java.io.Serializable;
import java.util.Set;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecgframework.poi.excel.annotation.ExcelIgnore;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 作业数据记录
 * @Author: jeecg-boot
 * @Date:   2025-02-20
 * @Version: V1.0
 */
@Data
@TableName("bu_work_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_work_record对象", description="作业数据记录")
public class WorkRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**createDept*/
	@Excel(name = "createDept", width = 15)
    @ApiModelProperty(value = "createDept")
    private java.lang.String createDept;
	/**createBy*/
    @ApiModelProperty(value = "createBy")
    private java.lang.String createBy;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
    private java.util.Date createTime;
	/**updateBy*/
    @ApiModelProperty(value = "updateBy")
    private java.lang.String updateBy;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
    private java.util.Date updateTime;
	/**工单*/
	@Excel(name = "工单", width = 15)
    @ApiModelProperty(value = "工单")
    private java.lang.String workOrder;
	/**工具*/
	@Excel(name = "工具", width = 15)
    @ApiModelProperty(value = "工具")
    @Dict(dictTable = "v_bu_tool_sheet",dicText = "name",dicCode = "id")
    private java.lang.String toolId;
	/**设备*/
	@Excel(name = "设备", width = 15)
    @ApiModelProperty(value = "设备")
    @Dict(dictTable = "v_bu_device",dicText = "name",dicCode = "id")
    private java.lang.String deviceId;
	/**部件*/
	@Excel(name = "部件", width = 15)
    @ApiModelProperty(value = "部件")
    @Dict(dictTable = "bu_part",dicText = "name",dicCode = "id")
    private java.lang.String partId;
	/**测量项点*/
	@Excel(name = "测量项点", width = 15)
    @ApiModelProperty(value = "测量项点")
    @Dict(dictTable = "bu_regular_input",dicText = "data_pot",dicCode = "id")
    private java.lang.String regularInputId;
	/**测量值*/
	@Excel(name = "测量值", width = 15)
    @ApiModelProperty(value = "测量值")
    private java.lang.String numericValue;
	/**单位*/
	@Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    private java.lang.String unit;
	/**测量人*/
	@Excel(name = "测量人", width = 15)
    @ApiModelProperty(value = "测量人")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
    private java.lang.String inspector;
	/**测量时间*/
	@Excel(name = "测量时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "测量时间")
    private java.util.Date inspecTime;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
    @ApiModelProperty(value = "当前接收数据0否1是")
    private Integer nowWay;
    @ApiModelProperty("采集次数")
    private Integer collectNum;
    @ApiModelProperty("取平均值基数，默认1不需要取平均值")
    private String avgCount;

    @TableField(exist = false)
    private String toolName;
    @TableField(exist = false)
    private String toolTypeId;
    @TableField(exist = false)
    private boolean resultOverGauge;// 结果是否合格
    @TableField(exist = false)
    private Double maxValue;
    @TableField(exist = false)
    private Double minValue;
    @ExcelIgnore
    @TableField(exist = false)
    private Set<String> inputIds;
}
