package com.ruoyi.oa.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 进度扩展对象 oa_progress_detail
 *
 * @author hdka2
 * @date 2025-04-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("oa_progress_detail")
public class OaProgressDetail extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
    @TableId(value = "detail_id")
    private Long detailId;
    /**
     * 关联的进度ID，关联 project_progress.id
     */
    private Long progressId;
    /**
     * 子进度名称
     */
    private String detailName;
    /**
     * 计划开始日期(项目进度)
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date planStartDate;
    /**
     * 计划结束日期(项目进度)
     */
    private Date planEndDate;
    /**
     * 实际开始日期(项目进度)
     */
    private Date actualStartDate;
    /**
     * 实际结束日期(项目进度)
     */
    private Date actualEndDate;
    /**
     * 完成百分比(项目进度)
     */
    private BigDecimal completePercent;
    /**
     * 计划付款日期(付款进度)
     */
    private Date planPayDate;
    /**
     * 应付金额(付款进度)
     */
    private BigDecimal payAmount;
    /**
     * 已付金额(付款进度)
     */
    private BigDecimal paidAmount;
    /**
     * 删除标志：0-正常；1-删除
     */
    @TableLogic
    private Long delFlag;
    /**
     * 备注(如需)
     */
    private String remark;
    /**
     * 子进度状态
     */
    private Long detailStatus;

    private String department;
}
