package com.hotwj.platform.securityManagement.hiddenDangerPlan.domain.bo;

import com.hotwj.platform.securityManagement.hiddenDangerPlan.domain.HotHiddenDangerPlan;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 隐患排查业务对象 hot_hidden_danger_plan
 *
 * @author shihongwei
 * @date 2025-12-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotHiddenDangerPlan.class, reverseConvertGenerate = false)
public class HotHiddenDangerPlanBo extends BaseEntity {

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

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

    /**
     * 检查项id
     */
    private Long inspectId;

    /**
     * 检查项名称
     */
    private String inspectName;

    /**
     * 排查计划名称
     */
    @NotBlank(message = "排查计划名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String planName;

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

    /**
     * 结束日期
     */
    @NotNull(message = "结束日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date endDate;

    /**
     * 进度 0=待处理 1=审核中 2=评估 3=治理 4=复查 5=完结
     */
    @NotNull(message = "进度 0=待处理 1=审核中 2=评估 3=治理 4=复查 5=完结不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long progress;

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

    /**
     * 0=正常, 1=已删除
     */
//    @NotNull(message = "0=正常, 1=已删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isDeleted;

    /**
     * 是否后台自动生成：0-否，1-是
     */
    private Long isAutoGeneratedByBackend;

    /**
     * 计划周期Key(yyyy-MM, yyyy-Q1等)
     */
    private String planDateKey;


}
