<?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.tamguo.dao.MenuMapper">
	
	<select id="findMenuByParentId" resultType="MenuEntity">
		SELECT
			uid,name,parent_id,pinyin,is_show,orders,url,reserve_1
		FROM
			tiku_menu
		where parent_id = #{parentId}
		order by orders desc
	</select>
	
	<select id="findAllFatherMenus" resultType="MenuEntity">
		SELECT
			uid,name,parent_id,pinyin,is_show,orders,url,reserve_1
		FROM
			tiku_menu
		where parent_id = 1
		order by orders desc
	</select>
    
</mapper>