resultMap type=HrMenu id=menuResultMap id property=id column=ID / result property=name column=name / result property=url column=url / result property=parentid column=parentid / result property=level column=level / result property=seq column=seq / result property=butnstyle column=butnstyle / association property=parent column=parentid select=HrMenu.findMenuById/association collection property=child column=id select=HrMenu.findMenusByParentId/collection /resultMap
!-- 查询菜单list -- select id=findMenuById parameterType=int resultMap=menuNavResultMap SELECT * FROM hr_menu where id=#{id} order by seq; /select
!-- 查询菜单list -- select id=findMenusByParentId parameterType=int resultMap=menuResultMap SELECT * FROM hr_menu where parentid=#{id} order by seq asc; /select