package com.zksy.property.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 退款信息表
 * @TableName a_refund
 */
@TableName(value ="a_refund")
@Data
public class ARefund implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 合同id
     */
    @ApiModelProperty(value = "合同id")
    private String contractId;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    private String unit;

    /**
     * 租户
     */
    @ApiModelProperty(value = "租户")
    private String tenant;

    /**
     * 押金
     */
    @ApiModelProperty(value = "押金")
    private BigDecimal deposit;

    /**
     * 租金
     */
    @ApiModelProperty(value = "租金")
    private BigDecimal rent;

    /**
     * 物业费
     */
    @ApiModelProperty(value = "物业费")
    private BigDecimal propertyFee;

    /**
     * 合计
     */
    @ApiModelProperty(value = "合计")
    private BigDecimal totalAmount;

    /**
     * 生成日期
     */
    @ApiModelProperty(value = "生成日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate generationDate;

    /**
     * 附件url
     */
    @ApiModelProperty(value = "附件url")
    private String attachmentUrl;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}