package cn.wisenergy.model.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @Authotr:陈奇
 * @QQ1799796883
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="WorkType", description="项目类型类")
public class WorkType implements Serializable, Comparable<WorkType>{


    private static final long serialVersionUID = 8842083047098059912L;

    @ApiModelProperty(name = "id",value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(name = "name",value = "类型名")
    private String name;

    @ApiModelProperty(name = "reviewer",value = "检查者:1:该项目负责人 2:系统自动 3:部门或中心负责人")
    private Integer reviewer;

    @ApiModelProperty(name = "status",value = "0：禁用 1：正常")
    private Integer status;

    @ApiModelProperty(name = "sort",value = "排序")
    private Integer sort;


    @Override
    public int compareTo(WorkType o) {

        return this.sort-o.getSort();
    }
}
