package com.tofly.spire.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.haiqiu.tools.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 大表（管网）(SpireBigGrid)表实体类
 *
 * @author HaiQiu
 * @since 2022-11-11 09:16:06
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "SPIRE_BIG_BASE", resultMap = "SpireBigBaseMap")
@ApiModel(value = "SpireBigBase对象", description = "大表（管网）基础数据")
public class SpireBigBase extends Model<SpireBigBase> {

    private static final long serialVersionUID = 517973460324815033L;

    /**
     * 主键ID
     */
    @Excel(name = "主键ID")
    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 累计量(m³)
     */
    @Excel(name = "累计量(m³)")
    @ApiModelProperty(value = "累计量(m³)")
    private String accFlow;

    /**
     * 反向累积量 (m³)
     */
    @Excel(name = "反向累积量 (m³)")
    @ApiModelProperty(value = "反向累积量 (m³)")
    private String decAccFlow;

    /**
     * 瞬时量 (m³/h)
     */
    @Excel(name = "瞬时量 (m³/h)")
    @ApiModelProperty(value = "瞬时量 (m³/h)")
    private String flow;

    /**
     * 进水温度 (℃)
     */
    @Excel(name = "进水温度 (℃)")
    @ApiModelProperty(value = "进水温度 (℃)")
    private String inTemp;

    /**
     * 纬度
     */
    @Excel(name = "高德纬度")
    @ApiModelProperty(value = "高德纬度")
    @TableField(jdbcType = JdbcType.VARCHAR,updateStrategy = FieldStrategy.IGNORED)
    private String latitude;

    /**
     * 经度
     */
    @Excel(name = "高德经度")
    @ApiModelProperty(value = "高德经度")
    @TableField(jdbcType = JdbcType.VARCHAR,updateStrategy = FieldStrategy.IGNORED)
    private String longitude;


    /**
     * 纬度
     */
    @Excel(name = "百度纬度")
    @ApiModelProperty(value = "百度纬度")
    @TableField(jdbcType = JdbcType.VARCHAR,updateStrategy = FieldStrategy.IGNORED)
    private String bdLatitude;

    /**
     * 经度
     */
    @Excel(name = "百度经度")
    @ApiModelProperty(value = "百度经度")
    @TableField(jdbcType = JdbcType.VARCHAR,updateStrategy = FieldStrategy.IGNORED)
    private String bdLongitude;

    /**
     * 表名
     */
    @Excel(name = "表名")
    @ApiModelProperty(value = "表名")
    private String meterName;

    /**
     * 表具状态
     */
    @Excel(name = "表具状态")
    @ApiModelProperty(value = "表具状态")
    private String meterStatus;

    /**
     * 表具类型
     */
    @Excel(name = "表具类型")
    @ApiModelProperty(value = "表具类型")
    private String meterType;

    /**
     * 压力值 (K_PA)
     */
    @Excel(name = "压力值 (K_PA)")
    @ApiModelProperty(value = "压力值 (K_PA)")
    private String pressure;

    /**
     * 表具时间
     */
    @Excel(name = "表具时间")
    @ApiModelProperty(value = "表具时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date readTime;

    /**
     * 表号
     */
    @Excel(name = "表号")
    @ApiModelProperty(value = "表号")
    private String sn;

    /**
     * 出水温度 (℃)
     */
    @Excel(name = "出水温度 (℃)")
    @ApiModelProperty(value = "出水温度 (℃)")
    private String temp;

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

    /**
     * 创建时间
     */
    @Excel(name = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
    @Excel(name = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * appid
     */
    @Excel(name = "appid")
    @ApiModelProperty(value = "appid")
    private String appid;


}

