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

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

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

/**
 * <p>
 * 房源仪表抄表日志记录
 * </p>
 *
 * @author cxj
 * @since 2023-12-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("property_public_meter_reading_log")
@ApiModel(value="PropertyPublicMeterReadingLog对象", description="房源仪表抄表日志记录")
public class PropertyPublicMeterReadingLog extends TenantEntity {

    /**
     * 公摊仪表抄表id
     */
    @ApiModelProperty(name = "publicMeterReadingId", value = "公摊仪表抄表id")
    private Long publicMeterReadingId;
    /**
     * 园区id
     */
    @ApiModelProperty(name = "parkId", value = "园区id")
    private Long parkId;
    /**
     * 资源代码
     */
    @ApiModelProperty(name = "resourceCode", value = "资源代码")
    private String resourceCode;
    /**
     * 公摊仪表id
     */
    @ApiModelProperty(name = "publicMeterId", value = "公摊仪表id")
    private Long publicMeterId;
    /**
     * 仪表类型id
     */
    @ApiModelProperty(name = "meterId", value = "仪表类型id")
    private Long meterId;
    /**
     * 是否是初始记录,0否1是
     */
    @ApiModelProperty(name = "isInit", value = "是否是初始记录,0否1是")
    private Integer isInit;

    /**
     * 是否已经分摊,0未分摊1已分摊
     */
    @ApiModelProperty(name = "isShare", value = "是否已经分摊,0未分摊1已分摊")
    private Integer isShare;
    /**
     * 分摊时间
     */
    @ApiModelProperty(name = "shareTime", value = "分摊时间")
    private Date shareTime;
    /**
     * 抄表人组织姓名
     */
    @ApiModelProperty(name = "orgUserName", value = "抄表人组织姓名")
    private String orgUserName;
    /**
     * 抄表时间
     */
    @ApiModelProperty(name = "meterReadingTime", value = "抄表时间")
    private Date meterReadingTime;
    /**
     * 抄表读数
     */
    @ApiModelProperty(name = "meterReadingNum", value = "抄表读数")
    private BigDecimal meterReadingNum;
    /**
     * 上次抄表时间
     */
    @ApiModelProperty(name = "lastMeterReadingTime", value = "上次抄表时间")
    private Date lastMeterReadingTime;
    /**
     * 上次抄表读数
     */
    @ApiModelProperty(name = "lastMeterReadingNum", value = "上次抄表读数")
    private BigDecimal lastMeterReadingNum;
    /**
     * 上次抄表id
     */
    @ApiModelProperty(name = "lastMeterReadingId", value = "上次抄表id")
    private Long lastMeterReadingId;
    /**
     * 倍率(按产品要求不使用历史记录这个字段,但是做为历史记录,先冗余进来)
     */
    @ApiModelProperty(name = "rate", value = "倍率(按产品要求不使用历史记录这个字段,但是做为历史记录,先冗余进来)")
    private BigDecimal rate;
    /**
     * 用量(保留小数点为历史记录,冗余进来)
     */
    @ApiModelProperty(name = "dosage", value = "用量(保留小数点为历史记录,冗余进来)")
    private BigDecimal dosage;

    @ApiModelProperty(name = "parentId", value = "父表id")
    private Long parentId;

    @ApiModelProperty(name = "attritionRate", value = "损耗率")
    private BigDecimal attritionRate;

}
