package net.ferrum.business.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import net.ferrum.common.core.validate.AddGroup;
import net.ferrum.common.core.validate.EditGroup;
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 net.ferrum.common.core.domain.BaseEntity;

/**
 * 项目管理业务对象 qs_projects
 *
 * @author ruoyi
 * @date 2025-07-19
 */

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

    /**
     * 项目ID
     */
    @NotNull(message = "项目ID不能为空", groups = { EditGroup.class })
    private Long projectId;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long batchId;

    /**
     * 项目名称
     */
    @NotBlank(message = "项目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectName;

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

    /**
     * 项目当前所处阶段
     */
    private Long currentMasterStageId;

    /**
     * 项目完成情况
     */
    private String projectCompletion;

    /**
     * 项目开始时间
     */
    @NotNull(message = "项目开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startDate;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 批次名称
     */
    @TableField(exist = false)
    private String batchName;

    /**
     * 规格参数列表
     */
    @TableField(exist = false)
    private List<QsProjectAttributesBo> specInfoList;


}
