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 | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/MenuMapper.xml b/src/main/resources/mapper/MenuMapper.xml index e1127a9..28ead9c 100644 --- a/src/main/resources/mapper/MenuMapper.xml +++ b/src/main/resources/mapper/MenuMapper.xml @@ -24,4 +24,18 @@ 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