package com.gxwebsoft.tower.entity;

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-11 19:19:10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerSettle对象", description = "结算管理")
public class TowerSettle implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "settle_id", type = IdType.AUTO)
    private Integer settleId;

    @ApiModelProperty(value = "结算单号")
    private String settleNo;

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

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

    @ApiModelProperty(value = "本期结束日期")
    private String endDate;

    @ApiModelProperty(value = "结算方式(0跨月;1自然月;2按日;3系数结算-跨月;4系数结算-自然月")
    private Integer settleMethod;

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

    @ApiModelProperty(value = "结算状态(0未认证;1已认证;2已失效;)")
    private Integer status;

    @ApiModelProperty(value = "总额")
    private Integer totalAmount;

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

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

}
