/**
 * Copyright 2019 DH
 * All right reserved.
 * 项目名称: 大恒泰山系统
 * 创建日期:2023/6/16
 */
package org.springblade.modules.business.data.entity;

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:2023/6/16
 * Title:文件所属模块（必须填写）
 * Description：对本文件的详细描述，原则上不能少于30字
 * @author dylan
 * @version 1.0
 * Remark：认为有必要的其他信息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("data_szy_mp_q_r")
public class RtuDataSzyFlowRateStoreEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

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

    /**
     * 测站编码
     */
    @ApiModelProperty("测站编码")
    private String rtuCode;

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

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

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

    @ApiModelProperty("瞬时流量1组")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private String mpQ;

    @ApiModelProperty("累计流量1组")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private String accW;

    @ApiModelProperty("瞬时流量2组")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private String mpSencondQ;

    @ApiModelProperty("累计流量2组")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private String accSencondW;

    @ApiModelProperty("小时水量")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private String hourW;

    @ApiModelProperty("入厂污水流量")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private String inStpQ;

    @ApiModelProperty("累计入厂污水量")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private String accPqW;

    @ApiModelProperty("特殊区域数据")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private String speRegData;

}
