package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 现货分类表
 * </p>
 *
 * @author XKF
 * @since 2024-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WRCATEGORY")
@ApiModel(value="Wrcategory对象", description="现货分类表")
@KeySequence(value = "SEQ_WRCATEGORY")
public class Wrcategory extends Model<Wrcategory> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "类别ID(SEQ_WRCATEGORY)")
    @TableId(value = "CATEGORYID", type = IdType.INPUT)
    private Long categoryid;

    @ApiModelProperty(value = "类别名称")
    @TableField("CATEGORYNAME")
    private String categoryname;

    @ApiModelProperty(value = "父类别ID")
    @TableField("PARENTCATEGORYID")
    private Long parentcategoryid;

    @ApiModelProperty(value = "类别描述")
    @TableField("CATEGORYDESC")
    private String categorydesc;

    @ApiModelProperty(value = "是否有效 - 0:无效 1:有效")
    @TableField("ISVALID")
    private Integer isvalid;

    @ApiModelProperty(value = "图标地址")
    @TableField("ICONURL")
    private String iconurl;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATORID")
    private Long creatorid;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    private Date createtime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATORID")
    private BigDecimal updatorid;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;

    @ApiModelProperty(value = "顺序")
    @TableField("ORDERINDEX")
    private Integer orderindex;

    @ApiModelProperty(value = "所属机构")
    @TableField("AREAUSERID")
    private Long areauserid;


    @Override
    public Serializable pkVal() {
        return this.categoryid;
    }

}
