package com.gxwebsoft.tower.entity;

import java.math.BigDecimal;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigInteger;
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;
import org.apache.poi.hpsf.Decimal;

/**
 * 开票管理
 *
 * @author 科技小王子
 * @since 2023-06-17 12:47:08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerInvoicing对象", description = "开票管理")
public class TowerInvoicing implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "invoicing_id", type = IdType.AUTO)
    private Integer invoicingId;

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

    @ApiModelProperty(value = "开票日期")
    private String invoicingDate;

    @ApiModelProperty(value = "开票单位")
    private String invoicingCompany;

    @ApiModelProperty(value = "申请人")
    private String requestName;

    @ApiModelProperty(value = "开票金额")
    private BigDecimal invoicingAmount;

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

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


}
