/**
 * Copyright 2019 DH
 * All right reserved.
 * 项目名称: 运维系统
 * 创建日期:2022/8/28
 */
package org.springblade.modules.business.monitor.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/***
 * Date:2022/8/28
 * Title:文件所属模块（必须填写）
 * Description：对本文件的详细描述，原则上不能少于30字
 * @author dylan
 * @version 1.0
 * Remark：认为有必要的其他信息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("data_mp_qr")
public class WaterFlowRateHistoryInfoEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 租户ID
     */
    @ApiModelProperty("租户ID")
    private String tenantId;

    /**
     * 测站编码
     */
    @ApiModelProperty("测站编码")
    @TableField("mp_cd")
    private String mpcd;

    /**
     * 时间
     */
    @ApiModelProperty("时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    @TableField("tm")
    private Date tm;

    /**
     * 取排水流量
     */
    @ApiModelProperty("取排水流量")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @TableField("mp_q")
    private Double mpq;

    /**
     * 累计水量
     */
    @ApiModelProperty("累计水量")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @TableField("acc_w")
    private Long accw;


    /**
     * 入厂污水流量
     */
    @ApiModelProperty("入厂污水流量")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @TableField("in_stp_q")
    private Double instpq;

    /**
     * 累计入厂污水流量
     */
    @ApiModelProperty("累计入厂污水流量")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @TableField("acc_pq_w")
    private Long accpqw;

    /**
     * 特殊区域数据
     */
    @ApiModelProperty("特殊区域数据")
    @TableField("spe_reg_data")
    private String speregdata;

    /**
     * 小时流量
     */
    @ApiModelProperty("小时流量")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @TableField("hour_w")
    private Long hourw;

    @ApiModelProperty("水位")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @TableField("water_level")
    private Double waterLevel;


    @ApiModelProperty("流速")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @TableField("flow_speed")
    private Double flowSpeed;


    /**
     * 入库时间
     */
    @ApiModelProperty("入库时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    @TableField("ts")
    private Date ts;

    /**
     * 报文ID
     */
    @ApiModelProperty("报文ID")
    @TableField("packet_uuid")
    private String packetuuid;
}
