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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.thinkunion.park.service.common.utils.AmtUtil;
import lombok.Data;

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

/**
 * app端账单列表
 */
@Data
public class PropertyAppPayBilDetailListVo {

    /**
     * 账单id
     */
    private Long id;

    @JsonIgnore
    private Long feeItemId;
    /**
     * 费用项目名称
     */
    private String feeItemName;
    /**
     * 账单开始日期
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date startDate;
    /**
     * 账单截止日期
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date endDate;

    @JsonIgnore
    private long noPayAmtFen;
    /**
     * 账单费用
     */
    private BigDecimal noPayAmt;

    public BigDecimal getNoPayAmt() {
        return AmtUtil.fenToYuan(this.noPayAmtFen);
    }


}
