package com.ruoyi.drill.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.GnhzBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * DrillOrganizationalStructure
 *
 * @Auther: mtx
 * @Date: 2023/09/07 17:25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("drill_organizational_structure")
@ApiModel(value = "应急组织架构")
public class DrillOrganizationalStructure extends GnhzBaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 父级id
     */
    @Excel(name = "父级id")
    @ApiModelProperty("父级id")
    @TableField(value = "PARENT_ID")
    private String parentId;

    /**
     * 演习队伍主键id
     */
    @Excel(name = "演习队伍主键id")
    @ApiModelProperty("演习队伍主键id")
    @TableField(value = "CONTINGENT_ID")
    @NotBlank(message = "演习队伍主键id")
    private String contingentId;

    /**
     * 祖级列表
     */
    @Excel(name = "祖级列表")
    @ApiModelProperty("祖级列表")
    @TableField(value = "DRILL_ANCESTORS")
    private String drillAncestors;

    /**
     * 应急岗位名称
     */
    @Excel(name = "应急岗位名称")
    @ApiModelProperty("应急岗位名称")
    @TableField(value = "DRILL_POST")
    @NotBlank(message = "应急岗位名称不能为空")
    @Size(min = 0, max = 30, message = "应急岗位名称长度不能超过30个字符")
    private String drillPost;

    /**
     * 显示顺序
     */
    @Excel(name = "显示顺序")
    @ApiModelProperty("显示顺序")
    @TableField(value = "ORDER_NUM")
//    @NotNull(message = "显示顺序不能为空")
    private Long orderNum;

}
