package com.hotwj.platform.config.accidentLevelConfig.domain.bo;

import com.hotwj.platform.config.accidentLevelConfig.domain.HotAccidentLevelConfig;
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;

/**
 * 事故等级划分业务对象 hot_accident_level_config
 *
 * @author shihongwei
 * @date 2026-01-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotAccidentLevelConfig.class, reverseConvertGenerate = false)
public class HotAccidentLevelConfigBo extends BaseEntity {

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

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

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

    /**
     * 评价分级
     */
    @NotBlank(message = "评价分级不能为空", groups = {AddGroup.class, EditGroup.class})
    private String levelName;

    /**
     * 管控级别
     */
    @NotBlank(message = "管控级别不能为空", groups = {AddGroup.class, EditGroup.class})
    private String controlLevel;

    /**
     * 管控措施级别
     */
    @NotBlank(message = "管控措施级别不能为空", groups = {AddGroup.class, EditGroup.class})
    private String controlMeasureLevel;

    /**
     * 完成期限
     */
    @NotBlank(message = "完成期限不能为空", groups = {AddGroup.class, EditGroup.class})
    private String deadlineDesc;

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;


}
