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-08 22:36:47
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerContract对象", description = "合同存档")
public class TowerContract implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "contract_id", type = IdType.AUTO)
    private Integer contractId;

    @ApiModelProperty(value = "项目ID")
    private Integer projectId;

    @ApiModelProperty(value = "出租单位")
    private Integer companyId;

    @ApiModelProperty(value = "承租单位")
    private Integer customerId;

    @ApiModelProperty(value = "业务负责人")
    private String customerContact;

    @ApiModelProperty(value = "备案编号")
    private String filingNo;

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

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

    @ApiModelProperty(value = "签订日期")
    private String signDate;

    @ApiModelProperty(value = "开始日期")
    private String startDate;

    @ApiModelProperty(value = "截止日期")
    private String endDate;

    @ApiModelProperty(value = "合同金额")
    private BigDecimal contractAmount;

    @ApiModelProperty(value = "合同约定金额")
    private BigDecimal contactAgreeAmount;

    @ApiModelProperty(value = "合同存档0未存档,1已存档")
    private Boolean isInStock;

    @ApiModelProperty(value = "是否自动结算")
    private Boolean autoSettle;

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

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

    @ApiModelProperty(value = "已生成结算次数")
    private Integer settleNum;

    @ApiModelProperty(value = "结算方式")
    private Integer settleMethod;

    @ApiModelProperty(value = "跨月结算日期")
    private Integer extendMonthDate;

    @ApiModelProperty(value = "累计开票金额")
    private BigDecimal totalInvoicingAmount;

    @ApiModelProperty(value = "累计收款金额")
    private BigDecimal totalIncomeAmount;

    @ApiModelProperty(value = "累计结算金额")
    private BigDecimal totalSettleAmount;

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

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

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

    @ApiModelProperty(value = "修改时间")
    private String remark;

    @ApiModelProperty(value = "文件列表")
    private String fileList;

    @ApiModelProperty(value = "支付比例")
    private BigDecimal payRate;

    @TableField(exist = false)
    private String projectName;

    @TableField(exist = false)
    private String companyName;

    @TableField(exist = false)
    private String customerName;


}
