日期:2014-05-17 浏览次数:20769 次
<select id="selectFunctionBySelfLink" resultType="function" parameterType="java.util.Map"> SELECT DISTINCT A.functionID,A.name,A.functionNo,A.url,A.moreUrl,A.newWindow,A.orderID,A.layer,A.parentID, case when B.functionID is not null then 1 else 0 end hasChild, A.isMenu,A.swingMenu,A.requestAuth,A.permitIP,A.note,A.icon, A.bigIcon FROM (SELECT * FROM Sys_Function WHERE functionID in(SELECT functionID FROM Sys_RoleFunc WHERE roleid=#{roleID:INTEGER} ) AND isMenu=1 AND parentID=#{parentID:INTEGER} ) A, (SELECT * FROM Sys_Function WHERE functionID in(SELECT functionID FROM Sys_RoleFunc WHERE roleid=#{roleID:INTEGER} ) AND isMenu=1 ) B WHERE A.Functionid = B.parentID(+) <if test="orderByClause != null">order by ${orderByClause}</if> </select>