|
@@ -54,6 +54,7 @@ public class DeptServiceImpl extends BaseServiceImpl<DeptDao, Dept> implements D
|
|
public List<Dept> getTree(DeptQuery deptQuery) {
|
|
public List<Dept> getTree(DeptQuery deptQuery) {
|
|
//List<Dept> list = this.getList(deptQuery);
|
|
//List<Dept> list = this.getList(deptQuery);
|
|
List<Dept> list = deptDao.lambdaQueryChain()
|
|
List<Dept> list = deptDao.lambdaQueryChain()
|
|
|
|
+ .eq(deptQuery.getPid() != null, Dept::getId, deptQuery.getPid())
|
|
.orderByAsc(Dept::getSort)
|
|
.orderByAsc(Dept::getSort)
|
|
.list();
|
|
.list();
|
|
//构建部门树
|
|
//构建部门树
|