admin
2025-05-29 6ca3d7c61ee8d763f00847d90f4365e348f43078
aiflowy-modules/aiflowy-module-ai/src/main/java/tech/aiflowy/ai/entity/base/AiSecondMenuBase.java
@@ -5,18 +5,22 @@
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigInteger;
/**
 * ai机器人二级菜单表
 * @TableName ai_second_menu
 */
public class AiSecondMenuBase {
public class AiSecondMenuBase implements Serializable {
    /**
     * 二级菜单编号
     */
    private static final long serialVersionUID = 1L;
    @Id(keyType = KeyType.Auto, value = "secondMenuId", comment = "二级菜单编号")
    private BigInteger secondMenuId;
    private BigInteger id;
    /**
     * 一级菜单编号
@@ -30,6 +34,14 @@
    @Column(comment = "二级菜单名称")
    private String secondMenuName;
    public BigInteger getId() {
        return id;
    }
    public void setId(BigInteger id) {
        this.id = id;
    }
    public BigInteger getFirstMenuId() {
        return firstMenuId;
    }
@@ -38,65 +50,11 @@
        this.firstMenuId = firstMenuId;
    }
    public BigInteger getSecondMenuId() {
        return secondMenuId;
    }
    public void setSecondMenuId(BigInteger secondMenuId) {
        this.secondMenuId = secondMenuId;
    }
    /**
     * 二级菜单名称
     */
    public String getSecondMenuName() {
        return secondMenuName;
    }
    /**
     * 二级菜单名称
     */
    public void setSecondMenuName(String secondMenuName) {
        this.secondMenuName = secondMenuName;
    }
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AiSecondMenuBase other = (AiSecondMenuBase) that;
        return (this.getSecondMenuId() == null ? other.getSecondMenuId() == null : this.getSecondMenuId().equals(other.getSecondMenuId()))
            && (this.getFirstMenuId() == null ? other.getFirstMenuId() == null : this.getFirstMenuId().equals(other.getFirstMenuId()))
            && (this.getSecondMenuName() == null ? other.getSecondMenuName() == null : this.getSecondMenuName().equals(other.getSecondMenuName()));
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSecondMenuId() == null) ? 0 : getSecondMenuId().hashCode());
        result = prime * result + ((getFirstMenuId() == null) ? 0 : getFirstMenuId().hashCode());
        result = prime * result + ((getSecondMenuName() == null) ? 0 : getSecondMenuName().hashCode());
        return result;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", secondMenuId=").append(secondMenuId);
        sb.append(", firstMenuId=").append(firstMenuId);
        sb.append(", secondMenuName=").append(secondMenuName);
        sb.append("]");
        return sb.toString();
    }
}