/**
 * Copyright 2019 DH
 * All right reserved.
 * 项目名称: 运维系统
 * 创建日期:2023/10/26
 */
package org.springblade.modules.business.count.entity;

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/10/26
 * Title:取用水户按月统计
 * Description：对本文件的详细描述，原则上不能少于30字
 * @author dylan
 * @version 1.0
 * Remark：认为有必要的其他信息
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class WaterUseConsumerMonthCountEntity extends BaseEntity {
    /**
     * 取用水户代码
     */
    @ApiModelProperty(value = "取用水户代码")
    private String wiuCd;

    /**
     * 取用水户名称
     */
    @ApiModelProperty(value = "取用水户名称")
    private String wiuNm;

    /**
     * 当月累计用水量
     */
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Long waterFlowSum;

    /**
     * 设站年月
     */
    @ApiModelProperty(value = "设站年月")
    @DateTimeFormat(
            pattern = "yyyy-MM"
    )
    @JsonFormat(
            pattern = "yyyy-MM",
            timezone = "GMT+8"
    )
    private Date countDate;
}
