package com.yhy.module.core.dal.dataobject.workbench;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDate;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 进度款模式 DO
 *
 * @author yhy
 */
@TableName(value = "yhy_wb_progress_payment_mode")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ProgressPaymentModeDO extends BaseDO {

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 租户ID
     */
    private Long tenantId;

    /**
     * 项目ID
     */
    private Long projectId;

    /**
     * 名称
     */
    private String name;

    /**
     * 期数序号
     */
    private Integer periodNumber;

    /**
     * 开始日期
     */
    private LocalDate startDate;

    /**
     * 结束日期
     */
    private LocalDate endDate;

    /**
     * 总造价
     */
    private BigDecimal totalCost;

    /**
     * 本期产值
     */
    private BigDecimal currentPeriodValue;

    /**
     * 已完产值
     */
    private BigDecimal completedValue;

    /**
     * 已完比例
     */
    private BigDecimal completedRatio;

    /**
     * 支付比例(%)
     */
    private BigDecimal paymentRatio;

    /**
     * 支付金额
     */
    private BigDecimal paymentAmount;

    /**
     * 材料调差
     */
    private BigDecimal materialAdjustment;

    /**
     * 备注
     */
    private String remark;
}
