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 | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/MenuMapper.xml b/src/main/resources/mapper/MenuMapper.xml index 28ead9c..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 @@ -28,7 +31,7 @@ SELECT a.* FROM - t_menu a where a.parent_id = #{parentId} + 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"> -- Gitblit v1.9.1