From b8a0affd03b5fa9fa33cd6f870e90394c2df86c7 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 06 一月 2025 13:31:07 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/dal/mysql/permission/MenuMapper.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/dal/mysql/permission/MenuMapper.java b/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/dal/mysql/permission/MenuMapper.java index 488688e..2f8e230 100644 --- a/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/dal/mysql/permission/MenuMapper.java +++ b/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/dal/mysql/permission/MenuMapper.java @@ -6,6 +6,7 @@ import com.iailab.module.system.dal.dataobject.permission.MenuDO; import org.apache.ibatis.annotations.Mapper; +import java.util.Collection; import java.util.List; @Mapper @@ -21,6 +22,11 @@ default List<MenuDO> selectList(MenuListReqVO reqVO) { return selectList(new LambdaQueryWrapperX<MenuDO>() + .likeIfPresent(MenuDO::getName, reqVO.getName())); + } + + default List<MenuDO> selectAppMenuList(MenuListReqVO reqVO) { + return selectList(new LambdaQueryWrapperX<MenuDO>() .likeIfPresent(MenuDO::getName, reqVO.getName()) .eqIfPresent(MenuDO::getStatus, reqVO.getStatus())); } @@ -28,4 +34,8 @@ default List<MenuDO> selectListByPermission(String permission) { return selectList(MenuDO::getPermission, permission); } + + default List<MenuDO> selectListByParentId(Collection<Long> parentIds) { + return selectList(MenuDO::getParentId, parentIds); + } } -- Gitblit v1.9.3