⚡ 优化 适配Oracle 数据库

This commit is contained in:
lbw committed 2022-01-07 15:35:07 +08:00
1 parent ab94025923
commit d193bbd414
2 files changed
+1 -2

No files matched your search

@@ -123,7 +123,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
public List<Tree<Long>> selectTree(String deptName) {
// 查询全部部门
List<SysDept> deptAllList = deptMapper
.selectList(Wrappers.<SysDept>lambdaQuery().like(SysDept::getName, deptName));
.selectList(Wrappers.<SysDept>lambdaQuery().like(StrUtil.isNotBlank(deptName),SysDept::getName, deptName));
// 查询数据权限内部门
List<Long> deptOwnIdList = deptMapper.selectListByScope(
Wrappers.<SysDept>lambdaQuery().like(StrUtil.isNotBlank(deptName), SysDept::getName, deptName),
@@ -94,7 +94,6 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
/**
* 构建树查询 1. 不是懒加载情况,查询全部 2. 是懒加载,根据parentId 查询 2.1 父节点为空,则查询ID -1
* @param lazy 是否是懒加载
* @param parentId 父节点ID
* @param menuName 菜单名称
* @return