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

    /**
     * 园区id
     */
    @ApiModelProperty(name = "parkId", value = "园区id")
    private Long parkId;
    /**
     * 公摊仪表抄表id
     */
    @ApiModelProperty(name = "publicMeterReadingId", value = "公摊仪表抄表id")
    private Long publicMeterReadingId;

    /**
     * 公摊仪表id
     */
    @ApiModelProperty(name = "publicMeterId", value = "公摊仪表id")
    private Long publicMeterId;
    /**
     * 仪表类型id
     */
    @ApiModelProperty(name = "meterId", value = "仪表类型id")
    private Long meterId;
    /**
     * 公摊仪表类型:1公摊表,2总表
     */
    @ApiModelProperty(name = "shareMeterType", value = "公摊仪表类型:1公摊表,2总表")
    private Integer shareMeterType;
    /**
     * 资源代码
     */
    @ApiModelProperty(name = "resourceCode", value = "资源代码")
    private String resourceCode;
    /**
     * 仪表名称
     */
    @ApiModelProperty(name = "meterFullName", value = "仪表名称")
    private String meterFullName;
    /**
     * 分摊量
     */
    @ApiModelProperty(name = "shareNum", value = "分摊量")
    private BigDecimal shareNum;
    /**
     * 分摊总量
     */
    @ApiModelProperty(name = "totalShareNum", value = "分摊总量")
    private BigDecimal totalShareNum;
    /**
     * 分摊时间
     */
    @ApiModelProperty(name = "shareTime", value = "分摊时间")
    private Date shareTime;

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




}
