From 907641e56c2085aaa81f267946dc3e3e9fca73e7 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 18 九月 2024 09:39:02 +0800 Subject: [PATCH] 代码提交 --- ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java | 158 ++++++++++++++++++++++++++-------------------------- 1 files changed, 78 insertions(+), 80 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java index 8d7b63b..c0f36b8 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java @@ -16,206 +16,204 @@ /** * 閮ㄩ棬琛� sys_dept - * + * * @author ruoyi */ @Data @ApiModel(value = "SysDept", description = "閮ㄩ棬琛�") -public class SysDept extends BaseEntity -{ +public class SysDept extends BaseEntity { private static final long serialVersionUID = 1L; - /** 閮ㄩ棬ID */ + /** + * 閮ㄩ棬ID + */ @ApiModelProperty("閮ㄩ棬ID") private Long deptId; - /** 鐖堕儴闂↖D */ + /** + * 鐖堕儴闂↖D + */ @ApiModelProperty("鐖堕儴闂↖D") private Long parentId; - /** 绁栫骇鍒楄〃 */ + /** + * 绁栫骇鍒楄〃 + */ @ApiModelProperty("绁栫骇鍒楄〃") private String ancestors; - /** 閮ㄩ棬鍚嶇О */ + /** + * 閮ㄩ棬鍚嶇О + */ @ApiModelProperty("閮ㄩ棬鍚嶇О") private String deptName; - /** 鏄剧ず椤哄簭 */ + /** + * 鏄剧ず椤哄簭 + */ @ApiModelProperty("鏄剧ず椤哄簭") private Integer orderNum; - /** 璐熻矗浜� */ + /** + * 璐熻矗浜� + */ @ApiModelProperty("璐熻矗浜�") private String leader; - /** 鑱旂郴鐢佃瘽 */ + /** + * 鑱旂郴鐢佃瘽 + */ @ApiModelProperty("鑱旂郴鐢佃瘽") private String phone; - /** 閭 */ + /** + * 閭 + */ @ApiModelProperty("閭") private String email; - /** 閮ㄩ棬鐘舵��:0姝e父,1鍋滅敤 */ + /** + * 閮ㄩ棬鐘舵��:0姝e父,1鍋滅敤 + */ @ApiModelProperty("閮ㄩ棬鐘舵��:0姝e父,1鍋滅敤") private String status; - /** 鍒犻櫎鏍囧織锛�0浠h〃瀛樺湪 2浠h〃鍒犻櫎锛� */ + /** + * 鍒犻櫎鏍囧織锛�0浠h〃瀛樺湪 2浠h〃鍒犻櫎锛� + */ @ApiModelProperty("鍒犻櫎鏍囧織锛�0浠h〃瀛樺湪 2浠h〃鍒犻櫎锛�") private String delFlag; - /** 鐖堕儴闂ㄥ悕绉� */ + /** + * 鐖堕儴闂ㄥ悕绉� + */ @ApiModelProperty("鐖堕儴闂ㄥ悕绉�") private String parentName; - - /** 瀛愰儴闂� */ + + /** + * 瀛愰儴闂� + */ @ApiModelProperty("瀛愰儴闂�") private List<SysDept> children = new ArrayList<SysDept>(); - public Long getDeptId() - { + /** + * 閮ㄩ棬缂栫爜 + */ + @ApiModelProperty("閮ㄩ棬缂栫爜") + private String deptCode; + + public String getDeptCode() { + return deptCode; + } + + public void setDeptCode(String deptCode) { + this.deptCode = deptCode; + } + + public Long getDeptId() { return deptId; } - public void setDeptId(Long deptId) - { + public void setDeptId(Long deptId) { this.deptId = deptId; } - public Long getParentId() - { + public Long getParentId() { return parentId; } - public void setParentId(Long parentId) - { + public void setParentId(Long parentId) { this.parentId = parentId; } - public String getAncestors() - { + public String getAncestors() { return ancestors; } - public void setAncestors(String ancestors) - { + public void setAncestors(String ancestors) { this.ancestors = ancestors; } @NotBlank(message = "閮ㄩ棬鍚嶇О涓嶈兘涓虹┖") @Size(min = 0, max = 30, message = "閮ㄩ棬鍚嶇О闀垮害涓嶈兘瓒呰繃30涓瓧绗�") - public String getDeptName() - { + public String getDeptName() { return deptName; } - public void setDeptName(String deptName) - { + public void setDeptName(String deptName) { this.deptName = deptName; } @NotNull(message = "鏄剧ず椤哄簭涓嶈兘涓虹┖") - public Integer getOrderNum() - { + public Integer getOrderNum() { return orderNum; } - public void setOrderNum(Integer orderNum) - { + public void setOrderNum(Integer orderNum) { this.orderNum = orderNum; } - public String getLeader() - { + public String getLeader() { return leader; } - public void setLeader(String leader) - { + public void setLeader(String leader) { this.leader = leader; } @Size(min = 0, max = 11, message = "鑱旂郴鐢佃瘽闀垮害涓嶈兘瓒呰繃11涓瓧绗�") - public String getPhone() - { + public String getPhone() { return phone; } - public void setPhone(String phone) - { + public void setPhone(String phone) { this.phone = phone; } @Email(message = "閭鏍煎紡涓嶆纭�") @Size(min = 0, max = 50, message = "閭闀垮害涓嶈兘瓒呰繃50涓瓧绗�") - public String getEmail() - { + public String getEmail() { return email; } - public void setEmail(String email) - { + public void setEmail(String email) { this.email = email; } - public String getStatus() - { + public String getStatus() { return status; } - public void setStatus(String status) - { + public void setStatus(String status) { this.status = status; } - public String getDelFlag() - { + public String getDelFlag() { return delFlag; } - public void setDelFlag(String delFlag) - { + public void setDelFlag(String delFlag) { this.delFlag = delFlag; } - public String getParentName() - { + public String getParentName() { return parentName; } - public void setParentName(String parentName) - { + public void setParentName(String parentName) { this.parentName = parentName; } - public List<SysDept> getChildren() - { + public List<SysDept> getChildren() { return children; } - public void setChildren(List<SysDept> children) - { + public void setChildren(List<SysDept> children) { this.children = children; } @Override public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("deptId", getDeptId()) - .append("parentId", getParentId()) - .append("ancestors", getAncestors()) - .append("deptName", getDeptName()) - .append("orderNum", getOrderNum()) - .append("leader", getLeader()) - .append("phone", getPhone()) - .append("email", getEmail()) - .append("status", getStatus()) - .append("delFlag", getDelFlag()) - .append("createBy", getCreateBy()) - .append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()) - .append("updateTime", getUpdateTime()) - .toString(); + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("deptId", getDeptId()).append("parentId", getParentId()).append("ancestors", getAncestors()).append("deptName", getDeptName()).append("orderNum", getOrderNum()).append("leader", getLeader()).append("phone", getPhone()).append("email", getEmail()).append("status", getStatus()).append("delFlag", getDelFlag()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).toString(); } } -- Gitblit v1.9.3