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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.nest.springwrap.core.mp.support.Query;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author CXJ
 */
@Data
@ApiModel(value = "PropertyHouseMeterReadingDetailQueryDto")
public class PropertyHouseMeterReadingDetailQueryDto extends Query {


    @NotNull
    @ApiModelProperty(name = "parkId", value = "园区id")
    private Long parkId;

    @ApiModelProperty(name = "buildingId", value = "楼栋id")
    private Long buildingId;

    @ApiModelProperty(name = "meterId", value = "仪表类型id")
    private Long meterId;

    @ApiModelProperty(name = "meterReadingTime", value = "抄表时间")
    private Date meterReadingTime;

    @ApiModelProperty(name = "resourceCode", value = "资源代码")
    private String resourceCode;

    @NotNull
    @Range(min = 0,max = 1)
    @ApiModelProperty(name = "isReading", value = "抄表状态0未抄表,1已抄表")
    private Integer isReading;

    @ApiModelProperty(name = "status", value = "状态0初始记录,1已录入,2已计费")
    private Integer status;
}
