package org.jeecg.modules.sensor.entity;

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

import java.io.Serializable;

/**
 * @Description: 检测项说明表
 * @Author: jeecg-boot
 * @Date:   2021-10-23
 * @Version: V1.0
 */
@Data
@TableName("bu_item_explain")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_item_explain对象", description="检测项说明表")
public class BuItemExplain implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@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 createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@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 updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**设备类型*/
	@Excel(name = "设备类型", width = 15)
    @ApiModelProperty(value = "设备类型")
    @Dict(dictTable = "bu_device_type",dicCode = "id",dicText = "type_name")
    private String deviceType;
	/**检测项*/
	@Excel(name = "检测项", width = 15, dicCode = "test_item")
    @ApiModelProperty(value = "检测项")
    @Dict(dicCode = "test_item")
    private String item;
	/**检测项判式*/
	@Excel(name = "检测项判式", width = 60)
    @ApiModelProperty(value = "检测项判式")
    private String compute;
	/**检测项判式说明*/
	@Excel(name = "检测项判式说明", width = 15)
    @ApiModelProperty(value = "检测项判式说明")
    private String computeExplain;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**检测项状态*/
//    @Excel(name = "检测项状态", width = 15)
    @ApiModelProperty(value = "检测项状态")
    @Dict(dicCode = "use_status")
    private Integer itemStatus;
    /**状态1*/
//    @Excel(name = "状态1", width = 15)
    @ApiModelProperty(value = "状态1")
    private Integer statusOne;
    /**状态2*/
//    @Excel(name = "状态2", width = 15)
    @ApiModelProperty(value = "状态2")
    private Integer statusTwo;
    /**状态3*/
//    @Excel(name = "状态3", width = 15)
    @ApiModelProperty(value = "状态3")
    private Integer statusThree;
    /**状态4*/
//    @Excel(name = "状态4", width = 15)
    @ApiModelProperty(value = "状态4")
    private Integer statusFour;
}
