From 7fa0a141a3c88ca90c67c966260bf26f03f255da Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 07 Jun 2022 16:00:09 +0800 Subject: [PATCH] 20220606 --- src/main/resources/mapper/MenuMapper.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/MenuMapper.xml b/src/main/resources/mapper/MenuMapper.xml index e1127a9..ad782b3 100644 --- a/src/main/resources/mapper/MenuMapper.xml +++ b/src/main/resources/mapper/MenuMapper.xml @@ -12,6 +12,9 @@ <if test="record.parentId != null"> and a.parent_id = #{record.parentId} </if> + <if test="record.belongId != null"> + and a.belong_id = #{record.belongId} + </if> </if> </where> order by a.create_time desc @@ -24,4 +27,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} and a.belong_id = #{belongId} + </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