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


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.nest.springwrap.core.excel.annotation.UnLockCell;

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

/**
 * @author CXJ
 */
@Data
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@HeadRowHeight(25)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ColumnWidth(20)
@ContentRowHeight(15)
@HeadFontStyle(fontHeightInPoints =9)
@ExcelIgnoreUnannotated
@ApiModel(value = "抄表概况")
public class PropertyHouseMeterReadingByHouseExcelVo {
    @ExcelProperty("编号")
    @ApiModelProperty(value = "id")
    private Long id;

    @ExcelProperty("园区名称")
    @ApiModelProperty(value = "园区名称")
    private String parkName;

    @ExcelProperty("楼栋名称")
    @ApiModelProperty(value = "楼栋名称")
    private String buildingName;

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


    @ExcelProperty("上期读数日期")
    @ApiModelProperty(name = "lastMeterReadingTime", value = "上次抄表时间")
    private Date lastMeterReadingTime;

    @ExcelProperty("上期读数")
    @ApiModelProperty(name = "lastMeterReadingNum", value = "上次抄表读数")
    private BigDecimal lastMeterReadingNum;

    @UnLockCell
    @ExcelProperty("本期读数")
    @ApiModelProperty(name = "meterReadingNum", value = "抄表读数")
    private BigDecimal meterReadingNum;

    @ApiModelProperty(name = "rate", value = "倍率")
    private BigDecimal rate;

}
