| | |
| | | import com.iailab.module.system.dal.dataobject.permission.MenuDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | |
| | | |
| | | 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())); |
| | | } |
| | |
| | | default List<MenuDO> selectListByPermission(String permission) { |
| | | return selectList(MenuDO::getPermission, permission); |
| | | } |
| | | |
| | | default List<MenuDO> selectListByParentId(Collection<Long> parentIds) { |
| | | return selectList(MenuDO::getParentId, parentIds); |
| | | } |
| | | } |