diff --git a/src/com/engine/organization/entity/department/bo/DepartmentBO.java b/src/com/engine/organization/entity/department/bo/DepartmentBO.java index 7835aca5..668b35c7 100644 --- a/src/com/engine/organization/entity/department/bo/DepartmentBO.java +++ b/src/com/engine/organization/entity/department/bo/DepartmentBO.java @@ -138,7 +138,7 @@ public class DepartmentBO { tree.setIsParent(false); tree.setIsVirtual("0"); tree.setName(item.getDepartmentName()); - tree.setPid(item.getSupDepId().toString()); + tree.setPid(null == item.getSupDepId() ? "0" : item.getSupDepId().toString()); tree.setSelected(false); tree.setType("2"); tree.setParentComp(item.getSubCompanyId1().toString());