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_share_detail")
@ApiModel(value="PropertyPublicMeterReadingShareDetail对象", description="公摊仪表抄表分摊房源仪表记录")
public class PropertyPublicMeterReadingShareDetail extends TenantEntity {


    @ApiModelProperty(name = "houseMeterId", value = "公摊仪表抄表分摊记录id")
    private Long publicMeterReadingShareId;
    /**
     * 用量
     */
    @ApiModelProperty(name = "dosage", value = "用量")
    private BigDecimal dosage;
    /**
     * 园区id
     */
    @ApiModelProperty(name = "parkId", value = "园区id")
    private Long parkId;
    /**
     * 公摊仪表抄表id
     */
    @ApiModelProperty(name = "publicMeterReadingId", value = "公摊仪表抄表id")
    private Long publicMeterReadingId;
    /**
     * 公摊仪表分摊的房间id
     */
    @ApiModelProperty(name = "publicMeterShareId", value = "公摊仪表分摊的房间id")
    private Long publicMeterShareId;
    /**
     * 公摊仪表id
     */
    @ApiModelProperty(name = "publicMeterId", value = "公摊仪表id")
    private Long publicMeterId;
    /**
     * 仪表类型id
     */
    @ApiModelProperty(name = "meterId", value = "仪表类型id")
    private Long meterId;
    /**
     * 房间id
     */
    @ApiModelProperty(name = "houseId", value = "房间id")
    private Long houseId;

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

    @ApiModelProperty(value = "资源代码")
    private String resourceCode;
    /**
     * 分摊总量
     */
    @ApiModelProperty(name = "totalShareNum", value = "分摊总量")
    private BigDecimal totalShareNum;

    @ApiModelProperty(name = "shareNum", value = "分摊量")
    private BigDecimal shareNum;
    /**
     * 分摊时间
     */
    @ApiModelProperty(name = "shareTime", value = "分摊时间")
    private Date shareTime;


    @ApiModelProperty(name = "meterReadingTime", value = "抄表时间")
    private Date meterReadingTime;
    /**
     * 是否已经计费,0未1已计费
     */
    @ApiModelProperty(name = "isCharging", value = "是否已经计费,0未1已计费")
    private Integer isCharging;

    @ApiModelProperty(name = "shareType", value = "分摊方式:1平均分摊,2按照建筑面积分摊,3按照使用面积分摊,4按照用量分摊,5自动义公式进行分摊")
    private Integer shareType;

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

    /**
     * 公摊仪表类型:1公摊表,2总表
     */
    @ApiModelProperty(name = "shareMeterType", value = "公摊仪表类型:1公摊表,2总表")
    private Integer shareMeterType;

    @ApiModelProperty(name = "customerName", value = "客户名称")
    private String customerName;

    @ApiModelProperty(name = "customerArchivesId", value = "客户档案ID")
    private Long customerArchivesId;
}
