From 33cd99e2509c88ce838ec2c68f2d36de80e27a6c Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 07 Jun 2022 10:15:17 +0800 Subject: [PATCH] 20220606 --- src/main/resources/mapper/MenuMapper.xml | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/MenuMapper.xml b/src/main/resources/mapper/MenuMapper.xml index 74e8534..28ead9c 100644 --- a/src/main/resources/mapper/MenuMapper.xml +++ b/src/main/resources/mapper/MenuMapper.xml @@ -17,4 +17,25 @@ order by a.create_time desc </select> + <select id="selectAdminRoleMenuVoById" resultType="com.xcong.farmer.cms.modules.system.vo.AdminUserMenuVo"> + SELECT + a.* + FROM + t_menu a where a.id = #{id} + </select> + + <select id="selectAdminMenuVoInListByParentId" resultType="com.xcong.farmer.cms.modules.system.vo.AdminMenuVo"> + SELECT + a.* + FROM + t_menu a where a.parent_id = #{parentId} + </select> + + <select id="selectMenuEntityByIdAndParentId" resultType="com.xcong.farmer.cms.modules.system.entity.MenuEntity"> + SELECT + a.* + FROM + t_menu a where a.parent_id != #{parentId} and a.id = #{menuId} + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.1