package com.zksy.environmentHJ212.domain.po;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 分钟数据 实体类
 * @author sy
 * @since 2024-10-30
 */
@Data
@TableName("minute_data_info")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "分钟数据")
public class MinuteDataInfo extends Model<MinuteDataInfo> {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "数据时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dataTime;

    @ApiModelProperty(value = "监测因子编码")
    private String code;

    @ApiModelProperty(value = "设备唯一标识")
    private String mn;

    @ApiModelProperty(value = "拆分包及应答标志")
    private String flag;

    @ApiModelProperty(value = "平均监测值")
    private BigDecimal dataAvgValue;

    @ApiModelProperty(value = "最小监测值")
    private BigDecimal dataMinValue;

    @ApiModelProperty(value = "最大监测值")
    private BigDecimal dataMaxValue;

    @ApiModelProperty(value = "累计监测值")
    private BigDecimal dataCouValue;

    @ApiModelProperty(value = "数据标识")
    private String dataFlag;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "备注")
    private String remark;
}