|
|
@@ -0,0 +1,87 @@
|
|
|
+package com.jzg.commons.entity.po;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import java.io.Serializable;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 常用功能
|
|
|
+ * @TableName sys_common_function
|
|
|
+ */
|
|
|
+@TableName(value ="sys_common_function")
|
|
|
+@Data
|
|
|
+public class SysCommonFunction implements Serializable {
|
|
|
+ /**
|
|
|
+ * id
|
|
|
+ */
|
|
|
+ @TableId(value = "id", type = IdType.AUTO)
|
|
|
+ private Integer id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 主题名称
|
|
|
+ */
|
|
|
+ @TableField(value = "title")
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 排序
|
|
|
+ */
|
|
|
+ @TableField(value = "order_num")
|
|
|
+ private Integer orderNum;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 对应菜单ID
|
|
|
+ */
|
|
|
+ @TableField(value = "menu_id")
|
|
|
+ private Long menuId;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ SysCommonFunction other = (SysCommonFunction) that;
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
+ && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
|
|
|
+ && (this.getOrderNum() == null ? other.getOrderNum() == null : this.getOrderNum().equals(other.getOrderNum()))
|
|
|
+ && (this.getMenuId() == null ? other.getMenuId() == null : this.getMenuId().equals(other.getMenuId()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
+ result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
|
|
|
+ result = prime * result + ((getOrderNum() == null) ? 0 : getOrderNum().hashCode());
|
|
|
+ result = prime * result + ((getMenuId() == null) ? 0 : getMenuId().hashCode());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append(getClass().getSimpleName());
|
|
|
+ sb.append(" [");
|
|
|
+ sb.append("Hash = ").append(hashCode());
|
|
|
+ sb.append(", id=").append(id);
|
|
|
+ sb.append(", title=").append(title);
|
|
|
+ sb.append(", orderNum=").append(orderNum);
|
|
|
+ sb.append(", menuId=").append(menuId);
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|