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-17 16:56:17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerIncome对象", description = "收款管理")
public class TowerIncome implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "income_id", type = IdType.AUTO)
    private Integer incomeId;

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

    @ApiModelProperty(value = "收款单号")
    private String incomeNo;

    @ApiModelProperty(value = "收款日期")
    private String incomeDate;

    @ApiModelProperty(value = "收款单位")
    private Integer incomeCompanyId;

    @ApiModelProperty(value = "付款单位")
    private Integer payCompanyId;

    @ApiModelProperty(value = "收款金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "总计收款金额")
    @TableField(exist = false)
    private BigDecimal totalIncomeAmount;

    @ApiModelProperty(value = "总计开票金额")
    @TableField(exist = false)
    private BigDecimal totalInvoicingAmount;

    @ApiModelProperty(value = "收款类型")
    private String incomeType;

    @ApiModelProperty(value = "预计收款日期")
    private String expectIncomeDate;

    @ApiModelProperty(value = "预计收款金额")
    private BigDecimal expectIncomeAmount;

    @ApiModelProperty(value = "收款方式")
    private String incomeMethod;

    @ApiModelProperty(value = "发票号")
    private String invoicingNo;

    @ApiModelProperty(value = "登记人")
    private String signName;

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

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

    @ApiModelProperty(value = "收款状态(0已收款1已作废)")
    private Integer status;

    @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 contractNumber;

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

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

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

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

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


}
