package com.ruoyi.drill.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
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 java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("drill_annual_emergency")
@ApiModel(value = "年度演习计划")
public class DrillAnnualEmergency extends GnhzBaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 计划年度
     */
    @ApiModelProperty("计划年度")
    @TableField(value = "plan_year")
    private Long planYear;

    /**
     * 项目内容
     */
    @Excel(name = "项目内容", type = Excel.Type.IMPORT)
    @ApiModelProperty("项目内容")
    @TableField(value = "plan_name")
    private String planName;

    /**
     * 计划月份
     */
    @Excel(name = "计划月份", type = Excel.Type.IMPORT)
    @ApiModelProperty("计划月份")
    @TableField(value = "plan_month")
    private Long planMonth;

    /**
     * 负责人
     */
    @Excel(name = "负责人")
    @ApiModelProperty("负责人")
    @TableField(value = "director_by")
    private String directorBy;

    /**
     * 完成人
     */
    @Excel(name = "完成人")
    @ApiModelProperty("完成人")
    @TableField(value = "finish_by")
    private String finishBy;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("完成时间")
    @TableField(value = "finish_time")
    private Date finishTime;

    /**
     * 排序
     */
    @Excel(name = "排序")
    @ApiModelProperty("排序")
    @TableField(value = "sortd_num")
    private Long sortdNum;
}
