package com.chinaweal.aiccs.org.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lee
 * @since 2021-06-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_menu")
public class SysMenu extends Model<SysMenu> {

    private static final long serialVersionUID=1L;

      @TableId("sysMenuID")
    private String sysMenuID;

    @TableField("sysMenuTypeID")
    private String sysMenuTypeID;

    @TableField("menuTypeID")
    private String menuTypeID;

    @TableField("sysMenuName")
    private String sysMenuName;

    @TableField("sysMenuFiled")
    private String sysMenuFiled;

    @TableField("resourceURL")
    private String resourceURL;

    @TableField("parentID")
    private String parentID;

    private String remark;

    @TableField("orgLevel")
    private Integer orgLevel;

    @TableField("resourceType")
    private String resourceType;

    @TableField("sysIndex")
    private Integer sysIndex;

    /**
     * true 已寻找过父级了
     */
    @TableField(exist = false)
    private boolean isFindParent;

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

}
