package com.zfire.jiasm.syncdata.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 技能等级称号
 * </p>
 *
 * @author gejiang
 * @since 2023-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WorkerSkillLevelLabel对象", description="技能等级称号")
public class WorkerSkillLevelLabel extends Model<WorkerSkillLevelLabel> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "技能等级称号id")
    @TableId(value = "worker_skill_level_label_id", type = IdType.ID_WORKER_STR)
    private String workerSkillLevelLabelId;

    @ApiModelProperty(value = "类型 INSTALL=安装  REPAIR=维修 WHOLES=安维一体")
    private String type;

    @ApiModelProperty(value = "级别称号（字典）")
    private String levelLabel;

    @ApiModelProperty(value = "是否默认 YES=是 NO=否")
    private String isDefault;

    @ApiModelProperty(value = "最低值")
    private Integer beforeValue;

    @ApiModelProperty(value = "最高值")
    private Integer afterValue;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "true:已删除，false:未删除")
    @TableLogic
    private Boolean del;


    @Override
    protected Serializable pkVal() {
        return this.workerSkillLevelLabelId;
    }

}
