/*
 * Author: wangjian
 * 生成entity
 */
package com.tofly.xrtygis.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


/**
 * DMA分区未上盘水量数据填报记录表
 *
 * @author admin
 * @date Tue May 17 00:00:00 CST 2022
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "TF_DMA_UNFILLED_WATER", resultMap = "dmaUnfilledWaterMap")
@KeySequence("TF_DMA_UNFILLED_WATER")
@ApiModel
public class DmaUnfilledWater extends Model<DmaUnfilledWater> {
    private static final long serialVersionUID = 1L;

    /**
     * $column.comments
     */
    @TableId(value = "ID", type = IdType.INPUT)
    @ApiModelProperty(value = "$column.comments")
    private Long id;
    /**
     * 填报日期
     */
    @ApiModelProperty(value = "填报日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date writeDate;
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String writeDateDis;
    /**
     * dma分区id
     */
    @ApiModelProperty(value = "dma分区id")
    private Long dmaId;

    @ApiModelProperty(value = "DMA编码")
    private String dmaCode;
    /**
     * DMA分区名称
     */
    @ApiModelProperty(value = "DMA分区名称")
    private String dmaName;

    @ApiModelProperty(value = "分区级别")
    private Integer dmaLevel;

    @ApiModelProperty(value = "分区级别名称")
    @TableField(exist = false)
    private String dmaLevelName;
    /**
     * 计费用水量
     */
    @ApiModelProperty(value = "计费用水量")
    private BigDecimal billingWaterVolume;
    /**
     * 免费用水量
     */
    @ApiModelProperty(value = "免费用水量")
    private BigDecimal freeWaterVolume;
    /**
     * 漏失水量
     */
    @ApiModelProperty(value = "漏失水量")
    private BigDecimal outflowWaterVolume;
    /**
     * 计量损失水量
     */
    @ApiModelProperty(value = "计量损失水量")
    private BigDecimal lossWaterVolume;
    /**
     * 其他损失水量
     */
    @ApiModelProperty(value = "其他损失水量")
    private BigDecimal otherWaterVolume;
    /**
     * 填报人员
     */
    @ApiModelProperty(value = "填报人员")
    @TableField(value = "CREATE_USER",insertStrategy = FieldStrategy.IGNORED)
    private Long createUser;
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String createUserName;
    /**
     * 操作时间
     */
    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
    private Date updateTime;
    @ApiModelProperty(value = "修改人")
    @TableField(value = "UPDATE_USER", fill = FieldFill.UPDATE)
    private Long updateUser;
    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private String updateUserName;


    @ApiModelProperty(value = "查询上报开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date startTime;

    @ApiModelProperty(value = "查询上报结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date endTime;
}
