Ver código fonte

新增获部门树形列表返回父部门名称pname字段

tags/v1.0.0^2
wanjing 1 ano atrás
pai
commit
277eca467a
2 arquivos alterados com 6 adições e 0 exclusões
  1. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/query/QueryListTreeService.java
  2. +5
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/vo/DeptTreeVo.java

+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/query/QueryListTreeService.java Ver arquivo

@@ -60,6 +60,7 @@ public class QueryListTreeService {
deptTreeVoList.add(deptTreeVo);
} else {
DeptTreeVo parent = deptVoMap.get(child.getPid());
deptTreeVo.setPName(parent.getName());
parent.getChildren().add(child);
}
}

+ 5
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/vo/DeptTreeVo.java Ver arquivo

@@ -37,6 +37,11 @@ public class DeptTreeVo {
*/
private String pid;

/**
* 上级部门名称
*/
private String pname;

/**
* 子部门
*/

Carregando…
Cancelar
Salvar