xiaoyong931011
2022-06-01 936dbe1f11369f9e03ef817a114390e6e13219c4
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>