<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >


<mapper namespace="com.hys.app.mapper.system.MenuMapper">

    <!--根据id查询菜单-->
    <select id="queryForId" resultType="Map" useCache="false">
        select id from es_menu where parent_id = #{id}
    </select>

    <!--获取菜单集合-->
    <select id="queryForVo" resultType="com.hys.app.model.system.vo.MenusVO" useCache="false">
        select * from es_menu where delete_flag = '0' order by id asc
    </select>

</mapper>
