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>