package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.oa.domain.OaProjectScheduleStep;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目进度业务对象 oa_project_schedule
 *
 * @author haka
 * @date 2025-05-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaProjectScheduleBo extends BaseEntity {

    /**
     * 项目进度主键
     */
    @NotNull(message = "项目进度主键不能为空", groups = { EditGroup.class })
    private Long scheduleId;

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

    /**
     * 引用的进度模板ID
     */
    private Long templateId;

    /**
     * 当前进行到的步骤序号
     */
    private Long currentStep;

    /**
     * 进度开始时间
     */
    private Date startTime;

    /**
     * 进度完成时间
     */
    private Date endTime;

    /**
     * 状态
     */
    private Long status;

    /**
     *
     */
    private String remark;

    private Double prePay;

    private String mode;

    private List<OaProjectScheduleStepBo> steps;
}
