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

import java.math.BigDecimal;
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.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="IntegralGradeConfigure对象", description="积分等级配置")
public class IntegralGradeConfigure extends Model<IntegralGradeConfigure> {

    private static final long serialVersionUID=1L;

    @TableId(value = "grade_configure_id", type = IdType.ID_WORKER_STR)
    private String gradeConfigureId;

    @ApiModelProperty(value = "工程师等级名称")
    private String workerGradeName;

    @ApiModelProperty(value = "用户端等级名称")
    private String userGradeName;

    @ApiModelProperty(value = "积分下限")
    private BigDecimal lower;

    @ApiModelProperty(value = "积分上限")
    private BigDecimal upper;

    @ApiModelProperty(value = "状态 YES 开启 NO 关闭")
    private String status;

    @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 = "每月安装数量")
    private Integer installNum;

    @ApiModelProperty(value = "每月维修数量")
    private Integer repairNum;

    @ApiModelProperty(value = "技能等级图标")
    private String url;

    @ApiModelProperty(value = "等级数值")
    private Integer gradeLevel;


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

}
