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;

/**
 * 整改问题描述对象 drill_rectification_problems
 *
 * @author ruoyi
 * @date 2023-08-04
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("drill_rectification_problems")
@ApiModel(value = "整改问题")
public class DrillRectificationProblems extends GnhzBaseEntity {
    private static final long serialVersionUID = 1L;

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

    /**
     * 演习计划id
     */
    @Excel(name = "演习计划id")
    @ApiModelProperty("演习计划id")
    @TableField(value = "plan_id")
    private String planId;

    /**
     * 问题描述
     */
    @Excel(name = "问题描述")
    @ApiModelProperty("问题描述")
    @TableField(value = "problems_info")
    private String problemsInfo;

    /**
     * 整改措施
     */
    @Excel(name = "整改措施")
    @ApiModelProperty("整改措施")
    @TableField(value = "rectification_info")
    private String rectificationInfo;

    /**
     * 责任人
     */
    @Excel(name = "责任人")
    @ApiModelProperty("责任人")
    @TableField(value = "person_liable")
    private Long personLiable;

    /**
     * 整改期限
     */
    @Excel(name = "整改期限")
    @ApiModelProperty("整改期限")
    @TableField(value = "rectification_term")
    private String rectificationTerm;

    /**
     * 整改人
     */
    @Excel(name = "整改人")
    @ApiModelProperty("整改人")
    @TableField(value = "rectification_by")
    private Long rectificationBy;

    /**
     * 整改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "整改时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("整改时间")
    @TableField(value = "rectification_time")
    private Date rectificationTime;

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