package org.stm.metric.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
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;
import java.util.List;

/**
 * @Description: 监测记录
 * @Author: jeecg-boot
 * @Date:   2023-07-15
 * @Version: V1.0
 */
@Data
@TableName("metric_report")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="metric_report对象", description="监测记录")
public class MetricReport implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private java.lang.Integer id;
	/**指标ID*/
	@Excel(name = "指标NO", width = 15)
    @ApiModelProperty(value = "指标NO")
    private java.lang.String mtrcNo;
	/**填报时间*/
	@Excel(name = "填报时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "填报时间")
    private java.util.Date fillTime;
	/**填报值*/
	@Excel(name = "填报值", width = 15)
    @ApiModelProperty(value = "填报值")
    private java.lang.String fillVals;
	/**填报人*/
	@Excel(name = "填报人", width = 15)
    @ApiModelProperty(value = "填报人")
    private java.lang.String reporter;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String des;

    @Excel(name = "风险等级", width = 15)
    @ApiModelProperty(value = "风险等级")
    private java.lang.Integer riskLevel;

    @ApiModelProperty(value = "申批状态")
    @Dict(dicCode="app_sta")
    private Integer appSta;


    @TableField(exist = false)
    private List<Integer> ids;
}
