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.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="RepairBug对象", description="故障现象")
public class RepairBug extends Model<RepairBug> {

    private static final long serialVersionUID=1L;

    @TableId(value = "bug_id", type = IdType.ID_WORKER_STR)
    private String bugId;

    @ApiModelProperty(value = "品牌id")
    private String brandId;

    @ApiModelProperty(value = "父级id,顶级为0")
    private String parentId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "大类商品类别id")
    private String mainId;

    @ApiModelProperty(value = "大类商品类别")
    private String mainName;

    @ApiModelProperty(value = "小类商品类别id")
    private String smallId;

    @ApiModelProperty(value = "小类商品类别")
    private String smallName;

    @ApiModelProperty(value = "家用/商用")
    private String mainFlag;

    @ApiModelProperty(value = "故障现象")
    private String bugObj;

    @ApiModelProperty(value = "故障现象编码")
    private String bugObjCode;

    @ApiModelProperty(value = "状态 ON=有效 OFF=无效")
    private String status;

    @ApiModelProperty(value = "固障ID")
    private String gzid;

    @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 = "故障现象类型(1:家用空调,2:商用空调、家用空气能热水器、壁挂炉,3:通用,4:生活电器,5:晶弘冰箱)")
    private Integer bugObjType;

    @ApiModelProperty(value = "级别")
    private Integer level;

    @ApiModelProperty(value = "上级路径名称")
    private String parentPathName;


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

}
