package com.gxwebsoft.tower.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 拆借管理
 *
 * @author 科技小王子
 * @since 2023-06-15 10:29:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerLending对象", description = "拆借管理")
public class TowerLending implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "lending_id", type = IdType.AUTO)
    private Integer lendingId;

    @ApiModelProperty(value = "合同ID")
    private Integer contractId;

    @ApiModelProperty(value = "产权单位")
    private String propertyCompany;

    @ApiModelProperty(value = "结算日期")
    private String settleDate;

    @ApiModelProperty(value = "本期结算金额")
    private BigDecimal settleAmount;

    @ApiModelProperty(value = "附件")
    private String fileList;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "所有人")
    private Integer userId;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "合同编号")
    @TableField(exist = false)
    private String contactNumber;

    @ApiModelProperty(value = "签订时间")
    @TableField(exist = false)
    private LocalDateTime signDate;

    @ApiModelProperty(value = "项目名称")
    @TableField(exist = false)
    private String projectName;

    @ApiModelProperty(value = "承租方")
    @TableField(exist = false)
    private String customerName;

    @ApiModelProperty(value = "租赁方")
    @TableField(exist = false)
    private String companyName;

}
