package com.huimv.management.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * 
 * 
 * @author yinhao
 * @email yinhao@163.com
 * @date 2021-06-15 13:01:37
 */
@Data
@TableName("mgt_threshold_management")
public class ThresholdManagementEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Integer id;
	/**
	 * 牧场id
	 */
	@Excel(name="牧场名称",width = 15,replace = {"小猪认养牧场_144","海盐牧场_145"})
	private Integer farmId;
	/**
	 * 阈值类型
	 */
	@Excel(name = "阈值类型",width = 15,orderNum = "1")
//	@Excel(name = "阈值类型",width = 15,orderNum = "1",replace = {"室内高温_1","室内低温_2","室内空气污染_3","饮用水污染_4","室外高温_5","室外低温_6","室外空气污染_7","体温高温_8","体温低温_9","耳标电量不足_10"})
	private String thresholdType;
	/**
	 * 所属范围
	 * 1.室内
	 * 2.室外
	 * 3.体温
	 * 4.饮用水
	 */
	@Excel(name = "所属范围",orderNum = "2",replace = {"室内_1","室外_2","耳标数据_3","饮用水_4"})
	private Short belongTo;
	/**
	 * 阈值数值
	 */
	@Excel(name = "阈值数值",orderNum = "3")
	private Double thresholdValue;
	/**
	 * 删除状态 0:未删除 其他:已删除
	 */
	@TableLogic
	private Integer deleted;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date gmtCreate;
	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;

}
