|
@@ -0,0 +1,174 @@
|
|
|
|
|
+package com.ydtech.modules.admin.model.po;
|
|
|
|
|
+
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
+
|
|
|
|
|
+import java.io.Serializable;
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 内部机构管理
|
|
|
|
|
+ * @TableName sys_dept_internal_agent
|
|
|
|
|
+ */
|
|
|
|
|
+@TableName(value ="sys_dept_internal_agent")
|
|
|
|
|
+@Data
|
|
|
|
|
+public class SysDeptInternalAgent implements Serializable {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 编号
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableId
|
|
|
|
|
+ private String id;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 机构名称
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "name")
|
|
|
|
|
+ private String name;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 上级机构ID,一级机构为0
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "parent_id")
|
|
|
|
|
+ private String parentId;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 排序
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "order_num")
|
|
|
|
|
+ private Integer orderNum;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 创建人
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "create_by")
|
|
|
|
|
+ private String createBy;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 创建时间
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "create_time")
|
|
|
|
|
+ private Date createTime;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 更新人
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "last_update_by")
|
|
|
|
|
+ private String lastUpdateBy;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 更新时间
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "last_update_time")
|
|
|
|
|
+ private Date lastUpdateTime;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 是否删除 -1:已删除 0:正常
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "del_flag")
|
|
|
|
|
+ private Integer delFlag;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 机构类型(1.机构 2.组长3.组员)
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "comtype")
|
|
|
|
|
+ private String comtype;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 机构级别
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "comlevel")
|
|
|
|
|
+ private String comlevel;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 机构编码
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableField(value = "dept_code")
|
|
|
|
|
+ private String deptCode;
|
|
|
|
|
+
|
|
|
|
|
+ @TableField(value = "parent_name")
|
|
|
|
|
+ private String parentName;
|
|
|
|
|
+
|
|
|
|
|
+ @TableField(value = "parent_ids")
|
|
|
|
|
+ private String parentIds;
|
|
|
|
|
+
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
|
+ private List<SysDeptInternalAgent> children;
|
|
|
|
|
+
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
|
+ private String flag;
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public boolean equals(Object that) {
|
|
|
|
|
+ if (this == that) {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (that == null) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ SysDeptInternalAgent other = (SysDeptInternalAgent) that;
|
|
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
|
|
+ && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
|
|
|
|
+ && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
|
|
|
|
|
+ && (this.getOrderNum() == null ? other.getOrderNum() == null : this.getOrderNum().equals(other.getOrderNum()))
|
|
|
|
|
+ && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
|
|
|
|
|
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
|
|
|
|
+ && (this.getLastUpdateBy() == null ? other.getLastUpdateBy() == null : this.getLastUpdateBy().equals(other.getLastUpdateBy()))
|
|
|
|
|
+ && (this.getLastUpdateTime() == null ? other.getLastUpdateTime() == null : this.getLastUpdateTime().equals(other.getLastUpdateTime()))
|
|
|
|
|
+ && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
|
|
|
|
|
+ && (this.getComtype() == null ? other.getComtype() == null : this.getComtype().equals(other.getComtype()))
|
|
|
|
|
+ && (this.getComlevel() == null ? other.getComlevel() == null : this.getComlevel().equals(other.getComlevel()))
|
|
|
|
|
+ && (this.getDeptCode() == null ? other.getDeptCode() == null : this.getDeptCode().equals(other.getDeptCode()));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public int hashCode() {
|
|
|
|
|
+ final int prime = 31;
|
|
|
|
|
+ int result = 1;
|
|
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
|
|
+ result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
|
|
|
|
+ result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
|
|
|
|
|
+ result = prime * result + ((getOrderNum() == null) ? 0 : getOrderNum().hashCode());
|
|
|
|
|
+ result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
|
|
|
|
|
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
|
|
|
|
+ result = prime * result + ((getLastUpdateBy() == null) ? 0 : getLastUpdateBy().hashCode());
|
|
|
|
|
+ result = prime * result + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode());
|
|
|
|
|
+ result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
|
|
|
|
|
+ result = prime * result + ((getComtype() == null) ? 0 : getComtype().hashCode());
|
|
|
|
|
+ result = prime * result + ((getComlevel() == null) ? 0 : getComlevel().hashCode());
|
|
|
|
|
+ result = prime * result + ((getDeptCode() == null) ? 0 : getDeptCode().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(", name=").append(name);
|
|
|
|
|
+ sb.append(", parentId=").append(parentId);
|
|
|
|
|
+ sb.append(", orderNum=").append(orderNum);
|
|
|
|
|
+ sb.append(", createBy=").append(createBy);
|
|
|
|
|
+ sb.append(", createTime=").append(createTime);
|
|
|
|
|
+ sb.append(", lastUpdateBy=").append(lastUpdateBy);
|
|
|
|
|
+ sb.append(", lastUpdateTime=").append(lastUpdateTime);
|
|
|
|
|
+ sb.append(", delFlag=").append(delFlag);
|
|
|
|
|
+ sb.append(", comtype=").append(comtype);
|
|
|
|
|
+ sb.append(", comlevel=").append(comlevel);
|
|
|
|
|
+ sb.append(", deptCode=").append(deptCode);
|
|
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
|
|
+ sb.append("]");
|
|
|
|
|
+ return sb.toString();
|
|
|
|
|
+ }
|
|
|
|
|
+}
|