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 lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.nest.springwrap.core.tool.utils.Func;

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

/**
 * 未出账单导出对象
 */
@Data
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@HeadRowHeight(25)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ColumnWidth(12)
@ContentRowHeight(15)
@HeadFontStyle(fontHeightInPoints = 9)
@ExcelIgnoreUnannotated
public class PropertyNoOutBillExcelVo {

    @ExcelProperty("园区")
    private String parkName;

    @ExcelProperty("楼栋")
    private String buildingName;

    @ExcelProperty("房间")
    private String houseName;

    @ExcelProperty("资源代码")
    private String resourceCode;

    @ExcelProperty("收费标准")
    private String feeName;


    private BigDecimal price;
    private String priceUnitTypeName;

    @ExcelProperty("单价")
    private String priceStr;
    public String getPriceStr() {
        if (Func.isEmpty(price)) {
            return "";
        }
        return this.price.toString() + "元/" + this.priceUnitTypeName;
    }

    @ExcelProperty("应收金额")
    private BigDecimal receivableAmt;

    @ExcelProperty("开始时间")
    private Date startDate;

    @ExcelProperty("结束时间")
    private Date endDate;

    @ExcelProperty("应收日期")
    private Date receivableDate;

    @ExcelProperty("仪表名称")
    private String meterFullName;

    @ExcelProperty("用量")
    private BigDecimal meterUsage;

    @ExcelProperty("上期读数")
    private BigDecimal lastMeterReadingNum;

    @ExcelProperty("本期读数")
    private BigDecimal meterReadingNum;

    @ExcelProperty("建筑面积")
    private BigDecimal constructionArea;

    @ExcelProperty("使用面积")
    private BigDecimal useArea;


}
