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-10 16:52:12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerContractSettleEquipment对象", description = "合同结算设备")
public class TowerContractSettleEquipment implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "contract_settle_id", type = IdType.AUTO)
    private Integer contractSettleId;

    private Integer contractId;

    @ApiModelProperty(value = "设备ID")
    private Integer equipmentId;

    @ApiModelProperty(value = "设备")
    private String equipmentName;

    @ApiModelProperty(value = "型号")
    private String equipmentModel;

    @ApiModelProperty(value = "出厂编号")
    private String factoryNo;

    @ApiModelProperty(value = "设备编号")
    private String equipmentNo;

    @ApiModelProperty(value = "计划租期(月)")
    private Integer rentMonth;

    @ApiModelProperty(value = "租金(元)")
    private BigDecimal rentAmount;

    @ApiModelProperty(value = "进退场费")
    private BigDecimal inOutAmount;

    @ApiModelProperty(value = "劳务费")
    private BigDecimal workerAmount;

    @ApiModelProperty(value = "其他费用")
    private BigDecimal otherAmount;

    @ApiModelProperty(value = "其他费用计算模式(0每月1一次性)")
    private Integer otherAmountCalMode;

    @ApiModelProperty(value = "预埋费")
    private BigDecimal preBuryAmount;

    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 BigDecimal totalReceivableAmount;

}
