From 4206d3d43703ec17c610608490c673874df6267a Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期一, 06 十一月 2023 10:16:20 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/crm/system/entity/Dept.java | 191 ++++++++++++-----------------------------------
1 files changed, 49 insertions(+), 142 deletions(-)
diff --git a/src/main/java/com/zy/crm/system/entity/Dept.java b/src/main/java/com/zy/crm/system/entity/Dept.java
index c4656f9..379590d 100644
--- a/src/main/java/com/zy/crm/system/entity/Dept.java
+++ b/src/main/java/com/zy/crm/system/entity/Dept.java
@@ -10,11 +10,13 @@
import com.zy.crm.system.service.DeptService;
import com.zy.crm.system.service.HostService;
import com.zy.crm.system.service.UserService;
+import lombok.Data;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
+@Data
@TableName("sys_dept")
public class Dept implements Serializable {
@@ -28,24 +30,56 @@
private Long id;
/**
- * 鎵�灞為」鐩�
+ * 鎵�灞炲晢鎴�
*/
- @ApiModelProperty(value= "鎵�灞為」鐩�")
+ @ApiModelProperty(value= "鎵�灞炲晢鎴�")
@TableField("host_id")
private Long hostId;
/**
- * 鐖堕儴闂ㄧ紪鍙�
+ * 缂栧彿
*/
- @ApiModelProperty(value= "鐖堕儴闂ㄧ紪鍙�")
- @TableField("parent_id")
- private Long parentId;
+ @ApiModelProperty(value= "缂栧彿")
+ private String uuid;
/**
* 閮ㄩ棬鍚嶇О
*/
@ApiModelProperty(value= "閮ㄩ棬鍚嶇О")
private String name;
+
+ /**
+ * 鐖堕儴闂ㄧ紪鍙�
+ */
+ @ApiModelProperty(value= "鐖剁骇")
+ @TableField("parent_id")
+ private Long parentId;
+
+ /**
+ * 鐖剁骇鍚嶇О
+ */
+ @ApiModelProperty(value= "鐖剁骇鍚嶇О")
+ @TableField("parent_name")
+ private String parentName;
+
+ /**
+ * 鍏宠仈璺緞
+ */
+ @ApiModelProperty(value= "鍏宠仈璺緞")
+ private String path;
+
+ /**
+ * 鍏宠仈璺緞鍚�
+ */
+ @ApiModelProperty(value= "鍏宠仈璺緞鍚�")
+ @TableField("name_path")
+ private String namePath;
+
+ /**
+ * 绛夌骇
+ */
+ @ApiModelProperty(value= "绛夌骇")
+ private Integer level;
/**
* 鏄剧ず椤哄簭
@@ -74,8 +108,8 @@
/**
* 閮ㄩ棬鐘舵�� 1: 姝e父;0
*/
- @ApiModelProperty(value= "閮ㄩ棬鐘舵�� 1: 姝e父;0 ")
- private Short status;
+ @ApiModelProperty(value= "閮ㄩ棬鐘舵�� 1: 姝e父;0: 绂佺敤")
+ private Integer status;
/**
* 鍒涘缓鑰�
@@ -105,52 +139,13 @@
@TableField("update_time")
private Date updateTime;
+ /**
+ * 澶囨敞
+ */
+ @ApiModelProperty(value= "澶囨敞")
+ private String memo;
+
public Dept() {}
-
- public Dept(Long hostId, Long parentId,String name,Integer sort,Long leader,String phone,String email,Short status,Long createBy,Date createTime,Long updateBy,Date updateTime) {
- this.hostId = hostId;
- this.parentId = parentId;
- this.name = name;
- this.sort = sort;
- this.leader = leader;
- this.phone = phone;
- this.email = email;
- this.status = status;
- this.createBy = createBy;
- this.createTime = createTime;
- this.updateBy = updateBy;
- this.updateTime = updateTime;
- }
-
-// Dept dept = new Dept(
-// null, // 鐖堕儴闂ㄧ紪鍙�
-// null, // 閮ㄩ棬鍚嶇О[闈炵┖]
-// null, // 鏄剧ず椤哄簭
-// null, // 璐熻矗浜�
-// null, // 鑱旂郴鐢佃瘽
-// null, // 閭
-// null, // 閮ㄩ棬鐘舵��
-// null, // 鍒涘缓鑰�
-// null, // 鍒涘缓鏃堕棿
-// null, // 鏇存柊鑰�
-// null // 鏇存柊鏃堕棿
-// );
-
- public Long getId() {
- return id;
- }
-
- public void setId(Long id) {
- this.id = id;
- }
-
- public Long getHostId() {
- return hostId;
- }
-
- public void setHostId(Long hostId) {
- this.hostId = hostId;
- }
public String getHostId$(){
HostService service = SpringUtils.getBean(HostService.class);
@@ -159,10 +154,6 @@
return String.valueOf(host.getName());
}
return null;
- }
-
- public Long getParentId() {
- return parentId;
}
public String getParentId$() {
@@ -174,30 +165,6 @@
return null;
}
- public void setParentId(Long parentId) {
- this.parentId = parentId;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public Integer getSort() {
- return sort;
- }
-
- public void setSort(Integer sort) {
- this.sort = sort;
- }
-
- public Long getLeader() {
- return leader;
- }
-
public String getLeader$(){
UserService service = SpringUtils.getBean(UserService.class);
User user = service.selectById(this.leader);
@@ -207,56 +174,16 @@
return null;
}
- public void setLeader(Long leader) {
- this.leader = leader;
- }
-
- public String getPhone() {
- return phone;
- }
-
- public void setPhone(String phone) {
- this.phone = phone;
- }
-
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
- public Short getStatus() {
- return status;
- }
-
public String getStatus$(){
if (null == this.status){ return null; }
switch (this.status){
case 1:
return "姝e父";
case 0:
- return "鍋滅敤";
+ return "绂佺敤";
default:
return String.valueOf(this.status);
}
- }
-
- public void setStatus(Short status) {
- this.status = status;
- }
-
- public Long getCreateBy() {
- return createBy;
- }
-
- public void setCreateBy(Long createBy) {
- this.createBy = createBy;
- }
-
- public Date getCreateTime() {
- return createTime;
}
public String getCreateTime$(){
@@ -266,31 +193,11 @@
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
}
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
- }
-
- public Long getUpdateBy() {
- return updateBy;
- }
-
- public void setUpdateBy(Long updateBy) {
- this.updateBy = updateBy;
- }
-
- public Date getUpdateTime() {
- return updateTime;
- }
-
public String getUpdateTime$(){
if (Cools.isEmpty(this.updateTime)){
return "";
}
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
- }
-
- public void setUpdateTime(Date updateTime) {
- this.updateTime = updateTime;
}
}
--
Gitblit v1.9.1