package com.yuchen.saas.park.api.dto.property;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 房间仪表
 * </p>
 *
 * @author cxj
 * @since 2023-11-21
 */
@Data
@ApiModel(value="PropertyHouseMeterUpdateDto", description="更换仪表")
public class PropertyHouseMeterUpdateDto {
    @NotNull
    @ApiModelProperty(name = "id", value = "id")
    private Long id;

    @ApiModelProperty(name = "updateMeterNum", value = "原仪表更换时读数")
    private BigDecimal updateMeterNum;

    /**
     * 更换仪表时间
     */
    @ApiModelProperty(name = "updateMeterTime", value = "更换仪表时间")
    private Date updateMeterTime;

    @NotBlank
    @ApiModelProperty(name = "meterFullName", value = "新仪表名称")
    private String meterFullName;

    /**
     * 最大读数
     */
    @Min(0)
    @NotNull
    @ApiModelProperty(name = "maxNum", value = "最大读数")
    private BigDecimal maxNum;
    /**
     * 初始读数
     */
    @Min(0)
    @NotNull
    @ApiModelProperty(name = "initNum", value = "初始读数")
    private BigDecimal initNum;
    /**
     * 初始日期
     */
    @NotNull
    @ApiModelProperty(name = "initTime", value = "初始日期")
    private Date initTime;
    /**
     * 倍率
     */
    @Min(0)
    @NotNull
    @ApiModelProperty(name = "rate", value = "倍率")
    private BigDecimal rate;
    /**
     * 损耗率
     */
    @ApiModelProperty(name = "attritionRate", value = "损耗率")
    private BigDecimal attritionRate;
    /**
     * 集中器号
     */
    @ApiModelProperty(name = "concentratorCode", value = "集中器号")
    private String concentratorCode;




}
