diff --git a/src/main/java/com/huoran/iasf/service/impl/DeptServiceImpl.java b/src/main/java/com/huoran/iasf/service/impl/DeptServiceImpl.java index 6276c8d..3a3e9bf 100644 --- a/src/main/java/com/huoran/iasf/service/impl/DeptServiceImpl.java +++ b/src/main/java/com/huoran/iasf/service/impl/DeptServiceImpl.java @@ -151,7 +151,7 @@ public class DeptServiceImpl extends ServiceImpl impleme // 默认加一个顶级方便新增顶级部门 DeptRespNodeVO respNodeVO = new DeptRespNodeVO(); respNodeVO.setName("默认顶级部门"); - respNodeVO.setId("0"); + respNodeVO.setId(0); /* respNodeVO.setSpread(true); respNodeVO.setDisabled(false);*/ respNodeVO.setChildren(getTree(list)); diff --git a/src/main/java/com/huoran/iasf/vo/resp/DeptRespNodeVO.java b/src/main/java/com/huoran/iasf/vo/resp/DeptRespNodeVO.java index 5e46a66..b9bc516 100644 --- a/src/main/java/com/huoran/iasf/vo/resp/DeptRespNodeVO.java +++ b/src/main/java/com/huoran/iasf/vo/resp/DeptRespNodeVO.java @@ -15,7 +15,7 @@ import java.util.List; @Data public class DeptRespNodeVO { @ApiModelProperty(value = "组织id") - private String id; + private Integer id; @ApiModelProperty(value = "组织编码") private String deptNo;