zss
8 天以前 33730ba5f81f78bf2c63fa792b6b8e65d94c4ca9
src/main/java/com/ruoyi/project/system/domain/SysDept.java
@@ -4,6 +4,7 @@
import java.util.List;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -31,7 +32,7 @@
    private String deptName;
    /** 显示顺序 */
    private String orderNum;
    private Integer orderNum;
    /** 负责人 */
    private String leader;
@@ -50,6 +51,12 @@
    /** 父部门名称 */
    private String parentName;
    /** 部门编号 */
    private String deptNick;
    /** 员工数量 */
    private Integer staffCount;
    
    /** 子部门 */
    private List<SysDept> children = new ArrayList<SysDept>();
@@ -96,13 +103,13 @@
        this.deptName = deptName;
    }
    @NotBlank(message = "显示顺序不能为空")
    public String getOrderNum()
    @NotNull(message = "显示顺序不能为空")
    public Integer getOrderNum()
    {
        return orderNum;
    }
    public void setOrderNum(String orderNum)
    public void setOrderNum(Integer orderNum)
    {
        this.orderNum = orderNum;
    }
@@ -180,6 +187,22 @@
        this.children = children;
    }
    public String getDeptNick() {
        return deptNick;
    }
    public void setDeptNick(String deptNick) {
        this.deptNick = deptNick;
    }
    public Integer getStaffCount() {
        return staffCount;
    }
    public void setStaffCount(Integer staffCount) {
        this.staffCount = staffCount;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -187,6 +210,7 @@
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("deptName", getDeptName())
            .append("staffCount", getStaffCount())
            .append("orderNum", getOrderNum())
            .append("leader", getLeader())
            .append("phone", getPhone())