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


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.thinkunion.park.service.common.utils.CommonStringUtil;
import com.thinkunion.park.service.common.utils.CommonUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@HeadRowHeight(25)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ColumnWidth(12)
@ContentRowHeight(15)
@HeadFontStyle(fontHeightInPoints =9)
@ApiModel(value="减免指定金额统计")
public class PropertyBillReductionExcelVo {

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

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

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

    @ExcelProperty("房间代码")
    @ApiModelProperty(name = "resourceCode", value = "资源代码")
    private String resourceCode;

    @ExcelProperty("建筑面积")
    @ApiModelProperty(value = "建筑面积 单位 平方米")
    private BigDecimal constructionArea;

    @ExcelIgnore
    @ApiModelProperty(name = "feeId", value = "收费标准id")
    private Long feeId;

    @ExcelProperty("收费标准")
    @ApiModelProperty(name = "feeName", value = "收费标准名称")
    private String feeName;

    @ExcelProperty("减免方式")
    @ApiModelProperty(name = "reductionType", value = "减免方式")
    private String reductionType;

    @ExcelProperty("减免总金额(元)")
    @ApiModelProperty(name = "totalReductionAmtYuan", value = "减免总金额(元)")
    private String totalReductionAmtYuan;

    public String getTotalReductionAmtYuan(){
        return CommonStringUtil.formatFenToYuan(totalReductionAmtFen);
    }

    @ExcelIgnore
    @ApiModelProperty(name = "totalReductionAmtFen", value = "减免总金额(分)")
    private long totalReductionAmtFen;

    @ExcelProperty("已减免金额(元)")
    @ApiModelProperty(name = "reductionAmtYuan", value = "已减免金额(元)")
    private String reductionAmtYuan;

    public String getReductionAmtYuan(){
        return CommonStringUtil.formatFenToYuan(reductionAmtFen);
    }

    @ExcelIgnore
    @ApiModelProperty(name = "reductionAmtFen", value = "已减免金额(分)")
    private long reductionAmtFen;

    @ExcelProperty("剩余减免金额(元)")
    @ApiModelProperty(name = "remainReductionAmtYuan", value = "剩余减免金额(元)")
    private String remainReductionAmtYuan;

    public String getRemainReductionAmtYuan(){
        return CommonStringUtil.formatFenToYuan(remainReductionAmtFen);
    }

    @ExcelIgnore
    @ApiModelProperty(name = "remainReductionAmtFen", value = "剩余减免金额(分)")
    private long remainReductionAmtFen;

}
