package net.ferrum.business.domain.bo;

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 net.ferrum.common.core.domain.BaseEntity;

/**
 * 批次管理业务对象 qs_batch
 *
 * @author tiezx
 * @date 2025-07-18
 */

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

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

    /**
     * 批次编号
     */
    @NotBlank(message = "批次编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String batchNo;

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

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

    /**
     * 计划结束时间
     */
    @NotNull(message = "计划结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date batchPlanEndDate;

    /**
     * 结束日期
     */
    private Date batchEndDate;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
