Explorar el Código

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

tags/v1.0.0^2
wanjing hace 1 año
padre
commit
277eca467a
Se han modificado 2 ficheros con 6 adiciones y 0 borrados
  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 fichero

deptTreeVoList.add(deptTreeVo); deptTreeVoList.add(deptTreeVo);
} else { } else {
DeptTreeVo parent = deptVoMap.get(child.getPid()); DeptTreeVo parent = deptVoMap.get(child.getPid());
deptTreeVo.setPName(parent.getName());
parent.getChildren().add(child); parent.getChildren().add(child);
} }
} }

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

*/ */
private String pid; private String pid;


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

/** /**
* 子部门 * 子部门
*/ */

Cargando…
Cancelar
Guardar